diff --git a/.gitignore b/.gitignore index 5d6a15d..19bdf62 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,7 @@ *.class /out/ /coverage/ + +# Python cache files +__pycache__/ +*.py[cod] diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 37fcefa..895bf0e 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.0.0" + ".": "2.0.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 6533bfe..1636f1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,13 +1,11 @@ # Changelog -## 1.0.0 +## 2.0.0 -- Add the Gradle multi-module SDK, shared OkHttp/Jackson transport, typed errors, pagination, polling, and SSE support. -- Add named AI, agents, and workflows clients plus accessors for every service. -- Add MockWebServer, README example, route contract, Java 17/21 CI, and Central Portal release checks. +- Establish the initial SDK release with the multi-module build, shared transport, typed failures, pagination, polling, and SSE support. +- Add named service clients and operation methods for all catalogued routes. +- Retry safe streamed GET downloads and bound retained error diagnostics. +- Add immutable typed query parameters and JSON tree request bodies for routes without contract schemas; isolate custom Jackson configuration. +- Narrow polling exceptions, complete finite SSE publishers at exact demand boundaries, and publish generated service references. All notable changes to this SDK are recorded here. - -## Unreleased - -- Add the initial repository scaffold and shared API contract snapshots. diff --git a/README.md b/README.md index c12c860..e75e70d 100644 --- a/README.md +++ b/README.md @@ -14,35 +14,87 @@ Maven: dev.frontal frontal-sdk - 1.0.0 + 2.0.0 ``` Gradle Kotlin DSL: ```kotlin -implementation("dev.frontal:frontal-sdk:1.0.0") +implementation("dev.frontal:frontal-sdk:2.0.0") ``` Set `FRONTAL_API_KEY`, then make a testable call. The README snippet is compiled and run against MockWebServer in CI: ```java -try (Frontal f = Frontal.builder().apiKey("frt_test_key").baseUrl(mock.url("/v1").toString()).build()) { - JsonNode agent = f.agents().get("agt_123", JsonNode.class); +try (Frontal quickstartClient = Frontal.builder().apiKey("frt_test_key").apiBaseUrl(mock.url("/v1").toString()).build()) { + JsonNode agent = quickstartClient.agents().get("agt_123", JsonNode.class); if (!"triage".equals(agent.path("name").asText())) throw new AssertionError(); } ``` -The production default base URL is `https://api.frontal.dev/v1`; `baseUrl(...)` is useful for tests and compatible gateways. `Frontal` exposes every API service, with named operation helpers for AI, agents, and workflows. Each service shares one transport, and all catalogued routes remain available through its `request` methods and `Endpoints` constants. +The production default API base URL is `https://api.frontal.dev/v1`; `apiBaseUrl(...)` configures test servers and compatible gateways. `Frontal` exposes a client for every API service, with nested resource clients and concise methods generated from the route catalog. Collection methods use names such as `list()` and `create()`, item methods use `get(id)`, `update(id, body)`, and `delete(id)`, and custom actions keep their action names. Each resource shares one transport; `Endpoints` and generic `request` methods remain available for advanced use. + +Nested routes follow their resource path: + +```java +JsonNode run = f.agents().runs().get("run_123", JsonNode.class); +``` + +```java +JsonNode dataset = f.data().ingest().datasets().get("dataset_123", JsonNode.class); +``` + +For routes whose contracts do not define a payload schema, named methods accept `JsonNode` request bodies and caller-selected response types. Use `QueryParams` when you need to add query values and `TypeReference` for generic collections: + +```java + JsonNode health = f.agents().health(JsonNode.class); +``` ## Configuration -`Frontal.builder()` accepts `apiKey`, `baseUrl`, `aiBaseUrl`, `env`, `debug`, `timeout`, `connectTimeout`, `maxRetries`, and custom headers. `Frontal.fromEnvironment()` reads `FRONTAL_API_KEY`, `FRONTAL_API_URL`, `FRONTAL_AI_URL`, `FRONTAL_ENV`, `FRONTAL_DEBUG`, and `FRONTAL_TIMEOUT`. Java does not load `.env` files automatically. +`Frontal.builder()` accepts `apiKey`, `apiBaseUrl`, `aiBaseUrl`, `environment`, `debug`, `requestTimeout`, `connectTimeout`, `maxRetries`, `maxResponseBytes`, `maxErrorBodyBytes`, `userAgent`, custom headers, and an optional `ObjectMapper`. The SDK copies a supplied mapper at build time. `Frontal.fromEnvironment()` reads `FRONTAL_API_KEY`, `FRONTAL_API_URL`, `FRONTAL_AI_URL`, `FRONTAL_ENV`, `FRONTAL_DEBUG`, and `FRONTAL_TIMEOUT`. Java does not load `.env` files automatically. -HTTP errors are `FrontalException` subclasses: `AuthException`, `RateLimitException`, `ValidationException`, `ServerException`, or `ApiException`. They expose `code()`, `requestId()`, `statusCode()`, and `retryable()`. Network failures use `NetworkException`. +HTTP errors are `FrontalException` subclasses: `AuthException`, `RateLimitException`, `ValidationException`, `ServerException`, or `ApiException`. They expose `code()`, `requestId()`, `statusCode()`, and `retryable()`. Network failures use `NetworkException`. `responseBody()` retains at most 16 KiB by default; `responseBodyTruncated()` reports when the diagnostic body was capped. + +With a `Frontal` client open, catch typed failures when the application needs different handling, and use the request ID for support diagnostics. Error response bodies are available through `responseBody()` and may contain sensitive data, so avoid logging them indiscriminately: + +```java +try { + JsonNode agent = f.agents().get("agt_123", JsonNode.class); +} catch (RateLimitException e) { + System.err.println("Retry after " + e.retryAfter() + "; request " + e.requestId()); +} catch (FrontalException e) { + System.err.println("Frontal request failed: " + e.code() + "; request " + e.requestId()); +} +``` Paginated list operations return `PageResult` with `nextPage()`, `all()`, and `Iterable` support. Streaming endpoints expose `Flow.Publisher` and a blocking `SseEventIterator` that callers close after use. +Iterate pages lazily when the result may be large: + +```java +for (JsonNode agent : f.agents().listPages(QueryParams.empty(), JsonNode.class)) { + System.out.println(agent.path("id").asText()); +} +``` + +`requestBytes()` buffers a response up to the configured response limit. For larger downloads, use `streamBody()` and close the response. This example assumes `outputStream` is an open `OutputStream`: + +```java +Endpoint download = new Endpoint(ApiService.DATA, HttpMethod.GETRAW, "/exports/{param}"); +try (ApiStream response = f.data().streamBody(download, List.of("exp_123"), QueryParams.empty(), null)) { + response.body().transferTo(outputStream); +} +``` + +Request and query maps use their keys verbatim as wire names; for example, use `"agent_id"` when the API expects `agent_id`. Java bean properties use the default snake case Jackson strategy. A custom mapper’s settings are honored, and `@JsonProperty` controls exact field names. + +The configured request timeout applies to each ordinary call attempt and `streamBody()` download attempt. Safe GET requests may retry up to `maxRetries`; writes run once. Retry delays are capped at five seconds. SSE connections disable the read and call timeout so long-lived streams can remain open; close the blocking iterator or cancel the Flow subscription to release the connection. + + +Browse the [service API reference](./docs/api/README.md) for all named operations and route signatures. + ## Build and verify Requirements: JDK 17 or 21 and Python 3 for the contract check. The Gradle wrapper is the supported build entry point. diff --git a/SECURITY.md b/SECURITY.md index d3b3567..ba7a227 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -6,6 +6,6 @@ We aim to acknowledge reports within five business days and will coordinate a fi ## Supported versions -Security fixes are provided for the latest stable release line (currently `1.x`). Upgrade to the latest patch release before reporting an issue. Unsupported versions may receive a fix only when a vulnerability warrants it and a maintainer can provide one. +Security fixes are provided for the latest stable release line (currently `2.x`). Upgrade to the latest patch release before reporting an issue. Unsupported versions may receive a fix only when a vulnerability warrants it and a maintainer can provide one. Never commit populated `.env` files, credentials, or captured production payloads. diff --git a/contracts/reports/conformance.json b/contracts/reports/conformance.json index aec2e5a..2375227 100644 --- a/contracts/reports/conformance.json +++ b/contracts/reports/conformance.json @@ -1,9 +1,10 @@ { "repository": "sdk-java", "language": "Java", - "status": "route-catalogued", + "status": "named-operations", "contractEndpointEntries": 622, - "generatedEndpointConstants": 622, - "catalogCoverage": "100%", - "note": "All routes in sdk-endpoints.json have generated endpoint constants and share the generic SDK transport. Route-specific typed models are not generated because the inventory does not provide complete schemas." + "generatedEndpointConstants": 611, + "namedOperationMethods": 611, + "supportedRouteCoverage": "611/622", + "note": "Endpoint constants and named operations cover SDK service routes. Payloads without usable schemas retain caller-provided JSON and response types." } diff --git a/contracts/reports/migration-matrix.md b/contracts/reports/migration-matrix.md index 793eb5b..c006549 100644 --- a/contracts/reports/migration-matrix.md +++ b/contracts/reports/migration-matrix.md @@ -1,12 +1,13 @@ # Java SDK route coverage -_Status: generated route catalog complete. This measures catalog coverage and generic transport availability, not route-specific typed models._ +_Status: generated route catalog and named operation surface complete. Typed models are provided only where committed schemas are usable._ | Metric | Value | | --- | ---: | | Contract endpoint entries | 622 | -| Generated endpoint constants | 622 | -| Catalog coverage | 100% | -| Route-specific typed request/response models | Not generated | +| Generated endpoint constants | 611 | +| Named operation methods for supported routes | 611 | +| Contract routes omitted from the SDK surface | 11 | +| Operation-specific payload schemas usable | Limited by committed contract snapshots | -`scripts/generate_endpoints.py` regenerates `services/src/main/java/dev/frontal/sdk/resources/Endpoints.java` from `contracts/sdk-endpoints.json`. All catalogued routes use the shared Java transport; callers provide response types when decoding JSON. +`scripts/generate_endpoints.py` regenerates `services/src/main/java/dev/frontal/sdk/resources/Endpoints.java` from `contracts/sdk-endpoints.json`, grouping agent-run operations with agents. SDK routes use the shared Java transport; callers provide response types when decoding JSON. diff --git a/core/src/main/java/dev/frontal/sdk/api/ApiClient.java b/core/src/main/java/dev/frontal/sdk/api/ApiClient.java index 4b1d984..e3329ea 100644 --- a/core/src/main/java/dev/frontal/sdk/api/ApiClient.java +++ b/core/src/main/java/dev/frontal/sdk/api/ApiClient.java @@ -4,8 +4,6 @@ import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.PropertyNamingStrategies; -import com.fasterxml.jackson.databind.node.ArrayNode; -import com.fasterxml.jackson.databind.node.ObjectNode; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; @@ -45,11 +43,15 @@ public final class ApiClient implements AutoCloseable { private final boolean ownsHttpClient; public ApiClient(ClientConfig config) { - this(config, createHttpClient(config), new ObjectMapper(), apiKeyAuth(config), true); + this(config, createHttpClient(config), defaultObjectMapper(), apiKeyAuth(config), true); + } + + ApiClient(ClientConfig config, ObjectMapper objectMapper) { + this(config, createHttpClient(config), objectMapper, apiKeyAuth(config), true); } public ApiClient(ClientConfig config, AuthProvider authProvider) { - this(config, createHttpClient(config), new ObjectMapper(), authProvider, true); + this(config, createHttpClient(config), defaultObjectMapper(), authProvider, true); } public ApiClient(ClientConfig config, OkHttpClient httpClient, ObjectMapper objectMapper) { @@ -69,15 +71,13 @@ private ApiClient( boolean ownsHttpClient) { this.config = Objects.requireNonNull(config, "config"); this.httpClient = Objects.requireNonNull(httpClient, "httpClient"); - this.objectMapper = Objects.requireNonNull(objectMapper, "objectMapper") - .copy() - .setPropertyNamingStrategy(PropertyNamingStrategies.SNAKE_CASE); + this.objectMapper = Objects.requireNonNull(objectMapper, "objectMapper").copy(); this.authProvider = authProvider; this.ownsHttpClient = ownsHttpClient; } public ObjectMapper objectMapper() { - return objectMapper; + return objectMapper.copy(); } public ClientConfig config() { @@ -87,8 +87,8 @@ public ClientConfig config() { public @Nullable T request( Endpoint endpoint, List pathParams, - Map query, - @Nullable Object body, + QueryParams query, + @Nullable JsonNode body, Class responseType) throws IOException, InterruptedException { return decode(execute(endpoint, pathParams, query, body).body(), responseType); @@ -97,8 +97,8 @@ public ClientConfig config() { public @Nullable T request( Endpoint endpoint, List pathParams, - Map query, - @Nullable Object body, + QueryParams query, + @Nullable JsonNode body, TypeReference responseType) throws IOException, InterruptedException { byte[] response = execute(endpoint, pathParams, query, body).body(); @@ -106,14 +106,16 @@ public ClientConfig config() { } /** Executes an endpoint and returns the successful status, headers, and raw response bytes. */ - public ApiResponse execute(Endpoint endpoint, List pathParams, Map query, @Nullable Object body) + public ApiResponse execute(Endpoint endpoint, List pathParams, QueryParams query, @Nullable JsonNode body) throws IOException, InterruptedException { Objects.requireNonNull(endpoint, "endpoint"); - if (endpoint.method() == HttpMethod.STREAM || endpoint.method() == HttpMethod.POSTFORMDATA) { + if (endpoint.method() == HttpMethod.STREAM + || endpoint.method() == HttpMethod.POSTFORMDATA + || endpoint.method() == HttpMethod.POSTRAW) { throw new IllegalArgumentException("Use stream() or executeForm() for this endpoint kind"); } RequestBody requestBody = requestBody(endpoint.method(), body); - String contentType = contentType(endpoint.method(), body); + String contentType = contentType(body); String accept = endpoint.method() == HttpMethod.GETRAW ? "application/pdf, application/octet-stream, */*" : "application/json, application/octet-stream"; @@ -121,15 +123,104 @@ public ApiResponse execute(Endpoint endpoint, List pathParams, Map pathParams, Map query, @Nullable Object body) + public byte[] requestBytes(Endpoint endpoint, List pathParams, QueryParams query, @Nullable JsonNode body) throws IOException, InterruptedException { return execute(endpoint, pathParams, query, body).body(); } + /** Sends an opaque binary request body and returns response metadata and bytes. */ + public ApiResponse executeRaw(Endpoint endpoint, List pathParams, QueryParams query, byte[] body) + throws IOException, InterruptedException { + Objects.requireNonNull(endpoint, "endpoint"); + Objects.requireNonNull(body, "body"); + if (endpoint.method() != HttpMethod.POSTRAW) { + throw new IllegalArgumentException("executeRaw requires a POSTRAW endpoint"); + } + return exchange( + endpoint, + pathParams, + query, + RequestBody.create(body, OCTET_STREAM), + OCTET_STREAM.toString(), + "application/json, application/octet-stream"); + } + + /** Sends an opaque binary request body and decodes the response. */ + public @Nullable T requestRaw( + Endpoint endpoint, List pathParams, QueryParams query, byte[] body, Class responseType) + throws IOException, InterruptedException { + return decode(executeRaw(endpoint, pathParams, query, body).body(), responseType); + } + + /** Sends an opaque binary request body and decodes a generic response. */ + public @Nullable T requestRaw( + Endpoint endpoint, List pathParams, QueryParams query, byte[] body, TypeReference responseType) + throws IOException, InterruptedException { + byte[] response = executeRaw(endpoint, pathParams, query, body).body(); + return response.length == 0 ? null : objectMapper.readValue(response, responseType); + } + + /** Sends an opaque binary request body and returns raw response bytes. */ + public byte[] requestRawBytes(Endpoint endpoint, List pathParams, QueryParams query, byte[] body) + throws IOException, InterruptedException { + return executeRaw(endpoint, pathParams, query, body).body(); + } + + /** Opens a successful response body without buffering it. The caller must close the result. */ + public ApiStream streamBody(Endpoint endpoint, List pathParams, QueryParams query, @Nullable JsonNode body) + throws IOException, InterruptedException { + Objects.requireNonNull(endpoint, "endpoint"); + if (endpoint.method() == HttpMethod.STREAM + || endpoint.method() == HttpMethod.POSTFORMDATA + || endpoint.method() == HttpMethod.POSTRAW) { + throw new IllegalArgumentException("Use streamResponse() or executeForm() for this endpoint kind"); + } + String requestId = UUID.randomUUID().toString(); + RequestBody requestBody = requestBody(endpoint.method(), body); + String contentType = contentType(body); + int attempts = endpoint.method().wireMethod().equals("GET") ? config.maxRetries() + 1 : 1; + for (int attempt = 0; attempt < attempts; attempt++) { + Request request = buildRequest(endpoint, pathParams, query, requestBody, contentType, "*/*", requestId); + Response response; + try { + response = httpClient.newCall(request).execute(); + } catch (IOException exception) { + if (attempt + 1 < attempts) { + waitBeforeRetry(attempt, null); + continue; + } + throw new NetworkException("Frontal request failed before receiving a response", requestId, exception); + } + if (!response.isSuccessful()) { + int status = response.code(); + String responseRequestId = response.header("x-request-id", requestId); + String retryAfter = response.header("retry-after"); + ErrorBody errorBody; + try (response) { + ResponseBody bodyValue = response.body(); + errorBody = + readErrorBody(bodyValue == null ? InputStream.nullInputStream() : bodyValue.byteStream()); + } + if (endpoint.method().wireMethod().equals("GET") + && attempt + 1 < attempts + && isRetryableStatus(status)) { + waitBeforeRetry(attempt, retryAfter); + continue; + } + throw toFrontalException(status, responseRequestId, retryAfter, errorBody); + } + ResponseBody responseBody = response.body(); + InputStream input = responseBody == null ? InputStream.nullInputStream() : responseBody.byteStream(); + return new ApiStream( + response.code(), response.headers().toMultimap(), new ResponseInputStream(response, input)); + } + throw new NetworkException("Frontal request failed", requestId, null); + } + public @Nullable T requestForm( Endpoint endpoint, List pathParams, - Map query, + QueryParams query, Map fields, Map files, Class responseType) @@ -140,7 +231,7 @@ public byte[] requestBytes(Endpoint endpoint, List pathParams, Map @Nullable T requestForm( Endpoint endpoint, List pathParams, - Map query, + QueryParams query, Map fields, Map files, TypeReference responseType) @@ -154,7 +245,7 @@ public byte[] requestBytes(Endpoint endpoint, List pathParams, Map pathParams, - Map query, + QueryParams query, Map fields, Map files) throws IOException, InterruptedException { @@ -178,18 +269,18 @@ public ApiResponse executeForm( } /** Returns a live response body for a contract endpoint marked {@code STREAM}. */ - public InputStream stream(Endpoint endpoint, List pathParams, Map query) + public InputStream stream(Endpoint endpoint, List pathParams, QueryParams query) throws IOException, InterruptedException { return streamResponse(endpoint, pathParams, query).body(); } /** Opens a streaming response while preserving its status and headers. */ - public ApiStream streamResponse(Endpoint endpoint, List pathParams, Map query) + public ApiStream streamResponse(Endpoint endpoint, List pathParams, QueryParams query) throws IOException, InterruptedException { return newPendingStream(endpoint, pathParams, query).execute(); } - private PendingStream newPendingStream(Endpoint endpoint, List pathParams, Map query) { + private PendingStream newPendingStream(Endpoint endpoint, List pathParams, QueryParams query) { Objects.requireNonNull(endpoint, "endpoint"); if (endpoint.method() != HttpMethod.STREAM) { throw new IllegalArgumentException("stream requires a STREAM endpoint"); @@ -222,16 +313,16 @@ private ApiStream execute() throws IOException { } ResponseBody responseBody = response.body(); if (!response.isSuccessful()) { - byte[] bytes; + ErrorBody errorBody; try (response) { - bytes = readBounded( + errorBody = readErrorBody( responseBody == null ? InputStream.nullInputStream() : responseBody.byteStream()); } throw toFrontalException( response.code(), response.header("x-request-id", requestId), response.header("retry-after"), - bytes); + errorBody); } if (responseBody == null) { response.close(); @@ -246,7 +337,7 @@ private void cancel() { } /** Returns a backpressure-aware publisher of SSE event data. */ - public Flow.Publisher streamPublisher(Endpoint endpoint, List pathParams, Map query) { + public Flow.Publisher streamPublisher(Endpoint endpoint, List pathParams, QueryParams query) { return SseEventPublisher.cancellable(() -> { PendingStream pending = newPendingStream(endpoint, pathParams, query); return new SseEventPublisher.StreamSource() { @@ -264,7 +355,7 @@ public void cancel() { } /** Returns a blocking iterator over SSE event data. The caller must close it. */ - public SseEventIterator streamEvents(Endpoint endpoint, List pathParams, Map query) + public SseEventIterator streamEvents(Endpoint endpoint, List pathParams, QueryParams query) throws IOException, InterruptedException { return new SseEventIterator(streamResponse(endpoint, pathParams, query)); } @@ -272,7 +363,7 @@ public SseEventIterator streamEvents(Endpoint endpoint, List pathParams, private ApiResponse exchange( Endpoint endpoint, List pathParams, - Map query, + QueryParams query, @Nullable RequestBody requestBody, @Nullable String contentType, String accept) @@ -292,6 +383,7 @@ private ApiResponse exchange( throw new NetworkException("Frontal request failed before receiving a response", requestId, exception); } byte[] responseBytes; + @Nullable ErrorBody errorBody = null; int status; String responseRequestId; String retryAfter; @@ -302,7 +394,17 @@ private ApiResponse exchange( retryAfter = response.header("retry-after"); responseHeaders = response.headers().toMultimap(); ResponseBody responseBody = response.body(); - responseBytes = responseBody == null ? new byte[0] : readBounded(responseBody.byteStream()); + if (responseBody == null) { + responseBytes = new byte[0]; + if (status < 200 || status >= 300) { + errorBody = new ErrorBody(responseBytes, false); + } + } else if (status >= 200 && status < 300) { + responseBytes = readBounded(responseBody.byteStream()); + } else { + errorBody = readErrorBody(responseBody.byteStream()); + responseBytes = errorBody.body(); + } } if (status >= 200 && status < 300) { return new ApiResponse(status, responseHeaders, responseBytes); @@ -311,7 +413,7 @@ private ApiResponse exchange( waitBeforeRetry(attempt, retryAfter); continue; } - throw toFrontalException(status, responseRequestId, retryAfter, responseBytes); + throw toFrontalException(status, responseRequestId, retryAfter, Objects.requireNonNull(errorBody)); } throw new NetworkException("Frontal request failed", requestId, null); } @@ -319,7 +421,7 @@ private ApiResponse exchange( private Request buildRequest( Endpoint endpoint, List pathParams, - Map query, + QueryParams query, @Nullable RequestBody body, @Nullable String contentType, String accept, @@ -353,7 +455,7 @@ private Request buildRequest( return builder.method(method, effectiveBody).build(); } - private @Nullable RequestBody requestBody(HttpMethod method, @Nullable Object body) throws IOException { + private @Nullable RequestBody requestBody(HttpMethod method, @Nullable JsonNode body) throws IOException { if (body == null) { return null; } @@ -365,43 +467,21 @@ private Request buildRequest( throw new IllegalArgumentException("This endpoint does not accept a request body"); } if (method == HttpMethod.POSTRAW) { - if (!(body instanceof byte[] bytes)) { - throw new IllegalArgumentException("POSTRAW request bodies must be byte[]"); - } - return RequestBody.create(bytes, OCTET_STREAM); + throw new IllegalArgumentException("Use executeRaw() for POSTRAW endpoint request bodies"); } - JsonNode tree = objectMapper.valueToTree(body); - return RequestBody.create(objectMapper.writeValueAsBytes(camelToSnake(tree)), JSON); + return RequestBody.create(objectMapper.writeValueAsBytes(body), JSON); } - private @Nullable String contentType(HttpMethod method, @Nullable Object body) { + private @Nullable String contentType(@Nullable JsonNode body) { if (body == null) { return null; } - return method == HttpMethod.POSTRAW ? OCTET_STREAM.toString() : JSON.toString(); - } - - private JsonNode camelToSnake(JsonNode node) { - if (node.isObject()) { - ObjectNode converted = objectMapper.createObjectNode(); - node.fields() - .forEachRemaining(entry -> converted.set(toSnake(entry.getKey()), camelToSnake(entry.getValue()))); - return converted; - } - if (node.isArray()) { - ArrayNode converted = objectMapper.createArrayNode(); - node.forEach(item -> converted.add(camelToSnake(item))); - return converted; - } - return node; - } - - private String toSnake(String key) { - return key.replaceAll("([a-z0-9])([A-Z])", "$1_$2").toLowerCase(java.util.Locale.ROOT); + return JSON.toString(); } private FrontalException toFrontalException( - int status, String requestId, @Nullable String retryAfter, byte[] body) { + int status, String requestId, @Nullable String retryAfter, ErrorBody errorBody) { + byte[] body = errorBody.body(); String responseBody = new String(body, StandardCharsets.UTF_8); @Nullable String code = null; @Nullable String message = null; @@ -418,18 +498,19 @@ private FrontalException toFrontalException( // Preserve plain-text error bodies in the exception. } if (status == 401 || status == 403) { - return new AuthException(code, message, requestId, status); + return new AuthException(code, message, requestId, status, responseBody, errorBody.truncated()); } if (status == 400 || status == 422) { - return new ValidationException(code, message, requestId, status); + return new ValidationException(code, message, requestId, status, responseBody, errorBody.truncated()); } if (status == 429) { - return new RateLimitException(code, message, requestId, parseRetryAfter(retryAfter)); + return new RateLimitException( + code, message, requestId, parseRetryAfter(retryAfter), responseBody, errorBody.truncated()); } if (status >= 500) { - return new ServerException(code, message, requestId, status, responseBody); + return new ServerException(code, message, requestId, status, responseBody, errorBody.truncated()); } - return new ApiException(status, code, message, requestId, responseBody); + return new ApiException(status, code, message, requestId, responseBody, errorBody.truncated()); } private @Nullable String textOrNull(JsonNode node) { @@ -454,13 +535,49 @@ private byte[] readBounded(InputStream stream) throws IOException { } } + private ErrorBody readErrorBody(InputStream stream) throws IOException { + ByteArrayOutputStream output = new ByteArrayOutputStream(Math.min(config.maxErrorBodyBytes(), 8192)); + byte[] buffer = new byte[8192]; + int remaining = config.maxErrorBodyBytes(); + int read; + while (remaining > 0 && (read = stream.read(buffer, 0, Math.min(buffer.length, remaining))) >= 0) { + output.write(buffer, 0, read); + remaining -= read; + } + boolean truncated = remaining == 0 && stream.read() >= 0; + return new ErrorBody(output.toByteArray(), truncated); + } + + private static final class ErrorBody { + private final byte[] body; + private final boolean truncated; + + private ErrorBody(byte[] body, boolean truncated) { + this.body = body; + this.truncated = truncated; + } + + private byte[] body() { + return body; + } + + private boolean truncated() { + return truncated; + } + } + private void waitBeforeRetry(int attempt, @Nullable String retryAfter) throws InterruptedException { long delayMillis = Math.min(5_000L, 100L << Math.min(attempt, 5)); Duration serverDelay = parseRetryAfter(retryAfter); if (retryAfter != null && !retryAfter.isBlank()) { - delayMillis = Math.min(5_000L, serverDelay.toMillis()); + delayMillis = serverDelay.compareTo(Duration.ofSeconds(5)) >= 0 ? 5_000L : serverDelay.toMillis(); + } + try { + TimeUnit.MILLISECONDS.sleep(delayMillis); + } catch (InterruptedException exception) { + Thread.currentThread().interrupt(); + throw exception; } - TimeUnit.MILLISECONDS.sleep(delayMillis); } private Duration parseRetryAfter(@Nullable String retryAfter) { @@ -518,6 +635,28 @@ private static OkHttpClient createHttpClient(ClientConfig config) { .build(); } + private static ObjectMapper defaultObjectMapper() { + return new ObjectMapper().setPropertyNamingStrategy(PropertyNamingStrategies.SNAKE_CASE); + } + + private static final class ResponseInputStream extends java.io.FilterInputStream { + private final Response response; + + private ResponseInputStream(Response response, InputStream input) { + super(input); + this.response = response; + } + + @Override + public void close() throws IOException { + try { + super.close(); + } finally { + response.close(); + } + } + } + private static @Nullable AuthProvider apiKeyAuth(ClientConfig config) { @Nullable String apiKey = config.apiKey(); return apiKey == null ? null : new ApiKeyAuthProvider(apiKey); diff --git a/core/src/main/java/dev/frontal/sdk/auth/ApiKeyAuthProvider.java b/core/src/main/java/dev/frontal/sdk/auth/ApiKeyAuthProvider.java index 4888168..f2b08b3 100644 --- a/core/src/main/java/dev/frontal/sdk/auth/ApiKeyAuthProvider.java +++ b/core/src/main/java/dev/frontal/sdk/auth/ApiKeyAuthProvider.java @@ -9,8 +9,8 @@ public final class ApiKeyAuthProvider implements AuthProvider { public ApiKeyAuthProvider(String apiKey) { Objects.requireNonNull(apiKey, "apiKey"); - if (apiKey.isBlank()) { - throw new IllegalArgumentException("apiKey must not be blank"); + if (apiKey.isBlank() || apiKey.indexOf('\r') >= 0 || apiKey.indexOf('\n') >= 0) { + throw new IllegalArgumentException("apiKey must be nonblank and contain no line breaks"); } this.apiKey = apiKey; } diff --git a/core/src/main/java/dev/frontal/sdk/config/ClientConfig.java b/core/src/main/java/dev/frontal/sdk/config/ClientConfig.java index 106cb09..641b91c 100644 --- a/core/src/main/java/dev/frontal/sdk/config/ClientConfig.java +++ b/core/src/main/java/dev/frontal/sdk/config/ClientConfig.java @@ -20,6 +20,7 @@ public final class ClientConfig { private final Duration requestTimeout; private final int maxRetries; private final long maxResponseBytes; + private final int maxErrorBodyBytes; private final String userAgent; private final String environment; private final boolean debug; @@ -37,12 +38,25 @@ private ClientConfig(Builder builder) { if (builder.maxResponseBytes <= 0) { throw new IllegalArgumentException("maxResponseBytes must be positive"); } + if (builder.maxErrorBodyBytes <= 0) { + throw new IllegalArgumentException("maxErrorBodyBytes must be positive"); + } maxRetries = builder.maxRetries; maxResponseBytes = builder.maxResponseBytes; + maxErrorBodyBytes = builder.maxErrorBodyBytes; userAgent = requireText(builder.userAgent, "userAgent"); environment = requireText(builder.environment, "environment").toLowerCase(Locale.ROOT); debug = builder.debug; - headers = Map.copyOf(builder.headers); + Map validatedHeaders = new LinkedHashMap<>(); + java.util.Set normalizedNames = new java.util.HashSet<>(); + builder.headers.forEach((name, value) -> { + validateHeader(name, value); + if (!normalizedNames.add(name.toLowerCase(Locale.ROOT))) { + throw new IllegalArgumentException("Duplicate header name ignoring case: " + name); + } + validatedHeaders.put(name, value); + }); + headers = Map.copyOf(validatedHeaders); } /** Creates the default configuration without authentication. */ @@ -55,23 +69,6 @@ public ClientConfig(String apiKey) { this(builder().apiKey(apiKey)); } - /** Compatibility constructor for explicit connection settings. */ - public ClientConfig( - String apiKey, - URI baseUrl, - Duration timeout, - int maxRetries, - long maxResponseBytes, - Map headers) { - this(builder() - .apiKey(apiKey) - .apiBaseUrl(baseUrl) - .requestTimeout(timeout) - .maxRetries(maxRetries) - .maxResponseBytes(maxResponseBytes) - .headers(headers)); - } - public static Builder builder() { return new Builder(); } @@ -122,11 +119,6 @@ public URI aiBaseUrl() { return aiBaseUrl; } - /** Returns the general API base URL for compatibility with earlier SDK versions. */ - public URI baseUrl() { - return apiBaseUrl; - } - public Duration connectTimeout() { return connectTimeout; } @@ -135,11 +127,6 @@ public Duration requestTimeout() { return requestTimeout; } - /** Returns the request timeout for compatibility with earlier SDK versions. */ - public Duration timeout() { - return requestTimeout; - } - public int maxRetries() { return maxRetries; } @@ -148,6 +135,11 @@ public long maxResponseBytes() { return maxResponseBytes; } + /** Maximum error response bytes retained for diagnostics. */ + public int maxErrorBodyBytes() { + return maxErrorBodyBytes; + } + public String userAgent() { return userAgent; } @@ -170,6 +162,9 @@ private static URI normalizeBaseUrl(URI value, String name) { if (value.getHost() == null || !("http".equalsIgnoreCase(scheme) || "https".equalsIgnoreCase(scheme))) { throw new IllegalArgumentException(name + " must be an absolute HTTP or HTTPS URL"); } + if (value.getRawUserInfo() != null || value.getRawQuery() != null || value.getRawFragment() != null) { + throw new IllegalArgumentException(name + " must not include user info, a query, or a fragment"); + } String normalized = value.toString(); while (normalized.endsWith("/")) { normalized = normalized.substring(0, normalized.length() - 1); @@ -193,6 +188,24 @@ private static String requireText(String value, String name) { return value; } + private static void validateHeader(String name, String value) { + requireText(name, "header name"); + Objects.requireNonNull(value, "header value"); + for (int index = 0; index < name.length(); index++) { + char character = name.charAt(index); + boolean valid = (character >= '0' && character <= '9') + || (character >= 'A' && character <= 'Z') + || (character >= 'a' && character <= 'z') + || "!#$%&'*+-.^_`|~".indexOf(character) >= 0; + if (!valid) { + throw new IllegalArgumentException("Invalid HTTP header name: " + name); + } + } + if (value.indexOf('\r') >= 0 || value.indexOf('\n') >= 0) { + throw new IllegalArgumentException("HTTP header values must not contain line breaks"); + } + } + /** Mutable builder used to create an immutable client configuration. */ public static final class Builder { private @Nullable String apiKey; @@ -202,7 +215,8 @@ public static final class Builder { private Duration requestTimeout = Duration.ofSeconds(30); private int maxRetries = 2; private long maxResponseBytes = 64L * 1024 * 1024; - private String userAgent = "frontal-java-sdk/1.0.0"; + private int maxErrorBodyBytes = 16 * 1024; + private String userAgent = "frontal-java-sdk/2.0.0"; private String environment = "development"; private boolean debug; private final Map headers = new LinkedHashMap<>(); @@ -211,9 +225,6 @@ private Builder() {} public Builder apiKey(String apiKey) { String value = requireText(apiKey, "apiKey"); - if (!value.startsWith("frt_")) { - throw new IllegalArgumentException("apiKey must start with frt_"); - } this.apiKey = value; return this; } @@ -227,15 +238,6 @@ public Builder apiBaseUrl(URI apiBaseUrl) { return this; } - /** Alias for {@link #apiBaseUrl(URI)}. */ - public Builder baseUrl(URI baseUrl) { - return apiBaseUrl(baseUrl); - } - - public Builder baseUrl(String baseUrl) { - return apiBaseUrl(baseUrl); - } - public Builder aiBaseUrl(String aiBaseUrl) { return aiBaseUrl(URI.create(aiBaseUrl)); } @@ -255,11 +257,6 @@ public Builder requestTimeout(Duration requestTimeout) { return this; } - /** Alias for {@link #requestTimeout(Duration)}. */ - public Builder timeout(Duration timeout) { - return requestTimeout(timeout); - } - public Builder maxRetries(int maxRetries) { this.maxRetries = maxRetries; return this; @@ -270,6 +267,11 @@ public Builder maxResponseBytes(long maxResponseBytes) { return this; } + public Builder maxErrorBodyBytes(int maxErrorBodyBytes) { + this.maxErrorBodyBytes = maxErrorBodyBytes; + return this; + } + public Builder userAgent(String userAgent) { this.userAgent = userAgent; return this; diff --git a/core/src/main/java/dev/frontal/sdk/models/ApiException.java b/core/src/main/java/dev/frontal/sdk/models/ApiException.java index b5b6c49..0422cdb 100644 --- a/core/src/main/java/dev/frontal/sdk/models/ApiException.java +++ b/core/src/main/java/dev/frontal/sdk/models/ApiException.java @@ -4,19 +4,30 @@ /** An HTTP error outside the more specific authentication, validation, rate, or server classes. */ public final class ApiException extends FrontalException { - private final String responseBody; - public ApiException( int statusCode, @Nullable String code, @Nullable String message, @Nullable String requestId, String responseBody) { - super(code, message, requestId, statusCode, statusCode == 408 || statusCode == 425); - this.responseBody = responseBody; + this(statusCode, code, message, requestId, responseBody, false); } - public String responseBody() { - return responseBody; + public ApiException( + int statusCode, + @Nullable String code, + @Nullable String message, + @Nullable String requestId, + String responseBody, + boolean responseBodyTruncated) { + super( + code, + message, + requestId, + statusCode, + statusCode == 408 || statusCode == 425, + null, + responseBody, + responseBodyTruncated); } } diff --git a/core/src/main/java/dev/frontal/sdk/models/ApiService.java b/core/src/main/java/dev/frontal/sdk/models/ApiService.java index b338960..74246aa 100644 --- a/core/src/main/java/dev/frontal/sdk/models/ApiService.java +++ b/core/src/main/java/dev/frontal/sdk/models/ApiService.java @@ -1,6 +1,6 @@ package dev.frontal.sdk; -/** Service domains exposed by the Frontal API. */ +/** Contract route groups used to identify endpoint ownership. */ public enum ApiService { AGENTS("agents"), AI("ai"), @@ -20,10 +20,8 @@ public enum ApiService { SCHEDULES("schedules"), WEBHOOKS("webhooks"), WORKFLOWS("workflows"), - ACTION_RUNS("action-runs"), CONNECTION_TESTS("connection-tests"), EVENTS("events"), - INTEGRATIONS("integrations"), INVOCATIONS("invocations"), PROVIDERS("providers"), WEBHOOK_ENDPOINTS("webhook-endpoints"); diff --git a/core/src/main/java/dev/frontal/sdk/models/AuthException.java b/core/src/main/java/dev/frontal/sdk/models/AuthException.java index 35c38c1..dbb2ac2 100644 --- a/core/src/main/java/dev/frontal/sdk/models/AuthException.java +++ b/core/src/main/java/dev/frontal/sdk/models/AuthException.java @@ -5,6 +5,25 @@ /** Authentication or authorization failure returned by the API. */ public final class AuthException extends FrontalException { public AuthException(@Nullable String code, @Nullable String message, @Nullable String requestId, int statusCode) { - super(code, message, requestId, statusCode, false); + this(code, message, requestId, statusCode, null); + } + + public AuthException( + @Nullable String code, + @Nullable String message, + @Nullable String requestId, + int statusCode, + @Nullable String responseBody) { + this(code, message, requestId, statusCode, responseBody, false); + } + + public AuthException( + @Nullable String code, + @Nullable String message, + @Nullable String requestId, + int statusCode, + @Nullable String responseBody, + boolean responseBodyTruncated) { + super(code, message, requestId, statusCode, false, null, responseBody, responseBodyTruncated); } } diff --git a/core/src/main/java/dev/frontal/sdk/models/FrontalException.java b/core/src/main/java/dev/frontal/sdk/models/FrontalException.java index 577af81..feb0d08 100644 --- a/core/src/main/java/dev/frontal/sdk/models/FrontalException.java +++ b/core/src/main/java/dev/frontal/sdk/models/FrontalException.java @@ -17,6 +17,8 @@ public abstract sealed class FrontalException extends IOException private final String requestId; private final int statusCode; private final boolean retryable; + private final @Nullable String responseBody; + private final boolean responseBodyTruncated; protected FrontalException( @Nullable String code, @@ -30,6 +32,8 @@ protected FrontalException( Objects.requireNonNullElseGet(requestId, () -> UUID.randomUUID().toString()); this.statusCode = statusCode; this.retryable = retryable; + this.responseBody = null; + this.responseBodyTruncated = false; } protected FrontalException( @@ -45,6 +49,38 @@ protected FrontalException( Objects.requireNonNullElseGet(requestId, () -> UUID.randomUUID().toString()); this.statusCode = statusCode; this.retryable = retryable; + this.responseBody = null; + this.responseBodyTruncated = false; + } + + protected FrontalException( + @Nullable String code, + @Nullable String message, + @Nullable String requestId, + int statusCode, + boolean retryable, + @Nullable Throwable cause, + @Nullable String responseBody) { + this(code, message, requestId, statusCode, retryable, cause, responseBody, false); + } + + protected FrontalException( + @Nullable String code, + @Nullable String message, + @Nullable String requestId, + int statusCode, + boolean retryable, + @Nullable Throwable cause, + @Nullable String responseBody, + boolean responseBodyTruncated) { + super(message == null || message.isBlank() ? "Frontal request failed" : message, cause); + this.code = Objects.requireNonNullElse(code, "UNKNOWN_ERROR"); + this.requestId = + Objects.requireNonNullElseGet(requestId, () -> UUID.randomUUID().toString()); + this.statusCode = statusCode; + this.retryable = retryable; + this.responseBody = responseBody; + this.responseBodyTruncated = responseBodyTruncated; } public final String code() { @@ -62,4 +98,14 @@ public final int statusCode() { public final boolean retryable() { return retryable; } + + /** Raw response body when the API returned one; may contain sensitive data. */ + public final @Nullable String responseBody() { + return responseBody; + } + + /** Whether the retained response body was truncated to the configured diagnostic limit. */ + public final boolean responseBodyTruncated() { + return responseBodyTruncated; + } } diff --git a/core/src/main/java/dev/frontal/sdk/models/PageResult.java b/core/src/main/java/dev/frontal/sdk/models/PageResult.java index fe43596..fa4dd48 100644 --- a/core/src/main/java/dev/frontal/sdk/models/PageResult.java +++ b/core/src/main/java/dev/frontal/sdk/models/PageResult.java @@ -2,10 +2,12 @@ import java.io.IOException; import java.util.ArrayList; +import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.NoSuchElementException; import java.util.Objects; +import java.util.Set; import org.jspecify.annotations.Nullable; /** A page of data with a lazy cursor-based next-page loader. */ @@ -32,13 +34,21 @@ public Pagination pagination() { if (!pagination.hasMore() || nextPageLoader == null) { return null; } - return nextPageLoader.load(pagination.cursor()); + PageResult next = nextPageLoader.load(pagination.cursor()); + if (next != null && next.pagination.hasMore() && pagination.cursor().equals(next.pagination.cursor())) { + throw new IOException("Pagination cursor did not advance: " + pagination.cursor()); + } + return next; } public List all() throws IOException, InterruptedException { List items = new ArrayList<>(data); PageResult page = this; + Set requestedCursors = new HashSet<>(); while (page.pagination.hasMore()) { + if (!requestedCursors.add(page.pagination.cursor())) { + throw new IOException("Pagination cursor repeated: " + page.pagination.cursor()); + } page = page.nextPage(); if (page == null) { break; @@ -53,6 +63,7 @@ public Iterator iterator() { return new Iterator<>() { private @Nullable PageResult current = PageResult.this; private int offset; + private final Set requestedCursors = new HashSet<>(); @Override public boolean hasNext() { @@ -61,6 +72,9 @@ public boolean hasNext() { current = null; return false; } + if (!requestedCursors.add(current.pagination.cursor())) { + throw new IllegalStateException("Pagination cursor repeated: " + current.pagination.cursor()); + } try { current = current.nextPage(); } catch (IOException exception) { diff --git a/core/src/main/java/dev/frontal/sdk/models/QueryParams.java b/core/src/main/java/dev/frontal/sdk/models/QueryParams.java new file mode 100644 index 0000000..7275d12 --- /dev/null +++ b/core/src/main/java/dev/frontal/sdk/models/QueryParams.java @@ -0,0 +1,83 @@ +package dev.frontal.sdk; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** Immutable typed query parameters. Add the same name more than once to send repeated values. */ +public final class QueryParams { + private static final QueryParams EMPTY = new QueryParams(Map.of()); + + private final Map> values; + + private QueryParams(Map> values) { + this.values = values; + } + + /** Returns a reusable empty query parameter set. */ + public static QueryParams empty() { + return EMPTY; + } + + /** Creates a builder for query parameters. */ + public static Builder builder() { + return new Builder(); + } + + /** Creates a single string query parameter. */ + public static QueryParams of(String name, String value) { + return builder().add(name, value).build(); + } + + Map> values() { + return values; + } + + /** Mutable builder used to create an immutable query parameter set. */ + public static final class Builder { + private final Map> values = new LinkedHashMap<>(); + + /** Adds a string query value. */ + public Builder add(String name, String value) { + requireName(name); + values.computeIfAbsent(name, ignored -> new ArrayList<>()).add(Objects.requireNonNull(value, "value")); + return this; + } + + /** Adds a numeric query value. */ + public Builder add(String name, Number value) { + return add(name, Objects.requireNonNull(value, "value").toString()); + } + + /** Adds a boolean query value. */ + public Builder add(String name, boolean value) { + return add(name, Boolean.toString(value)); + } + + /** Adds repeated string values. */ + public Builder addAll(String name, Iterable values) { + Objects.requireNonNull(values, "values").forEach(value -> add(name, value)); + return this; + } + + /** Builds immutable query parameters. */ + public QueryParams build() { + if (values.isEmpty()) { + return QueryParams.empty(); + } + Map> copy = new LinkedHashMap<>(); + values.forEach((name, items) -> copy.put(name, List.copyOf(items))); + return new QueryParams(Collections.unmodifiableMap(copy)); + } + + private static void requireName(String name) { + Objects.requireNonNull(name, "name"); + if (name.isBlank()) { + throw new IllegalArgumentException("Query parameter names must not be blank"); + } + } + } +} diff --git a/core/src/main/java/dev/frontal/sdk/models/RateLimitException.java b/core/src/main/java/dev/frontal/sdk/models/RateLimitException.java index 0391483..c2df113 100644 --- a/core/src/main/java/dev/frontal/sdk/models/RateLimitException.java +++ b/core/src/main/java/dev/frontal/sdk/models/RateLimitException.java @@ -10,7 +10,26 @@ public final class RateLimitException extends FrontalException { public RateLimitException( @Nullable String code, @Nullable String message, @Nullable String requestId, Duration retryAfter) { - super(code, message, requestId, 429, true); + this(code, message, requestId, retryAfter, null); + } + + public RateLimitException( + @Nullable String code, + @Nullable String message, + @Nullable String requestId, + Duration retryAfter, + @Nullable String responseBody) { + this(code, message, requestId, retryAfter, responseBody, false); + } + + public RateLimitException( + @Nullable String code, + @Nullable String message, + @Nullable String requestId, + Duration retryAfter, + @Nullable String responseBody, + boolean responseBodyTruncated) { + super(code, message, requestId, 429, true, null, responseBody, responseBodyTruncated); this.retryAfter = Objects.requireNonNull(retryAfter, "retryAfter"); } diff --git a/core/src/main/java/dev/frontal/sdk/models/ServerException.java b/core/src/main/java/dev/frontal/sdk/models/ServerException.java index bc7095a..206def0 100644 --- a/core/src/main/java/dev/frontal/sdk/models/ServerException.java +++ b/core/src/main/java/dev/frontal/sdk/models/ServerException.java @@ -4,20 +4,31 @@ /** The API returned a server-side failure. */ public final class ServerException extends FrontalException { - private final String responseBody; - public ServerException( @Nullable String code, @Nullable String message, @Nullable String requestId, int statusCode, String responseBody) { - super(code, message, requestId, statusCode, isRetryableStatus(statusCode)); - this.responseBody = responseBody; + this(code, message, requestId, statusCode, responseBody, false); } - public String responseBody() { - return responseBody; + public ServerException( + @Nullable String code, + @Nullable String message, + @Nullable String requestId, + int statusCode, + String responseBody, + boolean responseBodyTruncated) { + super( + code, + message, + requestId, + statusCode, + isRetryableStatus(statusCode), + null, + responseBody, + responseBodyTruncated); } static boolean isRetryableStatus(int statusCode) { diff --git a/core/src/main/java/dev/frontal/sdk/models/SseEventIterator.java b/core/src/main/java/dev/frontal/sdk/models/SseEventIterator.java index d1d89cc..501ee02 100644 --- a/core/src/main/java/dev/frontal/sdk/models/SseEventIterator.java +++ b/core/src/main/java/dev/frontal/sdk/models/SseEventIterator.java @@ -32,12 +32,13 @@ public boolean hasNext() { return false; } StringBuilder data = new StringBuilder(); + boolean sawData = false; try { while (true) { String line = reader.readLine(); if (line == null) { close(); - if (data.isEmpty()) { + if (!sawData) { return false; } next = data.toString(); @@ -45,7 +46,7 @@ public boolean hasNext() { return true; } if (line.isEmpty()) { - if (!data.isEmpty()) { + if (sawData) { next = data.toString(); ready = true; return true; @@ -62,10 +63,11 @@ public boolean hasNext() { if (value.startsWith(" ")) { value = value.substring(1); } - if (!data.isEmpty()) { + if (sawData) { data.append('\n'); } data.append(value); + sawData = true; } } } catch (IOException exception) { @@ -85,6 +87,10 @@ public String next() { return value; } + boolean isExhausted() { + return closed && !ready; + } + @Override public void close() throws IOException { if (!closed) { diff --git a/core/src/main/java/dev/frontal/sdk/models/SseEventPublisher.java b/core/src/main/java/dev/frontal/sdk/models/SseEventPublisher.java index 170836a..8dd944c 100644 --- a/core/src/main/java/dev/frontal/sdk/models/SseEventPublisher.java +++ b/core/src/main/java/dev/frontal/sdk/models/SseEventPublisher.java @@ -122,11 +122,11 @@ private void run() { if (isCancelled()) { return; } - if (!activeIterator.hasNext()) { - complete(); + if (!awaitDemand()) { return; } - if (!awaitDemand()) { + if (!activeIterator.hasNext()) { + complete(); return; } String event = activeIterator.next(); @@ -139,6 +139,18 @@ private void run() { } } subscriber.onNext(event); + if (isCancelled()) { + return; + } + if (activeIterator.isExhausted()) { + complete(); + return; + } + // Look ahead once so a finite stream can complete when demand ends on its last event. + if (!activeIterator.hasNext()) { + complete(); + return; + } } } catch (Throwable exception) { signalError(exception); diff --git a/core/src/main/java/dev/frontal/sdk/models/ValidationException.java b/core/src/main/java/dev/frontal/sdk/models/ValidationException.java index 85be29e..321dec4 100644 --- a/core/src/main/java/dev/frontal/sdk/models/ValidationException.java +++ b/core/src/main/java/dev/frontal/sdk/models/ValidationException.java @@ -6,6 +6,25 @@ public final class ValidationException extends FrontalException { public ValidationException( @Nullable String code, @Nullable String message, @Nullable String requestId, int statusCode) { - super(code, message, requestId, statusCode, false); + this(code, message, requestId, statusCode, null); + } + + public ValidationException( + @Nullable String code, + @Nullable String message, + @Nullable String requestId, + int statusCode, + @Nullable String responseBody) { + this(code, message, requestId, statusCode, responseBody, false); + } + + public ValidationException( + @Nullable String code, + @Nullable String message, + @Nullable String requestId, + int statusCode, + @Nullable String responseBody, + boolean responseBodyTruncated) { + super(code, message, requestId, statusCode, false, null, responseBody, responseBodyTruncated); } } diff --git a/core/src/main/java/dev/frontal/sdk/utils/Poller.java b/core/src/main/java/dev/frontal/sdk/utils/Poller.java index 72fd92e..e693a4c 100644 --- a/core/src/main/java/dev/frontal/sdk/utils/Poller.java +++ b/core/src/main/java/dev/frontal/sdk/utils/Poller.java @@ -1,8 +1,8 @@ package dev.frontal.sdk; +import java.io.IOException; import java.time.Duration; import java.util.Objects; -import java.util.concurrent.Callable; import java.util.concurrent.TimeoutException; import java.util.function.Predicate; @@ -10,15 +10,16 @@ public final class Poller { private Poller() {} - public static T pollUntil(Callable operation, Predicate finished, Duration interval, Duration timeout) - throws Exception { + public static T pollUntil( + PollOperation operation, Predicate finished, Duration interval, Duration timeout) + throws IOException, InterruptedException, TimeoutException { Objects.requireNonNull(operation, "operation"); Objects.requireNonNull(finished, "finished"); requirePositive(interval, "interval"); requirePositive(timeout, "timeout"); long deadline = System.nanoTime() + timeout.toNanos(); while (true) { - T result = operation.call(); + T result = operation.poll(); if (finished.test(result)) { return result; } @@ -33,6 +34,11 @@ public static T pollUntil(Callable operation, Predicate finished, Dura } } + @FunctionalInterface + public interface PollOperation { + T poll() throws IOException, InterruptedException; + } + private static void requirePositive(Duration duration, String name) { Objects.requireNonNull(duration, name); if (duration.isZero() || duration.isNegative()) { diff --git a/core/src/main/java/dev/frontal/sdk/utils/RequestUriBuilder.java b/core/src/main/java/dev/frontal/sdk/utils/RequestUriBuilder.java index 2cf4cb7..bdde3aa 100644 --- a/core/src/main/java/dev/frontal/sdk/utils/RequestUriBuilder.java +++ b/core/src/main/java/dev/frontal/sdk/utils/RequestUriBuilder.java @@ -5,16 +5,16 @@ import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.List; -import java.util.Map; import java.util.Objects; /** Builds request URIs and encodes path and query values as UTF-8. */ public final class RequestUriBuilder { private RequestUriBuilder() {} - public static URI build(URI baseUrl, Endpoint endpoint, List pathParameters, Map query) { + public static URI build(URI baseUrl, Endpoint endpoint, List pathParameters, QueryParams query) { Objects.requireNonNull(baseUrl, "baseUrl"); Objects.requireNonNull(endpoint, "endpoint"); + Objects.requireNonNull(query, "query"); List parameters = pathParameters == null ? List.of() : pathParameters; if (parameters.size() != endpoint.pathParameterCount()) { throw new IllegalArgumentException( @@ -57,44 +57,23 @@ public static String encodePathSegment(String value) { .replace("%7E", "~"); } - private static String encodeQuery(Map query) { - if (query == null || query.isEmpty()) { + private static String encodeQuery(QueryParams query) { + if (query.values().isEmpty()) { return ""; } List pairs = new ArrayList<>(); - query.forEach((name, value) -> { - if (name == null || value == null) { - return; - } - String wireName = toSnakeCase(name); - if (value instanceof Iterable values) { - values.forEach(item -> addPair(pairs, wireName, item)); - } else if (value.getClass().isArray()) { - int length = java.lang.reflect.Array.getLength(value); - for (int index = 0; index < length; index++) { - addPair(pairs, wireName, java.lang.reflect.Array.get(value, index)); - } - } else { - addPair(pairs, wireName, value); - } - }); + query.values().forEach((name, values) -> values.forEach(value -> addPair(pairs, name, value))); return String.join("&", pairs); } - private static void addPair(List pairs, String name, Object value) { - if (value != null) { - pairs.add(encodeQueryComponent(name) + "=" + encodeQueryComponent(value.toString())); - } + private static void addPair(List pairs, String name, String value) { + pairs.add(encodeQueryComponent(name) + "=" + encodeQueryComponent(value)); } private static String encodeQueryComponent(String value) { return URLEncoder.encode(value, StandardCharsets.UTF_8).replace("+", "%20"); } - private static String toSnakeCase(String value) { - return value.replaceAll("([a-z0-9])([A-Z])", "$1_$2").toLowerCase(java.util.Locale.ROOT); - } - private static String trimTrailingSlash(String value) { int end = value.length(); while (end > 0 && value.charAt(end - 1) == '/') { diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 241b25d..c12d7a2 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -1,6 +1,6 @@ # Java SDK architecture -The SDK is a Gradle multi-module project with one public artifact, `dev.frontal:frontal-sdk:1.0.0`, and one Java package, `dev.frontal.sdk`. +The SDK is a Gradle multi-module project with one public artifact, `dev.frontal:frontal-sdk:2.0.0`, and one Java package, `dev.frontal.sdk`. ## Modules and source organization @@ -10,14 +10,14 @@ The SDK is a Gradle multi-module project with one public artifact, `dev.frontal: - `examples/` verifies the consumer experience with MockWebServer. - Production classes remain in `dev.frontal.sdk`. The `api/`, `auth/`, `config/`, `models/`, `resources/`, and `utils/` folders organize types by role and do not create Java subpackages. -`Endpoints` is derived from `contracts/sdk-endpoints.json`. The OpenAPI snapshots remain unchanged and feed the contract gate. +`Endpoints`, nested resource clients, and concise operations are derived from `contracts/sdk-endpoints.json` and operation metadata in the committed OpenAPI snapshots. The snapshots remain unchanged and feed the contract gate. Resource clients follow route segments and expose conventional `list`, `get`, `create`, `update`, and `delete` methods plus named actions. Calls can omit `QueryParams` when they do not need query values. Request bodies without a usable schema use `JsonNode`, and callers choose response types where no model is available. ## Request flow `Application → Frontal → service client → shared ApiClient → auth/config/retry → OkHttp → Frontal API` -`Frontal` creates one `ApiClient` and shares it with each service client. `ClientConfig` is immutable after build. Each request gets a unique request ID, and error mapping happens once in the shared transport. Safe GET requests may retry; writes run once. Streaming endpoints transfer response-body ownership to `ApiStream`, `SseEventIterator`, or a Flow subscription so cancellation closes the connection. +`Frontal` creates one `ApiClient` and shares it with each typed service client. `ClientConfig` is immutable after build. Each request gets a unique request ID, and error mapping happens once in the shared transport. Safe GET requests may retry; writes run once. Buffered responses are bounded by `maxResponseBytes`; error diagnostics have a separate `maxErrorBodyBytes` cap. `streamBody()` supports larger downloads without buffering. Streaming endpoints transfer response-body ownership to `ApiStream`, `SseEventIterator`, or a Flow subscription so cancellation closes the connection. SSE connections disable read and call timeouts; the caller must close or cancel long-lived streams. ## Service APIs -AI, agents, and workflows have named convenience methods for their core operations. All 622 catalogued routes remain accessible through service-scoped `request` methods and the `Endpoints` constants. The contract gate maps every operation in the public and AI OpenAPI snapshots to an endpoint. Caller-provided classes, `TypeReference`, or Jackson `JsonNode` types handle payloads that the current snapshots do not fully model. +The route inventory generates endpoint constants and named methods for the SDK’s 611 supported routes. Agent runs live under `agents().runs()`, while other nested paths follow their route resources. The contract gate verifies SDK routes against the committed inventory and maps supported operations in the public and AI OpenAPI snapshots. Caller-provided classes, `TypeReference`, or Jackson `JsonNode` types handle payloads that the current snapshots do not fully model. Generated references for service and resource clients live in `docs/api/`. diff --git a/docs/ENTERPRISE_READINESS.md b/docs/ENTERPRISE_READINESS.md index 5fc3cc3..f26950a 100644 --- a/docs/ENTERPRISE_READINESS.md +++ b/docs/ENTERPRISE_READINESS.md @@ -8,11 +8,12 @@ This page summarizes the controls in the Java SDK and the work required before a - Shared OkHttp transport with bounded responses, request IDs, safe-read retries, and typed errors. - MockWebServer coverage for request handling, retries, pagination, error mapping, and SSE streams. - Contract checks that map all public and AI OpenAPI operations to Java endpoints. +- Generated named operation methods and per-service references for supported routes. Agent run lookup is grouped under agents. - Central Portal release workflow with GPG signing required for publication. ## Remaining release work - Configure Central Portal and GPG credentials as protected GitHub secrets. - Complete a security review of transport, credential handling, and logging. -- Add operation-specific request and response models where the contracts define complete schemas. +- Add operation-specific request and response models as upstream contracts provide complete schemas. - Configure dependency scanning and release provenance for the repository. diff --git a/docs/ONBOARDING.md b/docs/ONBOARDING.md index 556247c..833fbfa 100644 --- a/docs/ONBOARDING.md +++ b/docs/ONBOARDING.md @@ -4,7 +4,7 @@ 2. Clone the repository and use the checked-in Gradle wrapper. 3. Run `./gradlew spotlessCheck assemble lint test examplesTest docsTest checkContracts`. 4. Review `AGENTS.md`, `docs/ARCHITECTURE.md`, and `contracts/README.md`. -5. Select a route from `Endpoints` and compare it with `contracts/sdk-endpoints.json` and the applicable OpenAPI snapshot. -6. Build a client with `Frontal.builder().apiKey(...).build()` and use the matching service accessor. +5. Browse `docs/api/README.md` for the named method, then compare its route with `contracts/sdk-endpoints.json` and the applicable OpenAPI snapshot. +6. Build a client with `Frontal.builder().apiKey(...).build()` and use the matching named service operation. Export `FRONTAL_API_KEY` and optional settings into the process environment. Java does not load `.env` files automatically. Tests use MockWebServer and do not need live credentials. diff --git a/docs/OVERVIEW.md b/docs/OVERVIEW.md index 561696d..e9faaa6 100644 --- a/docs/OVERVIEW.md +++ b/docs/OVERVIEW.md @@ -1,5 +1,5 @@ # Java SDK overview -The Frontal Java SDK is configured to publish the `dev.frontal:frontal-sdk:1.0.0` facade artifact from a Gradle multi-module build. Production sources use the single package `dev.frontal.sdk` and six role folders across `core`, `services`, and `sdk`. +The Frontal Java SDK is configured to publish the `dev.frontal:frontal-sdk:2.0.0` facade artifact from a Gradle multi-module build. Production sources use the single package `dev.frontal.sdk` and six role folders across `core`, `services`, and `sdk`. -The route inventory generates `Endpoints` constants for all 622 current API routes and maps every operation in the public and AI OpenAPI snapshots. `Frontal` creates service-scoped clients, and `ApiClient` handles Jackson JSON, binary payloads, multipart uploads, SSE streams, retries for safe reads, and structured HTTP errors. Request and response classes can be provided by SDK consumers where the shared contract snapshots do not include a typed schema. +The SDK exposes 611 named operations across its service clients, with agent run lookup available through `frontal.agents()`. `Endpoints` constants follow the supported SDK route catalog. `ApiClient` handles Jackson JSON, binary payloads, multipart uploads, SSE streams, safe-read retries, bounded error diagnostics, and structured HTTP errors. Named operations use immutable `QueryParams`, `JsonNode` for request bodies without contract schemas, and caller-provided response types. diff --git a/docs/README.md b/docs/README.md index a2018ce..fd99a1d 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,3 +1,3 @@ # Java documentation -Read `OVERVIEW.md` for the SDK surface, `ARCHITECTURE.md` for the module and request flow, and `ONBOARDING.md` to set up the toolchain. Use `TESTING.md` for verification and `PUBLISHING.md` for release steps. +Read `OVERVIEW.md` for the SDK surface, `ARCHITECTURE.md` for the module and request flow, and `ONBOARDING.md` to set up the toolchain. Browse [the service API reference](./api/README.md) for the generated operation catalog. See the root README for pagination, error handling, streaming, and serialization examples. Use `TESTING.md` for verification and `PUBLISHING.md` for release steps. diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md index ab5a67c..ec7d712 100644 --- a/docs/ROADMAP.md +++ b/docs/ROADMAP.md @@ -6,4 +6,4 @@ - [x] Implement service-scoped clients and accessors for the contract inventory. - [x] Add endpoint generation and Java usage examples. - [x] Expand transport tests and contract conformance reporting. -- [x] Configure signed Central Portal release automation for version 1.0.0. +- [x] Configure signed Central Portal release automation. diff --git a/docs/api/README.md b/docs/api/README.md new file mode 100644 index 0000000..8e9215f --- /dev/null +++ b/docs/api/README.md @@ -0,0 +1,31 @@ +# Service API reference + +Generated from the committed route catalog for SDK service clients. + +Call-shaped listing of every operation: [methods as code](./methods-as-code.md). + +| Service | Routes | Reference | +| --- | ---: | --- | +| agents | 14 | [agents](./agents.md) | +| ai | 9 | [ai](./ai.md) | +| audit | 4 | [audit](./audit.md) | +| auth | 66 | [auth](./auth.md) | +| billing | 23 | [billing](./billing.md) | +| blob | 8 | [blob](./blob.md) | +| connection-tests | 1 | [connection-tests](./connection-tests.md) | +| connectors | 12 | [connectors](./connectors.md) | +| data | 151 | [data](./data.md) | +| events | 17 | [events](./events.md) | +| governance | 24 | [governance](./governance.md) | +| invocations | 1 | [invocations](./invocations.md) | +| lineage | 7 | [lineage](./lineage.md) | +| observability | 31 | [observability](./observability.md) | +| ontology | 171 | [ontology](./ontology.md) | +| pipelines | 11 | [pipelines](./pipelines.md) | +| providers | 1 | [providers](./providers.md) | +| react | 0 | [react](./react.md) | +| sandbox | 3 | [sandbox](./sandbox.md) | +| schedules | 10 | [schedules](./schedules.md) | +| webhook-endpoints | 7 | [webhook-endpoints](./webhook-endpoints.md) | +| webhooks | 10 | [webhooks](./webhooks.md) | +| workflows | 30 | [workflows](./workflows.md) | diff --git a/docs/api/agents.md b/docs/api/agents.md new file mode 100644 index 0000000..314cafa --- /dev/null +++ b/docs/api/agents.md @@ -0,0 +1,66 @@ +# Agents API + +Service accessor: `frontal.agents()` (`AgentsServiceClient`). + +Operations are grouped by resource path. Collection methods use `list` and `create`; item methods use `get`, `update`, and `delete`. Calls can omit `QueryParams` when no query values are needed. Use contract-defined `JsonNode` bodies and caller-selected response types where schemas are not available. + +| Method | HTTP | Route | Parameters | Response | +| --- | --- | --- | --- | --- | +| `agents().delete(...)` | `DELETE` | `/agents/{param}` | `String agentId, QueryParams query, Class responseType` | `@Nullable T` | +| `agents().delete(...)` | `DELETE` | `/agents/{param}` | `String agentId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `agents().delete(...)` | `DELETE` | `/agents/{param}` | `String agentId, Class responseType` | `@Nullable T` | +| `agents().delete(...)` | `DELETE` | `/agents/{param}` | `String agentId, TypeReference responseType` | `@Nullable T` | +| `agents().list(...)` | `GET` | `/agents` | `QueryParams query, Class responseType` | `@Nullable T` | +| `agents().list(...)` | `GET` | `/agents` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `agents().list(...)` | `GET` | `/agents` | `Class responseType` | `@Nullable T` | +| `agents().list(...)` | `GET` | `/agents` | `TypeReference responseType` | `@Nullable T` | +| `agents().health(...)` | `GET` | `/agents/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `agents().health(...)` | `GET` | `/agents/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `agents().health(...)` | `GET` | `/agents/health` | `Class responseType` | `@Nullable T` | +| `agents().health(...)` | `GET` | `/agents/health` | `TypeReference responseType` | `@Nullable T` | +| `agents().get(...)` | `GET` | `/agents/{param}` | `String agentId, QueryParams query, Class responseType` | `@Nullable T` | +| `agents().get(...)` | `GET` | `/agents/{param}` | `String agentId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `agents().get(...)` | `GET` | `/agents/{param}` | `String agentId, Class responseType` | `@Nullable T` | +| `agents().get(...)` | `GET` | `/agents/{param}` | `String agentId, TypeReference responseType` | `@Nullable T` | +| `agents().create(...)` | `POST` | `/agents` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `agents().create(...)` | `POST` | `/agents` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `agents().create(...)` | `POST` | `/agents` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `agents().create(...)` | `POST` | `/agents` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `agents().rollback(...)` | `POST` | `/agents/{param}/rollback` | `String agentId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `agents().rollback(...)` | `POST` | `/agents/{param}/rollback` | `String agentId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `agents().rollback(...)` | `POST` | `/agents/{param}/rollback` | `String agentId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `agents().rollback(...)` | `POST` | `/agents/{param}/rollback` | `String agentId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `agents().update(...)` | `PUT` | `/agents/{param}` | `String agentId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `agents().update(...)` | `PUT` | `/agents/{param}` | `String agentId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `agents().update(...)` | `PUT` | `/agents/{param}` | `String agentId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `agents().update(...)` | `PUT` | `/agents/{param}` | `String agentId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `agents().runs().getByActionRunId(...)` | `GET` | `/action-runs/{param}` | `String actionRunId, QueryParams query, Class responseType` | `@Nullable T` | +| `agents().runs().getByActionRunId(...)` | `GET` | `/action-runs/{param}` | `String actionRunId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `agents().runs().getByActionRunId(...)` | `GET` | `/action-runs/{param}` | `String actionRunId, Class responseType` | `@Nullable T` | +| `agents().runs().getByActionRunId(...)` | `GET` | `/action-runs/{param}` | `String actionRunId, TypeReference responseType` | `@Nullable T` | +| `agents().runs().get(...)` | `GET` | `/agents/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `agents().runs().get(...)` | `GET` | `/agents/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `agents().runs().get(...)` | `GET` | `/agents/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `agents().runs().get(...)` | `GET` | `/agents/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `agents().runs().conversation(...)` | `GET` | `/agents/runs/{param}/conversation` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `agents().runs().conversation(...)` | `GET` | `/agents/runs/{param}/conversation` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `agents().runs().conversation(...)` | `GET` | `/agents/runs/{param}/conversation` | `String runId, Class responseType` | `@Nullable T` | +| `agents().runs().conversation(...)` | `GET` | `/agents/runs/{param}/conversation` | `String runId, TypeReference responseType` | `@Nullable T` | +| `agents().runs().list(...)` | `GET` | `/agents/{param}/runs` | `String agentId, QueryParams query, Class responseType` | `@Nullable T` | +| `agents().runs().list(...)` | `GET` | `/agents/{param}/runs` | `String agentId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `agents().runs().list(...)` | `GET` | `/agents/{param}/runs` | `String agentId, Class responseType` | `@Nullable T` | +| `agents().runs().list(...)` | `GET` | `/agents/{param}/runs` | `String agentId, TypeReference responseType` | `@Nullable T` | +| `agents().runs().create(...)` | `POST` | `/agents/{param}/runs` | `String agentId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `agents().runs().create(...)` | `POST` | `/agents/{param}/runs` | `String agentId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `agents().runs().create(...)` | `POST` | `/agents/{param}/runs` | `String agentId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `agents().runs().create(...)` | `POST` | `/agents/{param}/runs` | `String agentId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `agents().runs().stream(...)` | `STREAM` | `/agents/runs/{param}/stream` | `String runId, QueryParams query` | `Flow.Publisher` | +| `agents().runs().stream(...)` | `STREAM` | `/agents/runs/{param}/stream` | `String runId` | `Flow.Publisher` | +| `agents().runs().streamBlocking(...)` | `STREAM` | `/agents/runs/{param}/stream` | `String runId, QueryParams query` | `SseEventIterator` | +| `agents().runs().streamBlocking(...)` | `STREAM` | `/agents/runs/{param}/stream` | `String runId` | `SseEventIterator` | +| `agents().versions().list(...)` | `GET` | `/agents/{param}/versions` | `String agentId, QueryParams query, Class responseType` | `@Nullable T` | +| `agents().versions().list(...)` | `GET` | `/agents/{param}/versions` | `String agentId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `agents().versions().list(...)` | `GET` | `/agents/{param}/versions` | `String agentId, Class responseType` | `@Nullable T` | +| `agents().versions().list(...)` | `GET` | `/agents/{param}/versions` | `String agentId, TypeReference responseType` | `@Nullable T` | + +The generic `request(...)` methods and `Endpoints` constants remain available. diff --git a/docs/api/ai.md b/docs/api/ai.md new file mode 100644 index 0000000..8213353 --- /dev/null +++ b/docs/api/ai.md @@ -0,0 +1,46 @@ +# Ai API + +Service accessor: `frontal.ai()` (`AiServiceClient`). + +Operations are grouped by resource path. Collection methods use `list` and `create`; item methods use `get`, `update`, and `delete`. Calls can omit `QueryParams` when no query values are needed. Use contract-defined `JsonNode` bodies and caller-selected response types where schemas are not available. + +| Method | HTTP | Route | Parameters | Response | +| --- | --- | --- | --- | --- | +| `ai().health(...)` | `GET` | `/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ai().health(...)` | `GET` | `/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ai().health(...)` | `GET` | `/health` | `Class responseType` | `@Nullable T` | +| `ai().health(...)` | `GET` | `/health` | `TypeReference responseType` | `@Nullable T` | +| `ai().internal().embed(...)` | `POST` | `/internal/embeddings` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ai().internal().embed(...)` | `POST` | `/internal/embeddings` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ai().internal().embed(...)` | `POST` | `/internal/embeddings` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ai().internal().embed(...)` | `POST` | `/internal/embeddings` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ai().internal().predict(...)` | `POST` | `/internal/predictions` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ai().internal().predict(...)` | `POST` | `/internal/predictions` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ai().internal().predict(...)` | `POST` | `/internal/predictions` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ai().internal().predict(...)` | `POST` | `/internal/predictions` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ai().internal().rerank(...)` | `POST` | `/internal/rerank` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ai().internal().rerank(...)` | `POST` | `/internal/rerank` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ai().internal().rerank(...)` | `POST` | `/internal/rerank` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ai().internal().rerank(...)` | `POST` | `/internal/rerank` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ai().internal().predictForm(...)` | `POSTFORMDATA` | `/internal/predictions` | `QueryParams query, Map fields, Map files, Class responseType` | `@Nullable T` | +| `ai().internal().predictForm(...)` | `POSTFORMDATA` | `/internal/predictions` | `QueryParams query, Map fields, Map files, TypeReference responseType` | `@Nullable T` | +| `ai().internal().predictForm(...)` | `POSTFORMDATA` | `/internal/predictions` | `Map fields, Map files, Class responseType` | `@Nullable T` | +| `ai().internal().predictForm(...)` | `POSTFORMDATA` | `/internal/predictions` | `Map fields, Map files, TypeReference responseType` | `@Nullable T` | +| `ai().internal().predictRaw(...)` | `POSTRAW` | `/internal/predictions` | `QueryParams query, byte[] body, Class responseType` | `@Nullable T` | +| `ai().internal().predictRaw(...)` | `POSTRAW` | `/internal/predictions` | `QueryParams query, byte[] body, TypeReference responseType` | `@Nullable T` | +| `ai().internal().predictRaw(...)` | `POSTRAW` | `/internal/predictions` | `byte[] body, Class responseType` | `@Nullable T` | +| `ai().internal().predictRaw(...)` | `POSTRAW` | `/internal/predictions` | `byte[] body, TypeReference responseType` | `@Nullable T` | +| `ai().chat().completions().create(...)` | `POST` | `/ai/chat/completions` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ai().chat().completions().create(...)` | `POST` | `/ai/chat/completions` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ai().chat().completions().create(...)` | `POST` | `/ai/chat/completions` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ai().chat().completions().create(...)` | `POST` | `/ai/chat/completions` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ai().internal().models().list(...)` | `GET` | `/internal/models` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ai().internal().models().list(...)` | `GET` | `/internal/models` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ai().internal().models().list(...)` | `GET` | `/internal/models` | `Class responseType` | `@Nullable T` | +| `ai().internal().models().list(...)` | `GET` | `/internal/models` | `TypeReference responseType` | `@Nullable T` | +| `ai().internal().models().defaults(...)` | `GET` | `/internal/models/defaults` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ai().internal().models().defaults(...)` | `GET` | `/internal/models/defaults` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ai().internal().models().defaults(...)` | `GET` | `/internal/models/defaults` | `Class responseType` | `@Nullable T` | +| `ai().internal().models().defaults(...)` | `GET` | `/internal/models/defaults` | `TypeReference responseType` | `@Nullable T` | + +The generic `request(...)` methods and `Endpoints` constants remain available. diff --git a/docs/api/audit.md b/docs/api/audit.md new file mode 100644 index 0000000..3a8584b --- /dev/null +++ b/docs/api/audit.md @@ -0,0 +1,26 @@ +# Audit API + +Service accessor: `frontal.audit()` (`AuditClient`). + +Operations are grouped by resource path. Collection methods use `list` and `create`; item methods use `get`, `update`, and `delete`. Calls can omit `QueryParams` when no query values are needed. Use contract-defined `JsonNode` bodies and caller-selected response types where schemas are not available. + +| Method | HTTP | Route | Parameters | Response | +| --- | --- | --- | --- | --- | +| `audit().events().list(...)` | `GET` | `/audit/events` | `QueryParams query, Class responseType` | `@Nullable T` | +| `audit().events().list(...)` | `GET` | `/audit/events` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `audit().events().list(...)` | `GET` | `/audit/events` | `Class responseType` | `@Nullable T` | +| `audit().events().list(...)` | `GET` | `/audit/events` | `TypeReference responseType` | `@Nullable T` | +| `audit().events().get(...)` | `GET` | `/audit/events/{param}` | `String eventId, QueryParams query, Class responseType` | `@Nullable T` | +| `audit().events().get(...)` | `GET` | `/audit/events/{param}` | `String eventId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `audit().events().get(...)` | `GET` | `/audit/events/{param}` | `String eventId, Class responseType` | `@Nullable T` | +| `audit().events().get(...)` | `GET` | `/audit/events/{param}` | `String eventId, TypeReference responseType` | `@Nullable T` | +| `audit().events().create(...)` | `POST` | `/audit/events` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `audit().events().create(...)` | `POST` | `/audit/events` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `audit().events().create(...)` | `POST` | `/audit/events` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `audit().events().create(...)` | `POST` | `/audit/events` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `audit().events().batch(...)` | `POST` | `/audit/events/batch` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `audit().events().batch(...)` | `POST` | `/audit/events/batch` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `audit().events().batch(...)` | `POST` | `/audit/events/batch` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `audit().events().batch(...)` | `POST` | `/audit/events/batch` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | + +The generic `request(...)` methods and `Endpoints` constants remain available. diff --git a/docs/api/auth.md b/docs/api/auth.md new file mode 100644 index 0000000..bf9e443 --- /dev/null +++ b/docs/api/auth.md @@ -0,0 +1,274 @@ +# Auth API + +Service accessor: `frontal.auth()` (`AuthClient`). + +Operations are grouped by resource path. Collection methods use `list` and `create`; item methods use `get`, `update`, and `delete`. Calls can omit `QueryParams` when no query values are needed. Use contract-defined `JsonNode` bodies and caller-selected response types where schemas are not available. + +| Method | HTTP | Route | Parameters | Response | +| --- | --- | --- | --- | --- | +| `auth().getUser(...)` | `GET` | `/auth/user` | `QueryParams query, Class responseType` | `@Nullable T` | +| `auth().getUser(...)` | `GET` | `/auth/user` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `auth().getUser(...)` | `GET` | `/auth/user` | `Class responseType` | `@Nullable T` | +| `auth().getUser(...)` | `GET` | `/auth/user` | `TypeReference responseType` | `@Nullable T` | +| `auth().createAuthorize(...)` | `POST` | `/auth/authorize` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().createAuthorize(...)` | `POST` | `/auth/authorize` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().createAuthorize(...)` | `POST` | `/auth/authorize` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().createAuthorize(...)` | `POST` | `/auth/authorize` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().createInvite(...)` | `POST` | `/auth/invite` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().createInvite(...)` | `POST` | `/auth/invite` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().createInvite(...)` | `POST` | `/auth/invite` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().createInvite(...)` | `POST` | `/auth/invite` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().login(...)` | `POST` | `/auth/login` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().login(...)` | `POST` | `/auth/login` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().login(...)` | `POST` | `/auth/login` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().login(...)` | `POST` | `/auth/login` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().logout(...)` | `POST` | `/auth/logout` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().logout(...)` | `POST` | `/auth/logout` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().logout(...)` | `POST` | `/auth/logout` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().logout(...)` | `POST` | `/auth/logout` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().createOtp(...)` | `POST` | `/auth/otp` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().createOtp(...)` | `POST` | `/auth/otp` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().createOtp(...)` | `POST` | `/auth/otp` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().createOtp(...)` | `POST` | `/auth/otp` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().createReauthenticate(...)` | `POST` | `/auth/reauthenticate` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().createReauthenticate(...)` | `POST` | `/auth/reauthenticate` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().createReauthenticate(...)` | `POST` | `/auth/reauthenticate` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().createReauthenticate(...)` | `POST` | `/auth/reauthenticate` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().createRecover(...)` | `POST` | `/auth/recover` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().createRecover(...)` | `POST` | `/auth/recover` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().createRecover(...)` | `POST` | `/auth/recover` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().createRecover(...)` | `POST` | `/auth/recover` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().createResend(...)` | `POST` | `/auth/resend` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().createResend(...)` | `POST` | `/auth/resend` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().createResend(...)` | `POST` | `/auth/resend` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().createResend(...)` | `POST` | `/auth/resend` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().createSignup(...)` | `POST` | `/auth/signup` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().createSignup(...)` | `POST` | `/auth/signup` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().createSignup(...)` | `POST` | `/auth/signup` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().createSignup(...)` | `POST` | `/auth/signup` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().createSso(...)` | `POST` | `/auth/sso` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().createSso(...)` | `POST` | `/auth/sso` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().createSso(...)` | `POST` | `/auth/sso` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().createSso(...)` | `POST` | `/auth/sso` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().createTokenGrantTypeIdToken(...)` | `POST` | `/auth/token?grant_type=id_token` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().createTokenGrantTypeIdToken(...)` | `POST` | `/auth/token?grant_type=id_token` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().createTokenGrantTypeIdToken(...)` | `POST` | `/auth/token?grant_type=id_token` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().createTokenGrantTypeIdToken(...)` | `POST` | `/auth/token?grant_type=id_token` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().createTokenGrantTypePassword(...)` | `POST` | `/auth/token?grant_type=password` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().createTokenGrantTypePassword(...)` | `POST` | `/auth/token?grant_type=password` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().createTokenGrantTypePassword(...)` | `POST` | `/auth/token?grant_type=password` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().createTokenGrantTypePassword(...)` | `POST` | `/auth/token?grant_type=password` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().createTokenGrantTypePkce(...)` | `POST` | `/auth/token?grant_type=pkce` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().createTokenGrantTypePkce(...)` | `POST` | `/auth/token?grant_type=pkce` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().createTokenGrantTypePkce(...)` | `POST` | `/auth/token?grant_type=pkce` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().createTokenGrantTypePkce(...)` | `POST` | `/auth/token?grant_type=pkce` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().createTokenGrantTypeRefreshToken(...)` | `POST` | `/auth/token?grant_type=refresh_token` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().createTokenGrantTypeRefreshToken(...)` | `POST` | `/auth/token?grant_type=refresh_token` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().createTokenGrantTypeRefreshToken(...)` | `POST` | `/auth/token?grant_type=refresh_token` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().createTokenGrantTypeRefreshToken(...)` | `POST` | `/auth/token?grant_type=refresh_token` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().verify(...)` | `POST` | `/auth/verify` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().verify(...)` | `POST` | `/auth/verify` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().verify(...)` | `POST` | `/auth/verify` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().verify(...)` | `POST` | `/auth/verify` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().updateUser(...)` | `PUT` | `/auth/user` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().updateUser(...)` | `PUT` | `/auth/user` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().updateUser(...)` | `PUT` | `/auth/user` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().updateUser(...)` | `PUT` | `/auth/user` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().account().deleteProfile(...)` | `DELETE` | `/auth/account/profile` | `QueryParams query, Class responseType` | `@Nullable T` | +| `auth().account().deleteProfile(...)` | `DELETE` | `/auth/account/profile` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `auth().account().deleteProfile(...)` | `DELETE` | `/auth/account/profile` | `Class responseType` | `@Nullable T` | +| `auth().account().deleteProfile(...)` | `DELETE` | `/auth/account/profile` | `TypeReference responseType` | `@Nullable T` | +| `auth().account().getAuditLog(...)` | `GET` | `/auth/account/audit-log` | `QueryParams query, Class responseType` | `@Nullable T` | +| `auth().account().getAuditLog(...)` | `GET` | `/auth/account/audit-log` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `auth().account().getAuditLog(...)` | `GET` | `/auth/account/audit-log` | `Class responseType` | `@Nullable T` | +| `auth().account().getAuditLog(...)` | `GET` | `/auth/account/audit-log` | `TypeReference responseType` | `@Nullable T` | +| `auth().account().getMfa(...)` | `GET` | `/auth/account/mfa` | `QueryParams query, Class responseType` | `@Nullable T` | +| `auth().account().getMfa(...)` | `GET` | `/auth/account/mfa` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `auth().account().getMfa(...)` | `GET` | `/auth/account/mfa` | `Class responseType` | `@Nullable T` | +| `auth().account().getMfa(...)` | `GET` | `/auth/account/mfa` | `TypeReference responseType` | `@Nullable T` | +| `auth().account().getProfile(...)` | `GET` | `/auth/account/profile` | `QueryParams query, Class responseType` | `@Nullable T` | +| `auth().account().getProfile(...)` | `GET` | `/auth/account/profile` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `auth().account().getProfile(...)` | `GET` | `/auth/account/profile` | `Class responseType` | `@Nullable T` | +| `auth().account().getProfile(...)` | `GET` | `/auth/account/profile` | `TypeReference responseType` | `@Nullable T` | +| `auth().account().createMfa(...)` | `POST` | `/auth/account/mfa` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().account().createMfa(...)` | `POST` | `/auth/account/mfa` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().account().createMfa(...)` | `POST` | `/auth/account/mfa` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().account().createMfa(...)` | `POST` | `/auth/account/mfa` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().account().createPassword(...)` | `POST` | `/auth/account/password` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().account().createPassword(...)` | `POST` | `/auth/account/password` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().account().createPassword(...)` | `POST` | `/auth/account/password` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().account().createPassword(...)` | `POST` | `/auth/account/password` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().account().updateProfile(...)` | `PUT` | `/auth/account/profile` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().account().updateProfile(...)` | `PUT` | `/auth/account/profile` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().account().updateProfile(...)` | `PUT` | `/auth/account/profile` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().account().updateProfile(...)` | `PUT` | `/auth/account/profile` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().admin().createGenerateLink(...)` | `POST` | `/auth/admin/generate_link` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().admin().createGenerateLink(...)` | `POST` | `/auth/admin/generate_link` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().admin().createGenerateLink(...)` | `POST` | `/auth/admin/generate_link` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().admin().createGenerateLink(...)` | `POST` | `/auth/admin/generate_link` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().admin().logout(...)` | `POST` | `/auth/admin/logout` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().admin().logout(...)` | `POST` | `/auth/admin/logout` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().admin().logout(...)` | `POST` | `/auth/admin/logout` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().admin().logout(...)` | `POST` | `/auth/admin/logout` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().auth().getSession(...)` | `GET` | `/auth/auth/session` | `QueryParams query, Class responseType` | `@Nullable T` | +| `auth().auth().getSession(...)` | `GET` | `/auth/auth/session` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `auth().auth().getSession(...)` | `GET` | `/auth/auth/session` | `Class responseType` | `@Nullable T` | +| `auth().auth().getSession(...)` | `GET` | `/auth/auth/session` | `TypeReference responseType` | `@Nullable T` | +| `auth().auth().createSession(...)` | `POST` | `/auth/auth/session` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().auth().createSession(...)` | `POST` | `/auth/auth/session` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().auth().createSession(...)` | `POST` | `/auth/auth/session` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().auth().createSession(...)` | `POST` | `/auth/auth/session` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().factors().delete(...)` | `DELETE` | `/auth/factors/{param}` | `String factorId, QueryParams query, Class responseType` | `@Nullable T` | +| `auth().factors().delete(...)` | `DELETE` | `/auth/factors/{param}` | `String factorId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `auth().factors().delete(...)` | `DELETE` | `/auth/factors/{param}` | `String factorId, Class responseType` | `@Nullable T` | +| `auth().factors().delete(...)` | `DELETE` | `/auth/factors/{param}` | `String factorId, TypeReference responseType` | `@Nullable T` | +| `auth().factors().list(...)` | `GET` | `/auth/factors` | `QueryParams query, Class responseType` | `@Nullable T` | +| `auth().factors().list(...)` | `GET` | `/auth/factors` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `auth().factors().list(...)` | `GET` | `/auth/factors` | `Class responseType` | `@Nullable T` | +| `auth().factors().list(...)` | `GET` | `/auth/factors` | `TypeReference responseType` | `@Nullable T` | +| `auth().factors().create(...)` | `POST` | `/auth/factors` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().factors().create(...)` | `POST` | `/auth/factors` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().factors().create(...)` | `POST` | `/auth/factors` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().factors().create(...)` | `POST` | `/auth/factors` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().factors().createChallenge(...)` | `POST` | `/auth/factors/{param}/challenge` | `String factorId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().factors().createChallenge(...)` | `POST` | `/auth/factors/{param}/challenge` | `String factorId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().factors().createChallenge(...)` | `POST` | `/auth/factors/{param}/challenge` | `String factorId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().factors().createChallenge(...)` | `POST` | `/auth/factors/{param}/challenge` | `String factorId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().factors().verify(...)` | `POST` | `/auth/factors/{param}/verify` | `String factorId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().factors().verify(...)` | `POST` | `/auth/factors/{param}/verify` | `String factorId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().factors().verify(...)` | `POST` | `/auth/factors/{param}/verify` | `String factorId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().factors().verify(...)` | `POST` | `/auth/factors/{param}/verify` | `String factorId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().mfa().status(...)` | `GET` | `/auth/mfa/status` | `QueryParams query, Class responseType` | `@Nullable T` | +| `auth().mfa().status(...)` | `GET` | `/auth/mfa/status` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `auth().mfa().status(...)` | `GET` | `/auth/mfa/status` | `Class responseType` | `@Nullable T` | +| `auth().mfa().status(...)` | `GET` | `/auth/mfa/status` | `TypeReference responseType` | `@Nullable T` | +| `auth().mfa().disable(...)` | `POST` | `/auth/mfa/disable` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().mfa().disable(...)` | `POST` | `/auth/mfa/disable` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().mfa().disable(...)` | `POST` | `/auth/mfa/disable` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().mfa().disable(...)` | `POST` | `/auth/mfa/disable` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().mfa().enable(...)` | `POST` | `/auth/mfa/enable` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().mfa().enable(...)` | `POST` | `/auth/mfa/enable` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().mfa().enable(...)` | `POST` | `/auth/mfa/enable` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().mfa().enable(...)` | `POST` | `/auth/mfa/enable` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().mfa().setup(...)` | `POST` | `/auth/mfa/setup` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().mfa().setup(...)` | `POST` | `/auth/mfa/setup` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().mfa().setup(...)` | `POST` | `/auth/mfa/setup` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().mfa().setup(...)` | `POST` | `/auth/mfa/setup` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().mfa().verify(...)` | `POST` | `/auth/mfa/verify` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().mfa().verify(...)` | `POST` | `/auth/mfa/verify` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().mfa().verify(...)` | `POST` | `/auth/mfa/verify` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().mfa().verify(...)` | `POST` | `/auth/mfa/verify` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().account().mfa().delete(...)` | `DELETE` | `/auth/account/mfa/{param}` | `String mfaId, QueryParams query, Class responseType` | `@Nullable T` | +| `auth().account().mfa().delete(...)` | `DELETE` | `/auth/account/mfa/{param}` | `String mfaId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `auth().account().mfa().delete(...)` | `DELETE` | `/auth/account/mfa/{param}` | `String mfaId, Class responseType` | `@Nullable T` | +| `auth().account().mfa().delete(...)` | `DELETE` | `/auth/account/mfa/{param}` | `String mfaId, TypeReference responseType` | `@Nullable T` | +| `auth().account().mfa().get(...)` | `GET` | `/auth/account/mfa/{param}` | `String mfaId, QueryParams query, Class responseType` | `@Nullable T` | +| `auth().account().mfa().get(...)` | `GET` | `/auth/account/mfa/{param}` | `String mfaId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `auth().account().mfa().get(...)` | `GET` | `/auth/account/mfa/{param}` | `String mfaId, Class responseType` | `@Nullable T` | +| `auth().account().mfa().get(...)` | `GET` | `/auth/account/mfa/{param}` | `String mfaId, TypeReference responseType` | `@Nullable T` | +| `auth().account().mfa().createChallenge(...)` | `POST` | `/auth/account/mfa/{param}/challenge` | `String mfaId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().account().mfa().createChallenge(...)` | `POST` | `/auth/account/mfa/{param}/challenge` | `String mfaId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().account().mfa().createChallenge(...)` | `POST` | `/auth/account/mfa/{param}/challenge` | `String mfaId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().account().mfa().createChallenge(...)` | `POST` | `/auth/account/mfa/{param}/challenge` | `String mfaId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().account().mfa().verify(...)` | `POST` | `/auth/account/mfa/{param}/verify` | `String mfaId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().account().mfa().verify(...)` | `POST` | `/auth/account/mfa/{param}/verify` | `String mfaId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().account().mfa().verify(...)` | `POST` | `/auth/account/mfa/{param}/verify` | `String mfaId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().account().mfa().verify(...)` | `POST` | `/auth/account/mfa/{param}/verify` | `String mfaId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().account().sessions().delete(...)` | `DELETE` | `/auth/account/sessions/{param}` | `String sessionId, QueryParams query, Class responseType` | `@Nullable T` | +| `auth().account().sessions().delete(...)` | `DELETE` | `/auth/account/sessions/{param}` | `String sessionId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `auth().account().sessions().delete(...)` | `DELETE` | `/auth/account/sessions/{param}` | `String sessionId, Class responseType` | `@Nullable T` | +| `auth().account().sessions().delete(...)` | `DELETE` | `/auth/account/sessions/{param}` | `String sessionId, TypeReference responseType` | `@Nullable T` | +| `auth().account().sessions().list(...)` | `GET` | `/auth/account/sessions` | `QueryParams query, Class responseType` | `@Nullable T` | +| `auth().account().sessions().list(...)` | `GET` | `/auth/account/sessions` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `auth().account().sessions().list(...)` | `GET` | `/auth/account/sessions` | `Class responseType` | `@Nullable T` | +| `auth().account().sessions().list(...)` | `GET` | `/auth/account/sessions` | `TypeReference responseType` | `@Nullable T` | +| `auth().account().sessions().extend(...)` | `POST` | `/auth/account/sessions/{param}/extend` | `String sessionId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().account().sessions().extend(...)` | `POST` | `/auth/account/sessions/{param}/extend` | `String sessionId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().account().sessions().extend(...)` | `POST` | `/auth/account/sessions/{param}/extend` | `String sessionId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().account().sessions().extend(...)` | `POST` | `/auth/account/sessions/{param}/extend` | `String sessionId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().admin().users().delete(...)` | `DELETE` | `/auth/admin/users/{param}` | `String userId, QueryParams query, Class responseType` | `@Nullable T` | +| `auth().admin().users().delete(...)` | `DELETE` | `/auth/admin/users/{param}` | `String userId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `auth().admin().users().delete(...)` | `DELETE` | `/auth/admin/users/{param}` | `String userId, Class responseType` | `@Nullable T` | +| `auth().admin().users().delete(...)` | `DELETE` | `/auth/admin/users/{param}` | `String userId, TypeReference responseType` | `@Nullable T` | +| `auth().admin().users().list(...)` | `GET` | `/auth/admin/users` | `QueryParams query, Class responseType` | `@Nullable T` | +| `auth().admin().users().list(...)` | `GET` | `/auth/admin/users` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `auth().admin().users().list(...)` | `GET` | `/auth/admin/users` | `Class responseType` | `@Nullable T` | +| `auth().admin().users().list(...)` | `GET` | `/auth/admin/users` | `TypeReference responseType` | `@Nullable T` | +| `auth().admin().users().get(...)` | `GET` | `/auth/admin/users/{param}` | `String userId, QueryParams query, Class responseType` | `@Nullable T` | +| `auth().admin().users().get(...)` | `GET` | `/auth/admin/users/{param}` | `String userId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `auth().admin().users().get(...)` | `GET` | `/auth/admin/users/{param}` | `String userId, Class responseType` | `@Nullable T` | +| `auth().admin().users().get(...)` | `GET` | `/auth/admin/users/{param}` | `String userId, TypeReference responseType` | `@Nullable T` | +| `auth().admin().users().create(...)` | `POST` | `/auth/admin/users` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().admin().users().create(...)` | `POST` | `/auth/admin/users` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().admin().users().create(...)` | `POST` | `/auth/admin/users` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().admin().users().create(...)` | `POST` | `/auth/admin/users` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().admin().users().update(...)` | `PUT` | `/auth/admin/users/{param}` | `String userId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().admin().users().update(...)` | `PUT` | `/auth/admin/users/{param}` | `String userId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().admin().users().update(...)` | `PUT` | `/auth/admin/users/{param}` | `String userId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().admin().users().update(...)` | `PUT` | `/auth/admin/users/{param}` | `String userId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().mfa().backupCodes().createRegenerate(...)` | `POST` | `/auth/mfa/backup-codes/regenerate` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().mfa().backupCodes().createRegenerate(...)` | `POST` | `/auth/mfa/backup-codes/regenerate` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().mfa().backupCodes().createRegenerate(...)` | `POST` | `/auth/mfa/backup-codes/regenerate` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().mfa().backupCodes().createRegenerate(...)` | `POST` | `/auth/mfa/backup-codes/regenerate` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().user().identities().delete(...)` | `DELETE` | `/auth/user/identities/{param}` | `String identityId, QueryParams query, Class responseType` | `@Nullable T` | +| `auth().user().identities().delete(...)` | `DELETE` | `/auth/user/identities/{param}` | `String identityId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `auth().user().identities().delete(...)` | `DELETE` | `/auth/user/identities/{param}` | `String identityId, Class responseType` | `@Nullable T` | +| `auth().user().identities().delete(...)` | `DELETE` | `/auth/user/identities/{param}` | `String identityId, TypeReference responseType` | `@Nullable T` | +| `auth().user().identities().list(...)` | `GET` | `/auth/user/identities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `auth().user().identities().list(...)` | `GET` | `/auth/user/identities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `auth().user().identities().list(...)` | `GET` | `/auth/user/identities` | `Class responseType` | `@Nullable T` | +| `auth().user().identities().list(...)` | `GET` | `/auth/user/identities` | `TypeReference responseType` | `@Nullable T` | +| `auth().user().identities().create(...)` | `POST` | `/auth/user/identities` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().user().identities().create(...)` | `POST` | `/auth/user/identities` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().user().identities().create(...)` | `POST` | `/auth/user/identities` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().user().identities().create(...)` | `POST` | `/auth/user/identities` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().account().security().apiKeys().delete(...)` | `DELETE` | `/auth/account/security/api-keys/{param}` | `String apiKeyId, QueryParams query, Class responseType` | `@Nullable T` | +| `auth().account().security().apiKeys().delete(...)` | `DELETE` | `/auth/account/security/api-keys/{param}` | `String apiKeyId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `auth().account().security().apiKeys().delete(...)` | `DELETE` | `/auth/account/security/api-keys/{param}` | `String apiKeyId, Class responseType` | `@Nullable T` | +| `auth().account().security().apiKeys().delete(...)` | `DELETE` | `/auth/account/security/api-keys/{param}` | `String apiKeyId, TypeReference responseType` | `@Nullable T` | +| `auth().account().security().apiKeys().list(...)` | `GET` | `/auth/account/security/api-keys` | `QueryParams query, Class responseType` | `@Nullable T` | +| `auth().account().security().apiKeys().list(...)` | `GET` | `/auth/account/security/api-keys` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `auth().account().security().apiKeys().list(...)` | `GET` | `/auth/account/security/api-keys` | `Class responseType` | `@Nullable T` | +| `auth().account().security().apiKeys().list(...)` | `GET` | `/auth/account/security/api-keys` | `TypeReference responseType` | `@Nullable T` | +| `auth().account().security().apiKeys().get(...)` | `GET` | `/auth/account/security/api-keys/{param}` | `String apiKeyId, QueryParams query, Class responseType` | `@Nullable T` | +| `auth().account().security().apiKeys().get(...)` | `GET` | `/auth/account/security/api-keys/{param}` | `String apiKeyId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `auth().account().security().apiKeys().get(...)` | `GET` | `/auth/account/security/api-keys/{param}` | `String apiKeyId, Class responseType` | `@Nullable T` | +| `auth().account().security().apiKeys().get(...)` | `GET` | `/auth/account/security/api-keys/{param}` | `String apiKeyId, TypeReference responseType` | `@Nullable T` | +| `auth().account().security().apiKeys().create(...)` | `POST` | `/auth/account/security/api-keys` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().account().security().apiKeys().create(...)` | `POST` | `/auth/account/security/api-keys` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().account().security().apiKeys().create(...)` | `POST` | `/auth/account/security/api-keys` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().account().security().apiKeys().create(...)` | `POST` | `/auth/account/security/api-keys` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().account().security().apiKeys().update(...)` | `PUT` | `/auth/account/security/api-keys/{param}` | `String apiKeyId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().account().security().apiKeys().update(...)` | `PUT` | `/auth/account/security/api-keys/{param}` | `String apiKeyId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().account().security().apiKeys().update(...)` | `PUT` | `/auth/account/security/api-keys/{param}` | `String apiKeyId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().account().security().apiKeys().update(...)` | `PUT` | `/auth/account/security/api-keys/{param}` | `String apiKeyId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().account().security().devices().delete(...)` | `DELETE` | `/auth/account/security/devices/{param}` | `String deviceId, QueryParams query, Class responseType` | `@Nullable T` | +| `auth().account().security().devices().delete(...)` | `DELETE` | `/auth/account/security/devices/{param}` | `String deviceId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `auth().account().security().devices().delete(...)` | `DELETE` | `/auth/account/security/devices/{param}` | `String deviceId, Class responseType` | `@Nullable T` | +| `auth().account().security().devices().delete(...)` | `DELETE` | `/auth/account/security/devices/{param}` | `String deviceId, TypeReference responseType` | `@Nullable T` | +| `auth().account().security().devices().list(...)` | `GET` | `/auth/account/security/devices` | `QueryParams query, Class responseType` | `@Nullable T` | +| `auth().account().security().devices().list(...)` | `GET` | `/auth/account/security/devices` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `auth().account().security().devices().list(...)` | `GET` | `/auth/account/security/devices` | `Class responseType` | `@Nullable T` | +| `auth().account().security().devices().list(...)` | `GET` | `/auth/account/security/devices` | `TypeReference responseType` | `@Nullable T` | +| `auth().account().security().devices().get(...)` | `GET` | `/auth/account/security/devices/{param}` | `String deviceId, QueryParams query, Class responseType` | `@Nullable T` | +| `auth().account().security().devices().get(...)` | `GET` | `/auth/account/security/devices/{param}` | `String deviceId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `auth().account().security().devices().get(...)` | `GET` | `/auth/account/security/devices/{param}` | `String deviceId, Class responseType` | `@Nullable T` | +| `auth().account().security().devices().get(...)` | `GET` | `/auth/account/security/devices/{param}` | `String deviceId, TypeReference responseType` | `@Nullable T` | +| `auth().account().security().devices().create(...)` | `POST` | `/auth/account/security/devices` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().account().security().devices().create(...)` | `POST` | `/auth/account/security/devices` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().account().security().devices().create(...)` | `POST` | `/auth/account/security/devices` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().account().security().devices().create(...)` | `POST` | `/auth/account/security/devices` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().account().security().devices().trust(...)` | `POST` | `/auth/account/security/devices/{param}/trust` | `String deviceId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().account().security().devices().trust(...)` | `POST` | `/auth/account/security/devices/{param}/trust` | `String deviceId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().account().security().devices().trust(...)` | `POST` | `/auth/account/security/devices/{param}/trust` | `String deviceId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `auth().account().security().devices().trust(...)` | `POST` | `/auth/account/security/devices/{param}/trust` | `String deviceId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `auth().admin().users().factors().delete(...)` | `DELETE` | `/auth/admin/users/{param}/factors/{param}` | `String userId, String factorId, QueryParams query, Class responseType` | `@Nullable T` | +| `auth().admin().users().factors().delete(...)` | `DELETE` | `/auth/admin/users/{param}/factors/{param}` | `String userId, String factorId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `auth().admin().users().factors().delete(...)` | `DELETE` | `/auth/admin/users/{param}/factors/{param}` | `String userId, String factorId, Class responseType` | `@Nullable T` | +| `auth().admin().users().factors().delete(...)` | `DELETE` | `/auth/admin/users/{param}/factors/{param}` | `String userId, String factorId, TypeReference responseType` | `@Nullable T` | +| `auth().admin().users().factors().list(...)` | `GET` | `/auth/admin/users/{param}/factors` | `String userId, QueryParams query, Class responseType` | `@Nullable T` | +| `auth().admin().users().factors().list(...)` | `GET` | `/auth/admin/users/{param}/factors` | `String userId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `auth().admin().users().factors().list(...)` | `GET` | `/auth/admin/users/{param}/factors` | `String userId, Class responseType` | `@Nullable T` | +| `auth().admin().users().factors().list(...)` | `GET` | `/auth/admin/users/{param}/factors` | `String userId, TypeReference responseType` | `@Nullable T` | + +The generic `request(...)` methods and `Endpoints` constants remain available. diff --git a/docs/api/billing.md b/docs/api/billing.md new file mode 100644 index 0000000..c9b8b06 --- /dev/null +++ b/docs/api/billing.md @@ -0,0 +1,102 @@ +# Billing API + +Service accessor: `frontal.billing()` (`BillingClient`). + +Operations are grouped by resource path. Collection methods use `list` and `create`; item methods use `get`, `update`, and `delete`. Calls can omit `QueryParams` when no query values are needed. Use contract-defined `JsonNode` bodies and caller-selected response types where schemas are not available. + +| Method | HTTP | Route | Parameters | Response | +| --- | --- | --- | --- | --- | +| `billing().customers().usage(...)` | `GET` | `/billing/customers/{param}/usage` | `String customerId, QueryParams query, Class responseType` | `@Nullable T` | +| `billing().customers().usage(...)` | `GET` | `/billing/customers/{param}/usage` | `String customerId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `billing().customers().usage(...)` | `GET` | `/billing/customers/{param}/usage` | `String customerId, Class responseType` | `@Nullable T` | +| `billing().customers().usage(...)` | `GET` | `/billing/customers/{param}/usage` | `String customerId, TypeReference responseType` | `@Nullable T` | +| `billing().invoices().getPdf(...)` | `GETRAW` | `/billing/invoices/{param}/pdf` | `String invoiceId, QueryParams query, Class responseType` | `@Nullable T` | +| `billing().invoices().getPdf(...)` | `GETRAW` | `/billing/invoices/{param}/pdf` | `String invoiceId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `billing().invoices().getPdf(...)` | `GETRAW` | `/billing/invoices/{param}/pdf` | `String invoiceId, Class responseType` | `@Nullable T` | +| `billing().invoices().getPdf(...)` | `GETRAW` | `/billing/invoices/{param}/pdf` | `String invoiceId, TypeReference responseType` | `@Nullable T` | +| `billing().invoices().preview(...)` | `POST` | `/billing/invoices/preview` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `billing().invoices().preview(...)` | `POST` | `/billing/invoices/preview` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `billing().invoices().preview(...)` | `POST` | `/billing/invoices/preview` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `billing().invoices().preview(...)` | `POST` | `/billing/invoices/preview` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `billing().invoices().finalize(...)` | `POST` | `/billing/invoices/{param}/finalize` | `String invoiceId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `billing().invoices().finalize(...)` | `POST` | `/billing/invoices/{param}/finalize` | `String invoiceId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `billing().invoices().finalize(...)` | `POST` | `/billing/invoices/{param}/finalize` | `String invoiceId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `billing().invoices().finalize(...)` | `POST` | `/billing/invoices/{param}/finalize` | `String invoiceId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `billing().invoices().resourceVoid(...)` | `POST` | `/billing/invoices/{param}/void` | `String invoiceId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `billing().invoices().resourceVoid(...)` | `POST` | `/billing/invoices/{param}/void` | `String invoiceId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `billing().invoices().resourceVoid(...)` | `POST` | `/billing/invoices/{param}/void` | `String invoiceId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `billing().invoices().resourceVoid(...)` | `POST` | `/billing/invoices/{param}/void` | `String invoiceId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `billing().meters().disable(...)` | `POST` | `/billing/meters/{param}/disable` | `String meterId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `billing().meters().disable(...)` | `POST` | `/billing/meters/{param}/disable` | `String meterId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `billing().meters().disable(...)` | `POST` | `/billing/meters/{param}/disable` | `String meterId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `billing().meters().disable(...)` | `POST` | `/billing/meters/{param}/disable` | `String meterId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `billing().plans().clone(...)` | `POST` | `/billing/plans/{param}/clone` | `String planId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `billing().plans().clone(...)` | `POST` | `/billing/plans/{param}/clone` | `String planId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `billing().plans().clone(...)` | `POST` | `/billing/plans/{param}/clone` | `String planId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `billing().plans().clone(...)` | `POST` | `/billing/plans/{param}/clone` | `String planId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `billing().subscriptions().activate(...)` | `POST` | `/billing/subscriptions/{param}/activate` | `String subscriptionId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `billing().subscriptions().activate(...)` | `POST` | `/billing/subscriptions/{param}/activate` | `String subscriptionId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `billing().subscriptions().activate(...)` | `POST` | `/billing/subscriptions/{param}/activate` | `String subscriptionId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `billing().subscriptions().activate(...)` | `POST` | `/billing/subscriptions/{param}/activate` | `String subscriptionId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `billing().subscriptions().cancel(...)` | `POST` | `/billing/subscriptions/{param}/cancel` | `String subscriptionId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `billing().subscriptions().cancel(...)` | `POST` | `/billing/subscriptions/{param}/cancel` | `String subscriptionId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `billing().subscriptions().cancel(...)` | `POST` | `/billing/subscriptions/{param}/cancel` | `String subscriptionId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `billing().subscriptions().cancel(...)` | `POST` | `/billing/subscriptions/{param}/cancel` | `String subscriptionId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `billing().subscriptions().pause(...)` | `POST` | `/billing/subscriptions/{param}/pause` | `String subscriptionId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `billing().subscriptions().pause(...)` | `POST` | `/billing/subscriptions/{param}/pause` | `String subscriptionId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `billing().subscriptions().pause(...)` | `POST` | `/billing/subscriptions/{param}/pause` | `String subscriptionId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `billing().subscriptions().pause(...)` | `POST` | `/billing/subscriptions/{param}/pause` | `String subscriptionId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `billing().subscriptions().resume(...)` | `POST` | `/billing/subscriptions/{param}/resume` | `String subscriptionId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `billing().subscriptions().resume(...)` | `POST` | `/billing/subscriptions/{param}/resume` | `String subscriptionId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `billing().subscriptions().resume(...)` | `POST` | `/billing/subscriptions/{param}/resume` | `String subscriptionId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `billing().subscriptions().resume(...)` | `POST` | `/billing/subscriptions/{param}/resume` | `String subscriptionId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `billing().wallets().createTerminate(...)` | `POST` | `/billing/wallets/{param}/terminate` | `String walletId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `billing().wallets().createTerminate(...)` | `POST` | `/billing/wallets/{param}/terminate` | `String walletId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `billing().wallets().createTerminate(...)` | `POST` | `/billing/wallets/{param}/terminate` | `String walletId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `billing().wallets().createTerminate(...)` | `POST` | `/billing/wallets/{param}/terminate` | `String walletId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `billing().wallets().topUp(...)` | `POST` | `/billing/wallets/{param}/top-up` | `String walletId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `billing().wallets().topUp(...)` | `POST` | `/billing/wallets/{param}/top-up` | `String walletId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `billing().wallets().topUp(...)` | `POST` | `/billing/wallets/{param}/top-up` | `String walletId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `billing().wallets().topUp(...)` | `POST` | `/billing/wallets/{param}/top-up` | `String walletId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `billing().addons().entitlements().list(...)` | `GET` | `/billing/addons/{param}/entitlements` | `String addonId, QueryParams query, Class responseType` | `@Nullable T` | +| `billing().addons().entitlements().list(...)` | `GET` | `/billing/addons/{param}/entitlements` | `String addonId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `billing().addons().entitlements().list(...)` | `GET` | `/billing/addons/{param}/entitlements` | `String addonId, Class responseType` | `@Nullable T` | +| `billing().addons().entitlements().list(...)` | `GET` | `/billing/addons/{param}/entitlements` | `String addonId, TypeReference responseType` | `@Nullable T` | +| `billing().customers().entitlements().list(...)` | `GET` | `/billing/customers/{param}/entitlements` | `String customerId, QueryParams query, Class responseType` | `@Nullable T` | +| `billing().customers().entitlements().list(...)` | `GET` | `/billing/customers/{param}/entitlements` | `String customerId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `billing().customers().entitlements().list(...)` | `GET` | `/billing/customers/{param}/entitlements` | `String customerId, Class responseType` | `@Nullable T` | +| `billing().customers().entitlements().list(...)` | `GET` | `/billing/customers/{param}/entitlements` | `String customerId, TypeReference responseType` | `@Nullable T` | +| `billing().customers().invoices().summary(...)` | `GET` | `/billing/customers/{param}/invoices/summary` | `String customerId, QueryParams query, Class responseType` | `@Nullable T` | +| `billing().customers().invoices().summary(...)` | `GET` | `/billing/customers/{param}/invoices/summary` | `String customerId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `billing().customers().invoices().summary(...)` | `GET` | `/billing/customers/{param}/invoices/summary` | `String customerId, Class responseType` | `@Nullable T` | +| `billing().customers().invoices().summary(...)` | `GET` | `/billing/customers/{param}/invoices/summary` | `String customerId, TypeReference responseType` | `@Nullable T` | +| `billing().customers().portal().get(...)` | `GET` | `/billing/customers/portal/{param}` | `String portalId, QueryParams query, Class responseType` | `@Nullable T` | +| `billing().customers().portal().get(...)` | `GET` | `/billing/customers/portal/{param}` | `String portalId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `billing().customers().portal().get(...)` | `GET` | `/billing/customers/portal/{param}` | `String portalId, Class responseType` | `@Nullable T` | +| `billing().customers().portal().get(...)` | `GET` | `/billing/customers/portal/{param}` | `String portalId, TypeReference responseType` | `@Nullable T` | +| `billing().customers().wallets().list(...)` | `GET` | `/billing/customers/{param}/wallets` | `String customerId, QueryParams query, Class responseType` | `@Nullable T` | +| `billing().customers().wallets().list(...)` | `GET` | `/billing/customers/{param}/wallets` | `String customerId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `billing().customers().wallets().list(...)` | `GET` | `/billing/customers/{param}/wallets` | `String customerId, Class responseType` | `@Nullable T` | +| `billing().customers().wallets().list(...)` | `GET` | `/billing/customers/{param}/wallets` | `String customerId, TypeReference responseType` | `@Nullable T` | +| `billing().plans().entitlements().list(...)` | `GET` | `/billing/plans/{param}/entitlements` | `String planId, QueryParams query, Class responseType` | `@Nullable T` | +| `billing().plans().entitlements().list(...)` | `GET` | `/billing/plans/{param}/entitlements` | `String planId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `billing().plans().entitlements().list(...)` | `GET` | `/billing/plans/{param}/entitlements` | `String planId, Class responseType` | `@Nullable T` | +| `billing().plans().entitlements().list(...)` | `GET` | `/billing/plans/{param}/entitlements` | `String planId, TypeReference responseType` | `@Nullable T` | +| `billing().prices().lookup().get(...)` | `GET` | `/billing/prices/lookup/{param}` | `String lookupId, QueryParams query, Class responseType` | `@Nullable T` | +| `billing().prices().lookup().get(...)` | `GET` | `/billing/prices/lookup/{param}` | `String lookupId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `billing().prices().lookup().get(...)` | `GET` | `/billing/prices/lookup/{param}` | `String lookupId, Class responseType` | `@Nullable T` | +| `billing().prices().lookup().get(...)` | `GET` | `/billing/prices/lookup/{param}` | `String lookupId, TypeReference responseType` | `@Nullable T` | +| `billing().subscriptions().entitlements().list(...)` | `GET` | `/billing/subscriptions/{param}/entitlements` | `String subscriptionId, QueryParams query, Class responseType` | `@Nullable T` | +| `billing().subscriptions().entitlements().list(...)` | `GET` | `/billing/subscriptions/{param}/entitlements` | `String subscriptionId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `billing().subscriptions().entitlements().list(...)` | `GET` | `/billing/subscriptions/{param}/entitlements` | `String subscriptionId, Class responseType` | `@Nullable T` | +| `billing().subscriptions().entitlements().list(...)` | `GET` | `/billing/subscriptions/{param}/entitlements` | `String subscriptionId, TypeReference responseType` | `@Nullable T` | +| `billing().wallets().balance().getRealTime(...)` | `GET` | `/billing/wallets/{param}/balance/real-time` | `String walletId, QueryParams query, Class responseType` | `@Nullable T` | +| `billing().wallets().balance().getRealTime(...)` | `GET` | `/billing/wallets/{param}/balance/real-time` | `String walletId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `billing().wallets().balance().getRealTime(...)` | `GET` | `/billing/wallets/{param}/balance/real-time` | `String walletId, Class responseType` | `@Nullable T` | +| `billing().wallets().balance().getRealTime(...)` | `GET` | `/billing/wallets/{param}/balance/real-time` | `String walletId, TypeReference responseType` | `@Nullable T` | +| `billing().wallets().transactions().list(...)` | `GET` | `/billing/wallets/{param}/transactions` | `String walletId, QueryParams query, Class responseType` | `@Nullable T` | +| `billing().wallets().transactions().list(...)` | `GET` | `/billing/wallets/{param}/transactions` | `String walletId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `billing().wallets().transactions().list(...)` | `GET` | `/billing/wallets/{param}/transactions` | `String walletId, Class responseType` | `@Nullable T` | +| `billing().wallets().transactions().list(...)` | `GET` | `/billing/wallets/{param}/transactions` | `String walletId, TypeReference responseType` | `@Nullable T` | + +The generic `request(...)` methods and `Endpoints` constants remain available. diff --git a/docs/api/blob.md b/docs/api/blob.md new file mode 100644 index 0000000..17251f0 --- /dev/null +++ b/docs/api/blob.md @@ -0,0 +1,42 @@ +# Blob API + +Service accessor: `frontal.blob()` (`BlobClient`). + +Operations are grouped by resource path. Collection methods use `list` and `create`; item methods use `get`, `update`, and `delete`. Calls can omit `QueryParams` when no query values are needed. Use contract-defined `JsonNode` bodies and caller-selected response types where schemas are not available. + +| Method | HTTP | Route | Parameters | Response | +| --- | --- | --- | --- | --- | +| `blob().object().delete(...)` | `DELETE` | `/blob/object/{param}/{param}` | `String objectId, String objectId2, QueryParams query, Class responseType` | `@Nullable T` | +| `blob().object().delete(...)` | `DELETE` | `/blob/object/{param}/{param}` | `String objectId, String objectId2, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `blob().object().delete(...)` | `DELETE` | `/blob/object/{param}/{param}` | `String objectId, String objectId2, Class responseType` | `@Nullable T` | +| `blob().object().delete(...)` | `DELETE` | `/blob/object/{param}/{param}` | `String objectId, String objectId2, TypeReference responseType` | `@Nullable T` | +| `blob().object().get(...)` | `GET` | `/blob/object/{param}/{param}` | `String objectId, String objectId2, QueryParams query, Class responseType` | `@Nullable T` | +| `blob().object().get(...)` | `GET` | `/blob/object/{param}/{param}` | `String objectId, String objectId2, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `blob().object().get(...)` | `GET` | `/blob/object/{param}/{param}` | `String objectId, String objectId2, Class responseType` | `@Nullable T` | +| `blob().object().get(...)` | `GET` | `/blob/object/{param}/{param}` | `String objectId, String objectId2, TypeReference responseType` | `@Nullable T` | +| `blob().object().copy(...)` | `POST` | `/blob/object/copy` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `blob().object().copy(...)` | `POST` | `/blob/object/copy` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `blob().object().copy(...)` | `POST` | `/blob/object/copy` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `blob().object().copy(...)` | `POST` | `/blob/object/copy` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `blob().object().move(...)` | `POST` | `/blob/object/move` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `blob().object().move(...)` | `POST` | `/blob/object/move` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `blob().object().move(...)` | `POST` | `/blob/object/move` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `blob().object().move(...)` | `POST` | `/blob/object/move` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `blob().object().get2(...)` | `POSTFORMDATA` | `/blob/object/{param}/{param}` | `String objectId, String objectId2, QueryParams query, Map fields, Map files, Class responseType` | `@Nullable T` | +| `blob().object().get2(...)` | `POSTFORMDATA` | `/blob/object/{param}/{param}` | `String objectId, String objectId2, QueryParams query, Map fields, Map files, TypeReference responseType` | `@Nullable T` | +| `blob().object().get2(...)` | `POSTFORMDATA` | `/blob/object/{param}/{param}` | `String objectId, String objectId2, Map fields, Map files, Class responseType` | `@Nullable T` | +| `blob().object().get2(...)` | `POSTFORMDATA` | `/blob/object/{param}/{param}` | `String objectId, String objectId2, Map fields, Map files, TypeReference responseType` | `@Nullable T` | +| `blob().object().info().get(...)` | `GET` | `/blob/object/info/{param}/{param}` | `String infoId, String infoId2, QueryParams query, Class responseType` | `@Nullable T` | +| `blob().object().info().get(...)` | `GET` | `/blob/object/info/{param}/{param}` | `String infoId, String infoId2, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `blob().object().info().get(...)` | `GET` | `/blob/object/info/{param}/{param}` | `String infoId, String infoId2, Class responseType` | `@Nullable T` | +| `blob().object().info().get(...)` | `GET` | `/blob/object/info/{param}/{param}` | `String infoId, String infoId2, TypeReference responseType` | `@Nullable T` | +| `blob().object().list().get(...)` | `POST` | `/blob/object/list/{param}` | `String listId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `blob().object().list().get(...)` | `POST` | `/blob/object/list/{param}` | `String listId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `blob().object().list().get(...)` | `POST` | `/blob/object/list/{param}` | `String listId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `blob().object().list().get(...)` | `POST` | `/blob/object/list/{param}` | `String listId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `blob().object().sign().get(...)` | `POST` | `/blob/object/sign/{param}/{param}` | `String signId, String signId2, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `blob().object().sign().get(...)` | `POST` | `/blob/object/sign/{param}/{param}` | `String signId, String signId2, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `blob().object().sign().get(...)` | `POST` | `/blob/object/sign/{param}/{param}` | `String signId, String signId2, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `blob().object().sign().get(...)` | `POST` | `/blob/object/sign/{param}/{param}` | `String signId, String signId2, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | + +The generic `request(...)` methods and `Endpoints` constants remain available. diff --git a/docs/api/connection-tests.md b/docs/api/connection-tests.md new file mode 100644 index 0000000..f5fd7a1 --- /dev/null +++ b/docs/api/connection-tests.md @@ -0,0 +1,14 @@ +# ConnectionTests API + +Service accessor: `frontal.connectionTests()` (`ConnectionTestsClient`). + +Operations are grouped by resource path. Collection methods use `list` and `create`; item methods use `get`, `update`, and `delete`. Calls can omit `QueryParams` when no query values are needed. Use contract-defined `JsonNode` bodies and caller-selected response types where schemas are not available. + +| Method | HTTP | Route | Parameters | Response | +| --- | --- | --- | --- | --- | +| `connectionTests().get(...)` | `GET` | `/connection-tests/{param}` | `String connectionTestId, QueryParams query, Class responseType` | `@Nullable T` | +| `connectionTests().get(...)` | `GET` | `/connection-tests/{param}` | `String connectionTestId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `connectionTests().get(...)` | `GET` | `/connection-tests/{param}` | `String connectionTestId, Class responseType` | `@Nullable T` | +| `connectionTests().get(...)` | `GET` | `/connection-tests/{param}` | `String connectionTestId, TypeReference responseType` | `@Nullable T` | + +The generic `request(...)` methods and `Endpoints` constants remain available. diff --git a/docs/api/connectors.md b/docs/api/connectors.md new file mode 100644 index 0000000..d640857 --- /dev/null +++ b/docs/api/connectors.md @@ -0,0 +1,58 @@ +# Connectors API + +Service accessor: `frontal.connectors()` (`ConnectorsClient`). + +Operations are grouped by resource path. Collection methods use `list` and `create`; item methods use `get`, `update`, and `delete`. Calls can omit `QueryParams` when no query values are needed. Use contract-defined `JsonNode` bodies and caller-selected response types where schemas are not available. + +| Method | HTTP | Route | Parameters | Response | +| --- | --- | --- | --- | --- | +| `connectors().getCatalog(...)` | `GET` | `/connectors/catalog` | `QueryParams query, Class responseType` | `@Nullable T` | +| `connectors().getCatalog(...)` | `GET` | `/connectors/catalog` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `connectors().getCatalog(...)` | `GET` | `/connectors/catalog` | `Class responseType` | `@Nullable T` | +| `connectors().getCatalog(...)` | `GET` | `/connectors/catalog` | `TypeReference responseType` | `@Nullable T` | +| `connectors().catalog().get(...)` | `GET` | `/connectors/catalog/{param}` | `String catalogId, QueryParams query, Class responseType` | `@Nullable T` | +| `connectors().catalog().get(...)` | `GET` | `/connectors/catalog/{param}` | `String catalogId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `connectors().catalog().get(...)` | `GET` | `/connectors/catalog/{param}` | `String catalogId, Class responseType` | `@Nullable T` | +| `connectors().catalog().get(...)` | `GET` | `/connectors/catalog/{param}` | `String catalogId, TypeReference responseType` | `@Nullable T` | +| `connectors().connectionTests().get(...)` | `GET` | `/connectors/connection-tests/{param}` | `String connectionTestId, QueryParams query, Class responseType` | `@Nullable T` | +| `connectors().connectionTests().get(...)` | `GET` | `/connectors/connection-tests/{param}` | `String connectionTestId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `connectors().connectionTests().get(...)` | `GET` | `/connectors/connection-tests/{param}` | `String connectionTestId, Class responseType` | `@Nullable T` | +| `connectors().connectionTests().get(...)` | `GET` | `/connectors/connection-tests/{param}` | `String connectionTestId, TypeReference responseType` | `@Nullable T` | +| `connectors().diagnostics().list(...)` | `GET` | `/diagnostics` | `QueryParams query, Class responseType` | `@Nullable T` | +| `connectors().diagnostics().list(...)` | `GET` | `/diagnostics` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `connectors().diagnostics().list(...)` | `GET` | `/diagnostics` | `Class responseType` | `@Nullable T` | +| `connectors().diagnostics().list(...)` | `GET` | `/diagnostics` | `TypeReference responseType` | `@Nullable T` | +| `connectors().installations().delete(...)` | `DELETE` | `/connectors/installations/{param}` | `String installationId, QueryParams query, Class responseType` | `@Nullable T` | +| `connectors().installations().delete(...)` | `DELETE` | `/connectors/installations/{param}` | `String installationId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `connectors().installations().delete(...)` | `DELETE` | `/connectors/installations/{param}` | `String installationId, Class responseType` | `@Nullable T` | +| `connectors().installations().delete(...)` | `DELETE` | `/connectors/installations/{param}` | `String installationId, TypeReference responseType` | `@Nullable T` | +| `connectors().installations().list(...)` | `GET` | `/connectors/installations` | `QueryParams query, Class responseType` | `@Nullable T` | +| `connectors().installations().list(...)` | `GET` | `/connectors/installations` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `connectors().installations().list(...)` | `GET` | `/connectors/installations` | `Class responseType` | `@Nullable T` | +| `connectors().installations().list(...)` | `GET` | `/connectors/installations` | `TypeReference responseType` | `@Nullable T` | +| `connectors().installations().get(...)` | `GET` | `/connectors/installations/{param}` | `String installationId, QueryParams query, Class responseType` | `@Nullable T` | +| `connectors().installations().get(...)` | `GET` | `/connectors/installations/{param}` | `String installationId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `connectors().installations().get(...)` | `GET` | `/connectors/installations/{param}` | `String installationId, Class responseType` | `@Nullable T` | +| `connectors().installations().get(...)` | `GET` | `/connectors/installations/{param}` | `String installationId, TypeReference responseType` | `@Nullable T` | +| `connectors().installations().update(...)` | `PATCH` | `/connectors/installations/{param}` | `String installationId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `connectors().installations().update(...)` | `PATCH` | `/connectors/installations/{param}` | `String installationId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `connectors().installations().update(...)` | `PATCH` | `/connectors/installations/{param}` | `String installationId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `connectors().installations().update(...)` | `PATCH` | `/connectors/installations/{param}` | `String installationId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `connectors().installations().create(...)` | `POST` | `/connectors/installations` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `connectors().installations().create(...)` | `POST` | `/connectors/installations` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `connectors().installations().create(...)` | `POST` | `/connectors/installations` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `connectors().installations().create(...)` | `POST` | `/connectors/installations` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `connectors().installations().pause(...)` | `POST` | `/connectors/installations/{param}/pause` | `String installationId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `connectors().installations().pause(...)` | `POST` | `/connectors/installations/{param}/pause` | `String installationId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `connectors().installations().pause(...)` | `POST` | `/connectors/installations/{param}/pause` | `String installationId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `connectors().installations().pause(...)` | `POST` | `/connectors/installations/{param}/pause` | `String installationId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `connectors().installations().resume(...)` | `POST` | `/connectors/installations/{param}/resume` | `String installationId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `connectors().installations().resume(...)` | `POST` | `/connectors/installations/{param}/resume` | `String installationId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `connectors().installations().resume(...)` | `POST` | `/connectors/installations/{param}/resume` | `String installationId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `connectors().installations().resume(...)` | `POST` | `/connectors/installations/{param}/resume` | `String installationId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `connectors().syncRuns().replay(...)` | `POST` | `/connectors/sync-runs/{param}/replay` | `String syncRunId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `connectors().syncRuns().replay(...)` | `POST` | `/connectors/sync-runs/{param}/replay` | `String syncRunId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `connectors().syncRuns().replay(...)` | `POST` | `/connectors/sync-runs/{param}/replay` | `String syncRunId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `connectors().syncRuns().replay(...)` | `POST` | `/connectors/sync-runs/{param}/replay` | `String syncRunId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | + +The generic `request(...)` methods and `Endpoints` constants remain available. diff --git a/docs/api/data.md b/docs/api/data.md new file mode 100644 index 0000000..c3a2e49 --- /dev/null +++ b/docs/api/data.md @@ -0,0 +1,614 @@ +# Data API + +Service accessor: `frontal.data()` (`DataClient`). + +Operations are grouped by resource path. Collection methods use `list` and `create`; item methods use `get`, `update`, and `delete`. Calls can omit `QueryParams` when no query values are needed. Use contract-defined `JsonNode` bodies and caller-selected response types where schemas are not available. + +| Method | HTTP | Route | Parameters | Response | +| --- | --- | --- | --- | --- | +| `data().aggregations().health(...)` | `GET` | `/data/aggregations/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().aggregations().health(...)` | `GET` | `/data/aggregations/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().aggregations().health(...)` | `GET` | `/data/aggregations/health` | `Class responseType` | `@Nullable T` | +| `data().aggregations().health(...)` | `GET` | `/data/aggregations/health` | `TypeReference responseType` | `@Nullable T` | +| `data().aggregations().getInfo(...)` | `GET` | `/data/aggregations/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().aggregations().getInfo(...)` | `GET` | `/data/aggregations/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().aggregations().getInfo(...)` | `GET` | `/data/aggregations/info` | `Class responseType` | `@Nullable T` | +| `data().aggregations().getInfo(...)` | `GET` | `/data/aggregations/info` | `TypeReference responseType` | `@Nullable T` | +| `data().archival().health(...)` | `GET` | `/data/archival/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().archival().health(...)` | `GET` | `/data/archival/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().archival().health(...)` | `GET` | `/data/archival/health` | `Class responseType` | `@Nullable T` | +| `data().archival().health(...)` | `GET` | `/data/archival/health` | `TypeReference responseType` | `@Nullable T` | +| `data().archival().getInfo(...)` | `GET` | `/data/archival/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().archival().getInfo(...)` | `GET` | `/data/archival/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().archival().getInfo(...)` | `GET` | `/data/archival/info` | `Class responseType` | `@Nullable T` | +| `data().archival().getInfo(...)` | `GET` | `/data/archival/info` | `TypeReference responseType` | `@Nullable T` | +| `data().catalog().health(...)` | `GET` | `/data/catalog/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().catalog().health(...)` | `GET` | `/data/catalog/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().catalog().health(...)` | `GET` | `/data/catalog/health` | `Class responseType` | `@Nullable T` | +| `data().catalog().health(...)` | `GET` | `/data/catalog/health` | `TypeReference responseType` | `@Nullable T` | +| `data().catalog().getInfo(...)` | `GET` | `/data/catalog/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().catalog().getInfo(...)` | `GET` | `/data/catalog/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().catalog().getInfo(...)` | `GET` | `/data/catalog/info` | `Class responseType` | `@Nullable T` | +| `data().catalog().getInfo(...)` | `GET` | `/data/catalog/info` | `TypeReference responseType` | `@Nullable T` | +| `data().enrichment().health(...)` | `GET` | `/data/enrichment/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().enrichment().health(...)` | `GET` | `/data/enrichment/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().enrichment().health(...)` | `GET` | `/data/enrichment/health` | `Class responseType` | `@Nullable T` | +| `data().enrichment().health(...)` | `GET` | `/data/enrichment/health` | `TypeReference responseType` | `@Nullable T` | +| `data().enrichment().getInfo(...)` | `GET` | `/data/enrichment/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().enrichment().getInfo(...)` | `GET` | `/data/enrichment/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().enrichment().getInfo(...)` | `GET` | `/data/enrichment/info` | `Class responseType` | `@Nullable T` | +| `data().enrichment().getInfo(...)` | `GET` | `/data/enrichment/info` | `TypeReference responseType` | `@Nullable T` | +| `data().exports().health(...)` | `GET` | `/data/exports/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().exports().health(...)` | `GET` | `/data/exports/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().exports().health(...)` | `GET` | `/data/exports/health` | `Class responseType` | `@Nullable T` | +| `data().exports().health(...)` | `GET` | `/data/exports/health` | `TypeReference responseType` | `@Nullable T` | +| `data().exports().getInfo(...)` | `GET` | `/data/exports/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().exports().getInfo(...)` | `GET` | `/data/exports/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().exports().getInfo(...)` | `GET` | `/data/exports/info` | `Class responseType` | `@Nullable T` | +| `data().exports().getInfo(...)` | `GET` | `/data/exports/info` | `TypeReference responseType` | `@Nullable T` | +| `data().ingest().health(...)` | `GET` | `/data/ingest/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().ingest().health(...)` | `GET` | `/data/ingest/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().ingest().health(...)` | `GET` | `/data/ingest/health` | `Class responseType` | `@Nullable T` | +| `data().ingest().health(...)` | `GET` | `/data/ingest/health` | `TypeReference responseType` | `@Nullable T` | +| `data().ingest().getInfo(...)` | `GET` | `/data/ingest/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().ingest().getInfo(...)` | `GET` | `/data/ingest/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().ingest().getInfo(...)` | `GET` | `/data/ingest/info` | `Class responseType` | `@Nullable T` | +| `data().ingest().getInfo(...)` | `GET` | `/data/ingest/info` | `TypeReference responseType` | `@Nullable T` | +| `data().normalization().health(...)` | `GET` | `/data/normalization/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().normalization().health(...)` | `GET` | `/data/normalization/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().normalization().health(...)` | `GET` | `/data/normalization/health` | `Class responseType` | `@Nullable T` | +| `data().normalization().health(...)` | `GET` | `/data/normalization/health` | `TypeReference responseType` | `@Nullable T` | +| `data().normalization().getInfo(...)` | `GET` | `/data/normalization/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().normalization().getInfo(...)` | `GET` | `/data/normalization/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().normalization().getInfo(...)` | `GET` | `/data/normalization/info` | `Class responseType` | `@Nullable T` | +| `data().normalization().getInfo(...)` | `GET` | `/data/normalization/info` | `TypeReference responseType` | `@Nullable T` | +| `data().pipelines().health(...)` | `GET` | `/data/pipelines/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().pipelines().health(...)` | `GET` | `/data/pipelines/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().pipelines().health(...)` | `GET` | `/data/pipelines/health` | `Class responseType` | `@Nullable T` | +| `data().pipelines().health(...)` | `GET` | `/data/pipelines/health` | `TypeReference responseType` | `@Nullable T` | +| `data().pipelines().getInfo(...)` | `GET` | `/data/pipelines/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().pipelines().getInfo(...)` | `GET` | `/data/pipelines/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().pipelines().getInfo(...)` | `GET` | `/data/pipelines/info` | `Class responseType` | `@Nullable T` | +| `data().pipelines().getInfo(...)` | `GET` | `/data/pipelines/info` | `TypeReference responseType` | `@Nullable T` | +| `data().quality().health(...)` | `GET` | `/data/quality/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().quality().health(...)` | `GET` | `/data/quality/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().quality().health(...)` | `GET` | `/data/quality/health` | `Class responseType` | `@Nullable T` | +| `data().quality().health(...)` | `GET` | `/data/quality/health` | `TypeReference responseType` | `@Nullable T` | +| `data().quality().getInfo(...)` | `GET` | `/data/quality/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().quality().getInfo(...)` | `GET` | `/data/quality/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().quality().getInfo(...)` | `GET` | `/data/quality/info` | `Class responseType` | `@Nullable T` | +| `data().quality().getInfo(...)` | `GET` | `/data/quality/info` | `TypeReference responseType` | `@Nullable T` | +| `data().query().health(...)` | `GET` | `/data/query/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().query().health(...)` | `GET` | `/data/query/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().query().health(...)` | `GET` | `/data/query/health` | `Class responseType` | `@Nullable T` | +| `data().query().health(...)` | `GET` | `/data/query/health` | `TypeReference responseType` | `@Nullable T` | +| `data().query().getInfo(...)` | `GET` | `/data/query/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().query().getInfo(...)` | `GET` | `/data/query/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().query().getInfo(...)` | `GET` | `/data/query/info` | `Class responseType` | `@Nullable T` | +| `data().query().getInfo(...)` | `GET` | `/data/query/info` | `TypeReference responseType` | `@Nullable T` | +| `data().schemas().health(...)` | `GET` | `/data/schemas/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().schemas().health(...)` | `GET` | `/data/schemas/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().schemas().health(...)` | `GET` | `/data/schemas/health` | `Class responseType` | `@Nullable T` | +| `data().schemas().health(...)` | `GET` | `/data/schemas/health` | `TypeReference responseType` | `@Nullable T` | +| `data().schemas().getInfo(...)` | `GET` | `/data/schemas/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().schemas().getInfo(...)` | `GET` | `/data/schemas/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().schemas().getInfo(...)` | `GET` | `/data/schemas/info` | `Class responseType` | `@Nullable T` | +| `data().schemas().getInfo(...)` | `GET` | `/data/schemas/info` | `TypeReference responseType` | `@Nullable T` | +| `data().serving().health(...)` | `GET` | `/data/serving/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().serving().health(...)` | `GET` | `/data/serving/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().serving().health(...)` | `GET` | `/data/serving/health` | `Class responseType` | `@Nullable T` | +| `data().serving().health(...)` | `GET` | `/data/serving/health` | `TypeReference responseType` | `@Nullable T` | +| `data().serving().getInfo(...)` | `GET` | `/data/serving/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().serving().getInfo(...)` | `GET` | `/data/serving/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().serving().getInfo(...)` | `GET` | `/data/serving/info` | `Class responseType` | `@Nullable T` | +| `data().serving().getInfo(...)` | `GET` | `/data/serving/info` | `TypeReference responseType` | `@Nullable T` | +| `data().streams().health(...)` | `GET` | `/data/streams/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().streams().health(...)` | `GET` | `/data/streams/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().streams().health(...)` | `GET` | `/data/streams/health` | `Class responseType` | `@Nullable T` | +| `data().streams().health(...)` | `GET` | `/data/streams/health` | `TypeReference responseType` | `@Nullable T` | +| `data().streams().getInfo(...)` | `GET` | `/data/streams/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().streams().getInfo(...)` | `GET` | `/data/streams/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().streams().getInfo(...)` | `GET` | `/data/streams/info` | `Class responseType` | `@Nullable T` | +| `data().streams().getInfo(...)` | `GET` | `/data/streams/info` | `TypeReference responseType` | `@Nullable T` | +| `data().sync().health(...)` | `GET` | `/data/sync/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().sync().health(...)` | `GET` | `/data/sync/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().sync().health(...)` | `GET` | `/data/sync/health` | `Class responseType` | `@Nullable T` | +| `data().sync().health(...)` | `GET` | `/data/sync/health` | `TypeReference responseType` | `@Nullable T` | +| `data().sync().getInfo(...)` | `GET` | `/data/sync/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().sync().getInfo(...)` | `GET` | `/data/sync/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().sync().getInfo(...)` | `GET` | `/data/sync/info` | `Class responseType` | `@Nullable T` | +| `data().sync().getInfo(...)` | `GET` | `/data/sync/info` | `TypeReference responseType` | `@Nullable T` | +| `data().transformations().health(...)` | `GET` | `/data/transformations/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().transformations().health(...)` | `GET` | `/data/transformations/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().transformations().health(...)` | `GET` | `/data/transformations/health` | `Class responseType` | `@Nullable T` | +| `data().transformations().health(...)` | `GET` | `/data/transformations/health` | `TypeReference responseType` | `@Nullable T` | +| `data().transformations().getInfo(...)` | `GET` | `/data/transformations/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().transformations().getInfo(...)` | `GET` | `/data/transformations/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().transformations().getInfo(...)` | `GET` | `/data/transformations/info` | `Class responseType` | `@Nullable T` | +| `data().transformations().getInfo(...)` | `GET` | `/data/transformations/info` | `TypeReference responseType` | `@Nullable T` | +| `data().aggregations().aggregations().list(...)` | `GET` | `/data/aggregations/aggregations` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().aggregations().aggregations().list(...)` | `GET` | `/data/aggregations/aggregations` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().aggregations().aggregations().list(...)` | `GET` | `/data/aggregations/aggregations` | `Class responseType` | `@Nullable T` | +| `data().aggregations().aggregations().list(...)` | `GET` | `/data/aggregations/aggregations` | `TypeReference responseType` | `@Nullable T` | +| `data().aggregations().aggregations().get(...)` | `GET` | `/data/aggregations/aggregations/{param}` | `String aggregationId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().aggregations().aggregations().get(...)` | `GET` | `/data/aggregations/aggregations/{param}` | `String aggregationId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().aggregations().aggregations().get(...)` | `GET` | `/data/aggregations/aggregations/{param}` | `String aggregationId, Class responseType` | `@Nullable T` | +| `data().aggregations().aggregations().get(...)` | `GET` | `/data/aggregations/aggregations/{param}` | `String aggregationId, TypeReference responseType` | `@Nullable T` | +| `data().aggregations().aggregations().create(...)` | `POST` | `/data/aggregations/aggregations` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().aggregations().aggregations().create(...)` | `POST` | `/data/aggregations/aggregations` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().aggregations().aggregations().create(...)` | `POST` | `/data/aggregations/aggregations` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().aggregations().aggregations().create(...)` | `POST` | `/data/aggregations/aggregations` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().aggregations().capabilities().list(...)` | `GET` | `/data/aggregations/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().aggregations().capabilities().list(...)` | `GET` | `/data/aggregations/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().aggregations().capabilities().list(...)` | `GET` | `/data/aggregations/capabilities` | `Class responseType` | `@Nullable T` | +| `data().aggregations().capabilities().list(...)` | `GET` | `/data/aggregations/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `data().aggregations().runs().list(...)` | `GET` | `/data/aggregations/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().aggregations().runs().list(...)` | `GET` | `/data/aggregations/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().aggregations().runs().list(...)` | `GET` | `/data/aggregations/runs` | `Class responseType` | `@Nullable T` | +| `data().aggregations().runs().list(...)` | `GET` | `/data/aggregations/runs` | `TypeReference responseType` | `@Nullable T` | +| `data().aggregations().runs().get(...)` | `GET` | `/data/aggregations/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().aggregations().runs().get(...)` | `GET` | `/data/aggregations/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().aggregations().runs().get(...)` | `GET` | `/data/aggregations/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `data().aggregations().runs().get(...)` | `GET` | `/data/aggregations/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `data().aggregations().runs().create(...)` | `POST` | `/data/aggregations/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().aggregations().runs().create(...)` | `POST` | `/data/aggregations/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().aggregations().runs().create(...)` | `POST` | `/data/aggregations/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().aggregations().runs().create(...)` | `POST` | `/data/aggregations/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().archival().capabilities().list(...)` | `GET` | `/data/archival/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().archival().capabilities().list(...)` | `GET` | `/data/archival/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().archival().capabilities().list(...)` | `GET` | `/data/archival/capabilities` | `Class responseType` | `@Nullable T` | +| `data().archival().capabilities().list(...)` | `GET` | `/data/archival/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `data().archival().runs().list(...)` | `GET` | `/data/archival/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().archival().runs().list(...)` | `GET` | `/data/archival/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().archival().runs().list(...)` | `GET` | `/data/archival/runs` | `Class responseType` | `@Nullable T` | +| `data().archival().runs().list(...)` | `GET` | `/data/archival/runs` | `TypeReference responseType` | `@Nullable T` | +| `data().archival().runs().get(...)` | `GET` | `/data/archival/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().archival().runs().get(...)` | `GET` | `/data/archival/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().archival().runs().get(...)` | `GET` | `/data/archival/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `data().archival().runs().get(...)` | `GET` | `/data/archival/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `data().archival().runs().create(...)` | `POST` | `/data/archival/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().archival().runs().create(...)` | `POST` | `/data/archival/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().archival().runs().create(...)` | `POST` | `/data/archival/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().archival().runs().create(...)` | `POST` | `/data/archival/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().catalog().capabilities().list(...)` | `GET` | `/data/catalog/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().catalog().capabilities().list(...)` | `GET` | `/data/catalog/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().catalog().capabilities().list(...)` | `GET` | `/data/catalog/capabilities` | `Class responseType` | `@Nullable T` | +| `data().catalog().capabilities().list(...)` | `GET` | `/data/catalog/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `data().catalog().runs().list(...)` | `GET` | `/data/catalog/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().catalog().runs().list(...)` | `GET` | `/data/catalog/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().catalog().runs().list(...)` | `GET` | `/data/catalog/runs` | `Class responseType` | `@Nullable T` | +| `data().catalog().runs().list(...)` | `GET` | `/data/catalog/runs` | `TypeReference responseType` | `@Nullable T` | +| `data().catalog().runs().get(...)` | `GET` | `/data/catalog/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().catalog().runs().get(...)` | `GET` | `/data/catalog/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().catalog().runs().get(...)` | `GET` | `/data/catalog/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `data().catalog().runs().get(...)` | `GET` | `/data/catalog/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `data().catalog().runs().create(...)` | `POST` | `/data/catalog/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().catalog().runs().create(...)` | `POST` | `/data/catalog/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().catalog().runs().create(...)` | `POST` | `/data/catalog/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().catalog().runs().create(...)` | `POST` | `/data/catalog/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().enrichment().capabilities().list(...)` | `GET` | `/data/enrichment/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().enrichment().capabilities().list(...)` | `GET` | `/data/enrichment/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().enrichment().capabilities().list(...)` | `GET` | `/data/enrichment/capabilities` | `Class responseType` | `@Nullable T` | +| `data().enrichment().capabilities().list(...)` | `GET` | `/data/enrichment/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `data().enrichment().runs().list(...)` | `GET` | `/data/enrichment/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().enrichment().runs().list(...)` | `GET` | `/data/enrichment/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().enrichment().runs().list(...)` | `GET` | `/data/enrichment/runs` | `Class responseType` | `@Nullable T` | +| `data().enrichment().runs().list(...)` | `GET` | `/data/enrichment/runs` | `TypeReference responseType` | `@Nullable T` | +| `data().enrichment().runs().get(...)` | `GET` | `/data/enrichment/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().enrichment().runs().get(...)` | `GET` | `/data/enrichment/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().enrichment().runs().get(...)` | `GET` | `/data/enrichment/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `data().enrichment().runs().get(...)` | `GET` | `/data/enrichment/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `data().enrichment().runs().create(...)` | `POST` | `/data/enrichment/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().enrichment().runs().create(...)` | `POST` | `/data/enrichment/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().enrichment().runs().create(...)` | `POST` | `/data/enrichment/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().enrichment().runs().create(...)` | `POST` | `/data/enrichment/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().exports().capabilities().list(...)` | `GET` | `/data/exports/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().exports().capabilities().list(...)` | `GET` | `/data/exports/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().exports().capabilities().list(...)` | `GET` | `/data/exports/capabilities` | `Class responseType` | `@Nullable T` | +| `data().exports().capabilities().list(...)` | `GET` | `/data/exports/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `data().exports().exports().list(...)` | `GET` | `/data/exports/exports` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().exports().exports().list(...)` | `GET` | `/data/exports/exports` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().exports().exports().list(...)` | `GET` | `/data/exports/exports` | `Class responseType` | `@Nullable T` | +| `data().exports().exports().list(...)` | `GET` | `/data/exports/exports` | `TypeReference responseType` | `@Nullable T` | +| `data().exports().exports().get(...)` | `GET` | `/data/exports/exports/{param}` | `String exportId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().exports().exports().get(...)` | `GET` | `/data/exports/exports/{param}` | `String exportId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().exports().exports().get(...)` | `GET` | `/data/exports/exports/{param}` | `String exportId, Class responseType` | `@Nullable T` | +| `data().exports().exports().get(...)` | `GET` | `/data/exports/exports/{param}` | `String exportId, TypeReference responseType` | `@Nullable T` | +| `data().exports().exports().create(...)` | `POST` | `/data/exports/exports` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().exports().exports().create(...)` | `POST` | `/data/exports/exports` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().exports().exports().create(...)` | `POST` | `/data/exports/exports` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().exports().exports().create(...)` | `POST` | `/data/exports/exports` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().exports().runs().list(...)` | `GET` | `/data/exports/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().exports().runs().list(...)` | `GET` | `/data/exports/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().exports().runs().list(...)` | `GET` | `/data/exports/runs` | `Class responseType` | `@Nullable T` | +| `data().exports().runs().list(...)` | `GET` | `/data/exports/runs` | `TypeReference responseType` | `@Nullable T` | +| `data().exports().runs().get(...)` | `GET` | `/data/exports/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().exports().runs().get(...)` | `GET` | `/data/exports/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().exports().runs().get(...)` | `GET` | `/data/exports/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `data().exports().runs().get(...)` | `GET` | `/data/exports/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `data().exports().runs().create(...)` | `POST` | `/data/exports/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().exports().runs().create(...)` | `POST` | `/data/exports/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().exports().runs().create(...)` | `POST` | `/data/exports/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().exports().runs().create(...)` | `POST` | `/data/exports/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().ingest().capabilities().list(...)` | `GET` | `/data/ingest/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().ingest().capabilities().list(...)` | `GET` | `/data/ingest/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().ingest().capabilities().list(...)` | `GET` | `/data/ingest/capabilities` | `Class responseType` | `@Nullable T` | +| `data().ingest().capabilities().list(...)` | `GET` | `/data/ingest/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `data().ingest().datasets().list(...)` | `GET` | `/data/ingest/datasets` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().ingest().datasets().list(...)` | `GET` | `/data/ingest/datasets` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().ingest().datasets().list(...)` | `GET` | `/data/ingest/datasets` | `Class responseType` | `@Nullable T` | +| `data().ingest().datasets().list(...)` | `GET` | `/data/ingest/datasets` | `TypeReference responseType` | `@Nullable T` | +| `data().ingest().datasets().get(...)` | `GET` | `/data/ingest/datasets/{param}` | `String datasetId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().ingest().datasets().get(...)` | `GET` | `/data/ingest/datasets/{param}` | `String datasetId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().ingest().datasets().get(...)` | `GET` | `/data/ingest/datasets/{param}` | `String datasetId, Class responseType` | `@Nullable T` | +| `data().ingest().datasets().get(...)` | `GET` | `/data/ingest/datasets/{param}` | `String datasetId, TypeReference responseType` | `@Nullable T` | +| `data().ingest().datasets().ingest(...)` | `POST` | `/data/ingest/datasets/ingest` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().ingest().datasets().ingest(...)` | `POST` | `/data/ingest/datasets/ingest` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().ingest().datasets().ingest(...)` | `POST` | `/data/ingest/datasets/ingest` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().ingest().datasets().ingest(...)` | `POST` | `/data/ingest/datasets/ingest` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().ingest().runs().list(...)` | `GET` | `/data/ingest/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().ingest().runs().list(...)` | `GET` | `/data/ingest/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().ingest().runs().list(...)` | `GET` | `/data/ingest/runs` | `Class responseType` | `@Nullable T` | +| `data().ingest().runs().list(...)` | `GET` | `/data/ingest/runs` | `TypeReference responseType` | `@Nullable T` | +| `data().ingest().runs().get(...)` | `GET` | `/data/ingest/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().ingest().runs().get(...)` | `GET` | `/data/ingest/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().ingest().runs().get(...)` | `GET` | `/data/ingest/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `data().ingest().runs().get(...)` | `GET` | `/data/ingest/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `data().ingest().runs().create(...)` | `POST` | `/data/ingest/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().ingest().runs().create(...)` | `POST` | `/data/ingest/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().ingest().runs().create(...)` | `POST` | `/data/ingest/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().ingest().runs().create(...)` | `POST` | `/data/ingest/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().ingest().schemas().list(...)` | `GET` | `/data/ingest/schemas` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().ingest().schemas().list(...)` | `GET` | `/data/ingest/schemas` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().ingest().schemas().list(...)` | `GET` | `/data/ingest/schemas` | `Class responseType` | `@Nullable T` | +| `data().ingest().schemas().list(...)` | `GET` | `/data/ingest/schemas` | `TypeReference responseType` | `@Nullable T` | +| `data().ingest().schemas().get(...)` | `GET` | `/data/ingest/schemas/{param}` | `String schemaRef, QueryParams query, Class responseType` | `@Nullable T` | +| `data().ingest().schemas().get(...)` | `GET` | `/data/ingest/schemas/{param}` | `String schemaRef, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().ingest().schemas().get(...)` | `GET` | `/data/ingest/schemas/{param}` | `String schemaRef, Class responseType` | `@Nullable T` | +| `data().ingest().schemas().get(...)` | `GET` | `/data/ingest/schemas/{param}` | `String schemaRef, TypeReference responseType` | `@Nullable T` | +| `data().normalization().capabilities().list(...)` | `GET` | `/data/normalization/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().normalization().capabilities().list(...)` | `GET` | `/data/normalization/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().normalization().capabilities().list(...)` | `GET` | `/data/normalization/capabilities` | `Class responseType` | `@Nullable T` | +| `data().normalization().capabilities().list(...)` | `GET` | `/data/normalization/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `data().normalization().runs().list(...)` | `GET` | `/data/normalization/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().normalization().runs().list(...)` | `GET` | `/data/normalization/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().normalization().runs().list(...)` | `GET` | `/data/normalization/runs` | `Class responseType` | `@Nullable T` | +| `data().normalization().runs().list(...)` | `GET` | `/data/normalization/runs` | `TypeReference responseType` | `@Nullable T` | +| `data().normalization().runs().get(...)` | `GET` | `/data/normalization/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().normalization().runs().get(...)` | `GET` | `/data/normalization/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().normalization().runs().get(...)` | `GET` | `/data/normalization/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `data().normalization().runs().get(...)` | `GET` | `/data/normalization/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `data().normalization().runs().create(...)` | `POST` | `/data/normalization/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().normalization().runs().create(...)` | `POST` | `/data/normalization/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().normalization().runs().create(...)` | `POST` | `/data/normalization/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().normalization().runs().create(...)` | `POST` | `/data/normalization/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().pipelines().capabilities().list(...)` | `GET` | `/data/pipelines/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().pipelines().capabilities().list(...)` | `GET` | `/data/pipelines/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().pipelines().capabilities().list(...)` | `GET` | `/data/pipelines/capabilities` | `Class responseType` | `@Nullable T` | +| `data().pipelines().capabilities().list(...)` | `GET` | `/data/pipelines/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `data().pipelines().pipelineRuns().list(...)` | `GET` | `/data/pipelines/pipeline-runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().pipelines().pipelineRuns().list(...)` | `GET` | `/data/pipelines/pipeline-runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().pipelines().pipelineRuns().list(...)` | `GET` | `/data/pipelines/pipeline-runs` | `Class responseType` | `@Nullable T` | +| `data().pipelines().pipelineRuns().list(...)` | `GET` | `/data/pipelines/pipeline-runs` | `TypeReference responseType` | `@Nullable T` | +| `data().pipelines().pipelineRuns().get(...)` | `GET` | `/data/pipelines/pipeline-runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().pipelines().pipelineRuns().get(...)` | `GET` | `/data/pipelines/pipeline-runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().pipelines().pipelineRuns().get(...)` | `GET` | `/data/pipelines/pipeline-runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `data().pipelines().pipelineRuns().get(...)` | `GET` | `/data/pipelines/pipeline-runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `data().pipelines().pipelines().list(...)` | `GET` | `/data/pipelines/pipelines` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().pipelines().pipelines().list(...)` | `GET` | `/data/pipelines/pipelines` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().pipelines().pipelines().list(...)` | `GET` | `/data/pipelines/pipelines` | `Class responseType` | `@Nullable T` | +| `data().pipelines().pipelines().list(...)` | `GET` | `/data/pipelines/pipelines` | `TypeReference responseType` | `@Nullable T` | +| `data().pipelines().pipelines().get(...)` | `GET` | `/data/pipelines/pipelines/{param}` | `String definitionId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().pipelines().pipelines().get(...)` | `GET` | `/data/pipelines/pipelines/{param}` | `String definitionId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().pipelines().pipelines().get(...)` | `GET` | `/data/pipelines/pipelines/{param}` | `String definitionId, Class responseType` | `@Nullable T` | +| `data().pipelines().pipelines().get(...)` | `GET` | `/data/pipelines/pipelines/{param}` | `String definitionId, TypeReference responseType` | `@Nullable T` | +| `data().pipelines().pipelines().create(...)` | `POST` | `/data/pipelines/pipelines` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().pipelines().pipelines().create(...)` | `POST` | `/data/pipelines/pipelines` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().pipelines().pipelines().create(...)` | `POST` | `/data/pipelines/pipelines` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().pipelines().pipelines().create(...)` | `POST` | `/data/pipelines/pipelines` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().pipelines().runs().list(...)` | `GET` | `/data/pipelines/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().pipelines().runs().list(...)` | `GET` | `/data/pipelines/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().pipelines().runs().list(...)` | `GET` | `/data/pipelines/runs` | `Class responseType` | `@Nullable T` | +| `data().pipelines().runs().list(...)` | `GET` | `/data/pipelines/runs` | `TypeReference responseType` | `@Nullable T` | +| `data().pipelines().runs().get(...)` | `GET` | `/data/pipelines/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().pipelines().runs().get(...)` | `GET` | `/data/pipelines/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().pipelines().runs().get(...)` | `GET` | `/data/pipelines/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `data().pipelines().runs().get(...)` | `GET` | `/data/pipelines/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `data().pipelines().runs().create(...)` | `POST` | `/data/pipelines/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().pipelines().runs().create(...)` | `POST` | `/data/pipelines/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().pipelines().runs().create(...)` | `POST` | `/data/pipelines/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().pipelines().runs().create(...)` | `POST` | `/data/pipelines/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().quality().capabilities().list(...)` | `GET` | `/data/quality/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().quality().capabilities().list(...)` | `GET` | `/data/quality/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().quality().capabilities().list(...)` | `GET` | `/data/quality/capabilities` | `Class responseType` | `@Nullable T` | +| `data().quality().capabilities().list(...)` | `GET` | `/data/quality/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `data().quality().runs().list(...)` | `GET` | `/data/quality/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().quality().runs().list(...)` | `GET` | `/data/quality/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().quality().runs().list(...)` | `GET` | `/data/quality/runs` | `Class responseType` | `@Nullable T` | +| `data().quality().runs().list(...)` | `GET` | `/data/quality/runs` | `TypeReference responseType` | `@Nullable T` | +| `data().quality().runs().get(...)` | `GET` | `/data/quality/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().quality().runs().get(...)` | `GET` | `/data/quality/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().quality().runs().get(...)` | `GET` | `/data/quality/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `data().quality().runs().get(...)` | `GET` | `/data/quality/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `data().quality().runs().create(...)` | `POST` | `/data/quality/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().quality().runs().create(...)` | `POST` | `/data/quality/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().quality().runs().create(...)` | `POST` | `/data/quality/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().quality().runs().create(...)` | `POST` | `/data/quality/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().query().capabilities().list(...)` | `GET` | `/data/query/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().query().capabilities().list(...)` | `GET` | `/data/query/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().query().capabilities().list(...)` | `GET` | `/data/query/capabilities` | `Class responseType` | `@Nullable T` | +| `data().query().capabilities().list(...)` | `GET` | `/data/query/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `data().query().query().federated(...)` | `POST` | `/data/query/query/federated` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().query().query().federated(...)` | `POST` | `/data/query/query/federated` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().query().query().federated(...)` | `POST` | `/data/query/query/federated` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().query().query().federated(...)` | `POST` | `/data/query/query/federated` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().query().runs().list(...)` | `GET` | `/data/query/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().query().runs().list(...)` | `GET` | `/data/query/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().query().runs().list(...)` | `GET` | `/data/query/runs` | `Class responseType` | `@Nullable T` | +| `data().query().runs().list(...)` | `GET` | `/data/query/runs` | `TypeReference responseType` | `@Nullable T` | +| `data().query().runs().get(...)` | `GET` | `/data/query/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().query().runs().get(...)` | `GET` | `/data/query/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().query().runs().get(...)` | `GET` | `/data/query/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `data().query().runs().get(...)` | `GET` | `/data/query/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `data().query().runs().create(...)` | `POST` | `/data/query/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().query().runs().create(...)` | `POST` | `/data/query/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().query().runs().create(...)` | `POST` | `/data/query/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().query().runs().create(...)` | `POST` | `/data/query/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().schemas().capabilities().list(...)` | `GET` | `/data/schemas/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().schemas().capabilities().list(...)` | `GET` | `/data/schemas/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().schemas().capabilities().list(...)` | `GET` | `/data/schemas/capabilities` | `Class responseType` | `@Nullable T` | +| `data().schemas().capabilities().list(...)` | `GET` | `/data/schemas/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `data().schemas().runs().list(...)` | `GET` | `/data/schemas/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().schemas().runs().list(...)` | `GET` | `/data/schemas/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().schemas().runs().list(...)` | `GET` | `/data/schemas/runs` | `Class responseType` | `@Nullable T` | +| `data().schemas().runs().list(...)` | `GET` | `/data/schemas/runs` | `TypeReference responseType` | `@Nullable T` | +| `data().schemas().runs().get(...)` | `GET` | `/data/schemas/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().schemas().runs().get(...)` | `GET` | `/data/schemas/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().schemas().runs().get(...)` | `GET` | `/data/schemas/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `data().schemas().runs().get(...)` | `GET` | `/data/schemas/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `data().schemas().runs().create(...)` | `POST` | `/data/schemas/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().schemas().runs().create(...)` | `POST` | `/data/schemas/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().schemas().runs().create(...)` | `POST` | `/data/schemas/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().schemas().runs().create(...)` | `POST` | `/data/schemas/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().schemas().schemas().list(...)` | `GET` | `/data/schemas/schemas` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().schemas().schemas().list(...)` | `GET` | `/data/schemas/schemas` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().schemas().schemas().list(...)` | `GET` | `/data/schemas/schemas` | `Class responseType` | `@Nullable T` | +| `data().schemas().schemas().list(...)` | `GET` | `/data/schemas/schemas` | `TypeReference responseType` | `@Nullable T` | +| `data().schemas().schemas().get(...)` | `GET` | `/data/schemas/schemas/{param}` | `String schemaRef, QueryParams query, Class responseType` | `@Nullable T` | +| `data().schemas().schemas().get(...)` | `GET` | `/data/schemas/schemas/{param}` | `String schemaRef, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().schemas().schemas().get(...)` | `GET` | `/data/schemas/schemas/{param}` | `String schemaRef, Class responseType` | `@Nullable T` | +| `data().schemas().schemas().get(...)` | `GET` | `/data/schemas/schemas/{param}` | `String schemaRef, TypeReference responseType` | `@Nullable T` | +| `data().schemas().schemas().create(...)` | `POST` | `/data/schemas/schemas` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().schemas().schemas().create(...)` | `POST` | `/data/schemas/schemas` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().schemas().schemas().create(...)` | `POST` | `/data/schemas/schemas` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().schemas().schemas().create(...)` | `POST` | `/data/schemas/schemas` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().schemas().schemas().resolve(...)` | `POST` | `/data/schemas/schemas/resolve` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().schemas().schemas().resolve(...)` | `POST` | `/data/schemas/schemas/resolve` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().schemas().schemas().resolve(...)` | `POST` | `/data/schemas/schemas/resolve` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().schemas().schemas().resolve(...)` | `POST` | `/data/schemas/schemas/resolve` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().serving().capabilities().list(...)` | `GET` | `/data/serving/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().serving().capabilities().list(...)` | `GET` | `/data/serving/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().serving().capabilities().list(...)` | `GET` | `/data/serving/capabilities` | `Class responseType` | `@Nullable T` | +| `data().serving().capabilities().list(...)` | `GET` | `/data/serving/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `data().serving().runs().list(...)` | `GET` | `/data/serving/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().serving().runs().list(...)` | `GET` | `/data/serving/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().serving().runs().list(...)` | `GET` | `/data/serving/runs` | `Class responseType` | `@Nullable T` | +| `data().serving().runs().list(...)` | `GET` | `/data/serving/runs` | `TypeReference responseType` | `@Nullable T` | +| `data().serving().runs().get(...)` | `GET` | `/data/serving/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().serving().runs().get(...)` | `GET` | `/data/serving/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().serving().runs().get(...)` | `GET` | `/data/serving/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `data().serving().runs().get(...)` | `GET` | `/data/serving/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `data().serving().runs().create(...)` | `POST` | `/data/serving/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().serving().runs().create(...)` | `POST` | `/data/serving/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().serving().runs().create(...)` | `POST` | `/data/serving/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().serving().runs().create(...)` | `POST` | `/data/serving/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().streams().capabilities().list(...)` | `GET` | `/data/streams/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().streams().capabilities().list(...)` | `GET` | `/data/streams/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().streams().capabilities().list(...)` | `GET` | `/data/streams/capabilities` | `Class responseType` | `@Nullable T` | +| `data().streams().capabilities().list(...)` | `GET` | `/data/streams/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `data().streams().runs().list(...)` | `GET` | `/data/streams/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().streams().runs().list(...)` | `GET` | `/data/streams/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().streams().runs().list(...)` | `GET` | `/data/streams/runs` | `Class responseType` | `@Nullable T` | +| `data().streams().runs().list(...)` | `GET` | `/data/streams/runs` | `TypeReference responseType` | `@Nullable T` | +| `data().streams().runs().get(...)` | `GET` | `/data/streams/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().streams().runs().get(...)` | `GET` | `/data/streams/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().streams().runs().get(...)` | `GET` | `/data/streams/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `data().streams().runs().get(...)` | `GET` | `/data/streams/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `data().streams().runs().create(...)` | `POST` | `/data/streams/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().streams().runs().create(...)` | `POST` | `/data/streams/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().streams().runs().create(...)` | `POST` | `/data/streams/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().streams().runs().create(...)` | `POST` | `/data/streams/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().streams().streams().list(...)` | `GET` | `/data/streams/streams` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().streams().streams().list(...)` | `GET` | `/data/streams/streams` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().streams().streams().list(...)` | `GET` | `/data/streams/streams` | `Class responseType` | `@Nullable T` | +| `data().streams().streams().list(...)` | `GET` | `/data/streams/streams` | `TypeReference responseType` | `@Nullable T` | +| `data().streams().streams().get(...)` | `GET` | `/data/streams/streams/{param}` | `String streamId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().streams().streams().get(...)` | `GET` | `/data/streams/streams/{param}` | `String streamId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().streams().streams().get(...)` | `GET` | `/data/streams/streams/{param}` | `String streamId, Class responseType` | `@Nullable T` | +| `data().streams().streams().get(...)` | `GET` | `/data/streams/streams/{param}` | `String streamId, TypeReference responseType` | `@Nullable T` | +| `data().streams().streams().create(...)` | `POST` | `/data/streams/streams` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().streams().streams().create(...)` | `POST` | `/data/streams/streams` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().streams().streams().create(...)` | `POST` | `/data/streams/streams` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().streams().streams().create(...)` | `POST` | `/data/streams/streams` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().sync().capabilities().list(...)` | `GET` | `/data/sync/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().sync().capabilities().list(...)` | `GET` | `/data/sync/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().sync().capabilities().list(...)` | `GET` | `/data/sync/capabilities` | `Class responseType` | `@Nullable T` | +| `data().sync().capabilities().list(...)` | `GET` | `/data/sync/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `data().sync().runs().list(...)` | `GET` | `/data/sync/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().sync().runs().list(...)` | `GET` | `/data/sync/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().sync().runs().list(...)` | `GET` | `/data/sync/runs` | `Class responseType` | `@Nullable T` | +| `data().sync().runs().list(...)` | `GET` | `/data/sync/runs` | `TypeReference responseType` | `@Nullable T` | +| `data().sync().runs().get(...)` | `GET` | `/data/sync/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().sync().runs().get(...)` | `GET` | `/data/sync/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().sync().runs().get(...)` | `GET` | `/data/sync/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `data().sync().runs().get(...)` | `GET` | `/data/sync/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `data().sync().runs().create(...)` | `POST` | `/data/sync/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().sync().runs().create(...)` | `POST` | `/data/sync/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().sync().runs().create(...)` | `POST` | `/data/sync/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().sync().runs().create(...)` | `POST` | `/data/sync/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().transformations().capabilities().list(...)` | `GET` | `/data/transformations/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().transformations().capabilities().list(...)` | `GET` | `/data/transformations/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().transformations().capabilities().list(...)` | `GET` | `/data/transformations/capabilities` | `Class responseType` | `@Nullable T` | +| `data().transformations().capabilities().list(...)` | `GET` | `/data/transformations/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `data().transformations().runs().list(...)` | `GET` | `/data/transformations/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().transformations().runs().list(...)` | `GET` | `/data/transformations/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().transformations().runs().list(...)` | `GET` | `/data/transformations/runs` | `Class responseType` | `@Nullable T` | +| `data().transformations().runs().list(...)` | `GET` | `/data/transformations/runs` | `TypeReference responseType` | `@Nullable T` | +| `data().transformations().runs().get(...)` | `GET` | `/data/transformations/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().transformations().runs().get(...)` | `GET` | `/data/transformations/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().transformations().runs().get(...)` | `GET` | `/data/transformations/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `data().transformations().runs().get(...)` | `GET` | `/data/transformations/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `data().transformations().runs().create(...)` | `POST` | `/data/transformations/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().transformations().runs().create(...)` | `POST` | `/data/transformations/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().transformations().runs().create(...)` | `POST` | `/data/transformations/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().transformations().runs().create(...)` | `POST` | `/data/transformations/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().transformations().transformations().list(...)` | `GET` | `/data/transformations/transformations` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().transformations().transformations().list(...)` | `GET` | `/data/transformations/transformations` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().transformations().transformations().list(...)` | `GET` | `/data/transformations/transformations` | `Class responseType` | `@Nullable T` | +| `data().transformations().transformations().list(...)` | `GET` | `/data/transformations/transformations` | `TypeReference responseType` | `@Nullable T` | +| `data().transformations().transformations().get(...)` | `GET` | `/data/transformations/transformations/{param}` | `String transformationId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().transformations().transformations().get(...)` | `GET` | `/data/transformations/transformations/{param}` | `String transformationId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().transformations().transformations().get(...)` | `GET` | `/data/transformations/transformations/{param}` | `String transformationId, Class responseType` | `@Nullable T` | +| `data().transformations().transformations().get(...)` | `GET` | `/data/transformations/transformations/{param}` | `String transformationId, TypeReference responseType` | `@Nullable T` | +| `data().transformations().transformations().create(...)` | `POST` | `/data/transformations/transformations` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().transformations().transformations().create(...)` | `POST` | `/data/transformations/transformations` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().transformations().transformations().create(...)` | `POST` | `/data/transformations/transformations` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().transformations().transformations().create(...)` | `POST` | `/data/transformations/transformations` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().aggregations().aggregations().executions().create(...)` | `POST` | `/data/aggregations/aggregations/{param}/executions` | `String aggregationId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().aggregations().aggregations().executions().create(...)` | `POST` | `/data/aggregations/aggregations/{param}/executions` | `String aggregationId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().aggregations().aggregations().executions().create(...)` | `POST` | `/data/aggregations/aggregations/{param}/executions` | `String aggregationId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().aggregations().aggregations().executions().create(...)` | `POST` | `/data/aggregations/aggregations/{param}/executions` | `String aggregationId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().archival().archival().policies().list(...)` | `GET` | `/data/archival/archival/policies` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().archival().archival().policies().list(...)` | `GET` | `/data/archival/archival/policies` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().archival().archival().policies().list(...)` | `GET` | `/data/archival/archival/policies` | `Class responseType` | `@Nullable T` | +| `data().archival().archival().policies().list(...)` | `GET` | `/data/archival/archival/policies` | `TypeReference responseType` | `@Nullable T` | +| `data().archival().archival().policies().get(...)` | `GET` | `/data/archival/archival/policies/{param}` | `String policyId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().archival().archival().policies().get(...)` | `GET` | `/data/archival/archival/policies/{param}` | `String policyId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().archival().archival().policies().get(...)` | `GET` | `/data/archival/archival/policies/{param}` | `String policyId, Class responseType` | `@Nullable T` | +| `data().archival().archival().policies().get(...)` | `GET` | `/data/archival/archival/policies/{param}` | `String policyId, TypeReference responseType` | `@Nullable T` | +| `data().archival().archival().policies().create(...)` | `POST` | `/data/archival/archival/policies` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().archival().archival().policies().create(...)` | `POST` | `/data/archival/archival/policies` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().archival().archival().policies().create(...)` | `POST` | `/data/archival/archival/policies` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().archival().archival().policies().create(...)` | `POST` | `/data/archival/archival/policies` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().catalog().catalog().datasets().list(...)` | `GET` | `/data/catalog/catalog/datasets` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().catalog().catalog().datasets().list(...)` | `GET` | `/data/catalog/catalog/datasets` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().catalog().catalog().datasets().list(...)` | `GET` | `/data/catalog/catalog/datasets` | `Class responseType` | `@Nullable T` | +| `data().catalog().catalog().datasets().list(...)` | `GET` | `/data/catalog/catalog/datasets` | `TypeReference responseType` | `@Nullable T` | +| `data().catalog().catalog().datasets().get(...)` | `GET` | `/data/catalog/catalog/datasets/{param}` | `String datasetId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().catalog().catalog().datasets().get(...)` | `GET` | `/data/catalog/catalog/datasets/{param}` | `String datasetId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().catalog().catalog().datasets().get(...)` | `GET` | `/data/catalog/catalog/datasets/{param}` | `String datasetId, Class responseType` | `@Nullable T` | +| `data().catalog().catalog().datasets().get(...)` | `GET` | `/data/catalog/catalog/datasets/{param}` | `String datasetId, TypeReference responseType` | `@Nullable T` | +| `data().catalog().catalog().sources().list(...)` | `GET` | `/data/catalog/catalog/sources` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().catalog().catalog().sources().list(...)` | `GET` | `/data/catalog/catalog/sources` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().catalog().catalog().sources().list(...)` | `GET` | `/data/catalog/catalog/sources` | `Class responseType` | `@Nullable T` | +| `data().catalog().catalog().sources().list(...)` | `GET` | `/data/catalog/catalog/sources` | `TypeReference responseType` | `@Nullable T` | +| `data().catalog().catalog().sources().get(...)` | `GET` | `/data/catalog/catalog/sources/{param}` | `String sourceId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().catalog().catalog().sources().get(...)` | `GET` | `/data/catalog/catalog/sources/{param}` | `String sourceId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().catalog().catalog().sources().get(...)` | `GET` | `/data/catalog/catalog/sources/{param}` | `String sourceId, Class responseType` | `@Nullable T` | +| `data().catalog().catalog().sources().get(...)` | `GET` | `/data/catalog/catalog/sources/{param}` | `String sourceId, TypeReference responseType` | `@Nullable T` | +| `data().enrichment().enrichment().profiles().list(...)` | `GET` | `/data/enrichment/enrichment/profiles` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().enrichment().enrichment().profiles().list(...)` | `GET` | `/data/enrichment/enrichment/profiles` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().enrichment().enrichment().profiles().list(...)` | `GET` | `/data/enrichment/enrichment/profiles` | `Class responseType` | `@Nullable T` | +| `data().enrichment().enrichment().profiles().list(...)` | `GET` | `/data/enrichment/enrichment/profiles` | `TypeReference responseType` | `@Nullable T` | +| `data().enrichment().enrichment().profiles().get(...)` | `GET` | `/data/enrichment/enrichment/profiles/{param}` | `String profileId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().enrichment().enrichment().profiles().get(...)` | `GET` | `/data/enrichment/enrichment/profiles/{param}` | `String profileId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().enrichment().enrichment().profiles().get(...)` | `GET` | `/data/enrichment/enrichment/profiles/{param}` | `String profileId, Class responseType` | `@Nullable T` | +| `data().enrichment().enrichment().profiles().get(...)` | `GET` | `/data/enrichment/enrichment/profiles/{param}` | `String profileId, TypeReference responseType` | `@Nullable T` | +| `data().enrichment().enrichment().profiles().create(...)` | `POST` | `/data/enrichment/enrichment/profiles` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().enrichment().enrichment().profiles().create(...)` | `POST` | `/data/enrichment/enrichment/profiles` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().enrichment().enrichment().profiles().create(...)` | `POST` | `/data/enrichment/enrichment/profiles` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().enrichment().enrichment().profiles().create(...)` | `POST` | `/data/enrichment/enrichment/profiles` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().exports().exports().executions().create(...)` | `POST` | `/data/exports/exports/{param}/executions` | `String exportId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().exports().exports().executions().create(...)` | `POST` | `/data/exports/exports/{param}/executions` | `String exportId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().exports().exports().executions().create(...)` | `POST` | `/data/exports/exports/{param}/executions` | `String exportId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().exports().exports().executions().create(...)` | `POST` | `/data/exports/exports/{param}/executions` | `String exportId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().ingest().datasets().artifacts().getContent(...)` | `GET` | `/data/ingest/datasets/{param}/artifacts/{param}/content` | `String datasetId, String manifestId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().ingest().datasets().artifacts().getContent(...)` | `GET` | `/data/ingest/datasets/{param}/artifacts/{param}/content` | `String datasetId, String manifestId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().ingest().datasets().artifacts().getContent(...)` | `GET` | `/data/ingest/datasets/{param}/artifacts/{param}/content` | `String datasetId, String manifestId, Class responseType` | `@Nullable T` | +| `data().ingest().datasets().artifacts().getContent(...)` | `GET` | `/data/ingest/datasets/{param}/artifacts/{param}/content` | `String datasetId, String manifestId, TypeReference responseType` | `@Nullable T` | +| `data().normalization().normalization().profiles().list(...)` | `GET` | `/data/normalization/normalization/profiles` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().normalization().normalization().profiles().list(...)` | `GET` | `/data/normalization/normalization/profiles` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().normalization().normalization().profiles().list(...)` | `GET` | `/data/normalization/normalization/profiles` | `Class responseType` | `@Nullable T` | +| `data().normalization().normalization().profiles().list(...)` | `GET` | `/data/normalization/normalization/profiles` | `TypeReference responseType` | `@Nullable T` | +| `data().normalization().normalization().profiles().get(...)` | `GET` | `/data/normalization/normalization/profiles/{param}` | `String profileId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().normalization().normalization().profiles().get(...)` | `GET` | `/data/normalization/normalization/profiles/{param}` | `String profileId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().normalization().normalization().profiles().get(...)` | `GET` | `/data/normalization/normalization/profiles/{param}` | `String profileId, Class responseType` | `@Nullable T` | +| `data().normalization().normalization().profiles().get(...)` | `GET` | `/data/normalization/normalization/profiles/{param}` | `String profileId, TypeReference responseType` | `@Nullable T` | +| `data().normalization().normalization().profiles().create(...)` | `POST` | `/data/normalization/normalization/profiles` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().normalization().normalization().profiles().create(...)` | `POST` | `/data/normalization/normalization/profiles` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().normalization().normalization().profiles().create(...)` | `POST` | `/data/normalization/normalization/profiles` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().normalization().normalization().profiles().create(...)` | `POST` | `/data/normalization/normalization/profiles` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().quality().quality().rulesets().list(...)` | `GET` | `/data/quality/quality/rulesets` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().quality().quality().rulesets().list(...)` | `GET` | `/data/quality/quality/rulesets` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().quality().quality().rulesets().list(...)` | `GET` | `/data/quality/quality/rulesets` | `Class responseType` | `@Nullable T` | +| `data().quality().quality().rulesets().list(...)` | `GET` | `/data/quality/quality/rulesets` | `TypeReference responseType` | `@Nullable T` | +| `data().quality().quality().rulesets().get(...)` | `GET` | `/data/quality/quality/rulesets/{param}` | `String rulesetId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().quality().quality().rulesets().get(...)` | `GET` | `/data/quality/quality/rulesets/{param}` | `String rulesetId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().quality().quality().rulesets().get(...)` | `GET` | `/data/quality/quality/rulesets/{param}` | `String rulesetId, Class responseType` | `@Nullable T` | +| `data().quality().quality().rulesets().get(...)` | `GET` | `/data/quality/quality/rulesets/{param}` | `String rulesetId, TypeReference responseType` | `@Nullable T` | +| `data().quality().quality().rulesets().create(...)` | `POST` | `/data/quality/quality/rulesets` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().quality().quality().rulesets().create(...)` | `POST` | `/data/quality/quality/rulesets` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().quality().quality().rulesets().create(...)` | `POST` | `/data/quality/quality/rulesets` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().quality().quality().rulesets().create(...)` | `POST` | `/data/quality/quality/rulesets` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().serving().serving().products().list(...)` | `GET` | `/data/serving/serving/products` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().serving().serving().products().list(...)` | `GET` | `/data/serving/serving/products` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().serving().serving().products().list(...)` | `GET` | `/data/serving/serving/products` | `Class responseType` | `@Nullable T` | +| `data().serving().serving().products().list(...)` | `GET` | `/data/serving/serving/products` | `TypeReference responseType` | `@Nullable T` | +| `data().serving().serving().products().get(...)` | `GET` | `/data/serving/serving/products/{param}` | `String productId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().serving().serving().products().get(...)` | `GET` | `/data/serving/serving/products/{param}` | `String productId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().serving().serving().products().get(...)` | `GET` | `/data/serving/serving/products/{param}` | `String productId, Class responseType` | `@Nullable T` | +| `data().serving().serving().products().get(...)` | `GET` | `/data/serving/serving/products/{param}` | `String productId, TypeReference responseType` | `@Nullable T` | +| `data().serving().serving().products().create(...)` | `POST` | `/data/serving/serving/products` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().serving().serving().products().create(...)` | `POST` | `/data/serving/serving/products` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().serving().serving().products().create(...)` | `POST` | `/data/serving/serving/products` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().serving().serving().products().create(...)` | `POST` | `/data/serving/serving/products` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().streams().streams().deliveries().create(...)` | `POST` | `/data/streams/streams/{param}/deliveries` | `String streamId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().streams().streams().deliveries().create(...)` | `POST` | `/data/streams/streams/{param}/deliveries` | `String streamId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().streams().streams().deliveries().create(...)` | `POST` | `/data/streams/streams/{param}/deliveries` | `String streamId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().streams().streams().deliveries().create(...)` | `POST` | `/data/streams/streams/{param}/deliveries` | `String streamId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().sync().sync().jobs().list(...)` | `GET` | `/data/sync/sync/jobs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `data().sync().sync().jobs().list(...)` | `GET` | `/data/sync/sync/jobs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().sync().sync().jobs().list(...)` | `GET` | `/data/sync/sync/jobs` | `Class responseType` | `@Nullable T` | +| `data().sync().sync().jobs().list(...)` | `GET` | `/data/sync/sync/jobs` | `TypeReference responseType` | `@Nullable T` | +| `data().sync().sync().jobs().get(...)` | `GET` | `/data/sync/sync/jobs/{param}` | `String jobId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().sync().sync().jobs().get(...)` | `GET` | `/data/sync/sync/jobs/{param}` | `String jobId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().sync().sync().jobs().get(...)` | `GET` | `/data/sync/sync/jobs/{param}` | `String jobId, Class responseType` | `@Nullable T` | +| `data().sync().sync().jobs().get(...)` | `GET` | `/data/sync/sync/jobs/{param}` | `String jobId, TypeReference responseType` | `@Nullable T` | +| `data().sync().sync().jobs().create(...)` | `POST` | `/data/sync/sync/jobs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().sync().sync().jobs().create(...)` | `POST` | `/data/sync/sync/jobs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().sync().sync().jobs().create(...)` | `POST` | `/data/sync/sync/jobs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().sync().sync().jobs().create(...)` | `POST` | `/data/sync/sync/jobs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().transformations().transformations().executions().create(...)` | `POST` | `/data/transformations/transformations/{param}/executions` | `String transformationId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().transformations().transformations().executions().create(...)` | `POST` | `/data/transformations/transformations/{param}/executions` | `String transformationId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().transformations().transformations().executions().create(...)` | `POST` | `/data/transformations/transformations/{param}/executions` | `String transformationId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().transformations().transformations().executions().create(...)` | `POST` | `/data/transformations/transformations/{param}/executions` | `String transformationId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().archival().archival().policies().executions().create(...)` | `POST` | `/data/archival/archival/policies/{param}/executions` | `String policyId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().archival().archival().policies().executions().create(...)` | `POST` | `/data/archival/archival/policies/{param}/executions` | `String policyId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().archival().archival().policies().executions().create(...)` | `POST` | `/data/archival/archival/policies/{param}/executions` | `String policyId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().archival().archival().policies().executions().create(...)` | `POST` | `/data/archival/archival/policies/{param}/executions` | `String policyId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().catalog().catalog().datasets().artifacts().getContent(...)` | `GET` | `/data/catalog/catalog/datasets/{param}/artifacts/{param}/content` | `String datasetId, String manifestId, QueryParams query, Class responseType` | `@Nullable T` | +| `data().catalog().catalog().datasets().artifacts().getContent(...)` | `GET` | `/data/catalog/catalog/datasets/{param}/artifacts/{param}/content` | `String datasetId, String manifestId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `data().catalog().catalog().datasets().artifacts().getContent(...)` | `GET` | `/data/catalog/catalog/datasets/{param}/artifacts/{param}/content` | `String datasetId, String manifestId, Class responseType` | `@Nullable T` | +| `data().catalog().catalog().datasets().artifacts().getContent(...)` | `GET` | `/data/catalog/catalog/datasets/{param}/artifacts/{param}/content` | `String datasetId, String manifestId, TypeReference responseType` | `@Nullable T` | +| `data().enrichment().enrichment().profiles().executions().create(...)` | `POST` | `/data/enrichment/enrichment/profiles/{param}/executions` | `String profileId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().enrichment().enrichment().profiles().executions().create(...)` | `POST` | `/data/enrichment/enrichment/profiles/{param}/executions` | `String profileId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().enrichment().enrichment().profiles().executions().create(...)` | `POST` | `/data/enrichment/enrichment/profiles/{param}/executions` | `String profileId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().enrichment().enrichment().profiles().executions().create(...)` | `POST` | `/data/enrichment/enrichment/profiles/{param}/executions` | `String profileId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().normalization().normalization().profiles().executions().create(...)` | `POST` | `/data/normalization/normalization/profiles/{param}/executions` | `String profileId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().normalization().normalization().profiles().executions().create(...)` | `POST` | `/data/normalization/normalization/profiles/{param}/executions` | `String profileId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().normalization().normalization().profiles().executions().create(...)` | `POST` | `/data/normalization/normalization/profiles/{param}/executions` | `String profileId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().normalization().normalization().profiles().executions().create(...)` | `POST` | `/data/normalization/normalization/profiles/{param}/executions` | `String profileId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().quality().quality().rulesets().evaluations().create(...)` | `POST` | `/data/quality/quality/rulesets/{param}/evaluations` | `String rulesetId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().quality().quality().rulesets().evaluations().create(...)` | `POST` | `/data/quality/quality/rulesets/{param}/evaluations` | `String rulesetId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().quality().quality().rulesets().evaluations().create(...)` | `POST` | `/data/quality/quality/rulesets/{param}/evaluations` | `String rulesetId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().quality().quality().rulesets().evaluations().create(...)` | `POST` | `/data/quality/quality/rulesets/{param}/evaluations` | `String rulesetId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().serving().serving().products().refreshes().create(...)` | `POST` | `/data/serving/serving/products/{param}/refreshes` | `String productId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().serving().serving().products().refreshes().create(...)` | `POST` | `/data/serving/serving/products/{param}/refreshes` | `String productId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().serving().serving().products().refreshes().create(...)` | `POST` | `/data/serving/serving/products/{param}/refreshes` | `String productId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().serving().serving().products().refreshes().create(...)` | `POST` | `/data/serving/serving/products/{param}/refreshes` | `String productId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().sync().sync().jobs().executions().create(...)` | `POST` | `/data/sync/sync/jobs/{param}/executions` | `String jobId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().sync().sync().jobs().executions().create(...)` | `POST` | `/data/sync/sync/jobs/{param}/executions` | `String jobId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `data().sync().sync().jobs().executions().create(...)` | `POST` | `/data/sync/sync/jobs/{param}/executions` | `String jobId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `data().sync().sync().jobs().executions().create(...)` | `POST` | `/data/sync/sync/jobs/{param}/executions` | `String jobId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | + +The generic `request(...)` methods and `Endpoints` constants remain available. diff --git a/docs/api/events.md b/docs/api/events.md new file mode 100644 index 0000000..70a8aa0 --- /dev/null +++ b/docs/api/events.md @@ -0,0 +1,78 @@ +# Events API + +Service accessor: `frontal.events()` (`EventsClient`). + +Operations are grouped by resource path. Collection methods use `list` and `create`; item methods use `get`, `update`, and `delete`. Calls can omit `QueryParams` when no query values are needed. Use contract-defined `JsonNode` bodies and caller-selected response types where schemas are not available. + +| Method | HTTP | Route | Parameters | Response | +| --- | --- | --- | --- | --- | +| `events().list(...)` | `GET` | `/events` | `QueryParams query, Class responseType` | `@Nullable T` | +| `events().list(...)` | `GET` | `/events` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `events().list(...)` | `GET` | `/events` | `Class responseType` | `@Nullable T` | +| `events().list(...)` | `GET` | `/events` | `TypeReference responseType` | `@Nullable T` | +| `events().getMonitoring(...)` | `GET` | `/events/monitoring` | `QueryParams query, Class responseType` | `@Nullable T` | +| `events().getMonitoring(...)` | `GET` | `/events/monitoring` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `events().getMonitoring(...)` | `GET` | `/events/monitoring` | `Class responseType` | `@Nullable T` | +| `events().getMonitoring(...)` | `GET` | `/events/monitoring` | `TypeReference responseType` | `@Nullable T` | +| `events().get(...)` | `GET` | `/events/{param}` | `String id, QueryParams query, Class responseType` | `@Nullable T` | +| `events().get(...)` | `GET` | `/events/{param}` | `String id, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `events().get(...)` | `GET` | `/events/{param}` | `String id, Class responseType` | `@Nullable T` | +| `events().get(...)` | `GET` | `/events/{param}` | `String id, TypeReference responseType` | `@Nullable T` | +| `events().create(...)` | `POST` | `/events` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().create(...)` | `POST` | `/events` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().create(...)` | `POST` | `/events` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().create(...)` | `POST` | `/events` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().analytics(...)` | `POST` | `/events/analytics` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().analytics(...)` | `POST` | `/events/analytics` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().analytics(...)` | `POST` | `/events/analytics` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().analytics(...)` | `POST` | `/events/analytics` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().createAnalyticsV2(...)` | `POST` | `/events/analytics-v2` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().createAnalyticsV2(...)` | `POST` | `/events/analytics-v2` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().createAnalyticsV2(...)` | `POST` | `/events/analytics-v2` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().createAnalyticsV2(...)` | `POST` | `/events/analytics-v2` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().bulk(...)` | `POST` | `/events/bulk` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().bulk(...)` | `POST` | `/events/bulk` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().bulk(...)` | `POST` | `/events/bulk` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().bulk(...)` | `POST` | `/events/bulk` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().createHuggingfaceBilling(...)` | `POST` | `/events/huggingface-billing` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().createHuggingfaceBilling(...)` | `POST` | `/events/huggingface-billing` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().createHuggingfaceBilling(...)` | `POST` | `/events/huggingface-billing` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().createHuggingfaceBilling(...)` | `POST` | `/events/huggingface-billing` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().query(...)` | `POST` | `/events/query` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().query(...)` | `POST` | `/events/query` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().query(...)` | `POST` | `/events/query` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().query(...)` | `POST` | `/events/query` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().reprocess(...)` | `POST` | `/events/reprocess` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().reprocess(...)` | `POST` | `/events/reprocess` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().reprocess(...)` | `POST` | `/events/reprocess` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().reprocess(...)` | `POST` | `/events/reprocess` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().usage(...)` | `POST` | `/events/usage` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().usage(...)` | `POST` | `/events/usage` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().usage(...)` | `POST` | `/events/usage` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().usage(...)` | `POST` | `/events/usage` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().benchmark().createV1(...)` | `POST` | `/events/benchmark/v1` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().benchmark().createV1(...)` | `POST` | `/events/benchmark/v1` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().benchmark().createV1(...)` | `POST` | `/events/benchmark/v1` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().benchmark().createV1(...)` | `POST` | `/events/benchmark/v1` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().benchmark().createV2(...)` | `POST` | `/events/benchmark/v2` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().benchmark().createV2(...)` | `POST` | `/events/benchmark/v2` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().benchmark().createV2(...)` | `POST` | `/events/benchmark/v2` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().benchmark().createV2(...)` | `POST` | `/events/benchmark/v2` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().reprocess().createInternal(...)` | `POST` | `/events/reprocess/internal` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().reprocess().createInternal(...)` | `POST` | `/events/reprocess/internal` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().reprocess().createInternal(...)` | `POST` | `/events/reprocess/internal` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().reprocess().createInternal(...)` | `POST` | `/events/reprocess/internal` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().usage().createMeter(...)` | `POST` | `/events/usage/meter` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().usage().createMeter(...)` | `POST` | `/events/usage/meter` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().usage().createMeter(...)` | `POST` | `/events/usage/meter` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().usage().createMeter(...)` | `POST` | `/events/usage/meter` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().raw().reprocess().createAll(...)` | `POST` | `/events/raw/reprocess/all` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().raw().reprocess().createAll(...)` | `POST` | `/events/raw/reprocess/all` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().raw().reprocess().createAll(...)` | `POST` | `/events/raw/reprocess/all` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().raw().reprocess().createAll(...)` | `POST` | `/events/raw/reprocess/all` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().raw().reprocess().createPending(...)` | `POST` | `/events/raw/reprocess/pending` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().raw().reprocess().createPending(...)` | `POST` | `/events/raw/reprocess/pending` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `events().raw().reprocess().createPending(...)` | `POST` | `/events/raw/reprocess/pending` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `events().raw().reprocess().createPending(...)` | `POST` | `/events/raw/reprocess/pending` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | + +The generic `request(...)` methods and `Endpoints` constants remain available. diff --git a/docs/api/governance.md b/docs/api/governance.md new file mode 100644 index 0000000..c312085 --- /dev/null +++ b/docs/api/governance.md @@ -0,0 +1,106 @@ +# Governance API + +Service accessor: `frontal.governance()` (`GovernanceClient`). + +Operations are grouped by resource path. Collection methods use `list` and `create`; item methods use `get`, `update`, and `delete`. Calls can omit `QueryParams` when no query values are needed. Use contract-defined `JsonNode` bodies and caller-selected response types where schemas are not available. + +| Method | HTTP | Route | Parameters | Response | +| --- | --- | --- | --- | --- | +| `governance().access().check(...)` | `POST` | `/access/check` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `governance().access().check(...)` | `POST` | `/access/check` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `governance().access().check(...)` | `POST` | `/access/check` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `governance().access().check(...)` | `POST` | `/access/check` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `governance().compliance().getScore(...)` | `GET` | `/compliance/score` | `QueryParams query, Class responseType` | `@Nullable T` | +| `governance().compliance().getScore(...)` | `GET` | `/compliance/score` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `governance().compliance().getScore(...)` | `GET` | `/compliance/score` | `Class responseType` | `@Nullable T` | +| `governance().compliance().getScore(...)` | `GET` | `/compliance/score` | `TypeReference responseType` | `@Nullable T` | +| `governance().permissions().list(...)` | `GET` | `/permissions` | `QueryParams query, Class responseType` | `@Nullable T` | +| `governance().permissions().list(...)` | `GET` | `/permissions` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `governance().permissions().list(...)` | `GET` | `/permissions` | `Class responseType` | `@Nullable T` | +| `governance().permissions().list(...)` | `GET` | `/permissions` | `TypeReference responseType` | `@Nullable T` | +| `governance().permissions().get(...)` | `GET` | `/permissions/{param}` | `String permissionId, QueryParams query, Class responseType` | `@Nullable T` | +| `governance().permissions().get(...)` | `GET` | `/permissions/{param}` | `String permissionId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `governance().permissions().get(...)` | `GET` | `/permissions/{param}` | `String permissionId, Class responseType` | `@Nullable T` | +| `governance().permissions().get(...)` | `GET` | `/permissions/{param}` | `String permissionId, TypeReference responseType` | `@Nullable T` | +| `governance().permissions().create(...)` | `POST` | `/permissions` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `governance().permissions().create(...)` | `POST` | `/permissions` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `governance().permissions().create(...)` | `POST` | `/permissions` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `governance().permissions().create(...)` | `POST` | `/permissions` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `governance().policies().delete(...)` | `DELETE` | `/policies/{param}` | `String policyId, QueryParams query, Class responseType` | `@Nullable T` | +| `governance().policies().delete(...)` | `DELETE` | `/policies/{param}` | `String policyId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `governance().policies().delete(...)` | `DELETE` | `/policies/{param}` | `String policyId, Class responseType` | `@Nullable T` | +| `governance().policies().delete(...)` | `DELETE` | `/policies/{param}` | `String policyId, TypeReference responseType` | `@Nullable T` | +| `governance().policies().list(...)` | `GET` | `/policies` | `QueryParams query, Class responseType` | `@Nullable T` | +| `governance().policies().list(...)` | `GET` | `/policies` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `governance().policies().list(...)` | `GET` | `/policies` | `Class responseType` | `@Nullable T` | +| `governance().policies().list(...)` | `GET` | `/policies` | `TypeReference responseType` | `@Nullable T` | +| `governance().policies().get(...)` | `GET` | `/policies/{param}` | `String policyId, QueryParams query, Class responseType` | `@Nullable T` | +| `governance().policies().get(...)` | `GET` | `/policies/{param}` | `String policyId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `governance().policies().get(...)` | `GET` | `/policies/{param}` | `String policyId, Class responseType` | `@Nullable T` | +| `governance().policies().get(...)` | `GET` | `/policies/{param}` | `String policyId, TypeReference responseType` | `@Nullable T` | +| `governance().policies().create(...)` | `POST` | `/policies` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `governance().policies().create(...)` | `POST` | `/policies` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `governance().policies().create(...)` | `POST` | `/policies` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `governance().policies().create(...)` | `POST` | `/policies` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `governance().policies().createFromTemplate(...)` | `POST` | `/policies/from-template` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `governance().policies().createFromTemplate(...)` | `POST` | `/policies/from-template` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `governance().policies().createFromTemplate(...)` | `POST` | `/policies/from-template` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `governance().policies().createFromTemplate(...)` | `POST` | `/policies/from-template` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `governance().policies().validate(...)` | `POST` | `/policies/validate` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `governance().policies().validate(...)` | `POST` | `/policies/validate` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `governance().policies().validate(...)` | `POST` | `/policies/validate` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `governance().policies().validate(...)` | `POST` | `/policies/validate` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `governance().policies().update(...)` | `PUT` | `/policies/{param}` | `String policyId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `governance().policies().update(...)` | `PUT` | `/policies/{param}` | `String policyId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `governance().policies().update(...)` | `PUT` | `/policies/{param}` | `String policyId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `governance().policies().update(...)` | `PUT` | `/policies/{param}` | `String policyId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `governance().roles().delete(...)` | `DELETE` | `/roles/{param}` | `String roleId, QueryParams query, Class responseType` | `@Nullable T` | +| `governance().roles().delete(...)` | `DELETE` | `/roles/{param}` | `String roleId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `governance().roles().delete(...)` | `DELETE` | `/roles/{param}` | `String roleId, Class responseType` | `@Nullable T` | +| `governance().roles().delete(...)` | `DELETE` | `/roles/{param}` | `String roleId, TypeReference responseType` | `@Nullable T` | +| `governance().roles().list(...)` | `GET` | `/roles` | `QueryParams query, Class responseType` | `@Nullable T` | +| `governance().roles().list(...)` | `GET` | `/roles` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `governance().roles().list(...)` | `GET` | `/roles` | `Class responseType` | `@Nullable T` | +| `governance().roles().list(...)` | `GET` | `/roles` | `TypeReference responseType` | `@Nullable T` | +| `governance().roles().get(...)` | `GET` | `/roles/{param}` | `String roleId, QueryParams query, Class responseType` | `@Nullable T` | +| `governance().roles().get(...)` | `GET` | `/roles/{param}` | `String roleId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `governance().roles().get(...)` | `GET` | `/roles/{param}` | `String roleId, Class responseType` | `@Nullable T` | +| `governance().roles().get(...)` | `GET` | `/roles/{param}` | `String roleId, TypeReference responseType` | `@Nullable T` | +| `governance().roles().create(...)` | `POST` | `/roles` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `governance().roles().create(...)` | `POST` | `/roles` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `governance().roles().create(...)` | `POST` | `/roles` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `governance().roles().create(...)` | `POST` | `/roles` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `governance().compliance().assessments().list(...)` | `GET` | `/compliance/assessments` | `QueryParams query, Class responseType` | `@Nullable T` | +| `governance().compliance().assessments().list(...)` | `GET` | `/compliance/assessments` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `governance().compliance().assessments().list(...)` | `GET` | `/compliance/assessments` | `Class responseType` | `@Nullable T` | +| `governance().compliance().assessments().list(...)` | `GET` | `/compliance/assessments` | `TypeReference responseType` | `@Nullable T` | +| `governance().compliance().assessments().get(...)` | `GET` | `/compliance/assessments/{param}` | `String assessmentId, QueryParams query, Class responseType` | `@Nullable T` | +| `governance().compliance().assessments().get(...)` | `GET` | `/compliance/assessments/{param}` | `String assessmentId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `governance().compliance().assessments().get(...)` | `GET` | `/compliance/assessments/{param}` | `String assessmentId, Class responseType` | `@Nullable T` | +| `governance().compliance().assessments().get(...)` | `GET` | `/compliance/assessments/{param}` | `String assessmentId, TypeReference responseType` | `@Nullable T` | +| `governance().compliance().assessments().create(...)` | `POST` | `/compliance/assessments` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `governance().compliance().assessments().create(...)` | `POST` | `/compliance/assessments` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `governance().compliance().assessments().create(...)` | `POST` | `/compliance/assessments` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `governance().compliance().assessments().create(...)` | `POST` | `/compliance/assessments` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `governance().compliance().frameworks().list(...)` | `GET` | `/compliance/frameworks` | `QueryParams query, Class responseType` | `@Nullable T` | +| `governance().compliance().frameworks().list(...)` | `GET` | `/compliance/frameworks` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `governance().compliance().frameworks().list(...)` | `GET` | `/compliance/frameworks` | `Class responseType` | `@Nullable T` | +| `governance().compliance().frameworks().list(...)` | `GET` | `/compliance/frameworks` | `TypeReference responseType` | `@Nullable T` | +| `governance().compliance().violations().list(...)` | `GET` | `/compliance/violations` | `QueryParams query, Class responseType` | `@Nullable T` | +| `governance().compliance().violations().list(...)` | `GET` | `/compliance/violations` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `governance().compliance().violations().list(...)` | `GET` | `/compliance/violations` | `Class responseType` | `@Nullable T` | +| `governance().compliance().violations().list(...)` | `GET` | `/compliance/violations` | `TypeReference responseType` | `@Nullable T` | +| `governance().compliance().violations().resolve(...)` | `POST` | `/compliance/violations/{param}/resolve` | `String violationId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `governance().compliance().violations().resolve(...)` | `POST` | `/compliance/violations/{param}/resolve` | `String violationId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `governance().compliance().violations().resolve(...)` | `POST` | `/compliance/violations/{param}/resolve` | `String violationId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `governance().compliance().violations().resolve(...)` | `POST` | `/compliance/violations/{param}/resolve` | `String violationId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `governance().policies().templates().list(...)` | `GET` | `/policies/templates` | `QueryParams query, Class responseType` | `@Nullable T` | +| `governance().policies().templates().list(...)` | `GET` | `/policies/templates` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `governance().policies().templates().list(...)` | `GET` | `/policies/templates` | `Class responseType` | `@Nullable T` | +| `governance().policies().templates().list(...)` | `GET` | `/policies/templates` | `TypeReference responseType` | `@Nullable T` | +| `governance().policies().versions().list(...)` | `GET` | `/policies/{param}/versions` | `String policyId, QueryParams query, Class responseType` | `@Nullable T` | +| `governance().policies().versions().list(...)` | `GET` | `/policies/{param}/versions` | `String policyId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `governance().policies().versions().list(...)` | `GET` | `/policies/{param}/versions` | `String policyId, Class responseType` | `@Nullable T` | +| `governance().policies().versions().list(...)` | `GET` | `/policies/{param}/versions` | `String policyId, TypeReference responseType` | `@Nullable T` | + +The generic `request(...)` methods and `Endpoints` constants remain available. diff --git a/docs/api/invocations.md b/docs/api/invocations.md new file mode 100644 index 0000000..05b04b0 --- /dev/null +++ b/docs/api/invocations.md @@ -0,0 +1,14 @@ +# Invocations API + +Service accessor: `frontal.invocations()` (`InvocationsClient`). + +Operations are grouped by resource path. Collection methods use `list` and `create`; item methods use `get`, `update`, and `delete`. Calls can omit `QueryParams` when no query values are needed. Use contract-defined `JsonNode` bodies and caller-selected response types where schemas are not available. + +| Method | HTTP | Route | Parameters | Response | +| --- | --- | --- | --- | --- | +| `invocations().create(...)` | `POST` | `/invocations` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `invocations().create(...)` | `POST` | `/invocations` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `invocations().create(...)` | `POST` | `/invocations` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `invocations().create(...)` | `POST` | `/invocations` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | + +The generic `request(...)` methods and `Endpoints` constants remain available. diff --git a/docs/api/lineage.md b/docs/api/lineage.md new file mode 100644 index 0000000..b1a38e2 --- /dev/null +++ b/docs/api/lineage.md @@ -0,0 +1,38 @@ +# Lineage API + +Service accessor: `frontal.lineage()` (`LineageClient`). + +Operations are grouped by resource path. Collection methods use `list` and `create`; item methods use `get`, `update`, and `delete`. Calls can omit `QueryParams` when no query values are needed. Use contract-defined `JsonNode` bodies and caller-selected response types where schemas are not available. + +| Method | HTTP | Route | Parameters | Response | +| --- | --- | --- | --- | --- | +| `lineage().getGraph(...)` | `GET` | `/lineage/graph` | `QueryParams query, Class responseType` | `@Nullable T` | +| `lineage().getGraph(...)` | `GET` | `/lineage/graph` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `lineage().getGraph(...)` | `GET` | `/lineage/graph` | `Class responseType` | `@Nullable T` | +| `lineage().getGraph(...)` | `GET` | `/lineage/graph` | `TypeReference responseType` | `@Nullable T` | +| `lineage().createImpact(...)` | `POST` | `/lineage/impact` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `lineage().createImpact(...)` | `POST` | `/lineage/impact` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `lineage().createImpact(...)` | `POST` | `/lineage/impact` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `lineage().createImpact(...)` | `POST` | `/lineage/impact` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `lineage().edges().list(...)` | `GET` | `/lineage/edges` | `QueryParams query, Class responseType` | `@Nullable T` | +| `lineage().edges().list(...)` | `GET` | `/lineage/edges` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `lineage().edges().list(...)` | `GET` | `/lineage/edges` | `Class responseType` | `@Nullable T` | +| `lineage().edges().list(...)` | `GET` | `/lineage/edges` | `TypeReference responseType` | `@Nullable T` | +| `lineage().edges().get(...)` | `GET` | `/lineage/edges/{param}` | `String edgeId, QueryParams query, Class responseType` | `@Nullable T` | +| `lineage().edges().get(...)` | `GET` | `/lineage/edges/{param}` | `String edgeId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `lineage().edges().get(...)` | `GET` | `/lineage/edges/{param}` | `String edgeId, Class responseType` | `@Nullable T` | +| `lineage().edges().get(...)` | `GET` | `/lineage/edges/{param}` | `String edgeId, TypeReference responseType` | `@Nullable T` | +| `lineage().nodes().list(...)` | `GET` | `/lineage/nodes` | `QueryParams query, Class responseType` | `@Nullable T` | +| `lineage().nodes().list(...)` | `GET` | `/lineage/nodes` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `lineage().nodes().list(...)` | `GET` | `/lineage/nodes` | `Class responseType` | `@Nullable T` | +| `lineage().nodes().list(...)` | `GET` | `/lineage/nodes` | `TypeReference responseType` | `@Nullable T` | +| `lineage().nodes().get(...)` | `GET` | `/lineage/nodes/{param}` | `String nodeId, QueryParams query, Class responseType` | `@Nullable T` | +| `lineage().nodes().get(...)` | `GET` | `/lineage/nodes/{param}` | `String nodeId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `lineage().nodes().get(...)` | `GET` | `/lineage/nodes/{param}` | `String nodeId, Class responseType` | `@Nullable T` | +| `lineage().nodes().get(...)` | `GET` | `/lineage/nodes/{param}` | `String nodeId, TypeReference responseType` | `@Nullable T` | +| `lineage().nodes().getTrace(...)` | `GET` | `/lineage/nodes/{param}/trace` | `String nodeId, QueryParams query, Class responseType` | `@Nullable T` | +| `lineage().nodes().getTrace(...)` | `GET` | `/lineage/nodes/{param}/trace` | `String nodeId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `lineage().nodes().getTrace(...)` | `GET` | `/lineage/nodes/{param}/trace` | `String nodeId, Class responseType` | `@Nullable T` | +| `lineage().nodes().getTrace(...)` | `GET` | `/lineage/nodes/{param}/trace` | `String nodeId, TypeReference responseType` | `@Nullable T` | + +The generic `request(...)` methods and `Endpoints` constants remain available. diff --git a/docs/api/methods-as-code.md b/docs/api/methods-as-code.md new file mode 100644 index 0000000..28c2f55 --- /dev/null +++ b/docs/api/methods-as-code.md @@ -0,0 +1,732 @@ +# Canonical Java calls + +Generated from the contract route catalog. Query parameters are optional; use `QueryParams` when required by the endpoint. + +## agents + +```java +client.agents().delete(agentId, responseType); +client.agents().list(responseType); +client.agents().health(responseType); +client.agents().get(agentId, responseType); +client.agents().create(body, responseType); +client.agents().rollback(agentId, body, responseType); +client.agents().update(agentId, body, responseType); +client.agents().runs().getByActionRunId(actionRunId, responseType); +client.agents().runs().get(runId, responseType); +client.agents().runs().conversation(runId, responseType); +client.agents().runs().list(agentId, responseType); +client.agents().runs().create(agentId, body, responseType); +client.agents().runs().stream(runId); +client.agents().runs().streamBlocking(runId); +client.agents().versions().list(agentId, responseType); +``` + +## ai + +```java +client.ai().health(responseType); +client.ai().internal().embed(body, responseType); +client.ai().internal().predict(body, responseType); +client.ai().internal().rerank(body, responseType); +client.ai().internal().predictForm(fields, files, responseType); +client.ai().internal().predictRaw(body, responseType); +client.ai().chat().completions().create(body, responseType); +client.ai().internal().models().list(responseType); +client.ai().internal().models().defaults(responseType); +``` + +## audit + +```java +client.audit().events().list(responseType); +client.audit().events().get(eventId, responseType); +client.audit().events().create(body, responseType); +client.audit().events().batch(body, responseType); +``` + +## auth + +```java +client.auth().getUser(responseType); +client.auth().createAuthorize(body, responseType); +client.auth().createInvite(body, responseType); +client.auth().login(body, responseType); +client.auth().logout(body, responseType); +client.auth().createOtp(body, responseType); +client.auth().createReauthenticate(body, responseType); +client.auth().createRecover(body, responseType); +client.auth().createResend(body, responseType); +client.auth().createSignup(body, responseType); +client.auth().createSso(body, responseType); +client.auth().createTokenGrantTypeIdToken(body, responseType); +client.auth().createTokenGrantTypePassword(body, responseType); +client.auth().createTokenGrantTypePkce(body, responseType); +client.auth().createTokenGrantTypeRefreshToken(body, responseType); +client.auth().verify(body, responseType); +client.auth().updateUser(body, responseType); +client.auth().account().deleteProfile(responseType); +client.auth().account().getAuditLog(responseType); +client.auth().account().getMfa(responseType); +client.auth().account().getProfile(responseType); +client.auth().account().createMfa(body, responseType); +client.auth().account().createPassword(body, responseType); +client.auth().account().updateProfile(body, responseType); +client.auth().admin().createGenerateLink(body, responseType); +client.auth().admin().logout(body, responseType); +client.auth().auth().getSession(responseType); +client.auth().auth().createSession(body, responseType); +client.auth().factors().delete(factorId, responseType); +client.auth().factors().list(responseType); +client.auth().factors().create(body, responseType); +client.auth().factors().createChallenge(factorId, body, responseType); +client.auth().factors().verify(factorId, body, responseType); +client.auth().mfa().status(responseType); +client.auth().mfa().disable(body, responseType); +client.auth().mfa().enable(body, responseType); +client.auth().mfa().setup(body, responseType); +client.auth().mfa().verify(body, responseType); +client.auth().account().mfa().delete(mfaId, responseType); +client.auth().account().mfa().get(mfaId, responseType); +client.auth().account().mfa().createChallenge(mfaId, body, responseType); +client.auth().account().mfa().verify(mfaId, body, responseType); +client.auth().account().sessions().delete(sessionId, responseType); +client.auth().account().sessions().list(responseType); +client.auth().account().sessions().extend(sessionId, body, responseType); +client.auth().admin().users().delete(userId, responseType); +client.auth().admin().users().list(responseType); +client.auth().admin().users().get(userId, responseType); +client.auth().admin().users().create(body, responseType); +client.auth().admin().users().update(userId, body, responseType); +client.auth().mfa().backupCodes().createRegenerate(body, responseType); +client.auth().user().identities().delete(identityId, responseType); +client.auth().user().identities().list(responseType); +client.auth().user().identities().create(body, responseType); +client.auth().account().security().apiKeys().delete(apiKeyId, responseType); +client.auth().account().security().apiKeys().list(responseType); +client.auth().account().security().apiKeys().get(apiKeyId, responseType); +client.auth().account().security().apiKeys().create(body, responseType); +client.auth().account().security().apiKeys().update(apiKeyId, body, responseType); +client.auth().account().security().devices().delete(deviceId, responseType); +client.auth().account().security().devices().list(responseType); +client.auth().account().security().devices().get(deviceId, responseType); +client.auth().account().security().devices().create(body, responseType); +client.auth().account().security().devices().trust(deviceId, body, responseType); +client.auth().admin().users().factors().delete(userId, factorId, responseType); +client.auth().admin().users().factors().list(userId, responseType); +``` + +## billing + +```java +client.billing().customers().usage(customerId, responseType); +client.billing().invoices().getPdf(invoiceId, responseType); +client.billing().invoices().preview(body, responseType); +client.billing().invoices().finalize(invoiceId, body, responseType); +client.billing().invoices().resourceVoid(invoiceId, body, responseType); +client.billing().meters().disable(meterId, body, responseType); +client.billing().plans().clone(planId, body, responseType); +client.billing().subscriptions().activate(subscriptionId, body, responseType); +client.billing().subscriptions().cancel(subscriptionId, body, responseType); +client.billing().subscriptions().pause(subscriptionId, body, responseType); +client.billing().subscriptions().resume(subscriptionId, body, responseType); +client.billing().wallets().createTerminate(walletId, body, responseType); +client.billing().wallets().topUp(walletId, body, responseType); +client.billing().addons().entitlements().list(addonId, responseType); +client.billing().customers().entitlements().list(customerId, responseType); +client.billing().customers().invoices().summary(customerId, responseType); +client.billing().customers().portal().get(portalId, responseType); +client.billing().customers().wallets().list(customerId, responseType); +client.billing().plans().entitlements().list(planId, responseType); +client.billing().prices().lookup().get(lookupId, responseType); +client.billing().subscriptions().entitlements().list(subscriptionId, responseType); +client.billing().wallets().balance().getRealTime(walletId, responseType); +client.billing().wallets().transactions().list(walletId, responseType); +``` + +## blob + +```java +client.blob().object().delete(objectId, objectId2, responseType); +client.blob().object().get(objectId, objectId2, responseType); +client.blob().object().copy(body, responseType); +client.blob().object().move(body, responseType); +client.blob().object().get2(objectId, objectId2, fields, files, responseType); +client.blob().object().info().get(infoId, infoId2, responseType); +client.blob().object().list().get(listId, body, responseType); +client.blob().object().sign().get(signId, signId2, body, responseType); +``` + +## connection-tests + +```java +client.connectionTests().get(connectionTestId, responseType); +``` + +## connectors + +```java +client.connectors().getCatalog(responseType); +client.connectors().catalog().get(catalogId, responseType); +client.connectors().connectionTests().get(connectionTestId, responseType); +client.connectors().diagnostics().list(responseType); +client.connectors().installations().delete(installationId, responseType); +client.connectors().installations().list(responseType); +client.connectors().installations().get(installationId, responseType); +client.connectors().installations().update(installationId, body, responseType); +client.connectors().installations().create(body, responseType); +client.connectors().installations().pause(installationId, body, responseType); +client.connectors().installations().resume(installationId, body, responseType); +client.connectors().syncRuns().replay(syncRunId, body, responseType); +``` + +## data + +```java +client.data().aggregations().health(responseType); +client.data().aggregations().getInfo(responseType); +client.data().archival().health(responseType); +client.data().archival().getInfo(responseType); +client.data().catalog().health(responseType); +client.data().catalog().getInfo(responseType); +client.data().enrichment().health(responseType); +client.data().enrichment().getInfo(responseType); +client.data().exports().health(responseType); +client.data().exports().getInfo(responseType); +client.data().ingest().health(responseType); +client.data().ingest().getInfo(responseType); +client.data().normalization().health(responseType); +client.data().normalization().getInfo(responseType); +client.data().pipelines().health(responseType); +client.data().pipelines().getInfo(responseType); +client.data().quality().health(responseType); +client.data().quality().getInfo(responseType); +client.data().query().health(responseType); +client.data().query().getInfo(responseType); +client.data().schemas().health(responseType); +client.data().schemas().getInfo(responseType); +client.data().serving().health(responseType); +client.data().serving().getInfo(responseType); +client.data().streams().health(responseType); +client.data().streams().getInfo(responseType); +client.data().sync().health(responseType); +client.data().sync().getInfo(responseType); +client.data().transformations().health(responseType); +client.data().transformations().getInfo(responseType); +client.data().aggregations().aggregations().list(responseType); +client.data().aggregations().aggregations().get(aggregationId, responseType); +client.data().aggregations().aggregations().create(body, responseType); +client.data().aggregations().capabilities().list(responseType); +client.data().aggregations().runs().list(responseType); +client.data().aggregations().runs().get(runId, responseType); +client.data().aggregations().runs().create(body, responseType); +client.data().archival().capabilities().list(responseType); +client.data().archival().runs().list(responseType); +client.data().archival().runs().get(runId, responseType); +client.data().archival().runs().create(body, responseType); +client.data().catalog().capabilities().list(responseType); +client.data().catalog().runs().list(responseType); +client.data().catalog().runs().get(runId, responseType); +client.data().catalog().runs().create(body, responseType); +client.data().enrichment().capabilities().list(responseType); +client.data().enrichment().runs().list(responseType); +client.data().enrichment().runs().get(runId, responseType); +client.data().enrichment().runs().create(body, responseType); +client.data().exports().capabilities().list(responseType); +client.data().exports().exports().list(responseType); +client.data().exports().exports().get(exportId, responseType); +client.data().exports().exports().create(body, responseType); +client.data().exports().runs().list(responseType); +client.data().exports().runs().get(runId, responseType); +client.data().exports().runs().create(body, responseType); +client.data().ingest().capabilities().list(responseType); +client.data().ingest().datasets().list(responseType); +client.data().ingest().datasets().get(datasetId, responseType); +client.data().ingest().datasets().ingest(body, responseType); +client.data().ingest().runs().list(responseType); +client.data().ingest().runs().get(runId, responseType); +client.data().ingest().runs().create(body, responseType); +client.data().ingest().schemas().list(responseType); +client.data().ingest().schemas().get(schemaRef, responseType); +client.data().normalization().capabilities().list(responseType); +client.data().normalization().runs().list(responseType); +client.data().normalization().runs().get(runId, responseType); +client.data().normalization().runs().create(body, responseType); +client.data().pipelines().capabilities().list(responseType); +client.data().pipelines().pipelineRuns().list(responseType); +client.data().pipelines().pipelineRuns().get(runId, responseType); +client.data().pipelines().pipelines().list(responseType); +client.data().pipelines().pipelines().get(definitionId, responseType); +client.data().pipelines().pipelines().create(body, responseType); +client.data().pipelines().runs().list(responseType); +client.data().pipelines().runs().get(runId, responseType); +client.data().pipelines().runs().create(body, responseType); +client.data().quality().capabilities().list(responseType); +client.data().quality().runs().list(responseType); +client.data().quality().runs().get(runId, responseType); +client.data().quality().runs().create(body, responseType); +client.data().query().capabilities().list(responseType); +client.data().query().query().federated(body, responseType); +client.data().query().runs().list(responseType); +client.data().query().runs().get(runId, responseType); +client.data().query().runs().create(body, responseType); +client.data().schemas().capabilities().list(responseType); +client.data().schemas().runs().list(responseType); +client.data().schemas().runs().get(runId, responseType); +client.data().schemas().runs().create(body, responseType); +client.data().schemas().schemas().list(responseType); +client.data().schemas().schemas().get(schemaRef, responseType); +client.data().schemas().schemas().create(body, responseType); +client.data().schemas().schemas().resolve(body, responseType); +client.data().serving().capabilities().list(responseType); +client.data().serving().runs().list(responseType); +client.data().serving().runs().get(runId, responseType); +client.data().serving().runs().create(body, responseType); +client.data().streams().capabilities().list(responseType); +client.data().streams().runs().list(responseType); +client.data().streams().runs().get(runId, responseType); +client.data().streams().runs().create(body, responseType); +client.data().streams().streams().list(responseType); +client.data().streams().streams().get(streamId, responseType); +client.data().streams().streams().create(body, responseType); +client.data().sync().capabilities().list(responseType); +client.data().sync().runs().list(responseType); +client.data().sync().runs().get(runId, responseType); +client.data().sync().runs().create(body, responseType); +client.data().transformations().capabilities().list(responseType); +client.data().transformations().runs().list(responseType); +client.data().transformations().runs().get(runId, responseType); +client.data().transformations().runs().create(body, responseType); +client.data().transformations().transformations().list(responseType); +client.data().transformations().transformations().get(transformationId, responseType); +client.data().transformations().transformations().create(body, responseType); +client.data().aggregations().aggregations().executions().create(aggregationId, body, responseType); +client.data().archival().archival().policies().list(responseType); +client.data().archival().archival().policies().get(policyId, responseType); +client.data().archival().archival().policies().create(body, responseType); +client.data().catalog().catalog().datasets().list(responseType); +client.data().catalog().catalog().datasets().get(datasetId, responseType); +client.data().catalog().catalog().sources().list(responseType); +client.data().catalog().catalog().sources().get(sourceId, responseType); +client.data().enrichment().enrichment().profiles().list(responseType); +client.data().enrichment().enrichment().profiles().get(profileId, responseType); +client.data().enrichment().enrichment().profiles().create(body, responseType); +client.data().exports().exports().executions().create(exportId, body, responseType); +client.data().ingest().datasets().artifacts().getContent(datasetId, manifestId, responseType); +client.data().normalization().normalization().profiles().list(responseType); +client.data().normalization().normalization().profiles().get(profileId, responseType); +client.data().normalization().normalization().profiles().create(body, responseType); +client.data().quality().quality().rulesets().list(responseType); +client.data().quality().quality().rulesets().get(rulesetId, responseType); +client.data().quality().quality().rulesets().create(body, responseType); +client.data().serving().serving().products().list(responseType); +client.data().serving().serving().products().get(productId, responseType); +client.data().serving().serving().products().create(body, responseType); +client.data().streams().streams().deliveries().create(streamId, body, responseType); +client.data().sync().sync().jobs().list(responseType); +client.data().sync().sync().jobs().get(jobId, responseType); +client.data().sync().sync().jobs().create(body, responseType); +client.data().transformations().transformations().executions().create(transformationId, body, responseType); +client.data().archival().archival().policies().executions().create(policyId, body, responseType); +client.data().catalog().catalog().datasets().artifacts().getContent(datasetId, manifestId, responseType); +client.data().enrichment().enrichment().profiles().executions().create(profileId, body, responseType); +client.data().normalization().normalization().profiles().executions().create(profileId, body, responseType); +client.data().quality().quality().rulesets().evaluations().create(rulesetId, body, responseType); +client.data().serving().serving().products().refreshes().create(productId, body, responseType); +client.data().sync().sync().jobs().executions().create(jobId, body, responseType); +``` + +## events + +```java +client.events().list(responseType); +client.events().getMonitoring(responseType); +client.events().get(id, responseType); +client.events().create(body, responseType); +client.events().analytics(body, responseType); +client.events().createAnalyticsV2(body, responseType); +client.events().bulk(body, responseType); +client.events().createHuggingfaceBilling(body, responseType); +client.events().query(body, responseType); +client.events().reprocess(body, responseType); +client.events().usage(body, responseType); +client.events().benchmark().createV1(body, responseType); +client.events().benchmark().createV2(body, responseType); +client.events().reprocess().createInternal(body, responseType); +client.events().usage().createMeter(body, responseType); +client.events().raw().reprocess().createAll(body, responseType); +client.events().raw().reprocess().createPending(body, responseType); +``` + +## governance + +```java +client.governance().access().check(body, responseType); +client.governance().compliance().getScore(responseType); +client.governance().permissions().list(responseType); +client.governance().permissions().get(permissionId, responseType); +client.governance().permissions().create(body, responseType); +client.governance().policies().delete(policyId, responseType); +client.governance().policies().list(responseType); +client.governance().policies().get(policyId, responseType); +client.governance().policies().create(body, responseType); +client.governance().policies().createFromTemplate(body, responseType); +client.governance().policies().validate(body, responseType); +client.governance().policies().update(policyId, body, responseType); +client.governance().roles().delete(roleId, responseType); +client.governance().roles().list(responseType); +client.governance().roles().get(roleId, responseType); +client.governance().roles().create(body, responseType); +client.governance().compliance().assessments().list(responseType); +client.governance().compliance().assessments().get(assessmentId, responseType); +client.governance().compliance().assessments().create(body, responseType); +client.governance().compliance().frameworks().list(responseType); +client.governance().compliance().violations().list(responseType); +client.governance().compliance().violations().resolve(violationId, body, responseType); +client.governance().policies().templates().list(responseType); +client.governance().policies().versions().list(policyId, responseType); +``` + +## invocations + +```java +client.invocations().create(body, responseType); +``` + +## lineage + +```java +client.lineage().getGraph(responseType); +client.lineage().createImpact(body, responseType); +client.lineage().edges().list(responseType); +client.lineage().edges().get(edgeId, responseType); +client.lineage().nodes().list(responseType); +client.lineage().nodes().get(nodeId, responseType); +client.lineage().nodes().getTrace(nodeId, responseType); +``` + +## observability + +```java +client.observability().alerts().delete(alertId, responseType); +client.observability().alerts().list(responseType); +client.observability().alerts().create(body, responseType); +client.observability().alerts().disable(alertId, body, responseType); +client.observability().alerts().enable(alertId, body, responseType); +client.observability().alerts().update(alertId, body, responseType); +client.observability().dashboards().delete(dashboardId, responseType); +client.observability().dashboards().list(responseType); +client.observability().dashboards().get(dashboardId, responseType); +client.observability().dashboards().create(body, responseType); +client.observability().dashboards().share(dashboardId, body, responseType); +client.observability().dashboards().update(dashboardId, body, responseType); +client.observability().events().create(body, responseType); +client.observability().events().batch(body, responseType); +client.observability().logs().ingest(body, responseType); +client.observability().logs().query(body, responseType); +client.observability().logs().stream(); +client.observability().logs().streamBlocking(); +client.observability().metrics().list(responseType); +client.observability().metrics().getList(responseType); +client.observability().metrics().ingest(body, responseType); +client.observability().traces().list(responseType); +client.observability().traces().get(traceId, responseType); +client.observability().traces().query(body, responseType); +client.observability().alerts().incidents().list(responseType); +client.observability().alerts().rules().delete(ruleId, responseType); +client.observability().alerts().rules().list(responseType); +client.observability().alerts().rules().get(ruleId, responseType); +client.observability().alerts().rules().create(body, responseType); +client.observability().alerts().rules().toggle(ruleId, body, responseType); +client.observability().alerts().rules().update(ruleId, body, responseType); +client.observability().events().stats().list(responseType); +``` + +## ontology + +```java +client.ontology().engine().health(responseType); +client.ontology().engine().getInfo(responseType); +client.ontology().events().health(responseType); +client.ontology().events().getInfo(responseType); +client.ontology().extract().health(responseType); +client.ontology().extract().getInfo(responseType); +client.ontology().graph().health(responseType); +client.ontology().graph().getInfo(responseType); +client.ontology().objects().health(responseType); +client.ontology().objects().getInfo(responseType); +client.ontology().reasoning().health(responseType); +client.ontology().reasoning().getInfo(responseType); +client.ontology().reasoning().createExplain(body, responseType); +client.ontology().relationships().health(responseType); +client.ontology().relationships().getInfo(responseType); +client.ontology().rollouts().health(responseType); +client.ontology().rollouts().getInfo(responseType); +client.ontology().rollups().health(responseType); +client.ontology().rollups().getInfo(responseType); +client.ontology().schemas().health(responseType); +client.ontology().schemas().getInfo(responseType); +client.ontology().transformations().health(responseType); +client.ontology().transformations().getInfo(responseType); +client.ontology().validation().health(responseType); +client.ontology().validation().getInfo(responseType); +client.ontology().versions().health(responseType); +client.ontology().versions().getInfo(responseType); +client.ontology().engine().capabilities().list(responseType); +client.ontology().engine().ontologies().export(body, responseType); +client.ontology().engine().ontologies().createExportShacl(body, responseType); +client.ontology().engine().ontologies().generate(body, responseType); +client.ontology().engine().ontologies().validate(body, responseType); +client.ontology().engine().runs().list(responseType); +client.ontology().engine().runs().get(runId, responseType); +client.ontology().engine().runs().create(body, responseType); +client.ontology().events().capabilities().list(responseType); +client.ontology().events().events().list(responseType); +client.ontology().events().events().get(eventId, responseType); +client.ontology().events().events().create(body, responseType); +client.ontology().events().runs().list(responseType); +client.ontology().events().runs().get(runId, responseType); +client.ontology().events().runs().create(body, responseType); +client.ontology().extract().capabilities().list(responseType); +client.ontology().extract().extract().analyze(body, responseType); +client.ontology().extract().extract().createArchitecture(body, responseType); +client.ontology().extract().runs().list(responseType); +client.ontology().extract().runs().get(runId, responseType); +client.ontology().extract().runs().create(body, responseType); +client.ontology().graph().capabilities().list(responseType); +client.ontology().graph().entities().get(entityId, responseType); +client.ontology().graph().entities().getProvenance(entityId, responseType); +client.ontology().graph().entities().update(entityId, body, responseType); +client.ontology().graph().graph().analyze(body, responseType); +client.ontology().graph().graph().createBuild(body, responseType); +client.ontology().graph().graph().createBulkRead(body, responseType); +client.ontology().graph().graph().createNeighborhood(body, responseType); +client.ontology().graph().graph().createPath(body, responseType); +client.ontology().graph().graph().query(body, responseType); +client.ontology().graph().relationships().get(relationshipId, responseType); +client.ontology().graph().relationships().update(relationshipId, body, responseType); +client.ontology().graph().runs().list(responseType); +client.ontology().graph().runs().get(runId, responseType); +client.ontology().graph().runs().create(body, responseType); +client.ontology().objects().capabilities().list(responseType); +client.ontology().objects().objectTypes().delete(objectTypeId, responseType); +client.ontology().objects().objectTypes().list(responseType); +client.ontology().objects().objectTypes().get(objectTypeId, responseType); +client.ontology().objects().objectTypes().update(objectTypeId, body, responseType); +client.ontology().objects().objects().delete(objectId, responseType); +client.ontology().objects().objects().list(responseType); +client.ontology().objects().objects().get(objectId, responseType); +client.ontology().objects().objects().update(objectId, body, responseType); +client.ontology().objects().runs().list(responseType); +client.ontology().objects().runs().get(runId, responseType); +client.ontology().objects().runs().create(body, responseType); +client.ontology().reasoning().capabilities().list(responseType); +client.ontology().reasoning().facts().create(body, responseType); +client.ontology().reasoning().facts().createLoadGraph(body, responseType); +client.ontology().reasoning().reason().createBackward(body, responseType); +client.ontology().reasoning().reason().createForward(body, responseType); +client.ontology().reasoning().rules().delete(ruleId, responseType); +client.ontology().reasoning().rules().list(responseType); +client.ontology().reasoning().rules().create(body, responseType); +client.ontology().reasoning().rules().update(ruleId, body, responseType); +client.ontology().reasoning().runs().list(responseType); +client.ontology().reasoning().runs().get(runId, responseType); +client.ontology().reasoning().runs().create(body, responseType); +client.ontology().relationships().capabilities().list(responseType); +client.ontology().relationships().relationshipTypes().delete(relationshipTypeId, responseType); +client.ontology().relationships().relationshipTypes().list(responseType); +client.ontology().relationships().relationships().delete(relationshipId, responseType); +client.ontology().relationships().relationships().list(responseType); +client.ontology().relationships().relationships().get(relationshipId, responseType); +client.ontology().relationships().relationships().update(relationshipId, body, responseType); +client.ontology().relationships().runs().list(responseType); +client.ontology().relationships().runs().get(runId, responseType); +client.ontology().relationships().runs().create(body, responseType); +client.ontology().rollouts().capabilities().list(responseType); +client.ontology().rollouts().rollouts().delete(rolloutId, responseType); +client.ontology().rollouts().rollouts().list(responseType); +client.ontology().rollouts().rollouts().get(rolloutId, responseType); +client.ontology().rollouts().rollouts().status(rolloutId, responseType); +client.ontology().rollouts().rollouts().create(body, responseType); +client.ontology().rollouts().rollouts().pause(rolloutId, body, responseType); +client.ontology().rollouts().rollouts().resume(rolloutId, body, responseType); +client.ontology().rollouts().rollouts().rollback(rolloutId, body, responseType); +client.ontology().rollouts().rollouts().createStart(rolloutId, body, responseType); +client.ontology().rollouts().rollouts().update(rolloutId, body, responseType); +client.ontology().rollouts().runs().list(responseType); +client.ontology().rollouts().runs().get(runId, responseType); +client.ontology().rollouts().runs().create(body, responseType); +client.ontology().rollups().capabilities().list(responseType); +client.ontology().rollups().rollupResults().get(executionId, responseType); +client.ontology().rollups().rollups().delete(rollupId, responseType); +client.ontology().rollups().rollups().list(responseType); +client.ontology().rollups().rollups().get(rollupId, responseType); +client.ontology().rollups().rollups().getResult(rollupId, responseType); +client.ontology().rollups().rollups().create(body, responseType); +client.ontology().rollups().rollups().execute(rollupId, body, responseType); +client.ontology().rollups().rollups().preview(rollupId, body, responseType); +client.ontology().rollups().rollups().update(rollupId, body, responseType); +client.ontology().rollups().runs().list(responseType); +client.ontology().rollups().runs().get(runId, responseType); +client.ontology().rollups().runs().create(body, responseType); +client.ontology().schemas().capabilities().list(responseType); +client.ontology().schemas().runs().list(responseType); +client.ontology().schemas().runs().get(runId, responseType); +client.ontology().schemas().runs().create(body, responseType); +client.ontology().schemas().schemas().delete(schemaId, responseType); +client.ontology().schemas().schemas().list(responseType); +client.ontology().schemas().schemas().get(schemaId, responseType); +client.ontology().schemas().schemas().create(body, responseType); +client.ontology().schemas().schemas().validate(body, responseType); +client.ontology().transformations().capabilities().list(responseType); +client.ontology().transformations().runs().list(responseType); +client.ontology().transformations().runs().get(runId, responseType); +client.ontology().transformations().runs().create(body, responseType); +client.ontology().transformations().transformations().create(body, responseType); +client.ontology().validation().capabilities().list(responseType); +client.ontology().validation().payloads().validate(body, responseType); +client.ontology().validation().rules().delete(ruleId, responseType); +client.ontology().validation().rules().list(responseType); +client.ontology().validation().rules().get(ruleId, responseType); +client.ontology().validation().rules().create(body, responseType); +client.ontology().validation().runs().list(responseType); +client.ontology().validation().runs().get(runId, responseType); +client.ontology().validation().runs().create(body, responseType); +client.ontology().versions().audit().verify(body, responseType); +client.ontology().versions().capabilities().list(responseType); +client.ontology().versions().releaseBundles().list(responseType); +client.ontology().versions().releaseBundles().get(bundleId, responseType); +client.ontology().versions().releaseBundles().create(body, responseType); +client.ontology().versions().runs().list(responseType); +client.ontology().versions().runs().get(runId, responseType); +client.ontology().versions().runs().create(body, responseType); +client.ontology().versions().versions().delete(versionId, responseType); +client.ontology().versions().versions().get(versionId, responseType); +client.ontology().versions().versions().create(body, responseType); +client.ontology().versions().versions().compare(body, responseType); +client.ontology().engine().ontologies().compareVersions().create(body, responseType); +client.ontology().engine().ontologies().inferClasses().create(body, responseType); +client.ontology().engine().ontologies().inferProperties().create(body, responseType); +client.ontology().events().events().checkpoints().get(consumer, responseType); +client.ontology().events().events().checkpoints().create(body, responseType); +client.ontology().events().events().leases().acknowledge(body, responseType); +client.ontology().events().events().leases().acquire(body, responseType); +client.ontology().extract().extract().coreferences().create(body, responseType); +client.ontology().extract().extract().entities().create(body, responseType); +client.ontology().extract().extract().events().create(body, responseType); +client.ontology().extract().extract().relations().create(body, responseType); +client.ontology().extract().extract().triplets().create(body, responseType); +``` + +## pipelines + +```java +client.pipelines().data().pipelines().health(responseType); +client.pipelines().data().pipelines().getInfo(responseType); +client.pipelines().data().pipelines().capabilities().list(responseType); +client.pipelines().data().pipelines().pipelineRuns().list(responseType); +client.pipelines().data().pipelines().pipelineRuns().get(pipelineRunId, responseType); +client.pipelines().data().pipelines().pipelineRuns().get2(pipelineRunId); +client.pipelines().data().pipelines().pipelineRuns().get2Blocking(pipelineRunId); +client.pipelines().data().pipelines().pipelines().list(responseType); +client.pipelines().data().pipelines().pipelines().get(pipelineId, responseType); +client.pipelines().data().pipelines().pipelines().create(body, responseType); +client.pipelines().data().pipelines().runs().list(responseType); +client.pipelines().data().pipelines().runs().create(body, responseType); +``` + +## providers + +```java +client.providers().get(providerSlug, responseType); +``` + +## react + +```java +``` + +## sandbox + +```java +client.sandbox().createSelfTest(body, responseType); +client.sandbox().submit(body, responseType); +client.sandbox().languages().list(responseType); +``` + +## schedules + +```java +client.schedules().workflows().cron().parse(body, responseType); +client.schedules().workflows().cron().validate(body, responseType); +client.schedules().workflows().schedules().delete(scheduleId, responseType); +client.schedules().workflows().schedules().list(responseType); +client.schedules().workflows().schedules().get(scheduleId, responseType); +client.schedules().workflows().schedules().update(scheduleId, body, responseType); +client.schedules().workflows().schedules().create(body, responseType); +client.schedules().workflows().schedules().pause(scheduleId, body, responseType); +client.schedules().workflows().schedules().resume(scheduleId, body, responseType); +client.schedules().workflows().schedules().trigger(scheduleId, body, responseType); +``` + +## webhook-endpoints + +```java +client.webhookEndpoints().delete(id, responseType); +client.webhookEndpoints().list(responseType); +client.webhookEndpoints().get(id, responseType); +client.webhookEndpoints().update(id, body, responseType); +client.webhookEndpoints().create(body, responseType); +client.webhookEndpoints().rotateSecret(id, body, responseType); +client.webhookEndpoints().deliveries().list(id, responseType); +``` + +## webhooks + +```java +client.webhooks().delete(webhookId, responseType); +client.webhooks().list(responseType); +client.webhooks().get(webhookId, responseType); +client.webhooks().create(body, responseType); +client.webhooks().rotateSecret(webhookId, body, responseType); +client.webhooks().update(webhookId, body, responseType); +client.webhooks().deliveries().list(responseType); +client.webhooks().deliveries().get(deliveryId, responseType); +client.webhooks().deliveries().retry(deliveryId, body, responseType); +client.webhooks().stats().list(responseType); +``` + +## workflows + +```java +client.workflows().delete(workflowId, responseType); +client.workflows().list(responseType); +client.workflows().get(workflowId, responseType); +client.workflows().get2(workflowId, runId, responseType); +client.workflows().summary(workflowId, runId, responseType); +client.workflows().timeline(workflowId, runId, responseType); +client.workflows().update(workflowId, body, responseType); +client.workflows().create(body, responseType); +client.workflows().batch(body, responseType); +client.workflows().search(body, responseType); +client.workflows().archive(workflowId, body, responseType); +client.workflows().publish(workflowId, body, responseType); +client.workflows().restore(workflowId, body, responseType); +client.workflows().approvals().list(responseType); +client.workflows().approvals().get(approvalId, responseType); +client.workflows().approvals().approve(approvalId, body, responseType); +client.workflows().approvals().reject(approvalId, body, responseType); +client.workflows().executions().list(responseType); +client.workflows().executions().get(executionId, responseType); +client.workflows().executions().create(body, responseType); +client.workflows().tasks().get(taskId, responseType); +client.workflows().tasks().cancel(taskId, body, responseType); +client.workflows().tasks().retry(taskId, body, responseType); +client.workflows().templates().list(responseType); +client.workflows().templates().get(templateId, responseType); +client.workflows().templates().create(body, responseType); +client.workflows().templates().instantiate(templateId, body, responseType); +client.workflows().versions().create(workflowId, body, responseType); +client.workflows().executions().tasks().list(executionId, responseType); +client.workflows().runs().steps().list(runId, responseType); +``` diff --git a/docs/api/observability.md b/docs/api/observability.md new file mode 100644 index 0000000..f897601 --- /dev/null +++ b/docs/api/observability.md @@ -0,0 +1,134 @@ +# Observability API + +Service accessor: `frontal.observability()` (`ObservabilityClient`). + +Operations are grouped by resource path. Collection methods use `list` and `create`; item methods use `get`, `update`, and `delete`. Calls can omit `QueryParams` when no query values are needed. Use contract-defined `JsonNode` bodies and caller-selected response types where schemas are not available. + +| Method | HTTP | Route | Parameters | Response | +| --- | --- | --- | --- | --- | +| `observability().alerts().delete(...)` | `DELETE` | `/observability/alerts/{param}` | `String alertId, QueryParams query, Class responseType` | `@Nullable T` | +| `observability().alerts().delete(...)` | `DELETE` | `/observability/alerts/{param}` | `String alertId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `observability().alerts().delete(...)` | `DELETE` | `/observability/alerts/{param}` | `String alertId, Class responseType` | `@Nullable T` | +| `observability().alerts().delete(...)` | `DELETE` | `/observability/alerts/{param}` | `String alertId, TypeReference responseType` | `@Nullable T` | +| `observability().alerts().list(...)` | `GET` | `/observability/alerts` | `QueryParams query, Class responseType` | `@Nullable T` | +| `observability().alerts().list(...)` | `GET` | `/observability/alerts` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `observability().alerts().list(...)` | `GET` | `/observability/alerts` | `Class responseType` | `@Nullable T` | +| `observability().alerts().list(...)` | `GET` | `/observability/alerts` | `TypeReference responseType` | `@Nullable T` | +| `observability().alerts().create(...)` | `POST` | `/observability/alerts` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().alerts().create(...)` | `POST` | `/observability/alerts` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().alerts().create(...)` | `POST` | `/observability/alerts` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().alerts().create(...)` | `POST` | `/observability/alerts` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().alerts().disable(...)` | `POST` | `/observability/alerts/{param}/disable` | `String alertId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().alerts().disable(...)` | `POST` | `/observability/alerts/{param}/disable` | `String alertId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().alerts().disable(...)` | `POST` | `/observability/alerts/{param}/disable` | `String alertId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().alerts().disable(...)` | `POST` | `/observability/alerts/{param}/disable` | `String alertId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().alerts().enable(...)` | `POST` | `/observability/alerts/{param}/enable` | `String alertId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().alerts().enable(...)` | `POST` | `/observability/alerts/{param}/enable` | `String alertId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().alerts().enable(...)` | `POST` | `/observability/alerts/{param}/enable` | `String alertId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().alerts().enable(...)` | `POST` | `/observability/alerts/{param}/enable` | `String alertId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().alerts().update(...)` | `PUT` | `/observability/alerts/{param}` | `String alertId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().alerts().update(...)` | `PUT` | `/observability/alerts/{param}` | `String alertId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().alerts().update(...)` | `PUT` | `/observability/alerts/{param}` | `String alertId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().alerts().update(...)` | `PUT` | `/observability/alerts/{param}` | `String alertId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().dashboards().delete(...)` | `DELETE` | `/observability/dashboards/{param}` | `String dashboardId, QueryParams query, Class responseType` | `@Nullable T` | +| `observability().dashboards().delete(...)` | `DELETE` | `/observability/dashboards/{param}` | `String dashboardId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `observability().dashboards().delete(...)` | `DELETE` | `/observability/dashboards/{param}` | `String dashboardId, Class responseType` | `@Nullable T` | +| `observability().dashboards().delete(...)` | `DELETE` | `/observability/dashboards/{param}` | `String dashboardId, TypeReference responseType` | `@Nullable T` | +| `observability().dashboards().list(...)` | `GET` | `/observability/dashboards` | `QueryParams query, Class responseType` | `@Nullable T` | +| `observability().dashboards().list(...)` | `GET` | `/observability/dashboards` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `observability().dashboards().list(...)` | `GET` | `/observability/dashboards` | `Class responseType` | `@Nullable T` | +| `observability().dashboards().list(...)` | `GET` | `/observability/dashboards` | `TypeReference responseType` | `@Nullable T` | +| `observability().dashboards().get(...)` | `GET` | `/observability/dashboards/{param}` | `String dashboardId, QueryParams query, Class responseType` | `@Nullable T` | +| `observability().dashboards().get(...)` | `GET` | `/observability/dashboards/{param}` | `String dashboardId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `observability().dashboards().get(...)` | `GET` | `/observability/dashboards/{param}` | `String dashboardId, Class responseType` | `@Nullable T` | +| `observability().dashboards().get(...)` | `GET` | `/observability/dashboards/{param}` | `String dashboardId, TypeReference responseType` | `@Nullable T` | +| `observability().dashboards().create(...)` | `POST` | `/observability/dashboards` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().dashboards().create(...)` | `POST` | `/observability/dashboards` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().dashboards().create(...)` | `POST` | `/observability/dashboards` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().dashboards().create(...)` | `POST` | `/observability/dashboards` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().dashboards().share(...)` | `POST` | `/observability/dashboards/{param}/share` | `String dashboardId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().dashboards().share(...)` | `POST` | `/observability/dashboards/{param}/share` | `String dashboardId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().dashboards().share(...)` | `POST` | `/observability/dashboards/{param}/share` | `String dashboardId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().dashboards().share(...)` | `POST` | `/observability/dashboards/{param}/share` | `String dashboardId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().dashboards().update(...)` | `PUT` | `/observability/dashboards/{param}` | `String dashboardId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().dashboards().update(...)` | `PUT` | `/observability/dashboards/{param}` | `String dashboardId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().dashboards().update(...)` | `PUT` | `/observability/dashboards/{param}` | `String dashboardId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().dashboards().update(...)` | `PUT` | `/observability/dashboards/{param}` | `String dashboardId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().events().create(...)` | `POST` | `/observability/events` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().events().create(...)` | `POST` | `/observability/events` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().events().create(...)` | `POST` | `/observability/events` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().events().create(...)` | `POST` | `/observability/events` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().events().batch(...)` | `POST` | `/observability/events/batch` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().events().batch(...)` | `POST` | `/observability/events/batch` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().events().batch(...)` | `POST` | `/observability/events/batch` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().events().batch(...)` | `POST` | `/observability/events/batch` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().logs().ingest(...)` | `POST` | `/observability/logs/ingest` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().logs().ingest(...)` | `POST` | `/observability/logs/ingest` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().logs().ingest(...)` | `POST` | `/observability/logs/ingest` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().logs().ingest(...)` | `POST` | `/observability/logs/ingest` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().logs().query(...)` | `POST` | `/observability/logs/query` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().logs().query(...)` | `POST` | `/observability/logs/query` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().logs().query(...)` | `POST` | `/observability/logs/query` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().logs().query(...)` | `POST` | `/observability/logs/query` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().logs().stream(...)` | `STREAM` | `/observability/logs/stream` | `QueryParams query` | `Flow.Publisher` | +| `observability().logs().stream(...)` | `STREAM` | `/observability/logs/stream` | `` | `Flow.Publisher` | +| `observability().logs().streamBlocking(...)` | `STREAM` | `/observability/logs/stream` | `QueryParams query` | `SseEventIterator` | +| `observability().logs().streamBlocking(...)` | `STREAM` | `/observability/logs/stream` | `` | `SseEventIterator` | +| `observability().metrics().list(...)` | `GET` | `/observability/metrics` | `QueryParams query, Class responseType` | `@Nullable T` | +| `observability().metrics().list(...)` | `GET` | `/observability/metrics` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `observability().metrics().list(...)` | `GET` | `/observability/metrics` | `Class responseType` | `@Nullable T` | +| `observability().metrics().list(...)` | `GET` | `/observability/metrics` | `TypeReference responseType` | `@Nullable T` | +| `observability().metrics().getList(...)` | `GET` | `/observability/metrics/list` | `QueryParams query, Class responseType` | `@Nullable T` | +| `observability().metrics().getList(...)` | `GET` | `/observability/metrics/list` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `observability().metrics().getList(...)` | `GET` | `/observability/metrics/list` | `Class responseType` | `@Nullable T` | +| `observability().metrics().getList(...)` | `GET` | `/observability/metrics/list` | `TypeReference responseType` | `@Nullable T` | +| `observability().metrics().ingest(...)` | `POST` | `/observability/metrics/ingest` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().metrics().ingest(...)` | `POST` | `/observability/metrics/ingest` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().metrics().ingest(...)` | `POST` | `/observability/metrics/ingest` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().metrics().ingest(...)` | `POST` | `/observability/metrics/ingest` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().traces().list(...)` | `GET` | `/observability/traces` | `QueryParams query, Class responseType` | `@Nullable T` | +| `observability().traces().list(...)` | `GET` | `/observability/traces` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `observability().traces().list(...)` | `GET` | `/observability/traces` | `Class responseType` | `@Nullable T` | +| `observability().traces().list(...)` | `GET` | `/observability/traces` | `TypeReference responseType` | `@Nullable T` | +| `observability().traces().get(...)` | `GET` | `/observability/traces/{param}` | `String traceId, QueryParams query, Class responseType` | `@Nullable T` | +| `observability().traces().get(...)` | `GET` | `/observability/traces/{param}` | `String traceId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `observability().traces().get(...)` | `GET` | `/observability/traces/{param}` | `String traceId, Class responseType` | `@Nullable T` | +| `observability().traces().get(...)` | `GET` | `/observability/traces/{param}` | `String traceId, TypeReference responseType` | `@Nullable T` | +| `observability().traces().query(...)` | `POST` | `/observability/traces/query` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().traces().query(...)` | `POST` | `/observability/traces/query` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().traces().query(...)` | `POST` | `/observability/traces/query` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().traces().query(...)` | `POST` | `/observability/traces/query` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().alerts().incidents().list(...)` | `GET` | `/observability/alerts/incidents` | `QueryParams query, Class responseType` | `@Nullable T` | +| `observability().alerts().incidents().list(...)` | `GET` | `/observability/alerts/incidents` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `observability().alerts().incidents().list(...)` | `GET` | `/observability/alerts/incidents` | `Class responseType` | `@Nullable T` | +| `observability().alerts().incidents().list(...)` | `GET` | `/observability/alerts/incidents` | `TypeReference responseType` | `@Nullable T` | +| `observability().alerts().rules().delete(...)` | `DELETE` | `/observability/alerts/rules/{param}` | `String ruleId, QueryParams query, Class responseType` | `@Nullable T` | +| `observability().alerts().rules().delete(...)` | `DELETE` | `/observability/alerts/rules/{param}` | `String ruleId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `observability().alerts().rules().delete(...)` | `DELETE` | `/observability/alerts/rules/{param}` | `String ruleId, Class responseType` | `@Nullable T` | +| `observability().alerts().rules().delete(...)` | `DELETE` | `/observability/alerts/rules/{param}` | `String ruleId, TypeReference responseType` | `@Nullable T` | +| `observability().alerts().rules().list(...)` | `GET` | `/observability/alerts/rules` | `QueryParams query, Class responseType` | `@Nullable T` | +| `observability().alerts().rules().list(...)` | `GET` | `/observability/alerts/rules` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `observability().alerts().rules().list(...)` | `GET` | `/observability/alerts/rules` | `Class responseType` | `@Nullable T` | +| `observability().alerts().rules().list(...)` | `GET` | `/observability/alerts/rules` | `TypeReference responseType` | `@Nullable T` | +| `observability().alerts().rules().get(...)` | `GET` | `/observability/alerts/rules/{param}` | `String ruleId, QueryParams query, Class responseType` | `@Nullable T` | +| `observability().alerts().rules().get(...)` | `GET` | `/observability/alerts/rules/{param}` | `String ruleId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `observability().alerts().rules().get(...)` | `GET` | `/observability/alerts/rules/{param}` | `String ruleId, Class responseType` | `@Nullable T` | +| `observability().alerts().rules().get(...)` | `GET` | `/observability/alerts/rules/{param}` | `String ruleId, TypeReference responseType` | `@Nullable T` | +| `observability().alerts().rules().create(...)` | `POST` | `/observability/alerts/rules` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().alerts().rules().create(...)` | `POST` | `/observability/alerts/rules` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().alerts().rules().create(...)` | `POST` | `/observability/alerts/rules` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().alerts().rules().create(...)` | `POST` | `/observability/alerts/rules` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().alerts().rules().toggle(...)` | `POST` | `/observability/alerts/rules/{param}/toggle` | `String ruleId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().alerts().rules().toggle(...)` | `POST` | `/observability/alerts/rules/{param}/toggle` | `String ruleId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().alerts().rules().toggle(...)` | `POST` | `/observability/alerts/rules/{param}/toggle` | `String ruleId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().alerts().rules().toggle(...)` | `POST` | `/observability/alerts/rules/{param}/toggle` | `String ruleId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().alerts().rules().update(...)` | `PUT` | `/observability/alerts/rules/{param}` | `String ruleId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().alerts().rules().update(...)` | `PUT` | `/observability/alerts/rules/{param}` | `String ruleId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().alerts().rules().update(...)` | `PUT` | `/observability/alerts/rules/{param}` | `String ruleId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `observability().alerts().rules().update(...)` | `PUT` | `/observability/alerts/rules/{param}` | `String ruleId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `observability().events().stats().list(...)` | `GET` | `/observability/events/stats` | `QueryParams query, Class responseType` | `@Nullable T` | +| `observability().events().stats().list(...)` | `GET` | `/observability/events/stats` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `observability().events().stats().list(...)` | `GET` | `/observability/events/stats` | `Class responseType` | `@Nullable T` | +| `observability().events().stats().list(...)` | `GET` | `/observability/events/stats` | `TypeReference responseType` | `@Nullable T` | + +The generic `request(...)` methods and `Endpoints` constants remain available. diff --git a/docs/api/ontology.md b/docs/api/ontology.md new file mode 100644 index 0000000..c431f90 --- /dev/null +++ b/docs/api/ontology.md @@ -0,0 +1,694 @@ +# Ontology API + +Service accessor: `frontal.ontology()` (`OntologyClient`). + +Operations are grouped by resource path. Collection methods use `list` and `create`; item methods use `get`, `update`, and `delete`. Calls can omit `QueryParams` when no query values are needed. Use contract-defined `JsonNode` bodies and caller-selected response types where schemas are not available. + +| Method | HTTP | Route | Parameters | Response | +| --- | --- | --- | --- | --- | +| `ontology().engine().health(...)` | `GET` | `/ontology/engine/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().engine().health(...)` | `GET` | `/ontology/engine/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().engine().health(...)` | `GET` | `/ontology/engine/health` | `Class responseType` | `@Nullable T` | +| `ontology().engine().health(...)` | `GET` | `/ontology/engine/health` | `TypeReference responseType` | `@Nullable T` | +| `ontology().engine().getInfo(...)` | `GET` | `/ontology/engine/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().engine().getInfo(...)` | `GET` | `/ontology/engine/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().engine().getInfo(...)` | `GET` | `/ontology/engine/info` | `Class responseType` | `@Nullable T` | +| `ontology().engine().getInfo(...)` | `GET` | `/ontology/engine/info` | `TypeReference responseType` | `@Nullable T` | +| `ontology().events().health(...)` | `GET` | `/ontology/events/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().events().health(...)` | `GET` | `/ontology/events/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().events().health(...)` | `GET` | `/ontology/events/health` | `Class responseType` | `@Nullable T` | +| `ontology().events().health(...)` | `GET` | `/ontology/events/health` | `TypeReference responseType` | `@Nullable T` | +| `ontology().events().getInfo(...)` | `GET` | `/ontology/events/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().events().getInfo(...)` | `GET` | `/ontology/events/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().events().getInfo(...)` | `GET` | `/ontology/events/info` | `Class responseType` | `@Nullable T` | +| `ontology().events().getInfo(...)` | `GET` | `/ontology/events/info` | `TypeReference responseType` | `@Nullable T` | +| `ontology().extract().health(...)` | `GET` | `/ontology/extract/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().extract().health(...)` | `GET` | `/ontology/extract/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().extract().health(...)` | `GET` | `/ontology/extract/health` | `Class responseType` | `@Nullable T` | +| `ontology().extract().health(...)` | `GET` | `/ontology/extract/health` | `TypeReference responseType` | `@Nullable T` | +| `ontology().extract().getInfo(...)` | `GET` | `/ontology/extract/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().extract().getInfo(...)` | `GET` | `/ontology/extract/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().extract().getInfo(...)` | `GET` | `/ontology/extract/info` | `Class responseType` | `@Nullable T` | +| `ontology().extract().getInfo(...)` | `GET` | `/ontology/extract/info` | `TypeReference responseType` | `@Nullable T` | +| `ontology().graph().health(...)` | `GET` | `/ontology/graph/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().graph().health(...)` | `GET` | `/ontology/graph/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().health(...)` | `GET` | `/ontology/graph/health` | `Class responseType` | `@Nullable T` | +| `ontology().graph().health(...)` | `GET` | `/ontology/graph/health` | `TypeReference responseType` | `@Nullable T` | +| `ontology().graph().getInfo(...)` | `GET` | `/ontology/graph/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().graph().getInfo(...)` | `GET` | `/ontology/graph/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().getInfo(...)` | `GET` | `/ontology/graph/info` | `Class responseType` | `@Nullable T` | +| `ontology().graph().getInfo(...)` | `GET` | `/ontology/graph/info` | `TypeReference responseType` | `@Nullable T` | +| `ontology().objects().health(...)` | `GET` | `/ontology/objects/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().objects().health(...)` | `GET` | `/ontology/objects/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().objects().health(...)` | `GET` | `/ontology/objects/health` | `Class responseType` | `@Nullable T` | +| `ontology().objects().health(...)` | `GET` | `/ontology/objects/health` | `TypeReference responseType` | `@Nullable T` | +| `ontology().objects().getInfo(...)` | `GET` | `/ontology/objects/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().objects().getInfo(...)` | `GET` | `/ontology/objects/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().objects().getInfo(...)` | `GET` | `/ontology/objects/info` | `Class responseType` | `@Nullable T` | +| `ontology().objects().getInfo(...)` | `GET` | `/ontology/objects/info` | `TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().health(...)` | `GET` | `/ontology/reasoning/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().reasoning().health(...)` | `GET` | `/ontology/reasoning/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().health(...)` | `GET` | `/ontology/reasoning/health` | `Class responseType` | `@Nullable T` | +| `ontology().reasoning().health(...)` | `GET` | `/ontology/reasoning/health` | `TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().getInfo(...)` | `GET` | `/ontology/reasoning/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().reasoning().getInfo(...)` | `GET` | `/ontology/reasoning/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().getInfo(...)` | `GET` | `/ontology/reasoning/info` | `Class responseType` | `@Nullable T` | +| `ontology().reasoning().getInfo(...)` | `GET` | `/ontology/reasoning/info` | `TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().createExplain(...)` | `POST` | `/ontology/reasoning/explain` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().reasoning().createExplain(...)` | `POST` | `/ontology/reasoning/explain` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().createExplain(...)` | `POST` | `/ontology/reasoning/explain` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().reasoning().createExplain(...)` | `POST` | `/ontology/reasoning/explain` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().relationships().health(...)` | `GET` | `/ontology/relationships/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().relationships().health(...)` | `GET` | `/ontology/relationships/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().relationships().health(...)` | `GET` | `/ontology/relationships/health` | `Class responseType` | `@Nullable T` | +| `ontology().relationships().health(...)` | `GET` | `/ontology/relationships/health` | `TypeReference responseType` | `@Nullable T` | +| `ontology().relationships().getInfo(...)` | `GET` | `/ontology/relationships/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().relationships().getInfo(...)` | `GET` | `/ontology/relationships/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().relationships().getInfo(...)` | `GET` | `/ontology/relationships/info` | `Class responseType` | `@Nullable T` | +| `ontology().relationships().getInfo(...)` | `GET` | `/ontology/relationships/info` | `TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().health(...)` | `GET` | `/ontology/rollouts/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().rollouts().health(...)` | `GET` | `/ontology/rollouts/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().health(...)` | `GET` | `/ontology/rollouts/health` | `Class responseType` | `@Nullable T` | +| `ontology().rollouts().health(...)` | `GET` | `/ontology/rollouts/health` | `TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().getInfo(...)` | `GET` | `/ontology/rollouts/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().rollouts().getInfo(...)` | `GET` | `/ontology/rollouts/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().getInfo(...)` | `GET` | `/ontology/rollouts/info` | `Class responseType` | `@Nullable T` | +| `ontology().rollouts().getInfo(...)` | `GET` | `/ontology/rollouts/info` | `TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().health(...)` | `GET` | `/ontology/rollups/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().rollups().health(...)` | `GET` | `/ontology/rollups/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().health(...)` | `GET` | `/ontology/rollups/health` | `Class responseType` | `@Nullable T` | +| `ontology().rollups().health(...)` | `GET` | `/ontology/rollups/health` | `TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().getInfo(...)` | `GET` | `/ontology/rollups/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().rollups().getInfo(...)` | `GET` | `/ontology/rollups/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().getInfo(...)` | `GET` | `/ontology/rollups/info` | `Class responseType` | `@Nullable T` | +| `ontology().rollups().getInfo(...)` | `GET` | `/ontology/rollups/info` | `TypeReference responseType` | `@Nullable T` | +| `ontology().schemas().health(...)` | `GET` | `/ontology/schemas/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().schemas().health(...)` | `GET` | `/ontology/schemas/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().schemas().health(...)` | `GET` | `/ontology/schemas/health` | `Class responseType` | `@Nullable T` | +| `ontology().schemas().health(...)` | `GET` | `/ontology/schemas/health` | `TypeReference responseType` | `@Nullable T` | +| `ontology().schemas().getInfo(...)` | `GET` | `/ontology/schemas/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().schemas().getInfo(...)` | `GET` | `/ontology/schemas/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().schemas().getInfo(...)` | `GET` | `/ontology/schemas/info` | `Class responseType` | `@Nullable T` | +| `ontology().schemas().getInfo(...)` | `GET` | `/ontology/schemas/info` | `TypeReference responseType` | `@Nullable T` | +| `ontology().transformations().health(...)` | `GET` | `/ontology/transformations/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().transformations().health(...)` | `GET` | `/ontology/transformations/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().transformations().health(...)` | `GET` | `/ontology/transformations/health` | `Class responseType` | `@Nullable T` | +| `ontology().transformations().health(...)` | `GET` | `/ontology/transformations/health` | `TypeReference responseType` | `@Nullable T` | +| `ontology().transformations().getInfo(...)` | `GET` | `/ontology/transformations/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().transformations().getInfo(...)` | `GET` | `/ontology/transformations/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().transformations().getInfo(...)` | `GET` | `/ontology/transformations/info` | `Class responseType` | `@Nullable T` | +| `ontology().transformations().getInfo(...)` | `GET` | `/ontology/transformations/info` | `TypeReference responseType` | `@Nullable T` | +| `ontology().validation().health(...)` | `GET` | `/ontology/validation/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().validation().health(...)` | `GET` | `/ontology/validation/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().validation().health(...)` | `GET` | `/ontology/validation/health` | `Class responseType` | `@Nullable T` | +| `ontology().validation().health(...)` | `GET` | `/ontology/validation/health` | `TypeReference responseType` | `@Nullable T` | +| `ontology().validation().getInfo(...)` | `GET` | `/ontology/validation/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().validation().getInfo(...)` | `GET` | `/ontology/validation/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().validation().getInfo(...)` | `GET` | `/ontology/validation/info` | `Class responseType` | `@Nullable T` | +| `ontology().validation().getInfo(...)` | `GET` | `/ontology/validation/info` | `TypeReference responseType` | `@Nullable T` | +| `ontology().versions().health(...)` | `GET` | `/ontology/versions/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().versions().health(...)` | `GET` | `/ontology/versions/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().versions().health(...)` | `GET` | `/ontology/versions/health` | `Class responseType` | `@Nullable T` | +| `ontology().versions().health(...)` | `GET` | `/ontology/versions/health` | `TypeReference responseType` | `@Nullable T` | +| `ontology().versions().getInfo(...)` | `GET` | `/ontology/versions/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().versions().getInfo(...)` | `GET` | `/ontology/versions/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().versions().getInfo(...)` | `GET` | `/ontology/versions/info` | `Class responseType` | `@Nullable T` | +| `ontology().versions().getInfo(...)` | `GET` | `/ontology/versions/info` | `TypeReference responseType` | `@Nullable T` | +| `ontology().engine().capabilities().list(...)` | `GET` | `/ontology/engine/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().engine().capabilities().list(...)` | `GET` | `/ontology/engine/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().engine().capabilities().list(...)` | `GET` | `/ontology/engine/capabilities` | `Class responseType` | `@Nullable T` | +| `ontology().engine().capabilities().list(...)` | `GET` | `/ontology/engine/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `ontology().engine().ontologies().export(...)` | `POST` | `/ontology/engine/ontologies/export` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().engine().ontologies().export(...)` | `POST` | `/ontology/engine/ontologies/export` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().engine().ontologies().export(...)` | `POST` | `/ontology/engine/ontologies/export` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().engine().ontologies().export(...)` | `POST` | `/ontology/engine/ontologies/export` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().engine().ontologies().createExportShacl(...)` | `POST` | `/ontology/engine/ontologies/export-shacl` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().engine().ontologies().createExportShacl(...)` | `POST` | `/ontology/engine/ontologies/export-shacl` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().engine().ontologies().createExportShacl(...)` | `POST` | `/ontology/engine/ontologies/export-shacl` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().engine().ontologies().createExportShacl(...)` | `POST` | `/ontology/engine/ontologies/export-shacl` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().engine().ontologies().generate(...)` | `POST` | `/ontology/engine/ontologies/generate` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().engine().ontologies().generate(...)` | `POST` | `/ontology/engine/ontologies/generate` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().engine().ontologies().generate(...)` | `POST` | `/ontology/engine/ontologies/generate` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().engine().ontologies().generate(...)` | `POST` | `/ontology/engine/ontologies/generate` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().engine().ontologies().validate(...)` | `POST` | `/ontology/engine/ontologies/validate` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().engine().ontologies().validate(...)` | `POST` | `/ontology/engine/ontologies/validate` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().engine().ontologies().validate(...)` | `POST` | `/ontology/engine/ontologies/validate` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().engine().ontologies().validate(...)` | `POST` | `/ontology/engine/ontologies/validate` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().engine().runs().list(...)` | `GET` | `/ontology/engine/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().engine().runs().list(...)` | `GET` | `/ontology/engine/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().engine().runs().list(...)` | `GET` | `/ontology/engine/runs` | `Class responseType` | `@Nullable T` | +| `ontology().engine().runs().list(...)` | `GET` | `/ontology/engine/runs` | `TypeReference responseType` | `@Nullable T` | +| `ontology().engine().runs().get(...)` | `GET` | `/ontology/engine/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().engine().runs().get(...)` | `GET` | `/ontology/engine/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().engine().runs().get(...)` | `GET` | `/ontology/engine/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `ontology().engine().runs().get(...)` | `GET` | `/ontology/engine/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `ontology().engine().runs().create(...)` | `POST` | `/ontology/engine/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().engine().runs().create(...)` | `POST` | `/ontology/engine/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().engine().runs().create(...)` | `POST` | `/ontology/engine/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().engine().runs().create(...)` | `POST` | `/ontology/engine/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().events().capabilities().list(...)` | `GET` | `/ontology/events/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().events().capabilities().list(...)` | `GET` | `/ontology/events/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().events().capabilities().list(...)` | `GET` | `/ontology/events/capabilities` | `Class responseType` | `@Nullable T` | +| `ontology().events().capabilities().list(...)` | `GET` | `/ontology/events/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `ontology().events().events().list(...)` | `GET` | `/ontology/events/events` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().events().events().list(...)` | `GET` | `/ontology/events/events` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().events().events().list(...)` | `GET` | `/ontology/events/events` | `Class responseType` | `@Nullable T` | +| `ontology().events().events().list(...)` | `GET` | `/ontology/events/events` | `TypeReference responseType` | `@Nullable T` | +| `ontology().events().events().get(...)` | `GET` | `/ontology/events/events/{param}` | `String eventId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().events().events().get(...)` | `GET` | `/ontology/events/events/{param}` | `String eventId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().events().events().get(...)` | `GET` | `/ontology/events/events/{param}` | `String eventId, Class responseType` | `@Nullable T` | +| `ontology().events().events().get(...)` | `GET` | `/ontology/events/events/{param}` | `String eventId, TypeReference responseType` | `@Nullable T` | +| `ontology().events().events().create(...)` | `POST` | `/ontology/events/events` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().events().events().create(...)` | `POST` | `/ontology/events/events` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().events().events().create(...)` | `POST` | `/ontology/events/events` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().events().events().create(...)` | `POST` | `/ontology/events/events` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().events().runs().list(...)` | `GET` | `/ontology/events/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().events().runs().list(...)` | `GET` | `/ontology/events/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().events().runs().list(...)` | `GET` | `/ontology/events/runs` | `Class responseType` | `@Nullable T` | +| `ontology().events().runs().list(...)` | `GET` | `/ontology/events/runs` | `TypeReference responseType` | `@Nullable T` | +| `ontology().events().runs().get(...)` | `GET` | `/ontology/events/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().events().runs().get(...)` | `GET` | `/ontology/events/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().events().runs().get(...)` | `GET` | `/ontology/events/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `ontology().events().runs().get(...)` | `GET` | `/ontology/events/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `ontology().events().runs().create(...)` | `POST` | `/ontology/events/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().events().runs().create(...)` | `POST` | `/ontology/events/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().events().runs().create(...)` | `POST` | `/ontology/events/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().events().runs().create(...)` | `POST` | `/ontology/events/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().extract().capabilities().list(...)` | `GET` | `/ontology/extract/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().extract().capabilities().list(...)` | `GET` | `/ontology/extract/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().extract().capabilities().list(...)` | `GET` | `/ontology/extract/capabilities` | `Class responseType` | `@Nullable T` | +| `ontology().extract().capabilities().list(...)` | `GET` | `/ontology/extract/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `ontology().extract().extract().analyze(...)` | `POST` | `/ontology/extract/extract/analyze` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().extract().extract().analyze(...)` | `POST` | `/ontology/extract/extract/analyze` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().extract().extract().analyze(...)` | `POST` | `/ontology/extract/extract/analyze` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().extract().extract().analyze(...)` | `POST` | `/ontology/extract/extract/analyze` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().extract().extract().createArchitecture(...)` | `POST` | `/ontology/extract/extract/architecture` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().extract().extract().createArchitecture(...)` | `POST` | `/ontology/extract/extract/architecture` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().extract().extract().createArchitecture(...)` | `POST` | `/ontology/extract/extract/architecture` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().extract().extract().createArchitecture(...)` | `POST` | `/ontology/extract/extract/architecture` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().extract().runs().list(...)` | `GET` | `/ontology/extract/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().extract().runs().list(...)` | `GET` | `/ontology/extract/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().extract().runs().list(...)` | `GET` | `/ontology/extract/runs` | `Class responseType` | `@Nullable T` | +| `ontology().extract().runs().list(...)` | `GET` | `/ontology/extract/runs` | `TypeReference responseType` | `@Nullable T` | +| `ontology().extract().runs().get(...)` | `GET` | `/ontology/extract/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().extract().runs().get(...)` | `GET` | `/ontology/extract/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().extract().runs().get(...)` | `GET` | `/ontology/extract/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `ontology().extract().runs().get(...)` | `GET` | `/ontology/extract/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `ontology().extract().runs().create(...)` | `POST` | `/ontology/extract/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().extract().runs().create(...)` | `POST` | `/ontology/extract/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().extract().runs().create(...)` | `POST` | `/ontology/extract/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().extract().runs().create(...)` | `POST` | `/ontology/extract/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().capabilities().list(...)` | `GET` | `/ontology/graph/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().graph().capabilities().list(...)` | `GET` | `/ontology/graph/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().capabilities().list(...)` | `GET` | `/ontology/graph/capabilities` | `Class responseType` | `@Nullable T` | +| `ontology().graph().capabilities().list(...)` | `GET` | `/ontology/graph/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `ontology().graph().entities().get(...)` | `GET` | `/ontology/graph/entities/{param}` | `String entityId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().graph().entities().get(...)` | `GET` | `/ontology/graph/entities/{param}` | `String entityId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().entities().get(...)` | `GET` | `/ontology/graph/entities/{param}` | `String entityId, Class responseType` | `@Nullable T` | +| `ontology().graph().entities().get(...)` | `GET` | `/ontology/graph/entities/{param}` | `String entityId, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().entities().getProvenance(...)` | `GET` | `/ontology/graph/entities/{param}/provenance` | `String entityId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().graph().entities().getProvenance(...)` | `GET` | `/ontology/graph/entities/{param}/provenance` | `String entityId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().entities().getProvenance(...)` | `GET` | `/ontology/graph/entities/{param}/provenance` | `String entityId, Class responseType` | `@Nullable T` | +| `ontology().graph().entities().getProvenance(...)` | `GET` | `/ontology/graph/entities/{param}/provenance` | `String entityId, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().entities().update(...)` | `PUT` | `/ontology/graph/entities/{param}` | `String entityId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().graph().entities().update(...)` | `PUT` | `/ontology/graph/entities/{param}` | `String entityId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().entities().update(...)` | `PUT` | `/ontology/graph/entities/{param}` | `String entityId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().graph().entities().update(...)` | `PUT` | `/ontology/graph/entities/{param}` | `String entityId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().graph().analyze(...)` | `POST` | `/ontology/graph/graph/analyze` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().graph().graph().analyze(...)` | `POST` | `/ontology/graph/graph/analyze` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().graph().analyze(...)` | `POST` | `/ontology/graph/graph/analyze` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().graph().graph().analyze(...)` | `POST` | `/ontology/graph/graph/analyze` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().graph().createBuild(...)` | `POST` | `/ontology/graph/graph/build` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().graph().graph().createBuild(...)` | `POST` | `/ontology/graph/graph/build` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().graph().createBuild(...)` | `POST` | `/ontology/graph/graph/build` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().graph().graph().createBuild(...)` | `POST` | `/ontology/graph/graph/build` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().graph().createBulkRead(...)` | `POST` | `/ontology/graph/graph/bulk-read` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().graph().graph().createBulkRead(...)` | `POST` | `/ontology/graph/graph/bulk-read` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().graph().createBulkRead(...)` | `POST` | `/ontology/graph/graph/bulk-read` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().graph().graph().createBulkRead(...)` | `POST` | `/ontology/graph/graph/bulk-read` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().graph().createNeighborhood(...)` | `POST` | `/ontology/graph/graph/neighborhood` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().graph().graph().createNeighborhood(...)` | `POST` | `/ontology/graph/graph/neighborhood` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().graph().createNeighborhood(...)` | `POST` | `/ontology/graph/graph/neighborhood` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().graph().graph().createNeighborhood(...)` | `POST` | `/ontology/graph/graph/neighborhood` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().graph().createPath(...)` | `POST` | `/ontology/graph/graph/path` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().graph().graph().createPath(...)` | `POST` | `/ontology/graph/graph/path` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().graph().createPath(...)` | `POST` | `/ontology/graph/graph/path` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().graph().graph().createPath(...)` | `POST` | `/ontology/graph/graph/path` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().graph().query(...)` | `POST` | `/ontology/graph/graph/query` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().graph().graph().query(...)` | `POST` | `/ontology/graph/graph/query` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().graph().query(...)` | `POST` | `/ontology/graph/graph/query` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().graph().graph().query(...)` | `POST` | `/ontology/graph/graph/query` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().relationships().get(...)` | `GET` | `/ontology/graph/relationships/{param}` | `String relationshipId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().graph().relationships().get(...)` | `GET` | `/ontology/graph/relationships/{param}` | `String relationshipId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().relationships().get(...)` | `GET` | `/ontology/graph/relationships/{param}` | `String relationshipId, Class responseType` | `@Nullable T` | +| `ontology().graph().relationships().get(...)` | `GET` | `/ontology/graph/relationships/{param}` | `String relationshipId, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().relationships().update(...)` | `PUT` | `/ontology/graph/relationships/{param}` | `String relationshipId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().graph().relationships().update(...)` | `PUT` | `/ontology/graph/relationships/{param}` | `String relationshipId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().relationships().update(...)` | `PUT` | `/ontology/graph/relationships/{param}` | `String relationshipId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().graph().relationships().update(...)` | `PUT` | `/ontology/graph/relationships/{param}` | `String relationshipId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().runs().list(...)` | `GET` | `/ontology/graph/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().graph().runs().list(...)` | `GET` | `/ontology/graph/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().runs().list(...)` | `GET` | `/ontology/graph/runs` | `Class responseType` | `@Nullable T` | +| `ontology().graph().runs().list(...)` | `GET` | `/ontology/graph/runs` | `TypeReference responseType` | `@Nullable T` | +| `ontology().graph().runs().get(...)` | `GET` | `/ontology/graph/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().graph().runs().get(...)` | `GET` | `/ontology/graph/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().runs().get(...)` | `GET` | `/ontology/graph/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `ontology().graph().runs().get(...)` | `GET` | `/ontology/graph/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().runs().create(...)` | `POST` | `/ontology/graph/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().graph().runs().create(...)` | `POST` | `/ontology/graph/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().graph().runs().create(...)` | `POST` | `/ontology/graph/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().graph().runs().create(...)` | `POST` | `/ontology/graph/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().objects().capabilities().list(...)` | `GET` | `/ontology/objects/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().objects().capabilities().list(...)` | `GET` | `/ontology/objects/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().objects().capabilities().list(...)` | `GET` | `/ontology/objects/capabilities` | `Class responseType` | `@Nullable T` | +| `ontology().objects().capabilities().list(...)` | `GET` | `/ontology/objects/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `ontology().objects().objectTypes().delete(...)` | `DELETE` | `/ontology/objects/object-types/{param}` | `String objectTypeId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().objects().objectTypes().delete(...)` | `DELETE` | `/ontology/objects/object-types/{param}` | `String objectTypeId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().objects().objectTypes().delete(...)` | `DELETE` | `/ontology/objects/object-types/{param}` | `String objectTypeId, Class responseType` | `@Nullable T` | +| `ontology().objects().objectTypes().delete(...)` | `DELETE` | `/ontology/objects/object-types/{param}` | `String objectTypeId, TypeReference responseType` | `@Nullable T` | +| `ontology().objects().objectTypes().list(...)` | `GET` | `/ontology/objects/object-types` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().objects().objectTypes().list(...)` | `GET` | `/ontology/objects/object-types` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().objects().objectTypes().list(...)` | `GET` | `/ontology/objects/object-types` | `Class responseType` | `@Nullable T` | +| `ontology().objects().objectTypes().list(...)` | `GET` | `/ontology/objects/object-types` | `TypeReference responseType` | `@Nullable T` | +| `ontology().objects().objectTypes().get(...)` | `GET` | `/ontology/objects/object-types/{param}` | `String objectTypeId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().objects().objectTypes().get(...)` | `GET` | `/ontology/objects/object-types/{param}` | `String objectTypeId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().objects().objectTypes().get(...)` | `GET` | `/ontology/objects/object-types/{param}` | `String objectTypeId, Class responseType` | `@Nullable T` | +| `ontology().objects().objectTypes().get(...)` | `GET` | `/ontology/objects/object-types/{param}` | `String objectTypeId, TypeReference responseType` | `@Nullable T` | +| `ontology().objects().objectTypes().update(...)` | `PUT` | `/ontology/objects/object-types/{param}` | `String objectTypeId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().objects().objectTypes().update(...)` | `PUT` | `/ontology/objects/object-types/{param}` | `String objectTypeId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().objects().objectTypes().update(...)` | `PUT` | `/ontology/objects/object-types/{param}` | `String objectTypeId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().objects().objectTypes().update(...)` | `PUT` | `/ontology/objects/object-types/{param}` | `String objectTypeId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().objects().objects().delete(...)` | `DELETE` | `/ontology/objects/objects/{param}` | `String objectId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().objects().objects().delete(...)` | `DELETE` | `/ontology/objects/objects/{param}` | `String objectId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().objects().objects().delete(...)` | `DELETE` | `/ontology/objects/objects/{param}` | `String objectId, Class responseType` | `@Nullable T` | +| `ontology().objects().objects().delete(...)` | `DELETE` | `/ontology/objects/objects/{param}` | `String objectId, TypeReference responseType` | `@Nullable T` | +| `ontology().objects().objects().list(...)` | `GET` | `/ontology/objects/objects` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().objects().objects().list(...)` | `GET` | `/ontology/objects/objects` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().objects().objects().list(...)` | `GET` | `/ontology/objects/objects` | `Class responseType` | `@Nullable T` | +| `ontology().objects().objects().list(...)` | `GET` | `/ontology/objects/objects` | `TypeReference responseType` | `@Nullable T` | +| `ontology().objects().objects().get(...)` | `GET` | `/ontology/objects/objects/{param}` | `String objectId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().objects().objects().get(...)` | `GET` | `/ontology/objects/objects/{param}` | `String objectId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().objects().objects().get(...)` | `GET` | `/ontology/objects/objects/{param}` | `String objectId, Class responseType` | `@Nullable T` | +| `ontology().objects().objects().get(...)` | `GET` | `/ontology/objects/objects/{param}` | `String objectId, TypeReference responseType` | `@Nullable T` | +| `ontology().objects().objects().update(...)` | `PUT` | `/ontology/objects/objects/{param}` | `String objectId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().objects().objects().update(...)` | `PUT` | `/ontology/objects/objects/{param}` | `String objectId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().objects().objects().update(...)` | `PUT` | `/ontology/objects/objects/{param}` | `String objectId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().objects().objects().update(...)` | `PUT` | `/ontology/objects/objects/{param}` | `String objectId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().objects().runs().list(...)` | `GET` | `/ontology/objects/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().objects().runs().list(...)` | `GET` | `/ontology/objects/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().objects().runs().list(...)` | `GET` | `/ontology/objects/runs` | `Class responseType` | `@Nullable T` | +| `ontology().objects().runs().list(...)` | `GET` | `/ontology/objects/runs` | `TypeReference responseType` | `@Nullable T` | +| `ontology().objects().runs().get(...)` | `GET` | `/ontology/objects/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().objects().runs().get(...)` | `GET` | `/ontology/objects/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().objects().runs().get(...)` | `GET` | `/ontology/objects/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `ontology().objects().runs().get(...)` | `GET` | `/ontology/objects/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `ontology().objects().runs().create(...)` | `POST` | `/ontology/objects/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().objects().runs().create(...)` | `POST` | `/ontology/objects/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().objects().runs().create(...)` | `POST` | `/ontology/objects/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().objects().runs().create(...)` | `POST` | `/ontology/objects/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().capabilities().list(...)` | `GET` | `/ontology/reasoning/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().reasoning().capabilities().list(...)` | `GET` | `/ontology/reasoning/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().capabilities().list(...)` | `GET` | `/ontology/reasoning/capabilities` | `Class responseType` | `@Nullable T` | +| `ontology().reasoning().capabilities().list(...)` | `GET` | `/ontology/reasoning/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().facts().create(...)` | `POST` | `/ontology/reasoning/facts` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().reasoning().facts().create(...)` | `POST` | `/ontology/reasoning/facts` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().facts().create(...)` | `POST` | `/ontology/reasoning/facts` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().reasoning().facts().create(...)` | `POST` | `/ontology/reasoning/facts` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().facts().createLoadGraph(...)` | `POST` | `/ontology/reasoning/facts/load-graph` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().reasoning().facts().createLoadGraph(...)` | `POST` | `/ontology/reasoning/facts/load-graph` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().facts().createLoadGraph(...)` | `POST` | `/ontology/reasoning/facts/load-graph` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().reasoning().facts().createLoadGraph(...)` | `POST` | `/ontology/reasoning/facts/load-graph` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().reason().createBackward(...)` | `POST` | `/ontology/reasoning/reason/backward` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().reasoning().reason().createBackward(...)` | `POST` | `/ontology/reasoning/reason/backward` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().reason().createBackward(...)` | `POST` | `/ontology/reasoning/reason/backward` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().reasoning().reason().createBackward(...)` | `POST` | `/ontology/reasoning/reason/backward` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().reason().createForward(...)` | `POST` | `/ontology/reasoning/reason/forward` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().reasoning().reason().createForward(...)` | `POST` | `/ontology/reasoning/reason/forward` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().reason().createForward(...)` | `POST` | `/ontology/reasoning/reason/forward` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().reasoning().reason().createForward(...)` | `POST` | `/ontology/reasoning/reason/forward` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().rules().delete(...)` | `DELETE` | `/ontology/reasoning/rules/{param}` | `String ruleId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().reasoning().rules().delete(...)` | `DELETE` | `/ontology/reasoning/rules/{param}` | `String ruleId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().rules().delete(...)` | `DELETE` | `/ontology/reasoning/rules/{param}` | `String ruleId, Class responseType` | `@Nullable T` | +| `ontology().reasoning().rules().delete(...)` | `DELETE` | `/ontology/reasoning/rules/{param}` | `String ruleId, TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().rules().list(...)` | `GET` | `/ontology/reasoning/rules` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().reasoning().rules().list(...)` | `GET` | `/ontology/reasoning/rules` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().rules().list(...)` | `GET` | `/ontology/reasoning/rules` | `Class responseType` | `@Nullable T` | +| `ontology().reasoning().rules().list(...)` | `GET` | `/ontology/reasoning/rules` | `TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().rules().create(...)` | `POST` | `/ontology/reasoning/rules` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().reasoning().rules().create(...)` | `POST` | `/ontology/reasoning/rules` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().rules().create(...)` | `POST` | `/ontology/reasoning/rules` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().reasoning().rules().create(...)` | `POST` | `/ontology/reasoning/rules` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().rules().update(...)` | `PUT` | `/ontology/reasoning/rules/{param}` | `String ruleId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().reasoning().rules().update(...)` | `PUT` | `/ontology/reasoning/rules/{param}` | `String ruleId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().rules().update(...)` | `PUT` | `/ontology/reasoning/rules/{param}` | `String ruleId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().reasoning().rules().update(...)` | `PUT` | `/ontology/reasoning/rules/{param}` | `String ruleId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().runs().list(...)` | `GET` | `/ontology/reasoning/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().reasoning().runs().list(...)` | `GET` | `/ontology/reasoning/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().runs().list(...)` | `GET` | `/ontology/reasoning/runs` | `Class responseType` | `@Nullable T` | +| `ontology().reasoning().runs().list(...)` | `GET` | `/ontology/reasoning/runs` | `TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().runs().get(...)` | `GET` | `/ontology/reasoning/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().reasoning().runs().get(...)` | `GET` | `/ontology/reasoning/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().runs().get(...)` | `GET` | `/ontology/reasoning/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `ontology().reasoning().runs().get(...)` | `GET` | `/ontology/reasoning/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().runs().create(...)` | `POST` | `/ontology/reasoning/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().reasoning().runs().create(...)` | `POST` | `/ontology/reasoning/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().reasoning().runs().create(...)` | `POST` | `/ontology/reasoning/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().reasoning().runs().create(...)` | `POST` | `/ontology/reasoning/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().relationships().capabilities().list(...)` | `GET` | `/ontology/relationships/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().relationships().capabilities().list(...)` | `GET` | `/ontology/relationships/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().relationships().capabilities().list(...)` | `GET` | `/ontology/relationships/capabilities` | `Class responseType` | `@Nullable T` | +| `ontology().relationships().capabilities().list(...)` | `GET` | `/ontology/relationships/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `ontology().relationships().relationshipTypes().delete(...)` | `DELETE` | `/ontology/relationships/relationship-types/{param}` | `String relationshipTypeId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().relationships().relationshipTypes().delete(...)` | `DELETE` | `/ontology/relationships/relationship-types/{param}` | `String relationshipTypeId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().relationships().relationshipTypes().delete(...)` | `DELETE` | `/ontology/relationships/relationship-types/{param}` | `String relationshipTypeId, Class responseType` | `@Nullable T` | +| `ontology().relationships().relationshipTypes().delete(...)` | `DELETE` | `/ontology/relationships/relationship-types/{param}` | `String relationshipTypeId, TypeReference responseType` | `@Nullable T` | +| `ontology().relationships().relationshipTypes().list(...)` | `GET` | `/ontology/relationships/relationship-types` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().relationships().relationshipTypes().list(...)` | `GET` | `/ontology/relationships/relationship-types` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().relationships().relationshipTypes().list(...)` | `GET` | `/ontology/relationships/relationship-types` | `Class responseType` | `@Nullable T` | +| `ontology().relationships().relationshipTypes().list(...)` | `GET` | `/ontology/relationships/relationship-types` | `TypeReference responseType` | `@Nullable T` | +| `ontology().relationships().relationships().delete(...)` | `DELETE` | `/ontology/relationships/relationships/{param}` | `String relationshipId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().relationships().relationships().delete(...)` | `DELETE` | `/ontology/relationships/relationships/{param}` | `String relationshipId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().relationships().relationships().delete(...)` | `DELETE` | `/ontology/relationships/relationships/{param}` | `String relationshipId, Class responseType` | `@Nullable T` | +| `ontology().relationships().relationships().delete(...)` | `DELETE` | `/ontology/relationships/relationships/{param}` | `String relationshipId, TypeReference responseType` | `@Nullable T` | +| `ontology().relationships().relationships().list(...)` | `GET` | `/ontology/relationships/relationships` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().relationships().relationships().list(...)` | `GET` | `/ontology/relationships/relationships` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().relationships().relationships().list(...)` | `GET` | `/ontology/relationships/relationships` | `Class responseType` | `@Nullable T` | +| `ontology().relationships().relationships().list(...)` | `GET` | `/ontology/relationships/relationships` | `TypeReference responseType` | `@Nullable T` | +| `ontology().relationships().relationships().get(...)` | `GET` | `/ontology/relationships/relationships/{param}` | `String relationshipId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().relationships().relationships().get(...)` | `GET` | `/ontology/relationships/relationships/{param}` | `String relationshipId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().relationships().relationships().get(...)` | `GET` | `/ontology/relationships/relationships/{param}` | `String relationshipId, Class responseType` | `@Nullable T` | +| `ontology().relationships().relationships().get(...)` | `GET` | `/ontology/relationships/relationships/{param}` | `String relationshipId, TypeReference responseType` | `@Nullable T` | +| `ontology().relationships().relationships().update(...)` | `PUT` | `/ontology/relationships/relationships/{param}` | `String relationshipId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().relationships().relationships().update(...)` | `PUT` | `/ontology/relationships/relationships/{param}` | `String relationshipId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().relationships().relationships().update(...)` | `PUT` | `/ontology/relationships/relationships/{param}` | `String relationshipId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().relationships().relationships().update(...)` | `PUT` | `/ontology/relationships/relationships/{param}` | `String relationshipId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().relationships().runs().list(...)` | `GET` | `/ontology/relationships/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().relationships().runs().list(...)` | `GET` | `/ontology/relationships/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().relationships().runs().list(...)` | `GET` | `/ontology/relationships/runs` | `Class responseType` | `@Nullable T` | +| `ontology().relationships().runs().list(...)` | `GET` | `/ontology/relationships/runs` | `TypeReference responseType` | `@Nullable T` | +| `ontology().relationships().runs().get(...)` | `GET` | `/ontology/relationships/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().relationships().runs().get(...)` | `GET` | `/ontology/relationships/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().relationships().runs().get(...)` | `GET` | `/ontology/relationships/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `ontology().relationships().runs().get(...)` | `GET` | `/ontology/relationships/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `ontology().relationships().runs().create(...)` | `POST` | `/ontology/relationships/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().relationships().runs().create(...)` | `POST` | `/ontology/relationships/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().relationships().runs().create(...)` | `POST` | `/ontology/relationships/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().relationships().runs().create(...)` | `POST` | `/ontology/relationships/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().capabilities().list(...)` | `GET` | `/ontology/rollouts/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().rollouts().capabilities().list(...)` | `GET` | `/ontology/rollouts/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().capabilities().list(...)` | `GET` | `/ontology/rollouts/capabilities` | `Class responseType` | `@Nullable T` | +| `ontology().rollouts().capabilities().list(...)` | `GET` | `/ontology/rollouts/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().delete(...)` | `DELETE` | `/ontology/rollouts/rollouts/{param}` | `String rolloutId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().delete(...)` | `DELETE` | `/ontology/rollouts/rollouts/{param}` | `String rolloutId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().delete(...)` | `DELETE` | `/ontology/rollouts/rollouts/{param}` | `String rolloutId, Class responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().delete(...)` | `DELETE` | `/ontology/rollouts/rollouts/{param}` | `String rolloutId, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().list(...)` | `GET` | `/ontology/rollouts/rollouts` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().list(...)` | `GET` | `/ontology/rollouts/rollouts` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().list(...)` | `GET` | `/ontology/rollouts/rollouts` | `Class responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().list(...)` | `GET` | `/ontology/rollouts/rollouts` | `TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().get(...)` | `GET` | `/ontology/rollouts/rollouts/{param}` | `String rolloutId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().get(...)` | `GET` | `/ontology/rollouts/rollouts/{param}` | `String rolloutId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().get(...)` | `GET` | `/ontology/rollouts/rollouts/{param}` | `String rolloutId, Class responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().get(...)` | `GET` | `/ontology/rollouts/rollouts/{param}` | `String rolloutId, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().status(...)` | `GET` | `/ontology/rollouts/rollouts/{param}/status` | `String rolloutId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().status(...)` | `GET` | `/ontology/rollouts/rollouts/{param}/status` | `String rolloutId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().status(...)` | `GET` | `/ontology/rollouts/rollouts/{param}/status` | `String rolloutId, Class responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().status(...)` | `GET` | `/ontology/rollouts/rollouts/{param}/status` | `String rolloutId, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().create(...)` | `POST` | `/ontology/rollouts/rollouts` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().create(...)` | `POST` | `/ontology/rollouts/rollouts` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().create(...)` | `POST` | `/ontology/rollouts/rollouts` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().create(...)` | `POST` | `/ontology/rollouts/rollouts` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().pause(...)` | `POST` | `/ontology/rollouts/rollouts/{param}/pause` | `String rolloutId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().pause(...)` | `POST` | `/ontology/rollouts/rollouts/{param}/pause` | `String rolloutId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().pause(...)` | `POST` | `/ontology/rollouts/rollouts/{param}/pause` | `String rolloutId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().pause(...)` | `POST` | `/ontology/rollouts/rollouts/{param}/pause` | `String rolloutId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().resume(...)` | `POST` | `/ontology/rollouts/rollouts/{param}/resume` | `String rolloutId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().resume(...)` | `POST` | `/ontology/rollouts/rollouts/{param}/resume` | `String rolloutId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().resume(...)` | `POST` | `/ontology/rollouts/rollouts/{param}/resume` | `String rolloutId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().resume(...)` | `POST` | `/ontology/rollouts/rollouts/{param}/resume` | `String rolloutId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().rollback(...)` | `POST` | `/ontology/rollouts/rollouts/{param}/rollback` | `String rolloutId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().rollback(...)` | `POST` | `/ontology/rollouts/rollouts/{param}/rollback` | `String rolloutId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().rollback(...)` | `POST` | `/ontology/rollouts/rollouts/{param}/rollback` | `String rolloutId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().rollback(...)` | `POST` | `/ontology/rollouts/rollouts/{param}/rollback` | `String rolloutId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().createStart(...)` | `POST` | `/ontology/rollouts/rollouts/{param}/start` | `String rolloutId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().createStart(...)` | `POST` | `/ontology/rollouts/rollouts/{param}/start` | `String rolloutId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().createStart(...)` | `POST` | `/ontology/rollouts/rollouts/{param}/start` | `String rolloutId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().createStart(...)` | `POST` | `/ontology/rollouts/rollouts/{param}/start` | `String rolloutId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().update(...)` | `PUT` | `/ontology/rollouts/rollouts/{param}` | `String rolloutId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().update(...)` | `PUT` | `/ontology/rollouts/rollouts/{param}` | `String rolloutId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().update(...)` | `PUT` | `/ontology/rollouts/rollouts/{param}` | `String rolloutId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().rollouts().rollouts().update(...)` | `PUT` | `/ontology/rollouts/rollouts/{param}` | `String rolloutId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().runs().list(...)` | `GET` | `/ontology/rollouts/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().rollouts().runs().list(...)` | `GET` | `/ontology/rollouts/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().runs().list(...)` | `GET` | `/ontology/rollouts/runs` | `Class responseType` | `@Nullable T` | +| `ontology().rollouts().runs().list(...)` | `GET` | `/ontology/rollouts/runs` | `TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().runs().get(...)` | `GET` | `/ontology/rollouts/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().rollouts().runs().get(...)` | `GET` | `/ontology/rollouts/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().runs().get(...)` | `GET` | `/ontology/rollouts/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `ontology().rollouts().runs().get(...)` | `GET` | `/ontology/rollouts/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().runs().create(...)` | `POST` | `/ontology/rollouts/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().rollouts().runs().create(...)` | `POST` | `/ontology/rollouts/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().rollouts().runs().create(...)` | `POST` | `/ontology/rollouts/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().rollouts().runs().create(...)` | `POST` | `/ontology/rollouts/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().capabilities().list(...)` | `GET` | `/ontology/rollups/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().rollups().capabilities().list(...)` | `GET` | `/ontology/rollups/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().capabilities().list(...)` | `GET` | `/ontology/rollups/capabilities` | `Class responseType` | `@Nullable T` | +| `ontology().rollups().capabilities().list(...)` | `GET` | `/ontology/rollups/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().rollupResults().get(...)` | `GET` | `/ontology/rollups/rollup-results/{param}` | `String executionId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().rollups().rollupResults().get(...)` | `GET` | `/ontology/rollups/rollup-results/{param}` | `String executionId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().rollupResults().get(...)` | `GET` | `/ontology/rollups/rollup-results/{param}` | `String executionId, Class responseType` | `@Nullable T` | +| `ontology().rollups().rollupResults().get(...)` | `GET` | `/ontology/rollups/rollup-results/{param}` | `String executionId, TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().rollups().delete(...)` | `DELETE` | `/ontology/rollups/rollups/{param}` | `String rollupId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().rollups().rollups().delete(...)` | `DELETE` | `/ontology/rollups/rollups/{param}` | `String rollupId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().rollups().delete(...)` | `DELETE` | `/ontology/rollups/rollups/{param}` | `String rollupId, Class responseType` | `@Nullable T` | +| `ontology().rollups().rollups().delete(...)` | `DELETE` | `/ontology/rollups/rollups/{param}` | `String rollupId, TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().rollups().list(...)` | `GET` | `/ontology/rollups/rollups` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().rollups().rollups().list(...)` | `GET` | `/ontology/rollups/rollups` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().rollups().list(...)` | `GET` | `/ontology/rollups/rollups` | `Class responseType` | `@Nullable T` | +| `ontology().rollups().rollups().list(...)` | `GET` | `/ontology/rollups/rollups` | `TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().rollups().get(...)` | `GET` | `/ontology/rollups/rollups/{param}` | `String rollupId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().rollups().rollups().get(...)` | `GET` | `/ontology/rollups/rollups/{param}` | `String rollupId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().rollups().get(...)` | `GET` | `/ontology/rollups/rollups/{param}` | `String rollupId, Class responseType` | `@Nullable T` | +| `ontology().rollups().rollups().get(...)` | `GET` | `/ontology/rollups/rollups/{param}` | `String rollupId, TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().rollups().getResult(...)` | `GET` | `/ontology/rollups/rollups/{param}/result` | `String rollupId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().rollups().rollups().getResult(...)` | `GET` | `/ontology/rollups/rollups/{param}/result` | `String rollupId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().rollups().getResult(...)` | `GET` | `/ontology/rollups/rollups/{param}/result` | `String rollupId, Class responseType` | `@Nullable T` | +| `ontology().rollups().rollups().getResult(...)` | `GET` | `/ontology/rollups/rollups/{param}/result` | `String rollupId, TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().rollups().create(...)` | `POST` | `/ontology/rollups/rollups` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().rollups().rollups().create(...)` | `POST` | `/ontology/rollups/rollups` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().rollups().create(...)` | `POST` | `/ontology/rollups/rollups` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().rollups().rollups().create(...)` | `POST` | `/ontology/rollups/rollups` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().rollups().execute(...)` | `POST` | `/ontology/rollups/rollups/{param}/execute` | `String rollupId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().rollups().rollups().execute(...)` | `POST` | `/ontology/rollups/rollups/{param}/execute` | `String rollupId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().rollups().execute(...)` | `POST` | `/ontology/rollups/rollups/{param}/execute` | `String rollupId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().rollups().rollups().execute(...)` | `POST` | `/ontology/rollups/rollups/{param}/execute` | `String rollupId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().rollups().preview(...)` | `POST` | `/ontology/rollups/rollups/{param}/preview` | `String rollupId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().rollups().rollups().preview(...)` | `POST` | `/ontology/rollups/rollups/{param}/preview` | `String rollupId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().rollups().preview(...)` | `POST` | `/ontology/rollups/rollups/{param}/preview` | `String rollupId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().rollups().rollups().preview(...)` | `POST` | `/ontology/rollups/rollups/{param}/preview` | `String rollupId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().rollups().update(...)` | `PUT` | `/ontology/rollups/rollups/{param}` | `String rollupId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().rollups().rollups().update(...)` | `PUT` | `/ontology/rollups/rollups/{param}` | `String rollupId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().rollups().update(...)` | `PUT` | `/ontology/rollups/rollups/{param}` | `String rollupId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().rollups().rollups().update(...)` | `PUT` | `/ontology/rollups/rollups/{param}` | `String rollupId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().runs().list(...)` | `GET` | `/ontology/rollups/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().rollups().runs().list(...)` | `GET` | `/ontology/rollups/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().runs().list(...)` | `GET` | `/ontology/rollups/runs` | `Class responseType` | `@Nullable T` | +| `ontology().rollups().runs().list(...)` | `GET` | `/ontology/rollups/runs` | `TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().runs().get(...)` | `GET` | `/ontology/rollups/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().rollups().runs().get(...)` | `GET` | `/ontology/rollups/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().runs().get(...)` | `GET` | `/ontology/rollups/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `ontology().rollups().runs().get(...)` | `GET` | `/ontology/rollups/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().runs().create(...)` | `POST` | `/ontology/rollups/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().rollups().runs().create(...)` | `POST` | `/ontology/rollups/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().rollups().runs().create(...)` | `POST` | `/ontology/rollups/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().rollups().runs().create(...)` | `POST` | `/ontology/rollups/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().schemas().capabilities().list(...)` | `GET` | `/ontology/schemas/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().schemas().capabilities().list(...)` | `GET` | `/ontology/schemas/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().schemas().capabilities().list(...)` | `GET` | `/ontology/schemas/capabilities` | `Class responseType` | `@Nullable T` | +| `ontology().schemas().capabilities().list(...)` | `GET` | `/ontology/schemas/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `ontology().schemas().runs().list(...)` | `GET` | `/ontology/schemas/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().schemas().runs().list(...)` | `GET` | `/ontology/schemas/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().schemas().runs().list(...)` | `GET` | `/ontology/schemas/runs` | `Class responseType` | `@Nullable T` | +| `ontology().schemas().runs().list(...)` | `GET` | `/ontology/schemas/runs` | `TypeReference responseType` | `@Nullable T` | +| `ontology().schemas().runs().get(...)` | `GET` | `/ontology/schemas/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().schemas().runs().get(...)` | `GET` | `/ontology/schemas/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().schemas().runs().get(...)` | `GET` | `/ontology/schemas/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `ontology().schemas().runs().get(...)` | `GET` | `/ontology/schemas/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `ontology().schemas().runs().create(...)` | `POST` | `/ontology/schemas/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().schemas().runs().create(...)` | `POST` | `/ontology/schemas/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().schemas().runs().create(...)` | `POST` | `/ontology/schemas/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().schemas().runs().create(...)` | `POST` | `/ontology/schemas/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().schemas().schemas().delete(...)` | `DELETE` | `/ontology/schemas/schemas/{param}` | `String schemaId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().schemas().schemas().delete(...)` | `DELETE` | `/ontology/schemas/schemas/{param}` | `String schemaId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().schemas().schemas().delete(...)` | `DELETE` | `/ontology/schemas/schemas/{param}` | `String schemaId, Class responseType` | `@Nullable T` | +| `ontology().schemas().schemas().delete(...)` | `DELETE` | `/ontology/schemas/schemas/{param}` | `String schemaId, TypeReference responseType` | `@Nullable T` | +| `ontology().schemas().schemas().list(...)` | `GET` | `/ontology/schemas/schemas` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().schemas().schemas().list(...)` | `GET` | `/ontology/schemas/schemas` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().schemas().schemas().list(...)` | `GET` | `/ontology/schemas/schemas` | `Class responseType` | `@Nullable T` | +| `ontology().schemas().schemas().list(...)` | `GET` | `/ontology/schemas/schemas` | `TypeReference responseType` | `@Nullable T` | +| `ontology().schemas().schemas().get(...)` | `GET` | `/ontology/schemas/schemas/{param}` | `String schemaId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().schemas().schemas().get(...)` | `GET` | `/ontology/schemas/schemas/{param}` | `String schemaId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().schemas().schemas().get(...)` | `GET` | `/ontology/schemas/schemas/{param}` | `String schemaId, Class responseType` | `@Nullable T` | +| `ontology().schemas().schemas().get(...)` | `GET` | `/ontology/schemas/schemas/{param}` | `String schemaId, TypeReference responseType` | `@Nullable T` | +| `ontology().schemas().schemas().create(...)` | `POST` | `/ontology/schemas/schemas` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().schemas().schemas().create(...)` | `POST` | `/ontology/schemas/schemas` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().schemas().schemas().create(...)` | `POST` | `/ontology/schemas/schemas` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().schemas().schemas().create(...)` | `POST` | `/ontology/schemas/schemas` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().schemas().schemas().validate(...)` | `POST` | `/ontology/schemas/schemas/validate` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().schemas().schemas().validate(...)` | `POST` | `/ontology/schemas/schemas/validate` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().schemas().schemas().validate(...)` | `POST` | `/ontology/schemas/schemas/validate` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().schemas().schemas().validate(...)` | `POST` | `/ontology/schemas/schemas/validate` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().transformations().capabilities().list(...)` | `GET` | `/ontology/transformations/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().transformations().capabilities().list(...)` | `GET` | `/ontology/transformations/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().transformations().capabilities().list(...)` | `GET` | `/ontology/transformations/capabilities` | `Class responseType` | `@Nullable T` | +| `ontology().transformations().capabilities().list(...)` | `GET` | `/ontology/transformations/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `ontology().transformations().runs().list(...)` | `GET` | `/ontology/transformations/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().transformations().runs().list(...)` | `GET` | `/ontology/transformations/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().transformations().runs().list(...)` | `GET` | `/ontology/transformations/runs` | `Class responseType` | `@Nullable T` | +| `ontology().transformations().runs().list(...)` | `GET` | `/ontology/transformations/runs` | `TypeReference responseType` | `@Nullable T` | +| `ontology().transformations().runs().get(...)` | `GET` | `/ontology/transformations/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().transformations().runs().get(...)` | `GET` | `/ontology/transformations/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().transformations().runs().get(...)` | `GET` | `/ontology/transformations/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `ontology().transformations().runs().get(...)` | `GET` | `/ontology/transformations/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `ontology().transformations().runs().create(...)` | `POST` | `/ontology/transformations/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().transformations().runs().create(...)` | `POST` | `/ontology/transformations/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().transformations().runs().create(...)` | `POST` | `/ontology/transformations/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().transformations().runs().create(...)` | `POST` | `/ontology/transformations/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().transformations().transformations().create(...)` | `POST` | `/ontology/transformations/transformations` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().transformations().transformations().create(...)` | `POST` | `/ontology/transformations/transformations` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().transformations().transformations().create(...)` | `POST` | `/ontology/transformations/transformations` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().transformations().transformations().create(...)` | `POST` | `/ontology/transformations/transformations` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().validation().capabilities().list(...)` | `GET` | `/ontology/validation/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().validation().capabilities().list(...)` | `GET` | `/ontology/validation/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().validation().capabilities().list(...)` | `GET` | `/ontology/validation/capabilities` | `Class responseType` | `@Nullable T` | +| `ontology().validation().capabilities().list(...)` | `GET` | `/ontology/validation/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `ontology().validation().payloads().validate(...)` | `POST` | `/ontology/validation/payloads/validate` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().validation().payloads().validate(...)` | `POST` | `/ontology/validation/payloads/validate` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().validation().payloads().validate(...)` | `POST` | `/ontology/validation/payloads/validate` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().validation().payloads().validate(...)` | `POST` | `/ontology/validation/payloads/validate` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().validation().rules().delete(...)` | `DELETE` | `/ontology/validation/rules/{param}` | `String ruleId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().validation().rules().delete(...)` | `DELETE` | `/ontology/validation/rules/{param}` | `String ruleId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().validation().rules().delete(...)` | `DELETE` | `/ontology/validation/rules/{param}` | `String ruleId, Class responseType` | `@Nullable T` | +| `ontology().validation().rules().delete(...)` | `DELETE` | `/ontology/validation/rules/{param}` | `String ruleId, TypeReference responseType` | `@Nullable T` | +| `ontology().validation().rules().list(...)` | `GET` | `/ontology/validation/rules` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().validation().rules().list(...)` | `GET` | `/ontology/validation/rules` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().validation().rules().list(...)` | `GET` | `/ontology/validation/rules` | `Class responseType` | `@Nullable T` | +| `ontology().validation().rules().list(...)` | `GET` | `/ontology/validation/rules` | `TypeReference responseType` | `@Nullable T` | +| `ontology().validation().rules().get(...)` | `GET` | `/ontology/validation/rules/{param}` | `String ruleId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().validation().rules().get(...)` | `GET` | `/ontology/validation/rules/{param}` | `String ruleId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().validation().rules().get(...)` | `GET` | `/ontology/validation/rules/{param}` | `String ruleId, Class responseType` | `@Nullable T` | +| `ontology().validation().rules().get(...)` | `GET` | `/ontology/validation/rules/{param}` | `String ruleId, TypeReference responseType` | `@Nullable T` | +| `ontology().validation().rules().create(...)` | `POST` | `/ontology/validation/rules` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().validation().rules().create(...)` | `POST` | `/ontology/validation/rules` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().validation().rules().create(...)` | `POST` | `/ontology/validation/rules` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().validation().rules().create(...)` | `POST` | `/ontology/validation/rules` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().validation().runs().list(...)` | `GET` | `/ontology/validation/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().validation().runs().list(...)` | `GET` | `/ontology/validation/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().validation().runs().list(...)` | `GET` | `/ontology/validation/runs` | `Class responseType` | `@Nullable T` | +| `ontology().validation().runs().list(...)` | `GET` | `/ontology/validation/runs` | `TypeReference responseType` | `@Nullable T` | +| `ontology().validation().runs().get(...)` | `GET` | `/ontology/validation/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().validation().runs().get(...)` | `GET` | `/ontology/validation/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().validation().runs().get(...)` | `GET` | `/ontology/validation/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `ontology().validation().runs().get(...)` | `GET` | `/ontology/validation/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `ontology().validation().runs().create(...)` | `POST` | `/ontology/validation/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().validation().runs().create(...)` | `POST` | `/ontology/validation/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().validation().runs().create(...)` | `POST` | `/ontology/validation/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().validation().runs().create(...)` | `POST` | `/ontology/validation/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().versions().audit().verify(...)` | `POST` | `/ontology/versions/audit/verify` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().versions().audit().verify(...)` | `POST` | `/ontology/versions/audit/verify` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().versions().audit().verify(...)` | `POST` | `/ontology/versions/audit/verify` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().versions().audit().verify(...)` | `POST` | `/ontology/versions/audit/verify` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().versions().capabilities().list(...)` | `GET` | `/ontology/versions/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().versions().capabilities().list(...)` | `GET` | `/ontology/versions/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().versions().capabilities().list(...)` | `GET` | `/ontology/versions/capabilities` | `Class responseType` | `@Nullable T` | +| `ontology().versions().capabilities().list(...)` | `GET` | `/ontology/versions/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `ontology().versions().releaseBundles().list(...)` | `GET` | `/ontology/versions/release-bundles` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().versions().releaseBundles().list(...)` | `GET` | `/ontology/versions/release-bundles` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().versions().releaseBundles().list(...)` | `GET` | `/ontology/versions/release-bundles` | `Class responseType` | `@Nullable T` | +| `ontology().versions().releaseBundles().list(...)` | `GET` | `/ontology/versions/release-bundles` | `TypeReference responseType` | `@Nullable T` | +| `ontology().versions().releaseBundles().get(...)` | `GET` | `/ontology/versions/release-bundles/{param}` | `String bundleId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().versions().releaseBundles().get(...)` | `GET` | `/ontology/versions/release-bundles/{param}` | `String bundleId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().versions().releaseBundles().get(...)` | `GET` | `/ontology/versions/release-bundles/{param}` | `String bundleId, Class responseType` | `@Nullable T` | +| `ontology().versions().releaseBundles().get(...)` | `GET` | `/ontology/versions/release-bundles/{param}` | `String bundleId, TypeReference responseType` | `@Nullable T` | +| `ontology().versions().releaseBundles().create(...)` | `POST` | `/ontology/versions/release-bundles` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().versions().releaseBundles().create(...)` | `POST` | `/ontology/versions/release-bundles` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().versions().releaseBundles().create(...)` | `POST` | `/ontology/versions/release-bundles` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().versions().releaseBundles().create(...)` | `POST` | `/ontology/versions/release-bundles` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().versions().runs().list(...)` | `GET` | `/ontology/versions/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().versions().runs().list(...)` | `GET` | `/ontology/versions/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().versions().runs().list(...)` | `GET` | `/ontology/versions/runs` | `Class responseType` | `@Nullable T` | +| `ontology().versions().runs().list(...)` | `GET` | `/ontology/versions/runs` | `TypeReference responseType` | `@Nullable T` | +| `ontology().versions().runs().get(...)` | `GET` | `/ontology/versions/runs/{param}` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().versions().runs().get(...)` | `GET` | `/ontology/versions/runs/{param}` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().versions().runs().get(...)` | `GET` | `/ontology/versions/runs/{param}` | `String runId, Class responseType` | `@Nullable T` | +| `ontology().versions().runs().get(...)` | `GET` | `/ontology/versions/runs/{param}` | `String runId, TypeReference responseType` | `@Nullable T` | +| `ontology().versions().runs().create(...)` | `POST` | `/ontology/versions/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().versions().runs().create(...)` | `POST` | `/ontology/versions/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().versions().runs().create(...)` | `POST` | `/ontology/versions/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().versions().runs().create(...)` | `POST` | `/ontology/versions/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().versions().versions().delete(...)` | `DELETE` | `/ontology/versions/versions/{param}` | `String versionId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().versions().versions().delete(...)` | `DELETE` | `/ontology/versions/versions/{param}` | `String versionId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().versions().versions().delete(...)` | `DELETE` | `/ontology/versions/versions/{param}` | `String versionId, Class responseType` | `@Nullable T` | +| `ontology().versions().versions().delete(...)` | `DELETE` | `/ontology/versions/versions/{param}` | `String versionId, TypeReference responseType` | `@Nullable T` | +| `ontology().versions().versions().get(...)` | `GET` | `/ontology/versions/versions/{param}` | `String versionId, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().versions().versions().get(...)` | `GET` | `/ontology/versions/versions/{param}` | `String versionId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().versions().versions().get(...)` | `GET` | `/ontology/versions/versions/{param}` | `String versionId, Class responseType` | `@Nullable T` | +| `ontology().versions().versions().get(...)` | `GET` | `/ontology/versions/versions/{param}` | `String versionId, TypeReference responseType` | `@Nullable T` | +| `ontology().versions().versions().create(...)` | `POST` | `/ontology/versions/versions` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().versions().versions().create(...)` | `POST` | `/ontology/versions/versions` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().versions().versions().create(...)` | `POST` | `/ontology/versions/versions` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().versions().versions().create(...)` | `POST` | `/ontology/versions/versions` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().versions().versions().compare(...)` | `POST` | `/ontology/versions/versions/compare` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().versions().versions().compare(...)` | `POST` | `/ontology/versions/versions/compare` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().versions().versions().compare(...)` | `POST` | `/ontology/versions/versions/compare` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().versions().versions().compare(...)` | `POST` | `/ontology/versions/versions/compare` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().engine().ontologies().compareVersions().create(...)` | `POST` | `/ontology/engine/ontologies/compare-versions` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().engine().ontologies().compareVersions().create(...)` | `POST` | `/ontology/engine/ontologies/compare-versions` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().engine().ontologies().compareVersions().create(...)` | `POST` | `/ontology/engine/ontologies/compare-versions` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().engine().ontologies().compareVersions().create(...)` | `POST` | `/ontology/engine/ontologies/compare-versions` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().engine().ontologies().inferClasses().create(...)` | `POST` | `/ontology/engine/ontologies/infer-classes` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().engine().ontologies().inferClasses().create(...)` | `POST` | `/ontology/engine/ontologies/infer-classes` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().engine().ontologies().inferClasses().create(...)` | `POST` | `/ontology/engine/ontologies/infer-classes` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().engine().ontologies().inferClasses().create(...)` | `POST` | `/ontology/engine/ontologies/infer-classes` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().engine().ontologies().inferProperties().create(...)` | `POST` | `/ontology/engine/ontologies/infer-properties` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().engine().ontologies().inferProperties().create(...)` | `POST` | `/ontology/engine/ontologies/infer-properties` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().engine().ontologies().inferProperties().create(...)` | `POST` | `/ontology/engine/ontologies/infer-properties` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().engine().ontologies().inferProperties().create(...)` | `POST` | `/ontology/engine/ontologies/infer-properties` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().events().events().checkpoints().get(...)` | `GET` | `/ontology/events/events/checkpoints/{param}` | `String consumer, QueryParams query, Class responseType` | `@Nullable T` | +| `ontology().events().events().checkpoints().get(...)` | `GET` | `/ontology/events/events/checkpoints/{param}` | `String consumer, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `ontology().events().events().checkpoints().get(...)` | `GET` | `/ontology/events/events/checkpoints/{param}` | `String consumer, Class responseType` | `@Nullable T` | +| `ontology().events().events().checkpoints().get(...)` | `GET` | `/ontology/events/events/checkpoints/{param}` | `String consumer, TypeReference responseType` | `@Nullable T` | +| `ontology().events().events().checkpoints().create(...)` | `POST` | `/ontology/events/events/checkpoints` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().events().events().checkpoints().create(...)` | `POST` | `/ontology/events/events/checkpoints` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().events().events().checkpoints().create(...)` | `POST` | `/ontology/events/events/checkpoints` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().events().events().checkpoints().create(...)` | `POST` | `/ontology/events/events/checkpoints` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().events().events().leases().acknowledge(...)` | `POST` | `/ontology/events/events/leases/acknowledge` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().events().events().leases().acknowledge(...)` | `POST` | `/ontology/events/events/leases/acknowledge` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().events().events().leases().acknowledge(...)` | `POST` | `/ontology/events/events/leases/acknowledge` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().events().events().leases().acknowledge(...)` | `POST` | `/ontology/events/events/leases/acknowledge` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().events().events().leases().acquire(...)` | `POST` | `/ontology/events/events/leases/acquire` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().events().events().leases().acquire(...)` | `POST` | `/ontology/events/events/leases/acquire` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().events().events().leases().acquire(...)` | `POST` | `/ontology/events/events/leases/acquire` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().events().events().leases().acquire(...)` | `POST` | `/ontology/events/events/leases/acquire` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().extract().extract().coreferences().create(...)` | `POST` | `/ontology/extract/extract/coreferences` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().extract().extract().coreferences().create(...)` | `POST` | `/ontology/extract/extract/coreferences` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().extract().extract().coreferences().create(...)` | `POST` | `/ontology/extract/extract/coreferences` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().extract().extract().coreferences().create(...)` | `POST` | `/ontology/extract/extract/coreferences` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().extract().extract().entities().create(...)` | `POST` | `/ontology/extract/extract/entities` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().extract().extract().entities().create(...)` | `POST` | `/ontology/extract/extract/entities` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().extract().extract().entities().create(...)` | `POST` | `/ontology/extract/extract/entities` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().extract().extract().entities().create(...)` | `POST` | `/ontology/extract/extract/entities` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().extract().extract().events().create(...)` | `POST` | `/ontology/extract/extract/events` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().extract().extract().events().create(...)` | `POST` | `/ontology/extract/extract/events` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().extract().extract().events().create(...)` | `POST` | `/ontology/extract/extract/events` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().extract().extract().events().create(...)` | `POST` | `/ontology/extract/extract/events` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().extract().extract().relations().create(...)` | `POST` | `/ontology/extract/extract/relations` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().extract().extract().relations().create(...)` | `POST` | `/ontology/extract/extract/relations` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().extract().extract().relations().create(...)` | `POST` | `/ontology/extract/extract/relations` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().extract().extract().relations().create(...)` | `POST` | `/ontology/extract/extract/relations` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().extract().extract().triplets().create(...)` | `POST` | `/ontology/extract/extract/triplets` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().extract().extract().triplets().create(...)` | `POST` | `/ontology/extract/extract/triplets` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `ontology().extract().extract().triplets().create(...)` | `POST` | `/ontology/extract/extract/triplets` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `ontology().extract().extract().triplets().create(...)` | `POST` | `/ontology/extract/extract/triplets` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | + +The generic `request(...)` methods and `Endpoints` constants remain available. diff --git a/docs/api/pipelines.md b/docs/api/pipelines.md new file mode 100644 index 0000000..fa36e66 --- /dev/null +++ b/docs/api/pipelines.md @@ -0,0 +1,54 @@ +# Pipelines API + +Service accessor: `frontal.pipelines()` (`PipelinesClient`). + +Operations are grouped by resource path. Collection methods use `list` and `create`; item methods use `get`, `update`, and `delete`. Calls can omit `QueryParams` when no query values are needed. Use contract-defined `JsonNode` bodies and caller-selected response types where schemas are not available. + +| Method | HTTP | Route | Parameters | Response | +| --- | --- | --- | --- | --- | +| `pipelines().data().pipelines().health(...)` | `GET` | `/data/pipelines/health` | `QueryParams query, Class responseType` | `@Nullable T` | +| `pipelines().data().pipelines().health(...)` | `GET` | `/data/pipelines/health` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `pipelines().data().pipelines().health(...)` | `GET` | `/data/pipelines/health` | `Class responseType` | `@Nullable T` | +| `pipelines().data().pipelines().health(...)` | `GET` | `/data/pipelines/health` | `TypeReference responseType` | `@Nullable T` | +| `pipelines().data().pipelines().getInfo(...)` | `GET` | `/data/pipelines/info` | `QueryParams query, Class responseType` | `@Nullable T` | +| `pipelines().data().pipelines().getInfo(...)` | `GET` | `/data/pipelines/info` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `pipelines().data().pipelines().getInfo(...)` | `GET` | `/data/pipelines/info` | `Class responseType` | `@Nullable T` | +| `pipelines().data().pipelines().getInfo(...)` | `GET` | `/data/pipelines/info` | `TypeReference responseType` | `@Nullable T` | +| `pipelines().data().pipelines().capabilities().list(...)` | `GET` | `/data/pipelines/capabilities` | `QueryParams query, Class responseType` | `@Nullable T` | +| `pipelines().data().pipelines().capabilities().list(...)` | `GET` | `/data/pipelines/capabilities` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `pipelines().data().pipelines().capabilities().list(...)` | `GET` | `/data/pipelines/capabilities` | `Class responseType` | `@Nullable T` | +| `pipelines().data().pipelines().capabilities().list(...)` | `GET` | `/data/pipelines/capabilities` | `TypeReference responseType` | `@Nullable T` | +| `pipelines().data().pipelines().pipelineRuns().list(...)` | `GET` | `/data/pipelines/pipeline-runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `pipelines().data().pipelines().pipelineRuns().list(...)` | `GET` | `/data/pipelines/pipeline-runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `pipelines().data().pipelines().pipelineRuns().list(...)` | `GET` | `/data/pipelines/pipeline-runs` | `Class responseType` | `@Nullable T` | +| `pipelines().data().pipelines().pipelineRuns().list(...)` | `GET` | `/data/pipelines/pipeline-runs` | `TypeReference responseType` | `@Nullable T` | +| `pipelines().data().pipelines().pipelineRuns().get(...)` | `GET` | `/data/pipelines/pipeline-runs/{param}` | `String pipelineRunId, QueryParams query, Class responseType` | `@Nullable T` | +| `pipelines().data().pipelines().pipelineRuns().get(...)` | `GET` | `/data/pipelines/pipeline-runs/{param}` | `String pipelineRunId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `pipelines().data().pipelines().pipelineRuns().get(...)` | `GET` | `/data/pipelines/pipeline-runs/{param}` | `String pipelineRunId, Class responseType` | `@Nullable T` | +| `pipelines().data().pipelines().pipelineRuns().get(...)` | `GET` | `/data/pipelines/pipeline-runs/{param}` | `String pipelineRunId, TypeReference responseType` | `@Nullable T` | +| `pipelines().data().pipelines().pipelineRuns().get2(...)` | `STREAM` | `/data/pipelines/pipeline-runs/{param}` | `String pipelineRunId, QueryParams query` | `Flow.Publisher` | +| `pipelines().data().pipelines().pipelineRuns().get2(...)` | `STREAM` | `/data/pipelines/pipeline-runs/{param}` | `String pipelineRunId` | `Flow.Publisher` | +| `pipelines().data().pipelines().pipelineRuns().get2Blocking(...)` | `STREAM` | `/data/pipelines/pipeline-runs/{param}` | `String pipelineRunId, QueryParams query` | `SseEventIterator` | +| `pipelines().data().pipelines().pipelineRuns().get2Blocking(...)` | `STREAM` | `/data/pipelines/pipeline-runs/{param}` | `String pipelineRunId` | `SseEventIterator` | +| `pipelines().data().pipelines().pipelines().list(...)` | `GET` | `/data/pipelines/pipelines` | `QueryParams query, Class responseType` | `@Nullable T` | +| `pipelines().data().pipelines().pipelines().list(...)` | `GET` | `/data/pipelines/pipelines` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `pipelines().data().pipelines().pipelines().list(...)` | `GET` | `/data/pipelines/pipelines` | `Class responseType` | `@Nullable T` | +| `pipelines().data().pipelines().pipelines().list(...)` | `GET` | `/data/pipelines/pipelines` | `TypeReference responseType` | `@Nullable T` | +| `pipelines().data().pipelines().pipelines().get(...)` | `GET` | `/data/pipelines/pipelines/{param}` | `String pipelineId, QueryParams query, Class responseType` | `@Nullable T` | +| `pipelines().data().pipelines().pipelines().get(...)` | `GET` | `/data/pipelines/pipelines/{param}` | `String pipelineId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `pipelines().data().pipelines().pipelines().get(...)` | `GET` | `/data/pipelines/pipelines/{param}` | `String pipelineId, Class responseType` | `@Nullable T` | +| `pipelines().data().pipelines().pipelines().get(...)` | `GET` | `/data/pipelines/pipelines/{param}` | `String pipelineId, TypeReference responseType` | `@Nullable T` | +| `pipelines().data().pipelines().pipelines().create(...)` | `POST` | `/data/pipelines/pipelines` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `pipelines().data().pipelines().pipelines().create(...)` | `POST` | `/data/pipelines/pipelines` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `pipelines().data().pipelines().pipelines().create(...)` | `POST` | `/data/pipelines/pipelines` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `pipelines().data().pipelines().pipelines().create(...)` | `POST` | `/data/pipelines/pipelines` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `pipelines().data().pipelines().runs().list(...)` | `GET` | `/data/pipelines/runs` | `QueryParams query, Class responseType` | `@Nullable T` | +| `pipelines().data().pipelines().runs().list(...)` | `GET` | `/data/pipelines/runs` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `pipelines().data().pipelines().runs().list(...)` | `GET` | `/data/pipelines/runs` | `Class responseType` | `@Nullable T` | +| `pipelines().data().pipelines().runs().list(...)` | `GET` | `/data/pipelines/runs` | `TypeReference responseType` | `@Nullable T` | +| `pipelines().data().pipelines().runs().create(...)` | `POST` | `/data/pipelines/runs` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `pipelines().data().pipelines().runs().create(...)` | `POST` | `/data/pipelines/runs` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `pipelines().data().pipelines().runs().create(...)` | `POST` | `/data/pipelines/runs` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `pipelines().data().pipelines().runs().create(...)` | `POST` | `/data/pipelines/runs` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | + +The generic `request(...)` methods and `Endpoints` constants remain available. diff --git a/docs/api/providers.md b/docs/api/providers.md new file mode 100644 index 0000000..406f7c8 --- /dev/null +++ b/docs/api/providers.md @@ -0,0 +1,14 @@ +# Providers API + +Service accessor: `frontal.providers()` (`ProvidersClient`). + +Operations are grouped by resource path. Collection methods use `list` and `create`; item methods use `get`, `update`, and `delete`. Calls can omit `QueryParams` when no query values are needed. Use contract-defined `JsonNode` bodies and caller-selected response types where schemas are not available. + +| Method | HTTP | Route | Parameters | Response | +| --- | --- | --- | --- | --- | +| `providers().get(...)` | `GET` | `/providers/{param}` | `String providerSlug, QueryParams query, Class responseType` | `@Nullable T` | +| `providers().get(...)` | `GET` | `/providers/{param}` | `String providerSlug, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `providers().get(...)` | `GET` | `/providers/{param}` | `String providerSlug, Class responseType` | `@Nullable T` | +| `providers().get(...)` | `GET` | `/providers/{param}` | `String providerSlug, TypeReference responseType` | `@Nullable T` | + +The generic `request(...)` methods and `Endpoints` constants remain available. diff --git a/docs/api/react.md b/docs/api/react.md new file mode 100644 index 0000000..2cbf34e --- /dev/null +++ b/docs/api/react.md @@ -0,0 +1,10 @@ +# React API + +Service accessor: `frontal.react()` (`ReactClient`). + +Operations are grouped by resource path. Collection methods use `list` and `create`; item methods use `get`, `update`, and `delete`. Calls can omit `QueryParams` when no query values are needed. Use contract-defined `JsonNode` bodies and caller-selected response types where schemas are not available. + +| Method | HTTP | Route | Parameters | Response | +| --- | --- | --- | --- | --- | + +The generic `request(...)` methods and `Endpoints` constants remain available. diff --git a/docs/api/sandbox.md b/docs/api/sandbox.md new file mode 100644 index 0000000..bddf2ec --- /dev/null +++ b/docs/api/sandbox.md @@ -0,0 +1,22 @@ +# Sandbox API + +Service accessor: `frontal.sandbox()` (`SandboxClient`). + +Operations are grouped by resource path. Collection methods use `list` and `create`; item methods use `get`, `update`, and `delete`. Calls can omit `QueryParams` when no query values are needed. Use contract-defined `JsonNode` bodies and caller-selected response types where schemas are not available. + +| Method | HTTP | Route | Parameters | Response | +| --- | --- | --- | --- | --- | +| `sandbox().createSelfTest(...)` | `POST` | `/sandbox/self-test` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `sandbox().createSelfTest(...)` | `POST` | `/sandbox/self-test` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `sandbox().createSelfTest(...)` | `POST` | `/sandbox/self-test` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `sandbox().createSelfTest(...)` | `POST` | `/sandbox/self-test` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `sandbox().submit(...)` | `POST` | `/sandbox/submit` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `sandbox().submit(...)` | `POST` | `/sandbox/submit` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `sandbox().submit(...)` | `POST` | `/sandbox/submit` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `sandbox().submit(...)` | `POST` | `/sandbox/submit` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `sandbox().languages().list(...)` | `GET` | `/sandbox/languages` | `QueryParams query, Class responseType` | `@Nullable T` | +| `sandbox().languages().list(...)` | `GET` | `/sandbox/languages` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `sandbox().languages().list(...)` | `GET` | `/sandbox/languages` | `Class responseType` | `@Nullable T` | +| `sandbox().languages().list(...)` | `GET` | `/sandbox/languages` | `TypeReference responseType` | `@Nullable T` | + +The generic `request(...)` methods and `Endpoints` constants remain available. diff --git a/docs/api/schedules.md b/docs/api/schedules.md new file mode 100644 index 0000000..5249f9d --- /dev/null +++ b/docs/api/schedules.md @@ -0,0 +1,50 @@ +# Schedules API + +Service accessor: `frontal.schedules()` (`SchedulesClient`). + +Operations are grouped by resource path. Collection methods use `list` and `create`; item methods use `get`, `update`, and `delete`. Calls can omit `QueryParams` when no query values are needed. Use contract-defined `JsonNode` bodies and caller-selected response types where schemas are not available. + +| Method | HTTP | Route | Parameters | Response | +| --- | --- | --- | --- | --- | +| `schedules().workflows().cron().parse(...)` | `POST` | `/workflows/cron/parse` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `schedules().workflows().cron().parse(...)` | `POST` | `/workflows/cron/parse` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `schedules().workflows().cron().parse(...)` | `POST` | `/workflows/cron/parse` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `schedules().workflows().cron().parse(...)` | `POST` | `/workflows/cron/parse` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `schedules().workflows().cron().validate(...)` | `POST` | `/workflows/cron/validate` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `schedules().workflows().cron().validate(...)` | `POST` | `/workflows/cron/validate` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `schedules().workflows().cron().validate(...)` | `POST` | `/workflows/cron/validate` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `schedules().workflows().cron().validate(...)` | `POST` | `/workflows/cron/validate` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `schedules().workflows().schedules().delete(...)` | `DELETE` | `/workflows/schedules/{param}` | `String scheduleId, QueryParams query, Class responseType` | `@Nullable T` | +| `schedules().workflows().schedules().delete(...)` | `DELETE` | `/workflows/schedules/{param}` | `String scheduleId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `schedules().workflows().schedules().delete(...)` | `DELETE` | `/workflows/schedules/{param}` | `String scheduleId, Class responseType` | `@Nullable T` | +| `schedules().workflows().schedules().delete(...)` | `DELETE` | `/workflows/schedules/{param}` | `String scheduleId, TypeReference responseType` | `@Nullable T` | +| `schedules().workflows().schedules().list(...)` | `GET` | `/workflows/schedules` | `QueryParams query, Class responseType` | `@Nullable T` | +| `schedules().workflows().schedules().list(...)` | `GET` | `/workflows/schedules` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `schedules().workflows().schedules().list(...)` | `GET` | `/workflows/schedules` | `Class responseType` | `@Nullable T` | +| `schedules().workflows().schedules().list(...)` | `GET` | `/workflows/schedules` | `TypeReference responseType` | `@Nullable T` | +| `schedules().workflows().schedules().get(...)` | `GET` | `/workflows/schedules/{param}` | `String scheduleId, QueryParams query, Class responseType` | `@Nullable T` | +| `schedules().workflows().schedules().get(...)` | `GET` | `/workflows/schedules/{param}` | `String scheduleId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `schedules().workflows().schedules().get(...)` | `GET` | `/workflows/schedules/{param}` | `String scheduleId, Class responseType` | `@Nullable T` | +| `schedules().workflows().schedules().get(...)` | `GET` | `/workflows/schedules/{param}` | `String scheduleId, TypeReference responseType` | `@Nullable T` | +| `schedules().workflows().schedules().update(...)` | `PATCH` | `/workflows/schedules/{param}` | `String scheduleId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `schedules().workflows().schedules().update(...)` | `PATCH` | `/workflows/schedules/{param}` | `String scheduleId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `schedules().workflows().schedules().update(...)` | `PATCH` | `/workflows/schedules/{param}` | `String scheduleId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `schedules().workflows().schedules().update(...)` | `PATCH` | `/workflows/schedules/{param}` | `String scheduleId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `schedules().workflows().schedules().create(...)` | `POST` | `/workflows/schedules` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `schedules().workflows().schedules().create(...)` | `POST` | `/workflows/schedules` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `schedules().workflows().schedules().create(...)` | `POST` | `/workflows/schedules` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `schedules().workflows().schedules().create(...)` | `POST` | `/workflows/schedules` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `schedules().workflows().schedules().pause(...)` | `POST` | `/workflows/schedules/{param}/pause` | `String scheduleId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `schedules().workflows().schedules().pause(...)` | `POST` | `/workflows/schedules/{param}/pause` | `String scheduleId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `schedules().workflows().schedules().pause(...)` | `POST` | `/workflows/schedules/{param}/pause` | `String scheduleId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `schedules().workflows().schedules().pause(...)` | `POST` | `/workflows/schedules/{param}/pause` | `String scheduleId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `schedules().workflows().schedules().resume(...)` | `POST` | `/workflows/schedules/{param}/resume` | `String scheduleId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `schedules().workflows().schedules().resume(...)` | `POST` | `/workflows/schedules/{param}/resume` | `String scheduleId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `schedules().workflows().schedules().resume(...)` | `POST` | `/workflows/schedules/{param}/resume` | `String scheduleId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `schedules().workflows().schedules().resume(...)` | `POST` | `/workflows/schedules/{param}/resume` | `String scheduleId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `schedules().workflows().schedules().trigger(...)` | `POST` | `/workflows/schedules/{param}/trigger` | `String scheduleId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `schedules().workflows().schedules().trigger(...)` | `POST` | `/workflows/schedules/{param}/trigger` | `String scheduleId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `schedules().workflows().schedules().trigger(...)` | `POST` | `/workflows/schedules/{param}/trigger` | `String scheduleId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `schedules().workflows().schedules().trigger(...)` | `POST` | `/workflows/schedules/{param}/trigger` | `String scheduleId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | + +The generic `request(...)` methods and `Endpoints` constants remain available. diff --git a/docs/api/webhook-endpoints.md b/docs/api/webhook-endpoints.md new file mode 100644 index 0000000..f7e03db --- /dev/null +++ b/docs/api/webhook-endpoints.md @@ -0,0 +1,38 @@ +# WebhookEndpoints API + +Service accessor: `frontal.webhookEndpoints()` (`WebhookEndpointsClient`). + +Operations are grouped by resource path. Collection methods use `list` and `create`; item methods use `get`, `update`, and `delete`. Calls can omit `QueryParams` when no query values are needed. Use contract-defined `JsonNode` bodies and caller-selected response types where schemas are not available. + +| Method | HTTP | Route | Parameters | Response | +| --- | --- | --- | --- | --- | +| `webhookEndpoints().delete(...)` | `DELETE` | `/webhook-endpoints/{param}` | `String id, QueryParams query, Class responseType` | `@Nullable T` | +| `webhookEndpoints().delete(...)` | `DELETE` | `/webhook-endpoints/{param}` | `String id, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `webhookEndpoints().delete(...)` | `DELETE` | `/webhook-endpoints/{param}` | `String id, Class responseType` | `@Nullable T` | +| `webhookEndpoints().delete(...)` | `DELETE` | `/webhook-endpoints/{param}` | `String id, TypeReference responseType` | `@Nullable T` | +| `webhookEndpoints().list(...)` | `GET` | `/webhook-endpoints` | `QueryParams query, Class responseType` | `@Nullable T` | +| `webhookEndpoints().list(...)` | `GET` | `/webhook-endpoints` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `webhookEndpoints().list(...)` | `GET` | `/webhook-endpoints` | `Class responseType` | `@Nullable T` | +| `webhookEndpoints().list(...)` | `GET` | `/webhook-endpoints` | `TypeReference responseType` | `@Nullable T` | +| `webhookEndpoints().get(...)` | `GET` | `/webhook-endpoints/{param}` | `String id, QueryParams query, Class responseType` | `@Nullable T` | +| `webhookEndpoints().get(...)` | `GET` | `/webhook-endpoints/{param}` | `String id, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `webhookEndpoints().get(...)` | `GET` | `/webhook-endpoints/{param}` | `String id, Class responseType` | `@Nullable T` | +| `webhookEndpoints().get(...)` | `GET` | `/webhook-endpoints/{param}` | `String id, TypeReference responseType` | `@Nullable T` | +| `webhookEndpoints().update(...)` | `PATCH` | `/webhook-endpoints/{param}` | `String id, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `webhookEndpoints().update(...)` | `PATCH` | `/webhook-endpoints/{param}` | `String id, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `webhookEndpoints().update(...)` | `PATCH` | `/webhook-endpoints/{param}` | `String id, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `webhookEndpoints().update(...)` | `PATCH` | `/webhook-endpoints/{param}` | `String id, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `webhookEndpoints().create(...)` | `POST` | `/webhook-endpoints` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `webhookEndpoints().create(...)` | `POST` | `/webhook-endpoints` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `webhookEndpoints().create(...)` | `POST` | `/webhook-endpoints` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `webhookEndpoints().create(...)` | `POST` | `/webhook-endpoints` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `webhookEndpoints().rotateSecret(...)` | `POST` | `/webhook-endpoints/{param}/rotate-secret` | `String id, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `webhookEndpoints().rotateSecret(...)` | `POST` | `/webhook-endpoints/{param}/rotate-secret` | `String id, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `webhookEndpoints().rotateSecret(...)` | `POST` | `/webhook-endpoints/{param}/rotate-secret` | `String id, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `webhookEndpoints().rotateSecret(...)` | `POST` | `/webhook-endpoints/{param}/rotate-secret` | `String id, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `webhookEndpoints().deliveries().list(...)` | `GET` | `/webhook-endpoints/{param}/deliveries` | `String id, QueryParams query, Class responseType` | `@Nullable T` | +| `webhookEndpoints().deliveries().list(...)` | `GET` | `/webhook-endpoints/{param}/deliveries` | `String id, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `webhookEndpoints().deliveries().list(...)` | `GET` | `/webhook-endpoints/{param}/deliveries` | `String id, Class responseType` | `@Nullable T` | +| `webhookEndpoints().deliveries().list(...)` | `GET` | `/webhook-endpoints/{param}/deliveries` | `String id, TypeReference responseType` | `@Nullable T` | + +The generic `request(...)` methods and `Endpoints` constants remain available. diff --git a/docs/api/webhooks.md b/docs/api/webhooks.md new file mode 100644 index 0000000..3a38565 --- /dev/null +++ b/docs/api/webhooks.md @@ -0,0 +1,50 @@ +# Webhooks API + +Service accessor: `frontal.webhooks()` (`WebhooksClient`). + +Operations are grouped by resource path. Collection methods use `list` and `create`; item methods use `get`, `update`, and `delete`. Calls can omit `QueryParams` when no query values are needed. Use contract-defined `JsonNode` bodies and caller-selected response types where schemas are not available. + +| Method | HTTP | Route | Parameters | Response | +| --- | --- | --- | --- | --- | +| `webhooks().delete(...)` | `DELETE` | `/webhooks/{param}` | `String webhookId, QueryParams query, Class responseType` | `@Nullable T` | +| `webhooks().delete(...)` | `DELETE` | `/webhooks/{param}` | `String webhookId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `webhooks().delete(...)` | `DELETE` | `/webhooks/{param}` | `String webhookId, Class responseType` | `@Nullable T` | +| `webhooks().delete(...)` | `DELETE` | `/webhooks/{param}` | `String webhookId, TypeReference responseType` | `@Nullable T` | +| `webhooks().list(...)` | `GET` | `/webhooks` | `QueryParams query, Class responseType` | `@Nullable T` | +| `webhooks().list(...)` | `GET` | `/webhooks` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `webhooks().list(...)` | `GET` | `/webhooks` | `Class responseType` | `@Nullable T` | +| `webhooks().list(...)` | `GET` | `/webhooks` | `TypeReference responseType` | `@Nullable T` | +| `webhooks().get(...)` | `GET` | `/webhooks/{param}` | `String webhookId, QueryParams query, Class responseType` | `@Nullable T` | +| `webhooks().get(...)` | `GET` | `/webhooks/{param}` | `String webhookId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `webhooks().get(...)` | `GET` | `/webhooks/{param}` | `String webhookId, Class responseType` | `@Nullable T` | +| `webhooks().get(...)` | `GET` | `/webhooks/{param}` | `String webhookId, TypeReference responseType` | `@Nullable T` | +| `webhooks().create(...)` | `POST` | `/webhooks` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `webhooks().create(...)` | `POST` | `/webhooks` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `webhooks().create(...)` | `POST` | `/webhooks` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `webhooks().create(...)` | `POST` | `/webhooks` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `webhooks().rotateSecret(...)` | `POST` | `/webhooks/{param}/rotate-secret` | `String webhookId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `webhooks().rotateSecret(...)` | `POST` | `/webhooks/{param}/rotate-secret` | `String webhookId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `webhooks().rotateSecret(...)` | `POST` | `/webhooks/{param}/rotate-secret` | `String webhookId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `webhooks().rotateSecret(...)` | `POST` | `/webhooks/{param}/rotate-secret` | `String webhookId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `webhooks().update(...)` | `PUT` | `/webhooks/{param}` | `String webhookId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `webhooks().update(...)` | `PUT` | `/webhooks/{param}` | `String webhookId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `webhooks().update(...)` | `PUT` | `/webhooks/{param}` | `String webhookId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `webhooks().update(...)` | `PUT` | `/webhooks/{param}` | `String webhookId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `webhooks().deliveries().list(...)` | `GET` | `/webhooks/deliveries` | `QueryParams query, Class responseType` | `@Nullable T` | +| `webhooks().deliveries().list(...)` | `GET` | `/webhooks/deliveries` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `webhooks().deliveries().list(...)` | `GET` | `/webhooks/deliveries` | `Class responseType` | `@Nullable T` | +| `webhooks().deliveries().list(...)` | `GET` | `/webhooks/deliveries` | `TypeReference responseType` | `@Nullable T` | +| `webhooks().deliveries().get(...)` | `GET` | `/webhooks/deliveries/{param}` | `String deliveryId, QueryParams query, Class responseType` | `@Nullable T` | +| `webhooks().deliveries().get(...)` | `GET` | `/webhooks/deliveries/{param}` | `String deliveryId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `webhooks().deliveries().get(...)` | `GET` | `/webhooks/deliveries/{param}` | `String deliveryId, Class responseType` | `@Nullable T` | +| `webhooks().deliveries().get(...)` | `GET` | `/webhooks/deliveries/{param}` | `String deliveryId, TypeReference responseType` | `@Nullable T` | +| `webhooks().deliveries().retry(...)` | `POST` | `/webhooks/deliveries/{param}/retry` | `String deliveryId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `webhooks().deliveries().retry(...)` | `POST` | `/webhooks/deliveries/{param}/retry` | `String deliveryId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `webhooks().deliveries().retry(...)` | `POST` | `/webhooks/deliveries/{param}/retry` | `String deliveryId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `webhooks().deliveries().retry(...)` | `POST` | `/webhooks/deliveries/{param}/retry` | `String deliveryId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `webhooks().stats().list(...)` | `GET` | `/webhooks/stats` | `QueryParams query, Class responseType` | `@Nullable T` | +| `webhooks().stats().list(...)` | `GET` | `/webhooks/stats` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `webhooks().stats().list(...)` | `GET` | `/webhooks/stats` | `Class responseType` | `@Nullable T` | +| `webhooks().stats().list(...)` | `GET` | `/webhooks/stats` | `TypeReference responseType` | `@Nullable T` | + +The generic `request(...)` methods and `Endpoints` constants remain available. diff --git a/docs/api/workflows.md b/docs/api/workflows.md new file mode 100644 index 0000000..281d069 --- /dev/null +++ b/docs/api/workflows.md @@ -0,0 +1,130 @@ +# Workflows API + +Service accessor: `frontal.workflows()` (`WorkflowsServiceClient`). + +Operations are grouped by resource path. Collection methods use `list` and `create`; item methods use `get`, `update`, and `delete`. Calls can omit `QueryParams` when no query values are needed. Use contract-defined `JsonNode` bodies and caller-selected response types where schemas are not available. + +| Method | HTTP | Route | Parameters | Response | +| --- | --- | --- | --- | --- | +| `workflows().delete(...)` | `DELETE` | `/workflows/{param}` | `String workflowId, QueryParams query, Class responseType` | `@Nullable T` | +| `workflows().delete(...)` | `DELETE` | `/workflows/{param}` | `String workflowId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `workflows().delete(...)` | `DELETE` | `/workflows/{param}` | `String workflowId, Class responseType` | `@Nullable T` | +| `workflows().delete(...)` | `DELETE` | `/workflows/{param}` | `String workflowId, TypeReference responseType` | `@Nullable T` | +| `workflows().list(...)` | `GET` | `/workflows` | `QueryParams query, Class responseType` | `@Nullable T` | +| `workflows().list(...)` | `GET` | `/workflows` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `workflows().list(...)` | `GET` | `/workflows` | `Class responseType` | `@Nullable T` | +| `workflows().list(...)` | `GET` | `/workflows` | `TypeReference responseType` | `@Nullable T` | +| `workflows().get(...)` | `GET` | `/workflows/{param}` | `String workflowId, QueryParams query, Class responseType` | `@Nullable T` | +| `workflows().get(...)` | `GET` | `/workflows/{param}` | `String workflowId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `workflows().get(...)` | `GET` | `/workflows/{param}` | `String workflowId, Class responseType` | `@Nullable T` | +| `workflows().get(...)` | `GET` | `/workflows/{param}` | `String workflowId, TypeReference responseType` | `@Nullable T` | +| `workflows().get2(...)` | `GET` | `/workflows/{param}/{param}` | `String workflowId, String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `workflows().get2(...)` | `GET` | `/workflows/{param}/{param}` | `String workflowId, String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `workflows().get2(...)` | `GET` | `/workflows/{param}/{param}` | `String workflowId, String runId, Class responseType` | `@Nullable T` | +| `workflows().get2(...)` | `GET` | `/workflows/{param}/{param}` | `String workflowId, String runId, TypeReference responseType` | `@Nullable T` | +| `workflows().summary(...)` | `GET` | `/workflows/{param}/{param}/summary` | `String workflowId, String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `workflows().summary(...)` | `GET` | `/workflows/{param}/{param}/summary` | `String workflowId, String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `workflows().summary(...)` | `GET` | `/workflows/{param}/{param}/summary` | `String workflowId, String runId, Class responseType` | `@Nullable T` | +| `workflows().summary(...)` | `GET` | `/workflows/{param}/{param}/summary` | `String workflowId, String runId, TypeReference responseType` | `@Nullable T` | +| `workflows().timeline(...)` | `GET` | `/workflows/{param}/{param}/timeline` | `String workflowId, String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `workflows().timeline(...)` | `GET` | `/workflows/{param}/{param}/timeline` | `String workflowId, String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `workflows().timeline(...)` | `GET` | `/workflows/{param}/{param}/timeline` | `String workflowId, String runId, Class responseType` | `@Nullable T` | +| `workflows().timeline(...)` | `GET` | `/workflows/{param}/{param}/timeline` | `String workflowId, String runId, TypeReference responseType` | `@Nullable T` | +| `workflows().update(...)` | `PATCH` | `/workflows/{param}` | `String workflowId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().update(...)` | `PATCH` | `/workflows/{param}` | `String workflowId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().update(...)` | `PATCH` | `/workflows/{param}` | `String workflowId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().update(...)` | `PATCH` | `/workflows/{param}` | `String workflowId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().create(...)` | `POST` | `/workflows` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().create(...)` | `POST` | `/workflows` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().create(...)` | `POST` | `/workflows` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().create(...)` | `POST` | `/workflows` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().batch(...)` | `POST` | `/workflows/batch` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().batch(...)` | `POST` | `/workflows/batch` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().batch(...)` | `POST` | `/workflows/batch` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().batch(...)` | `POST` | `/workflows/batch` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().search(...)` | `POST` | `/workflows/search` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().search(...)` | `POST` | `/workflows/search` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().search(...)` | `POST` | `/workflows/search` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().search(...)` | `POST` | `/workflows/search` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().archive(...)` | `POST` | `/workflows/{param}/archive` | `String workflowId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().archive(...)` | `POST` | `/workflows/{param}/archive` | `String workflowId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().archive(...)` | `POST` | `/workflows/{param}/archive` | `String workflowId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().archive(...)` | `POST` | `/workflows/{param}/archive` | `String workflowId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().publish(...)` | `POST` | `/workflows/{param}/publish` | `String workflowId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().publish(...)` | `POST` | `/workflows/{param}/publish` | `String workflowId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().publish(...)` | `POST` | `/workflows/{param}/publish` | `String workflowId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().publish(...)` | `POST` | `/workflows/{param}/publish` | `String workflowId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().restore(...)` | `POST` | `/workflows/{param}/restore` | `String workflowId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().restore(...)` | `POST` | `/workflows/{param}/restore` | `String workflowId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().restore(...)` | `POST` | `/workflows/{param}/restore` | `String workflowId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().restore(...)` | `POST` | `/workflows/{param}/restore` | `String workflowId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().approvals().list(...)` | `GET` | `/workflows/approvals` | `QueryParams query, Class responseType` | `@Nullable T` | +| `workflows().approvals().list(...)` | `GET` | `/workflows/approvals` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `workflows().approvals().list(...)` | `GET` | `/workflows/approvals` | `Class responseType` | `@Nullable T` | +| `workflows().approvals().list(...)` | `GET` | `/workflows/approvals` | `TypeReference responseType` | `@Nullable T` | +| `workflows().approvals().get(...)` | `GET` | `/workflows/approvals/{param}` | `String approvalId, QueryParams query, Class responseType` | `@Nullable T` | +| `workflows().approvals().get(...)` | `GET` | `/workflows/approvals/{param}` | `String approvalId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `workflows().approvals().get(...)` | `GET` | `/workflows/approvals/{param}` | `String approvalId, Class responseType` | `@Nullable T` | +| `workflows().approvals().get(...)` | `GET` | `/workflows/approvals/{param}` | `String approvalId, TypeReference responseType` | `@Nullable T` | +| `workflows().approvals().approve(...)` | `POST` | `/workflows/approvals/{param}/approve` | `String approvalId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().approvals().approve(...)` | `POST` | `/workflows/approvals/{param}/approve` | `String approvalId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().approvals().approve(...)` | `POST` | `/workflows/approvals/{param}/approve` | `String approvalId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().approvals().approve(...)` | `POST` | `/workflows/approvals/{param}/approve` | `String approvalId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().approvals().reject(...)` | `POST` | `/workflows/approvals/{param}/reject` | `String approvalId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().approvals().reject(...)` | `POST` | `/workflows/approvals/{param}/reject` | `String approvalId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().approvals().reject(...)` | `POST` | `/workflows/approvals/{param}/reject` | `String approvalId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().approvals().reject(...)` | `POST` | `/workflows/approvals/{param}/reject` | `String approvalId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().executions().list(...)` | `GET` | `/workflows/executions` | `QueryParams query, Class responseType` | `@Nullable T` | +| `workflows().executions().list(...)` | `GET` | `/workflows/executions` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `workflows().executions().list(...)` | `GET` | `/workflows/executions` | `Class responseType` | `@Nullable T` | +| `workflows().executions().list(...)` | `GET` | `/workflows/executions` | `TypeReference responseType` | `@Nullable T` | +| `workflows().executions().get(...)` | `GET` | `/workflows/executions/{param}` | `String executionId, QueryParams query, Class responseType` | `@Nullable T` | +| `workflows().executions().get(...)` | `GET` | `/workflows/executions/{param}` | `String executionId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `workflows().executions().get(...)` | `GET` | `/workflows/executions/{param}` | `String executionId, Class responseType` | `@Nullable T` | +| `workflows().executions().get(...)` | `GET` | `/workflows/executions/{param}` | `String executionId, TypeReference responseType` | `@Nullable T` | +| `workflows().executions().create(...)` | `POST` | `/workflows/executions` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().executions().create(...)` | `POST` | `/workflows/executions` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().executions().create(...)` | `POST` | `/workflows/executions` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().executions().create(...)` | `POST` | `/workflows/executions` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().tasks().get(...)` | `GET` | `/workflows/tasks/{param}` | `String taskId, QueryParams query, Class responseType` | `@Nullable T` | +| `workflows().tasks().get(...)` | `GET` | `/workflows/tasks/{param}` | `String taskId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `workflows().tasks().get(...)` | `GET` | `/workflows/tasks/{param}` | `String taskId, Class responseType` | `@Nullable T` | +| `workflows().tasks().get(...)` | `GET` | `/workflows/tasks/{param}` | `String taskId, TypeReference responseType` | `@Nullable T` | +| `workflows().tasks().cancel(...)` | `POST` | `/workflows/tasks/{param}/cancel` | `String taskId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().tasks().cancel(...)` | `POST` | `/workflows/tasks/{param}/cancel` | `String taskId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().tasks().cancel(...)` | `POST` | `/workflows/tasks/{param}/cancel` | `String taskId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().tasks().cancel(...)` | `POST` | `/workflows/tasks/{param}/cancel` | `String taskId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().tasks().retry(...)` | `POST` | `/workflows/tasks/{param}/retry` | `String taskId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().tasks().retry(...)` | `POST` | `/workflows/tasks/{param}/retry` | `String taskId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().tasks().retry(...)` | `POST` | `/workflows/tasks/{param}/retry` | `String taskId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().tasks().retry(...)` | `POST` | `/workflows/tasks/{param}/retry` | `String taskId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().templates().list(...)` | `GET` | `/workflows/templates` | `QueryParams query, Class responseType` | `@Nullable T` | +| `workflows().templates().list(...)` | `GET` | `/workflows/templates` | `QueryParams query, TypeReference responseType` | `@Nullable T` | +| `workflows().templates().list(...)` | `GET` | `/workflows/templates` | `Class responseType` | `@Nullable T` | +| `workflows().templates().list(...)` | `GET` | `/workflows/templates` | `TypeReference responseType` | `@Nullable T` | +| `workflows().templates().get(...)` | `GET` | `/workflows/templates/{param}` | `String templateId, QueryParams query, Class responseType` | `@Nullable T` | +| `workflows().templates().get(...)` | `GET` | `/workflows/templates/{param}` | `String templateId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `workflows().templates().get(...)` | `GET` | `/workflows/templates/{param}` | `String templateId, Class responseType` | `@Nullable T` | +| `workflows().templates().get(...)` | `GET` | `/workflows/templates/{param}` | `String templateId, TypeReference responseType` | `@Nullable T` | +| `workflows().templates().create(...)` | `POST` | `/workflows/templates` | `QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().templates().create(...)` | `POST` | `/workflows/templates` | `QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().templates().create(...)` | `POST` | `/workflows/templates` | `@Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().templates().create(...)` | `POST` | `/workflows/templates` | `@Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().templates().instantiate(...)` | `POST` | `/workflows/templates/{param}/instantiate` | `String templateId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().templates().instantiate(...)` | `POST` | `/workflows/templates/{param}/instantiate` | `String templateId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().templates().instantiate(...)` | `POST` | `/workflows/templates/{param}/instantiate` | `String templateId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().templates().instantiate(...)` | `POST` | `/workflows/templates/{param}/instantiate` | `String templateId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().versions().create(...)` | `POST` | `/workflows/{param}/versions` | `String workflowId, QueryParams query, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().versions().create(...)` | `POST` | `/workflows/{param}/versions` | `String workflowId, QueryParams query, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().versions().create(...)` | `POST` | `/workflows/{param}/versions` | `String workflowId, @Nullable JsonNode body, Class responseType` | `@Nullable T` | +| `workflows().versions().create(...)` | `POST` | `/workflows/{param}/versions` | `String workflowId, @Nullable JsonNode body, TypeReference responseType` | `@Nullable T` | +| `workflows().executions().tasks().list(...)` | `GET` | `/workflows/executions/{param}/tasks` | `String executionId, QueryParams query, Class responseType` | `@Nullable T` | +| `workflows().executions().tasks().list(...)` | `GET` | `/workflows/executions/{param}/tasks` | `String executionId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `workflows().executions().tasks().list(...)` | `GET` | `/workflows/executions/{param}/tasks` | `String executionId, Class responseType` | `@Nullable T` | +| `workflows().executions().tasks().list(...)` | `GET` | `/workflows/executions/{param}/tasks` | `String executionId, TypeReference responseType` | `@Nullable T` | +| `workflows().runs().steps().list(...)` | `GET` | `/workflows/runs/{param}/steps` | `String runId, QueryParams query, Class responseType` | `@Nullable T` | +| `workflows().runs().steps().list(...)` | `GET` | `/workflows/runs/{param}/steps` | `String runId, QueryParams query, TypeReference responseType` | `@Nullable T` | +| `workflows().runs().steps().list(...)` | `GET` | `/workflows/runs/{param}/steps` | `String runId, Class responseType` | `@Nullable T` | +| `workflows().runs().steps().list(...)` | `GET` | `/workflows/runs/{param}/steps` | `String runId, TypeReference responseType` | `@Nullable T` | + +The generic `request(...)` methods and `Endpoints` constants remain available. diff --git a/docs/mcp.json b/docs/mcp.json index 3b883d5..14e83bc 100644 --- a/docs/mcp.json +++ b/docs/mcp.json @@ -1,7 +1,7 @@ { "name": "Frontal Java SDK", "language": "Java", - "version": "1.0.0", + "version": "2.0.0", "status": "implemented", "documents": [ { diff --git a/examples/README.md b/examples/README.md index bd979e9..1a21cfd 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1,6 +1,6 @@ # Java examples -Examples in this repository use Java 17 and the Maven coordinate `dev.frontal:frontal-sdk:1.0.0`. The SDK exposes contract routes through `Endpoints` and accepts caller-provided response types when a contract does not define a typed model. +Examples in this repository use Java 17 and the Maven coordinate `dev.frontal:frontal-sdk:2.0.0`. Service clients group methods by nested resources and use concise collection, item, and action methods. Calls accept `JsonNode` request bodies where schemas are unavailable, caller-selected response types, and optional `QueryParams`. `Endpoints` remains available for generic requests. For standalone starter applications tailored to common deployment patterns, see [`templates/README.md`](../templates/README.md). @@ -9,13 +9,13 @@ The README test harness supplies `mock` and runs this example without a Frontal ```java try (Frontal client = Frontal.builder() .apiKey("frt_test_key") - .baseUrl(mock.url("/v1").toString()) + .apiBaseUrl(mock.url("/v1").toString()) .build()) { - PageResult agents = client.agents().list(Map.of(), JsonNode.class); + PageResult agents = client.agents().listPages(QueryParams.empty(), JsonNode.class); for (JsonNode agent : agents) { System.out.println(agent.path("id").asText()); } } ``` -For binary responses, use `requestBytes`; for multipart uploads use `requestForm`; for streaming endpoints use `streamPublisher` or `streamEvents` and close the blocking iterator when finished. See the root README for environment variables and Gradle setup. +For small binary responses, use `requestBytes`; for larger downloads, use `streamBody` in try-with-resources. For multipart uploads use `requestForm`; for streaming endpoints use `streamPublisher` or `streamEvents` and close the blocking iterator when finished. The request timeout applies to ordinary calls and downloads. Long-lived SSE connections have no read timeout, so cancellation or closing is required. See the root README for error handling, wire-name serialization, environment variables, and Gradle setup. diff --git a/examples/src/test/java/dev/frontal/examples/QuickstartTest.java b/examples/src/test/java/dev/frontal/examples/QuickstartTest.java index cedfe0c..9065c50 100644 --- a/examples/src/test/java/dev/frontal/examples/QuickstartTest.java +++ b/examples/src/test/java/dev/frontal/examples/QuickstartTest.java @@ -17,8 +17,8 @@ void consumerCanMakeAFirstCallWithoutAFrontalBackend() throws Exception { mock.enqueue(new MockResponse().setBody("{\"id\":\"agt_123\",\"name\":\"triage\"}")); try (Frontal frontal = Frontal.builder() .apiKey("frt_test_key") - .baseUrl(mock.url("/v1").toString()) - .timeout(Duration.ofSeconds(2)) + .apiBaseUrl(mock.url("/v1").toString()) + .requestTimeout(Duration.ofSeconds(2)) .build()) { JsonNode agent = frontal.agents().get("agt_123", JsonNode.class); assertEquals("triage", agent.path("name").asText()); diff --git a/gradle.properties b/gradle.properties index 8043dcf..e716ddd 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -sdkVersion=1.0.0 +sdkVersion=2.0.0 diff --git a/mcp.json b/mcp.json index 3b883d5..14e83bc 100644 --- a/mcp.json +++ b/mcp.json @@ -1,7 +1,7 @@ { "name": "Frontal Java SDK", "language": "Java", - "version": "1.0.0", + "version": "2.0.0", "status": "implemented", "documents": [ { diff --git a/scripts/README.md b/scripts/README.md index dbfbee2..4122fdc 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -1,12 +1,13 @@ # Java repository scripts -`sync_endpoint_inventory.py` adds operations from the committed public OpenAPI snapshot to `contracts/sdk-endpoints.json`. `generate_endpoints.py` writes the route constants to `services/src/main/java/dev/frontal/sdk/resources/Endpoints.java` and refreshes route coverage reports. `check_contracts.py` verifies the inventory against Java constants and confirms every public and AI OpenAPI operation maps to an endpoint. `generate_docs_manifest.py` indexes Markdown documentation and writes `docs/mcp.json` plus the root `mcp.json`. These utilities use Python 3's standard library and do not affect the Java runtime or package dependencies. +`sync_endpoint_inventory.py` adds operations from the committed public OpenAPI snapshot to `contracts/sdk-endpoints.json`. `generate_endpoints.py` writes route constants, nested resource clients with concise operation names, per-service API references, and route coverage reports. Run Spotless after generation so generated Java matches repository formatting. `check_contracts.py` verifies the inventory, generated API references, Java constants, and named methods, then confirms every public and AI OpenAPI operation maps to an endpoint. `generate_docs_manifest.py` indexes Markdown documentation and writes `docs/mcp.json` plus the root `mcp.json`. The Python utilities use the standard library and do not affect the Java runtime or package dependencies. Run them directly: ```bash python3 scripts/sync_endpoint_inventory.py python3 scripts/generate_endpoints.py +./gradlew spotlessApply python3 scripts/check_contracts.py python3 scripts/generate_docs_manifest.py ``` diff --git a/scripts/check_contracts.py b/scripts/check_contracts.py index 1ae59db..ed915d4 100644 --- a/scripts/check_contracts.py +++ b/scripts/check_contracts.py @@ -6,9 +6,13 @@ import re from pathlib import Path +from generate_endpoints import SERVICE_ALIASES, SERVICES + ROOT = Path(__file__).resolve().parents[1] CONTRACT_DIR = ROOT / "contracts" ENDPOINTS = ROOT / "services/src/main/java/dev/frontal/sdk/resources/Endpoints.java" +RESOURCES = ROOT / "services/src/main/java/dev/frontal/sdk/resources" +API_DOCS = ROOT / "docs/api" SNAPSHOTS = [ CONTRACT_DIR / "sdk-endpoints.json", CONTRACT_DIR / "coverage-floor.json", @@ -22,6 +26,7 @@ re.DOTALL, ) PLACEHOLDER_PATTERN = re.compile(r"\{[^{}]+\}") +SDK_OPERATION_PATTERN = re.compile(r'@SdkOperation\("([^"]+)"\)') def load_json(path: Path): @@ -41,8 +46,9 @@ def verify_route_catalog(inventory: dict) -> int: for service, method, path in ENDPOINT_PATTERN.findall(source) ) contract_routes = Counter( - (service, route["method"], route["path"]) + (SERVICE_ALIASES.get(service, service), route["method"], route["path"]) for service, routes in inventory.items() + if SERVICE_ALIASES.get(service, service) in SERVICES for route in routes ) if source_routes != contract_routes: @@ -52,6 +58,44 @@ def verify_route_catalog(inventory: dict) -> int: return sum(contract_routes.values()) +def verify_named_operations(inventory: dict) -> int: + expected = Counter( + f"{SERVICE_ALIASES.get(service, service)}|{route['method']}|{route['path']}" + for service, routes in inventory.items() + if SERVICE_ALIASES.get(service, service) in SERVICES + for route in routes + ) + actual = Counter() + for path in RESOURCES.glob("*Client.java"): + actual.update(SDK_OPERATION_PATTERN.findall(path.read_text(encoding="utf-8"))) + if actual != expected: + raise SystemExit( + f"named operation drift; missing={dict(expected - actual)}, extra={dict(actual - expected)}" + ) + return sum(actual.values()) + + +def verify_service_api_docs(inventory: dict) -> None: + index = API_DOCS / "README.md" + if not index.is_file(): + raise SystemExit("missing generated service API reference index") + for service, routes in inventory.items(): + if SERVICE_ALIASES.get(service, service) in SERVICES and service not in SERVICE_ALIASES: + page = API_DOCS / f"{service}.md" + if not page.is_file(): + raise SystemExit(f"missing generated service API reference: docs/api/{service}.md") + source = page.read_text(encoding="utf-8") + for route in routes: + if f'`{route["path"]}`' not in source: + raise SystemExit( + f"service API reference omitted route: {service} {route['method']} {route['path']}" + ) + agents_page = (API_DOCS / "agents.md").read_text(encoding="utf-8") + for route in inventory["action-runs"]: + if f'`{route["path"]}`' not in agents_page: + raise SystemExit(f"agent API reference omitted route: {route['method']} {route['path']}") + + def verify_ai_openapi(spec: dict, inventory: dict) -> int: ai_routes = { (route["method"], route["path"]) @@ -61,14 +105,13 @@ def verify_ai_openapi(spec: dict, inventory: dict) -> int: for path, path_item in spec.get("paths", {}).items(): for method, operation in path_item.items(): method = method.upper() - if method not in HTTP_METHODS: - continue - count += 1 - if (method, path) not in ai_routes: - raise SystemExit( - f"AI OpenAPI operation has no Java endpoint: {method} {path} " - f"({operation.get('operationId', 'missing operationId')})" - ) + if method in HTTP_METHODS: + count += 1 + if (method, path) not in ai_routes: + raise SystemExit( + f"AI OpenAPI operation has no Java endpoint: {method} {path} " + f"({operation.get('operationId', 'missing operationId')})" + ) return count @@ -84,30 +127,32 @@ def verify_public_api_snapshot(spec: dict, inventory: dict) -> int: count = 0 operation_ids = set() routes = { - (service, route["method"], route["path"]) + (SERVICE_ALIASES.get(service, service), route["method"], route["path"]) for service, service_routes in inventory.items() + if SERVICE_ALIASES.get(service, service) in SERVICES for route in service_routes } for path, path_item in spec.get("paths", {}).items(): for method, operation in path_item.items(): - if method.upper() not in HTTP_METHODS: - continue - count += 1 - operation_id = operation.get("operationId") - if not operation_id: - raise SystemExit(f"OpenAPI operation is missing operationId: {method.upper()} {path}") - if operation_id in operation_ids: - raise SystemExit(f"duplicate OpenAPI operationId: {operation_id}") - operation_ids.add(operation_id) - tags = operation.get("tags", []) - if len(tags) != 1: - raise SystemExit(f"OpenAPI operation must have exactly one service tag: {method.upper()} {path}") - route = (tags[0], method.upper(), normalize_public_path(path)) - if route not in routes: - raise SystemExit( - f"OpenAPI operation has no Java endpoint: {method.upper()} {path} " - f"({operation_id})" - ) + if method.upper() in HTTP_METHODS: + count += 1 + operation_id = operation.get("operationId") + if not operation_id: + raise SystemExit(f"OpenAPI operation is missing operationId: {method.upper()} {path}") + if operation_id in operation_ids: + raise SystemExit(f"duplicate OpenAPI operationId: {operation_id}") + operation_ids.add(operation_id) + tags = operation.get("tags", []) + if len(tags) != 1: + raise SystemExit(f"OpenAPI operation must have exactly one service tag: {method.upper()} {path}") + sdk_service = SERVICE_ALIASES.get(tags[0], tags[0]) + if sdk_service in SERVICES: + route = (sdk_service, method.upper(), normalize_public_path(path)) + if route not in routes: + raise SystemExit( + f"OpenAPI operation has no Java endpoint: {method.upper()} {path} " + f"({operation_id})" + ) return count @@ -132,13 +177,16 @@ def main() -> None: if set(inventory) != expected_services: raise SystemExit("SDK endpoint inventory service list drifted") route_count = verify_route_catalog(inventory) + named_operation_count = verify_named_operations(inventory) + verify_service_api_docs(inventory) ai_operation_count = verify_ai_openapi( snapshots["ai.openapi.generated.json"], inventory ) public_operation_count = verify_public_api_snapshot(snapshots["api.openapi.json"], inventory) verify_coverage_floor(snapshots["coverage-floor.json"], public_operation_count, ai_operation_count) print( - f"validated {route_count} SDK routes, {ai_operation_count} AI OpenAPI operations, " + f"validated {route_count} SDK routes and {named_operation_count} named operations, " + f"{ai_operation_count} AI OpenAPI operations, " f"{public_operation_count} public OpenAPI operations, and {len(SNAPSHOTS)} snapshots" ) diff --git a/scripts/generate_endpoints.py b/scripts/generate_endpoints.py index 3735a80..7f72c19 100644 --- a/scripts/generate_endpoints.py +++ b/scripts/generate_endpoints.py @@ -13,7 +13,6 @@ CONFORMANCE = ROOT / "contracts/reports/conformance.json" MIGRATION_MATRIX = ROOT / "contracts/reports/migration-matrix.md" SERVICES = { - "action-runs": "ACTION_RUNS", "agents": "AGENTS", "ai": "AI", "audit": "AUDIT", @@ -25,7 +24,6 @@ "data": "DATA", "events": "EVENTS", "governance": "GOVERNANCE", - "integrations": "INTEGRATIONS", "invocations": "INVOCATIONS", "lineage": "LINEAGE", "observability": "OBSERVABILITY", @@ -39,8 +37,521 @@ "webhook-endpoints": "WEBHOOK_ENDPOINTS", "workflows": "WORKFLOWS", } +CUSTOM_CLIENTS = {"agents", "ai", "workflows"} +SERVICE_ALIASES = {"action-runs": "agents"} +ACTION_SEGMENTS = { + "acknowledge", "acquire", "activate", "analyze", "analytics", "archive", "approve", "assign", "batch", "benchmark-v1", "benchmark-v2", "bulk", + "cancel", "check", "clone", "compare", "complete", "conversation", "copy", "disable", + "enable", "execute", "export", "extend", "finalize", "generate", "health", "infer", + "ingest", "instantiate", "login", "logout", "move", "parse", "pause", "preview", "publish", "reprocess", "reprocess-all", "reprocess-pending", + "query", "refresh", "reject", "replay", "resolve", "restore", "resume", "retry", "rollback", + "rotate-secret", "search", "setup", "share", "status", "stream", "submit", "summary", "timeline", + "toggle", "top-up", "trigger", "trust", "validate", "verify", "void", "usage", "usage-meter", "rerank", "federated", +} + + +def routes_for_sdk_service(routes: dict, service: str) -> list[dict]: + extra_routes = [ + route + for source, target in SERVICE_ALIASES.items() + if target == service + for route in routes[source] + ] + return [*routes[service], *extra_routes] + + +def service_type(service: str) -> str: + return "".join(part.title() for part in service.split("-")) + + +def normalize_path(path: str) -> str: + if path.startswith("/v1/"): + path = path[3:] + elif path == "/v1": + path = "/" + return re.sub(r"\{[^{}]+\}", "{param}", path) + + +def java_identifier(value: str, fallback: str) -> str: + value = re.sub(r"^(get|post|put|patch|delete|head|options)V1(?=[A-Z0-9])", r"\1", value) + if value.upper() == value: + value = value.lower() + else: + value = re.sub(r"([a-z0-9])([A-Z])", r"\1 \2", value) + value = value.replace("_", " ") + words = re.findall(r"[A-Za-z0-9]+", value) + if not words: + return fallback + result = words[0][:1].lower() + words[0][1:] + result += "".join(word[:1].upper() + word[1:] for word in words[1:]) + if result[0].isdigit() or result in JAVA_KEYWORDS: + result = fallback + result[:1].upper() + result[1:] + return result + + +def path_parts(path: str, service: str) -> list[str]: + parts = [part for part in path.strip("/").split("/") if part] + service_root = service + if service == "ai" and parts and parts[0] == "ai": + return parts[1:] + if parts and parts[0] == service_root: + return parts[1:] + return parts + + +def resource_word(segment: str) -> str: + words = re.findall(r"[A-Za-z0-9]+", segment) + return java_identifier(" ".join(words), "resource") + + +def singularize(word: str) -> str: + if word.endswith("ies") and len(word) > 3: + return word[:-3] + "y" + if word.endswith("sses"): + return word[:-2] + if word.endswith("s") and not word.endswith(("ss", "us", "is")): + return word[:-1] + return word + + +def parameter_names(service: str, path: str, operation_params: list[str]) -> list[str]: + count = path.count("{param}") + if len(operation_params) == count and all(operation_params): + return [java_identifier(name, f"id{index + 1}") for index, name in enumerate(operation_params)] + parts = path_parts(path, service) + names = [] + service_noun = singularize(resource_word(service)) + for index, part in enumerate(parts): + if part.startswith("{"): + previous = next( + (candidate for candidate in reversed(parts[:index]) if not candidate.startswith("{")), + service_noun, + ) + noun = singularize(resource_word(previous)) + names.append((noun or "resource") + "Id") + seen: dict[str, int] = {} + result = [] + for name in names: + seen[name] = seen.get(name, 0) + 1 + result.append(name if seen[name] == 1 else f"{name}{seen[name]}") + return result + + +JAVA_KEYWORDS = { + "abstract", "assert", "boolean", "break", "byte", "case", "catch", "char", "class", "const", + "continue", "default", "do", "double", "else", "enum", "extends", "final", "finally", "float", + "for", "goto", "if", "implements", "import", "instanceof", "int", "interface", "long", "native", + "new", "package", "private", "protected", "public", "return", "short", "static", "strictfp", "super", + "switch", "synchronized", "this", "throw", "throws", "transient", "try", "void", "volatile", "while", + "_", "record", "sealed", "permits", "var", "yield" +} + + +def operation_metadata() -> dict[tuple[str, str, str], tuple[str, list[str]]]: + result: dict[tuple[str, str, str], tuple[str, list[str]]] = {} + for spec_path in (ROOT / "contracts/openapi/api.openapi.json", ROOT / "contracts/openapi/ai.openapi.generated.json"): + if spec_path.exists(): + spec = json.loads(spec_path.read_text(encoding="utf-8")) + for path, path_item in spec.get("paths", {}).items(): + for method, operation in path_item.items(): + method = method.upper() + if method in {"GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"}: + tags = operation.get("tags", []) + if len(tags) == 1: + params = [parameter.get("name", "") for parameter in operation.get("parameters", []) + if parameter.get("in") == "path"] + key = (SERVICE_ALIASES.get(tags[0], tags[0]), method, normalize_path(path)) + result[key] = (operation.get("operationId", ""), params) + return result + + +def append_javadoc( + lines: list[str], description: str, parameters: list[str], *, typed: bool = False, + returns: str | None = None, throws: list[str] | None = None +) -> None: + lines.extend([" /**", f" * {description}"]) + if typed: + lines.append(" * @param decoded response type") + for parameter in parameters: + lines.append(f" * @param {parameter} {parameter} supplied to the operation") + if returns is not None: + lines.append(f" * @return {returns}") + for exception in throws or []: + lines.append(f" * @throws {exception} if the operation fails") + lines.append(" */") + + +def is_collection_segment(segment: str) -> bool: + lower = segment.lower() + return lower.endswith("s") and not lower.endswith(("ss", "us", "is")) + + +def resource_binding(service: str, route: dict) -> tuple[tuple[str, ...], str]: + parts = path_parts(route["path"], service) + static_parts = [part for part in parts if not part.startswith("{")] + last = parts[-1] if parts else "" + last_static = static_parts[-1] if static_parts else "" + lower = last_static.lower() + method = route["method"] + if not parts: + operation = {"GET": "list", "POST": "create", "PUT": "update", "PATCH": "update", "DELETE": "delete"}.get(method, "request") + return (), operation + if service == "agents" and route["path"].startswith("/action-runs/"): + return ("runs",), "getByActionRunId" + if service == "ai" and route["path"].endswith("/internal/models/defaults"): + return ("internal", "models"), "defaults" + if service == "ai" and route["path"].endswith("/ai/chat/completions"): + return ("chat", "completions"), "create" + if service == "ai" and route["path"].endswith("/internal/embeddings"): + return ("internal",), "embed" + if service == "ai" and route["path"].endswith("/internal/predictions"): + suffix = {"POST": "predict", "POSTFORMDATA": "predictForm", "POSTRAW": "predictRaw"}.get(method) + return ("internal",), suffix or "predict" + if last.startswith("{"): + node = tuple(static_parts) + operation = {"GET": "get", "DELETE": "delete", "PUT": "update", "PATCH": "update"}.get(method, "get") + return node, operation + + if lower in ACTION_SEGMENTS: + return tuple(static_parts[:-1]), resource_word(last_static) + + if is_collection_segment(last_static): + operation = {"GET": "list", "POST": "create", "PUT": "update", "PATCH": "update", "DELETE": "delete"}.get(method, "get") + return tuple(static_parts), operation + + node = tuple(static_parts[:-1]) + resource = singularize(resource_word(last_static)) + operation = {"GET": "get", "POST": "create", "PUT": "update", "PATCH": "update", "DELETE": "delete"}.get(method, "get") + return node, operation + resource[:1].upper() + resource[1:] + + +def append_regular_operation( + lines: list[str], + documentation_rows: list[tuple[str, str, str, str, str]], + call_lines: list[str], + *, + method_name: str, + method: str, + path: str, + annotation_value: str, + endpoint: str, + path_args: list[str], + params: list[str], + path_values: str, + client_chain: str, +) -> None: + is_form = method == "POSTFORMDATA" + has_body = method not in {"GET", "GETRAW", "DELETE", "HEAD", "OPTIONS"} + body_type = "byte[]" if method == "POSTRAW" else "@Nullable JsonNode" + tail = ["QueryParams query"] + if is_form: + tail.extend(["Map fields", "Map files"]) + elif has_body: + tail.append(f"{body_type} body") + if is_form: + call = f"requestForm({endpoint}, {path_values}, query, fields, files, responseType)" + elif method == "POSTRAW": + call = f"requestRaw({endpoint}, {path_values}, query, body, responseType)" + else: + call = f"request({endpoint}, {path_values}, query, {'body' if has_body else 'null'}, responseType)" + signature = ", ".join([*path_args, *tail, "Class responseType"]) + method_parameters = [*params, "query"] + if is_form: + method_parameters.extend(["fields", "files"]) + elif has_body: + method_parameters.append("body") + method_parameters.append("responseType") + append_javadoc( + lines, + f"Calls the contract route {{@code {method} {path}}}.", + method_parameters, + typed=True, + returns="the decoded response, or null when the response body is empty", + throws=["IOException", "InterruptedException"], + ) + lines.extend([ + f' @SdkOperation("{annotation_value}")', + f" public @Nullable T {method_name}({signature}) throws IOException, InterruptedException {{", + f" return {call};", " }", + ]) + typed_tail = [*tail, "TypeReference responseType"] + typed_call = call.removesuffix("responseType)") + "responseType)" + append_javadoc( + lines, + f"Calls the contract route {{@code {method} {path}}} using a generic response type.", + method_parameters, + typed=True, + returns="the decoded response, or null when the response body is empty", + throws=["IOException", "InterruptedException"], + ) + lines.extend([ + f" public @Nullable T {method_name}({', '.join([*path_args, *typed_tail])}) throws IOException, InterruptedException {{", + f" return {typed_call};", " }", + ]) + queryless_params = [*path_args] + queryless_values = [*params, "QueryParams.empty()"] + if is_form: + queryless_params.extend(["Map fields", "Map files"]) + queryless_values.extend(["fields", "files"]) + elif has_body: + queryless_params.append(f"{body_type} body") + queryless_values.append("body") + queryless_method_parameters = [*params] + if is_form: + queryless_method_parameters.extend(["fields", "files"]) + elif has_body: + queryless_method_parameters.append("body") + queryless_method_parameters.append("responseType") + append_javadoc( + lines, + f"Calls the contract route {{@code {method} {path}}} without query parameters.", + queryless_method_parameters, + typed=True, + returns="the decoded response, or null when the response body is empty", + throws=["IOException", "InterruptedException"], + ) + lines.extend([ + f" public @Nullable T {method_name}({', '.join([*queryless_params, 'Class responseType'])}) throws IOException, InterruptedException {{", + f" return {method_name}({', '.join(queryless_values)}, responseType);", " }", + ]) + append_javadoc( + lines, + f"Calls the contract route {{@code {method} {path}}} without query parameters using a generic response type.", + queryless_method_parameters, + typed=True, + returns="the decoded response, or null when the response body is empty", + throws=["IOException", "InterruptedException"], + ) + lines.extend([ + f" public @Nullable T {method_name}({', '.join([*queryless_params, 'TypeReference responseType'])}) throws IOException, InterruptedException {{", + f" return {method_name}({', '.join(queryless_values)}, responseType);", " }", "" + ]) + query_parameters = [*path_args, *tail] + queryless_parameters = queryless_params + documentation_rows.extend([ + (f"{client_chain}.{method_name}", method, path, ", ".join([*query_parameters, "Class responseType"]), "@Nullable T"), + (f"{client_chain}.{method_name}", method, path, ", ".join([*query_parameters, "TypeReference responseType"]), "@Nullable T"), + (f"{client_chain}.{method_name}", method, path, ", ".join([*queryless_parameters, "Class responseType"]), "@Nullable T"), + (f"{client_chain}.{method_name}", method, path, ", ".join([*queryless_parameters, "TypeReference responseType"]), "@Nullable T"), + ]) + call_args = [*params] + if is_form: + call_args.extend(["fields", "files"]) + elif has_body: + call_args.append("body") + call_args.append("responseType") + call_lines.append(f"client.{client_chain}.{method_name}({', '.join(call_args)});") + + +def render_operation_clients(routes: dict, endpoint_names: dict, operations: dict) -> None: + docs_dir = ROOT / "docs/api" + docs_dir.mkdir(parents=True, exist_ok=True) + index_rows = [] + method_listing: dict[str, list[str]] = {} + for service, enum_value in SERVICES.items(): + service_routes = routes_for_sdk_service(routes, service) + base = service_type(service) + class_name = f"{base}ServiceClient" if service in CUSTOM_CLIENTS else f"{base}Client" + bindings: dict[tuple[str, str], tuple[tuple[str, ...], str]] = {} + node_routes: dict[tuple[str, ...], list[dict]] = {(): []} + nodes: set[tuple[str, ...]] = {()} + child_names: dict[tuple[str, ...], set[str]] = {} + documentation_rows = [] + call_lines = [] + for route in sorted(service_routes, key=lambda item: (item["method"], item["path"])): + binding = resource_binding(service, route) + bindings[(route["method"], route["path"])] = binding + node, _ = binding + node_routes.setdefault(node, []).append(route) + nodes.add(node) + for depth in range(1, len(node) + 1): + ancestor = node[:depth] + nodes.add(ancestor) + node_routes.setdefault(ancestor, []) + child_names.setdefault(ancestor[:-1], set()).add(ancestor[-1]) + + node_names: dict[tuple[str, ...], dict[tuple[str, str], str]] = {} + for node, grouped_routes in node_routes.items(): + counts: dict[str, int] = {} + names: dict[tuple[str, str], str] = {} + for route in grouped_routes: + name = bindings[(route["method"], route["path"])][1] + count = counts.get(name, 0) + counts[name] = count + 1 + if count: + name = f"{name}{count + 1}" + names[(route["method"], route["path"])] = name + node_names[node] = names + + def class_for(node: tuple[str, ...]) -> str: + if not node: + return class_name + suffix = "".join("".join(part.title() for part in re.findall(r"[A-Za-z0-9]+", segment)) for segment in node) + return f"{base}{suffix}Client" + + accessor = java_identifier(service, "service") + for node in sorted(nodes, key=lambda value: (len(value), value)): + current_class = class_for(node) + current_routes = node_routes.get(node, []) + imports = [ + "import com.fasterxml.jackson.core.type.TypeReference;", + "import com.fasterxml.jackson.databind.JsonNode;", + "import java.io.IOException;", + "import java.util.List;", + "import org.jspecify.annotations.Nullable;", + ] + if any(route["method"] == "POSTFORMDATA" for route in current_routes): + imports.extend(["import java.nio.file.Path;", "import java.util.Map;"]) + if any(route["method"] == "STREAM" for route in current_routes): + imports.append("import java.util.concurrent.Flow;") + final = "" if not node and service in CUSTOM_CLIENTS else "final " + lines = [ + "package dev.frontal.sdk;", "", *imports, "", + f"/** Contract operations for {service}{('/' + '/'.join(node)) if node else ''}. Generated by scripts/generate_endpoints.py. */", + f"public {final}class {current_class} extends ServiceClient {{", + f" {current_class}(ApiClient client) {{", f" super(ApiService.{enum_value}, client);", " }", "" + ] + for child in sorted(child_names.get(node, set())): + child_node = (*node, child) + method_name = java_identifier(child, "resource") + if method_name in {"client", "service", "request", "execute", "stream"}: + method_name += "Resource" + lines.extend([ + " /** Returns the client for the nested resource.", + f" * @return the {child} resource client", + " */", + f" public {class_for(child_node)} {method_name}() {{", + f" return new {class_for(child_node)}(client());", " }", "" + ]) + for route in sorted(current_routes, key=lambda item: (item["method"], item["path"])): + method = route["method"] + method_name = node_names[node][(method, route["path"])] + route_service = service + constant = endpoint_names[(route_service, method, route["path"])] + metadata = operations.get((route_service, method, normalize_path(route["path"])), ("", [])) + path_names = parameter_names(service, route["path"], metadata[1]) + if len(path_names) != route["path"].count("{param}"): + path_names = [f"id{index + 1}" for index in range(route["path"].count("{param}"))] + params = [java_identifier(name, f"id{index + 1}") for index, name in enumerate(path_names)] + path_args = [f"String {name}" for name in params] + path_values = f"List.of({', '.join(params)})" if params else "List.of()" + endpoint_group = "".join(part.title() for part in enum_value.lower().split("_")) + endpoint = f"Endpoints.{endpoint_group}.{constant}" + annotation_value = f'{route_service}|{method}|{route["path"]}' + query_arg = "QueryParams query" + client_chain = ".".join([f"{accessor}()", *[f"{java_identifier(part, 'resource')}()" for part in node]]) + if method == "STREAM": + signature = ", ".join(path_args + [query_arg]) + append_javadoc( + lines, + f"Opens the event stream for {{@code {method} {route['path']}}}.", + [*params, "query"], + returns="a publisher that emits event data", + ) + lines.extend([ + f' @SdkOperation("{annotation_value}")', + f" public Flow.Publisher {method_name}({signature}) {{", + f" return streamPublisher({endpoint}, {path_values}, query);", " }", + ]) + append_javadoc( + lines, + f"Opens a blocking event stream for {{@code {method} {route['path']}}}.", + [*params, "query"], + returns="an iterator that must be closed", + throws=["IOException", "InterruptedException"], + ) + lines.extend([ + f" public SseEventIterator {method_name}Blocking({signature}) throws IOException, InterruptedException {{", + f" return streamEvents({endpoint}, {path_values}, query);", " }", + ]) + append_javadoc( + lines, + f"Opens the event stream for {{@code {method} {route['path']}}} with no query parameters.", + params, + returns="a publisher that emits event data", + ) + lines.extend([ + f" public Flow.Publisher {method_name}({', '.join(path_args)}) {{", + f" return {method_name}({', '.join(params + ['QueryParams.empty()'])});", " }", + ]) + append_javadoc( + lines, + f"Opens a blocking event stream for {{@code {method} {route['path']}}} with no query parameters.", + params, + returns="an iterator that must be closed", + throws=["IOException", "InterruptedException"], + ) + lines.extend([ + f" public SseEventIterator {method_name}Blocking({', '.join(path_args)}) throws IOException, InterruptedException {{", + f" return {method_name}Blocking({', '.join(params + ['QueryParams.empty()'])});", " }", "" + ]) + documentation_rows.extend([ + (f"{client_chain}.{method_name}", method, route["path"], ", ".join([*path_args, "QueryParams query"]), "Flow.Publisher"), + (f"{client_chain}.{method_name}", method, route["path"], ", ".join(path_args), "Flow.Publisher"), + (f"{client_chain}.{method_name}Blocking", method, route["path"], ", ".join([*path_args, "QueryParams query"]), "SseEventIterator"), + (f"{client_chain}.{method_name}Blocking", method, route["path"], ", ".join(path_args), "SseEventIterator"), + ]) + call_lines.extend([ + f"client.{client_chain}.{method_name}({', '.join(params)});", + f"client.{client_chain}.{method_name}Blocking({', '.join(params)});", + ]) + else: + append_regular_operation( + lines, documentation_rows, call_lines, method_name=method_name, method=method, + path=route["path"], annotation_value=annotation_value, endpoint=endpoint, + path_args=path_args, params=params, path_values=path_values, client_chain=client_chain, + ) + + lines.append("}") + output = ROOT / "services/src/main/java/dev/frontal/sdk/resources" / f"{current_class}.java" + output.write_text("\n".join(lines) + "\n", encoding="utf-8") + + index_rows.append((service, len(service_routes))) + doc_lines = [ + f"# {base} API", "", f"Service accessor: `frontal.{accessor}()` (`{class_name}`).", "", + "Operations are grouped by resource path. Collection methods use `list` and `create`; item methods use `get`, `update`, and `delete`. " + "Calls can omit `QueryParams` when no query values are needed. Use contract-defined `JsonNode` bodies and caller-selected response types where schemas are not available.", "", + "| Method | HTTP | Route | Parameters | Response |", "| --- | --- | --- | --- | --- |" + ] + for method_name, method, path, parameters, response in documentation_rows: + doc_lines.append(f"| `{method_name}(...)` | `{method}` | `{path}` | `{parameters}` | `{response}` |") + doc_lines.extend(["", "The generic `request(...)` methods and `Endpoints` constants remain available."]) + (docs_dir / f"{service}.md").write_text("\n".join(doc_lines) + "\n", encoding="utf-8") + method_listing[service] = call_lines + + calls = [ + "# Canonical Java calls", "", + "Generated from the contract route catalog. Query parameters are optional; use `QueryParams` when required by the endpoint.", + ] + for service in sorted(method_listing): + calls.extend(["", f"## {service}", "", "```java", *method_listing[service], "```"]) + (docs_dir / "methods-as-code.md").write_text("\n".join(calls) + "\n", encoding="utf-8") + + index_lines = [ + "# Service API reference", "", "Generated from the committed route catalog for SDK service clients.", "", + "Call-shaped listing of every operation: [methods as code](./methods-as-code.md).", "", + "| Service | Routes | Reference |", "| --- | ---: | --- |", + ] + for service, route_count in sorted(index_rows): + index_lines.append(f"| {service} | {route_count} | [{service}](./{service}.md) |") + (docs_dir / "README.md").write_text("\n".join(index_lines) + "\n", encoding="utf-8") + + annotation = ROOT / "services/src/main/java/dev/frontal/sdk/resources/SdkOperation.java" + annotation.write_text("""package dev.frontal.sdk; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.METHOD) +@interface SdkOperation { + String value(); +} +""", encoding="utf-8") def constant_name(method: str, path: str) -> str: route = path.replace("{param}", "PARAM") parts = re.findall(r"[A-Za-z0-9]+", route) @@ -59,8 +570,10 @@ def main() -> None: "public final class Endpoints {", " private Endpoints() {}", ] + endpoint_names: dict[tuple[str, str, str], str] = {} for service, enum_value in SERVICES.items(): group_name = "".join(part.title() for part in enum_value.split("_")) + service_routes = routes_for_sdk_service(routes, service) lines.extend( [ "", @@ -68,15 +581,17 @@ def main() -> None: f" private {group_name}() {{}}", ] ) - if routes[service]: + if service_routes: lines.append("") used: dict[str, int] = {} - for route in sorted(routes[service], key=lambda item: (item["method"], item["path"])): + for route in sorted(service_routes, key=lambda item: (item["method"], item["path"])): name = constant_name(route["method"], route["path"]) count = used.get(name, 0) used[name] = count + 1 if count: name = f"{name}_{count + 1}" + endpoint_names[(service, route["method"], route["path"])] = name + lines.append(f' /** Endpoint for {{@code {route["method"]} {route["path"]}}}. */') declaration = ( f' new Endpoint(ApiService.{enum_value}, ' f'HttpMethod.{route["method"]}, "{route["path"]}");' @@ -102,37 +617,47 @@ def main() -> None: lines.append(" }") lines.append("}") OUTPUT.write_text("\n".join(lines) + "\n", encoding="utf-8") - endpoint_count = sum(len(service_routes) for service_routes in routes.values()) + render_operation_clients(routes, endpoint_names, operation_metadata()) + contract_endpoint_count = sum(len(service_routes) for service_routes in routes.values()) + endpoint_count = sum( + len(routes_for_sdk_service(routes, service)) for service in SERVICES + ) + named_operation_count = sum(len(routes_for_sdk_service(routes, service)) for service in SERVICES) report = { "repository": "sdk-java", "language": "Java", - "status": "route-catalogued", - "contractEndpointEntries": endpoint_count, + "status": "named-operations", + "contractEndpointEntries": contract_endpoint_count, "generatedEndpointConstants": endpoint_count, - "catalogCoverage": "100%", + "namedOperationMethods": named_operation_count, + "supportedRouteCoverage": f"{named_operation_count}/{contract_endpoint_count}", "note": ( - "All routes in sdk-endpoints.json have generated endpoint constants and share the " - "generic SDK transport. Route-specific typed models are not generated because the " - "inventory does not provide complete schemas." + "Endpoint constants and named operations cover SDK service routes. " + "Payloads without usable schemas retain caller-provided JSON and response types." ), } CONFORMANCE.write_text(json.dumps(report, indent=2) + "\n", encoding="utf-8") MIGRATION_MATRIX.write_text( "# Java SDK route coverage\n\n" - "_Status: generated route catalog complete. This measures catalog coverage and generic " - "transport availability, not route-specific typed models._\n\n" + "_Status: generated route catalog and named operation surface complete. Typed models are " + "provided only where committed schemas are usable._\n\n" "| Metric | Value |\n| --- | ---: |\n" - f"| Contract endpoint entries | {endpoint_count} |\n" + f"| Contract endpoint entries | {contract_endpoint_count} |\n" f"| Generated endpoint constants | {endpoint_count} |\n" - "| Catalog coverage | 100% |\n" - "| Route-specific typed request/response models | Not generated |\n\n" + f"| Named operation methods for supported routes | {named_operation_count} |\n" + f"| Contract routes omitted from the SDK surface | {contract_endpoint_count - endpoint_count} |\n" + "| Operation-specific payload schemas usable | Limited by committed contract snapshots |\n\n" "`scripts/generate_endpoints.py` regenerates " "`services/src/main/java/dev/frontal/sdk/resources/Endpoints.java` from " - "`contracts/sdk-endpoints.json`. All catalogued routes use the shared Java transport; " + "`contracts/sdk-endpoints.json`, grouping agent-run operations with agents. SDK routes " + "use the shared Java transport; " "callers provide response types when decoding JSON.\n", encoding="utf-8", ) - print(f"Generated {endpoint_count} endpoint constants across {len(routes)} services.") + print( + f"Generated {endpoint_count} endpoint constants and {named_operation_count} " + f"named operations across supported services." + ) if __name__ == "__main__": diff --git a/sdk/src/main/java/dev/frontal/sdk/api/Frontal.java b/sdk/src/main/java/dev/frontal/sdk/api/Frontal.java index d6fe78b..93e9fe8 100644 --- a/sdk/src/main/java/dev/frontal/sdk/api/Frontal.java +++ b/sdk/src/main/java/dev/frontal/sdk/api/Frontal.java @@ -1,10 +1,12 @@ package dev.frontal.sdk; +import com.fasterxml.jackson.databind.ObjectMapper; import java.net.URI; import java.time.Duration; import java.util.EnumMap; import java.util.Map; import java.util.Objects; +import org.jspecify.annotations.Nullable; /** Root client. Every service accessor shares one configured transport. */ public final class Frontal implements AutoCloseable { @@ -33,7 +35,26 @@ public Frontal(ApiClient apiClient) { case AI -> new AiClient(apiClient); case AGENTS -> new AgentsClient(apiClient); case WORKFLOWS -> new WorkflowsClient(apiClient); - default -> new ServiceClient(service, apiClient); + case AUDIT -> new AuditClient(apiClient); + case AUTH -> new AuthClient(apiClient); + case BILLING -> new BillingClient(apiClient); + case BLOB -> new BlobClient(apiClient); + case CONNECTORS -> new ConnectorsClient(apiClient); + case CONNECTION_TESTS -> new ConnectionTestsClient(apiClient); + case DATA -> new DataClient(apiClient); + case EVENTS -> new EventsClient(apiClient); + case GOVERNANCE -> new GovernanceClient(apiClient); + case INVOCATIONS -> new InvocationsClient(apiClient); + case LINEAGE -> new LineageClient(apiClient); + case OBSERVABILITY -> new ObservabilityClient(apiClient); + case ONTOLOGY -> new OntologyClient(apiClient); + case PIPELINES -> new PipelinesClient(apiClient); + case PROVIDERS -> new ProvidersClient(apiClient); + case REACT -> new ReactClient(apiClient); + case SANDBOX -> new SandboxClient(apiClient); + case SCHEDULES -> new SchedulesClient(apiClient); + case WEBHOOKS -> new WebhooksClient(apiClient); + case WEBHOOK_ENDPOINTS -> new WebhookEndpointsClient(apiClient); }; services.put(service, serviceClient); } @@ -52,7 +73,12 @@ public ApiClient apiClient() { } public ServiceClient service(ApiService service) { - return Objects.requireNonNull(services.get(Objects.requireNonNull(service, "service"))); + ApiService requestedService = Objects.requireNonNull(service, "service"); + ServiceClient serviceClient = services.get(requestedService); + if (serviceClient == null) { + throw new IllegalArgumentException("Service is not available in this SDK: " + requestedService.value()); + } + return serviceClient; } public AgentsClient agents() { @@ -63,92 +89,84 @@ public AiClient ai() { return (AiClient) service(ApiService.AI); } - public ServiceClient audit() { - return service(ApiService.AUDIT); - } - - public ServiceClient actionRuns() { - return service(ApiService.ACTION_RUNS); + public AuditClient audit() { + return (AuditClient) service(ApiService.AUDIT); } - public ServiceClient auth() { - return service(ApiService.AUTH); + public AuthClient auth() { + return (AuthClient) service(ApiService.AUTH); } - public ServiceClient billing() { - return service(ApiService.BILLING); + public BillingClient billing() { + return (BillingClient) service(ApiService.BILLING); } - public ServiceClient blob() { - return service(ApiService.BLOB); + public BlobClient blob() { + return (BlobClient) service(ApiService.BLOB); } - public ServiceClient connectors() { - return service(ApiService.CONNECTORS); + public ConnectorsClient connectors() { + return (ConnectorsClient) service(ApiService.CONNECTORS); } - public ServiceClient connectionTests() { - return service(ApiService.CONNECTION_TESTS); + public ConnectionTestsClient connectionTests() { + return (ConnectionTestsClient) service(ApiService.CONNECTION_TESTS); } - public ServiceClient data() { - return service(ApiService.DATA); + public DataClient data() { + return (DataClient) service(ApiService.DATA); } - public ServiceClient events() { - return service(ApiService.EVENTS); + public EventsClient events() { + return (EventsClient) service(ApiService.EVENTS); } - public ServiceClient governance() { - return service(ApiService.GOVERNANCE); + public GovernanceClient governance() { + return (GovernanceClient) service(ApiService.GOVERNANCE); } - public ServiceClient lineage() { - return service(ApiService.LINEAGE); + public LineageClient lineage() { + return (LineageClient) service(ApiService.LINEAGE); } - public ServiceClient integrations() { - return service(ApiService.INTEGRATIONS); + public ObservabilityClient observability() { + return (ObservabilityClient) service(ApiService.OBSERVABILITY); } - public ServiceClient observability() { - return service(ApiService.OBSERVABILITY); + public OntologyClient ontology() { + return (OntologyClient) service(ApiService.ONTOLOGY); } - public ServiceClient ontology() { - return service(ApiService.ONTOLOGY); + public InvocationsClient invocations() { + return (InvocationsClient) service(ApiService.INVOCATIONS); } - public ServiceClient invocations() { - return service(ApiService.INVOCATIONS); + public PipelinesClient pipelines() { + return (PipelinesClient) service(ApiService.PIPELINES); } - public ServiceClient pipelines() { - return service(ApiService.PIPELINES); + public ProvidersClient providers() { + return (ProvidersClient) service(ApiService.PROVIDERS); } - public ServiceClient providers() { - return service(ApiService.PROVIDERS); + public ReactClient react() { + return (ReactClient) service(ApiService.REACT); } - public ServiceClient react() { - return service(ApiService.REACT); + public SandboxClient sandbox() { + return (SandboxClient) service(ApiService.SANDBOX); } - public ServiceClient sandbox() { - return service(ApiService.SANDBOX); + public SchedulesClient schedules() { + return (SchedulesClient) service(ApiService.SCHEDULES); } - public ServiceClient schedules() { - return service(ApiService.SCHEDULES); + public WebhooksClient webhooks() { + return (WebhooksClient) service(ApiService.WEBHOOKS); } - public ServiceClient webhooks() { - return service(ApiService.WEBHOOKS); - } - - public ServiceClient webhookEndpoints() { - return service(ApiService.WEBHOOK_ENDPOINTS); + public WebhookEndpointsClient webhookEndpoints() { + return (WebhookEndpointsClient) service(ApiService.WEBHOOK_ENDPOINTS); } public WorkflowsClient workflows() { @@ -163,6 +181,7 @@ public void close() { /** Fluent configuration for constructing a testable client. */ public static final class Builder { private final ClientConfig.Builder config = ClientConfig.builder(); + private @Nullable ObjectMapper objectMapper; private Builder() {} @@ -171,21 +190,22 @@ public Builder apiKey(String apiKey) { return this; } - public Builder baseUrl(String baseUrl) { + public Builder apiBaseUrl(String baseUrl) { config.apiBaseUrl(baseUrl); return this; } - public Builder baseUrl(URI baseUrl) { + public Builder apiBaseUrl(URI baseUrl) { config.apiBaseUrl(baseUrl); return this; } - public Builder apiBaseUrl(String baseUrl) { - return baseUrl(baseUrl); + public Builder aiBaseUrl(String baseUrl) { + config.aiBaseUrl(baseUrl); + return this; } - public Builder aiBaseUrl(String baseUrl) { + public Builder aiBaseUrl(URI baseUrl) { config.aiBaseUrl(baseUrl); return this; } @@ -195,16 +215,12 @@ public Builder environment(String environment) { return this; } - public Builder env(String environment) { - return environment(environment); - } - public Builder debug(boolean debug) { config.debug(debug); return this; } - public Builder timeout(Duration timeout) { + public Builder requestTimeout(Duration timeout) { config.requestTimeout(timeout); return this; } @@ -219,13 +235,45 @@ public Builder maxRetries(int attempts) { return this; } + public Builder maxResponseBytes(long maxResponseBytes) { + config.maxResponseBytes(maxResponseBytes); + return this; + } + + /** Sets the maximum raw error body retained for diagnostics. */ + public Builder maxErrorBodyBytes(int maxErrorBodyBytes) { + config.maxErrorBodyBytes(maxErrorBodyBytes); + return this; + } + + public Builder userAgent(String userAgent) { + config.userAgent(userAgent); + return this; + } + + public Builder headers(Map headers) { + config.headers(headers); + return this; + } + public Builder header(String name, String value) { config.header(name, value); return this; } + /** Supplies JSON settings; the SDK copies the mapper so later caller changes are isolated. */ + public Builder objectMapper(ObjectMapper objectMapper) { + this.objectMapper = + Objects.requireNonNull(objectMapper, "objectMapper").copy(); + return this; + } + public Frontal build() { - return new Frontal(config.build()); + ClientConfig builtConfig = config.build(); + @Nullable ObjectMapper configuredMapper = objectMapper; + return configuredMapper == null + ? new Frontal(builtConfig) + : new Frontal(new ApiClient(builtConfig, configuredMapper)); } } } diff --git a/sdk/src/test/java/dev/frontal/sdk/ApiClientTest.java b/sdk/src/test/java/dev/frontal/sdk/ApiClientTest.java index 1ba0adf..4e4d48c 100644 --- a/sdk/src/test/java/dev/frontal/sdk/ApiClientTest.java +++ b/sdk/src/test/java/dev/frontal/sdk/ApiClientTest.java @@ -3,10 +3,14 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.PropertyNamingStrategies; import java.io.InputStream; +import java.nio.charset.StandardCharsets; import java.time.Duration; import java.util.Map; import java.util.Objects; @@ -22,6 +26,8 @@ import org.junit.jupiter.api.Test; class ApiClientTest { + private static final ObjectMapper JSON = new ObjectMapper(); + private MockWebServer server; @BeforeEach @@ -60,6 +66,107 @@ void retriesSafeGetOnServerFailure() throws Exception { } } + @Test + void streamBodyRetriesSafeGetBeforeReturningTheBody() throws Exception { + server.enqueue(new MockResponse().setResponseCode(503).setBody("temporary")); + server.enqueue(new MockResponse().setBody("large response")); + try (Frontal client = client(1); + ApiStream response = client.agents() + .streamBody( + Endpoints.Agents.GET_AGENTS_HEALTH, java.util.List.of(), QueryParams.empty(), null)) { + assertEquals("large response", new String(response.body().readAllBytes(), StandardCharsets.UTF_8)); + assertEquals(2, server.getRequestCount()); + } + } + + @Test + void errorDiagnosticBodyIsBoundedAndMarksTruncation() { + server.enqueue(new MockResponse().setResponseCode(418).setBody("0123456789abcdef")); + try (Frontal client = Frontal.builder() + .apiKey("frt_test_key") + .apiBaseUrl(server.url("/v1").toString()) + .maxRetries(0) + .maxErrorBodyBytes(8) + .build()) { + ApiException error = org.junit.jupiter.api.Assertions.assertThrows( + ApiException.class, () -> client.agents().health(JsonNode.class)); + assertEquals("01234567", error.responseBody()); + assertTrue(error.responseBodyTruncated()); + } + } + + @Test + void generatedNamedServiceMethodUsesExactQueryWireNames() throws Exception { + server.enqueue(new MockResponse().setBody("{\"data\":[]}")); + try (Frontal client = client(0)) { + client.agents().list(QueryParams.of("agentId", "agt_1"), JsonNode.class); + RecordedRequest request = server.takeRequest(1, TimeUnit.SECONDS); + assertEquals("agt_1", request.getRequestUrl().queryParameter("agentId")); + assertNull(request.getRequestUrl().queryParameter("agent_id")); + } + } + + @Test + void nestedResourceMethodsUseTheContractRouteAndOptionalQuery() throws Exception { + server.enqueue(new MockResponse().setBody("{\"id\":\"ds_1\"}")); + try (Frontal client = client(0)) { + JsonNode dataset = Objects.requireNonNull( + client.data().ingest().datasets().get("ds_1", QueryParams.of("view", "full"), JsonNode.class)); + RecordedRequest request = server.takeRequest(1, TimeUnit.SECONDS); + assertEquals("ds_1", dataset.path("id").asText()); + assertEquals( + "/v1/data/ingest/datasets/ds_1", request.getRequestUrl().encodedPath()); + assertEquals("full", request.getRequestUrl().queryParameter("view")); + } + } + + @Test + void agentRunMethodsAreGroupedUnderTheAgentsRunsResource() throws Exception { + server.enqueue(new MockResponse().setBody("{\"id\":\"run_1\"}")); + try (Frontal client = client(0)) { + JsonNode run = Objects.requireNonNull(client.agents().runs().get("run_1", JsonNode.class)); + RecordedRequest request = server.takeRequest(1, TimeUnit.SECONDS); + assertEquals("run_1", run.path("id").asText()); + assertEquals("/v1/agents/runs/run_1", request.getPath()); + } + } + + @Test + void requestMapKeysRemainVerbatimOnTheJsonWire() throws Exception { + server.enqueue(new MockResponse().setBody("{}")); + try (Frontal client = client(0)) { + client.agents().create(JSON.valueToTree(Map.of("agentId", "agt_1")), JsonNode.class); + RecordedRequest request = server.takeRequest(1, TimeUnit.SECONDS); + assertEquals("{\"agentId\":\"agt_1\"}", request.getBody().readUtf8()); + } + } + + @Test + void customObjectMapperIsCopiedAndHonorsItsNamingStrategy() throws Exception { + server.enqueue(new MockResponse().setBody("{\"agent-id\":\"agt_1\"}")); + ObjectMapper mapper = new ObjectMapper().setPropertyNamingStrategy(PropertyNamingStrategies.KEBAB_CASE); + try (Frontal client = Frontal.builder() + .apiKey("frt_test_key") + .apiBaseUrl(server.url("/v1").toString()) + .objectMapper(mapper) + .maxRetries(0) + .build()) { + mapper.setPropertyNamingStrategy(PropertyNamingStrategies.SNAKE_CASE); + CamelRequest response = Objects.requireNonNull(client.agents().health(CamelRequest.class)); + assertEquals("agt_1", response.agentId()); + } + } + + @Test + void veryLargeRetryAfterIsExposedWithoutMillisecondOverflow() { + server.enqueue(new MockResponse().setResponseCode(429).addHeader("Retry-After", Long.MAX_VALUE + "")); + try (Frontal client = client(0)) { + RateLimitException error = org.junit.jupiter.api.Assertions.assertThrows( + RateLimitException.class, () -> client.agents().health(JsonNode.class)); + assertEquals(Long.MAX_VALUE, error.retryAfter().toSeconds()); + } + } + @Test void doesNotRetryNonretryableServerStatus() { server.enqueue(new MockResponse().setResponseCode(501).setBody("not implemented")); @@ -98,12 +205,14 @@ void mapsValidationAndRateLimitErrors() { .setBody("{\"error\":{\"code\":\"RATE_LIMITED\",\"message\":\"slow down\"}}")); try (Frontal client = client(0)) { ValidationException validation = org.junit.jupiter.api.Assertions.assertThrows( - ValidationException.class, () -> client.agents().create(Map.of("name", "triage"), JsonNode.class)); + ValidationException.class, + () -> client.agents().create(JSON.valueToTree(Map.of("name", "triage")), JsonNode.class)); assertEquals("INVALID_AGENT", validation.code()); assertEquals(422, validation.statusCode()); RateLimitException rateLimit = org.junit.jupiter.api.Assertions.assertThrows( - RateLimitException.class, () -> client.agents().create(Map.of("name", "triage"), JsonNode.class)); + RateLimitException.class, + () -> client.agents().create(JSON.valueToTree(Map.of("name", "triage")), JsonNode.class)); assertEquals("RATE_LIMITED", rateLimit.code()); assertEquals(Duration.ofSeconds(2), rateLimit.retryAfter()); assertTrue(rateLimit.retryable()); @@ -117,7 +226,8 @@ void listPagesLoadLazilyAndKeepQueryOptions() throws Exception { server.enqueue(new MockResponse() .setBody("{\"data\":[{\"id\":\"agt_2\"}],\"pagination\":{\"cursor\":\"\",\"hasMore\":false}}")); try (Frontal client = client(0)) { - PageResult first = client.agents().list(Map.of("limit", 1), JsonNode.class); + PageResult first = client.agents() + .listPages(QueryParams.builder().add("limit", 1).build(), JsonNode.class); PageResult second = Objects.requireNonNull(first.nextPage()); assertEquals("agt_1", first.data().get(0).path("id").asText()); assertEquals("agt_2", second.data().get(0).path("id").asText()); @@ -135,7 +245,7 @@ void blockingStreamIteratorParsesMultilineSseDataAndCloses() throws Exception { .addHeader("Content-Type", "text/event-stream") .setBody("event: state\ndata: {\"step\":\ndata: 2}\n\ndata: done\n\n")); try (Frontal client = client(0); - SseEventIterator events = client.agents().watchBlocking("run_1")) { + SseEventIterator events = client.agents().runs().streamBlocking("run_1")) { assertEquals("{\"step\":\n2}", events.next()); assertEquals("done", events.next()); assertFalse(events.hasNext()); @@ -150,7 +260,7 @@ void publisherHonorsDemandAndCompletes() throws Exception { try (Frontal client = client(0)) { CountDownLatch complete = new CountDownLatch(1); AtomicReference received = new AtomicReference<>(); - client.agents().watch("run_2").subscribe(new Flow.Subscriber<>() { + client.agents().runs().stream("run_2").subscribe(new Flow.Subscriber<>() { @Override public void onSubscribe(Flow.Subscription value) { value.request(2); @@ -176,6 +286,40 @@ public void onComplete() { } } + @Test + void publisherCompletesWhenFinalEventEndsAtEofWithoutDelimiter() throws Exception { + server.enqueue(new MockResponse() + .addHeader("Content-Type", "text/event-stream") + .setBody("data: done")); + try (Frontal client = client(0)) { + CountDownLatch complete = new CountDownLatch(1); + AtomicReference received = new AtomicReference<>(); + client.agents().runs().stream("run_eof").subscribe(new Flow.Subscriber<>() { + @Override + public void onSubscribe(Flow.Subscription value) { + value.request(1); + } + + @Override + public void onNext(String item) { + received.set(item); + } + + @Override + public void onError(Throwable throwable) { + complete.countDown(); + } + + @Override + public void onComplete() { + complete.countDown(); + } + }); + assertTrue(complete.await(2, TimeUnit.SECONDS)); + assertEquals("done", received.get()); + } + } + @Test void publisherCancellationReachesAnOpeningStream() throws Exception { CountDownLatch opening = new CountDownLatch(1); @@ -225,9 +369,11 @@ public void onComplete() {} private Frontal client(int retries) { return Frontal.builder() .apiKey("frt_test_key") - .baseUrl(server.url("/v1").toString()) - .timeout(Duration.ofSeconds(2)) + .apiBaseUrl(server.url("/v1").toString()) + .requestTimeout(Duration.ofSeconds(2)) .maxRetries(retries) .build(); } + + private record CamelRequest(String agentId) {} } diff --git a/sdk/src/test/java/dev/frontal/sdk/ContractCoverageTest.java b/sdk/src/test/java/dev/frontal/sdk/ContractCoverageTest.java index 41b01d9..4a6f4a1 100644 --- a/sdk/src/test/java/dev/frontal/sdk/ContractCoverageTest.java +++ b/sdk/src/test/java/dev/frontal/sdk/ContractCoverageTest.java @@ -8,12 +8,16 @@ import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; import java.lang.reflect.Field; +import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.nio.file.Files; import java.nio.file.Path; +import java.util.ArrayDeque; +import java.util.Deque; import java.util.HashMap; import java.util.HashSet; import java.util.Map; +import java.util.Optional; import java.util.Set; import org.junit.jupiter.api.Test; @@ -26,10 +30,14 @@ void everyInventoryRouteHasExactlyOnePublicEndpointConstant() throws Exception { JsonNode inventory = read(CONTRACTS.resolve("sdk-endpoints.json")); Map expected = new HashMap<>(); inventory.fields().forEachRemaining(service -> { + Optional sdkService = sdkService(service.getKey()); + if (sdkService.isEmpty()) { + return; + } for (JsonNode route : service.getValue()) { expected.merge( key( - service.getKey(), + sdkService.orElseThrow(), route.path("method").asText(), route.path("path").asText()), 1, @@ -67,14 +75,13 @@ void everyAiOpenApiOperationMapsToAnAiEndpoint() throws Exception { for (var methods = path.getValue().fields(); methods.hasNext(); ) { var operation = methods.next(); String method = operation.getKey().toUpperCase(java.util.Locale.ROOT); - if (!Set.of("GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS") + if (Set.of("GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS") .contains(method)) { - continue; + operationCount++; + assertTrue( + endpoints.contains(method + " " + path.getKey()), + () -> "No AI endpoint for OpenAPI operation " + method + " " + path.getKey()); } - operationCount++; - assertTrue( - endpoints.contains(method + " " + path.getKey()), - () -> "No AI endpoint for OpenAPI operation " + method + " " + path.getKey()); } } assertEquals(7, operationCount); @@ -99,21 +106,69 @@ void publicApiSnapshotOperationsRemainIdentifiedAndReadable() throws Exception { for (var methods = path.getValue().fields(); methods.hasNext(); ) { var operation = methods.next(); String method = operation.getKey().toUpperCase(java.util.Locale.ROOT); - if (!Set.of("GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS") + if (Set.of("GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS") .contains(method)) { - continue; + String operationId = + operation.getValue().path("operationId").asText(); + assertFalse(operationId.isBlank(), "OpenAPI operation is missing its operationId"); + assertTrue(operationIds.add(operationId), "Duplicate OpenAPI operationId: " + operationId); + String service = operation.getValue().path("tags").path(0).asText(); + sdkService(service) + .ifPresent(sdkService -> assertTrue( + endpointRoutes.contains( + key(sdkService, method, normalizePublicPath(path.getKey()))), + () -> "No Java endpoint for OpenAPI operation " + method + " " + path.getKey())); } - String operationId = operation.getValue().path("operationId").asText(); - assertFalse(operationId.isBlank(), "OpenAPI operation is missing its operationId"); - assertTrue(operationIds.add(operationId), "Duplicate OpenAPI operationId: " + operationId); - String service = operation.getValue().path("tags").path(0).asText(); - assertTrue( - endpointRoutes.contains(key(service, method, normalizePublicPath(path.getKey()))), - () -> "No Java endpoint for OpenAPI operation " + method + " " + path.getKey()); } } } + @Test + void everyInventoryRouteHasANamedOperationMethod() throws Exception { + JsonNode inventory = read(CONTRACTS.resolve("sdk-endpoints.json")); + Set expected = new HashSet<>(); + inventory.fields().forEachRemaining(service -> { + Optional sdkService = sdkService(service.getKey()); + if (sdkService.isEmpty()) { + return; + } + for (JsonNode route : service.getValue()) { + expected.add( + sdkService.orElseThrow() + "|" + route.path("method").asText() + "|" + + route.path("path").asText()); + } + }); + + Set actual = new HashSet<>(); + Set> visited = new HashSet<>(); + Deque pending = new ArrayDeque<>(); + try (Frontal frontal = Frontal.builder().apiKey("frt_contract_test").build()) { + for (ApiService service : ApiService.values()) { + pending.add(frontal.service(service)); + } + while (!pending.isEmpty()) { + ServiceClient client = pending.removeFirst(); + if (visited.add(client.getClass())) { + for (Method method : client.getClass().getMethods()) { + SdkOperation operation = method.getAnnotation(SdkOperation.class); + if (operation != null) { + actual.add(operation.value()); + } + if (method.getParameterCount() == 0 + && ServiceClient.class.isAssignableFrom(method.getReturnType())) { + pending.add((ServiceClient) method.invoke(client)); + } + } + } + } + assertFalse( + java.util.Arrays.stream(AgentsServiceClient.class.getDeclaredMethods()) + .anyMatch(method -> method.getName().startsWith("getAgents")), + "Verbose service-prefixed methods must not remain in the canonical API"); + } + assertEquals(expected, actual, "Generated named-operation clients drifted from the route inventory"); + } + private static JsonNode read(Path path) throws IOException { assertTrue(Files.isRegularFile(path), "Missing contract file: " + path); return JSON.readTree(Files.readAllBytes(path)); @@ -123,6 +178,16 @@ private static String key(String service, String method, String path) { return service + "|" + method + "|" + path; } + private static Optional sdkService(String contractService) { + String service = contractService.equals("action-runs") ? "agents" : contractService; + for (ApiService apiService : ApiService.values()) { + if (apiService.value().equals(service)) { + return Optional.of(service); + } + } + return Optional.empty(); + } + private static String normalizePublicPath(String path) { String normalized = path.startsWith("/v1/") ? path.substring(3) : path; return normalized.replaceAll("\\{[^{}]+}", "{param}"); diff --git a/sdk/src/test/java/dev/frontal/sdk/ReadmeExamplesTest.java b/sdk/src/test/java/dev/frontal/sdk/ReadmeExamplesTest.java index 270ebf9..da811b1 100644 --- a/sdk/src/test/java/dev/frontal/sdk/ReadmeExamplesTest.java +++ b/sdk/src/test/java/dev/frontal/sdk/ReadmeExamplesTest.java @@ -84,18 +84,31 @@ private void runExample(String snippet, String label) throws Exception { private String wrap(String snippet) { return """ + import dev.frontal.sdk.ApiService; + import dev.frontal.sdk.ApiStream; + import dev.frontal.sdk.Endpoint; + import dev.frontal.sdk.FrontalException; import com.fasterxml.jackson.databind.JsonNode; + import dev.frontal.sdk.HttpMethod; import dev.frontal.sdk.Frontal; import dev.frontal.sdk.PageResult; + import dev.frontal.sdk.QueryParams; + import dev.frontal.sdk.RateLimitException; + import java.io.ByteArrayOutputStream; + import java.io.OutputStream; + import java.util.List; import java.util.Map; public class ReadmeQuickstart { public static void run() throws Exception { okhttp3.mockwebserver.MockWebServer mock = new okhttp3.mockwebserver.MockWebServer(); mock.start(); mock.enqueue(new okhttp3.mockwebserver.MockResponse().setBody(\"{\\\"id\\\":\\\"agt_123\\\",\\\"name\\\":\\\"triage\\\",\\\"data\\\":[{\\\"id\\\":\\\"agt_123\\\",\\\"name\\\":\\\"triage\\\"}]}\")); + Frontal f = Frontal.builder().apiKey(\"frt_test_key\").apiBaseUrl(mock.url(\"/v1\").toString()).build(); + OutputStream outputStream = new ByteArrayOutputStream(); try { %s } finally { + f.close(); mock.shutdown(); } } diff --git a/services/src/main/java/dev/frontal/sdk/resources/AgentsClient.java b/services/src/main/java/dev/frontal/sdk/resources/AgentsClient.java index 3deee78..2ad2fdd 100644 --- a/services/src/main/java/dev/frontal/sdk/resources/AgentsClient.java +++ b/services/src/main/java/dev/frontal/sdk/resources/AgentsClient.java @@ -4,68 +4,26 @@ import java.io.IOException; import java.time.Duration; import java.util.ArrayList; -import java.util.LinkedHashMap; import java.util.List; -import java.util.Map; import java.util.Objects; -import java.util.concurrent.Flow; -import org.jspecify.annotations.Nullable; +import java.util.concurrent.TimeoutException; -/** Agent definitions, executions, conversation history, and event streaming. */ -public final class AgentsClient extends ServiceClient { +/** Agent definitions and runs, with helpers for pagination and completion polling. */ +public final class AgentsClient extends AgentsServiceClient { AgentsClient(ApiClient client) { - super(ApiService.AGENTS, client); + super(client); } - public PageResult list(Map query, Class itemType) throws IOException, InterruptedException { - return fetchPage(query, itemType); + /** Fetches the first page of agents and exposes lazy page traversal. */ + public PageResult listPages(QueryParams query, Class itemType) throws IOException, InterruptedException { + return fetchPage(Objects.requireNonNull(query, "query"), Objects.requireNonNull(itemType, "itemType")); } - public @Nullable T get(String agentId, Class responseType) throws IOException, InterruptedException { - return request(Endpoints.Agents.GET_AGENTS_PARAM, List.of(agentId), responseType); - } - - public @Nullable T create(Object definition, Class responseType) throws IOException, InterruptedException { - return request(Endpoints.Agents.POST_AGENTS, List.of(), Map.of(), definition, responseType); - } - - public @Nullable T update(String agentId, Object update, Class responseType) - throws IOException, InterruptedException { - return request(Endpoints.Agents.PUT_AGENTS_PARAM, List.of(agentId), Map.of(), update, responseType); - } - - public void delete(String agentId) throws IOException, InterruptedException { - requestBytes(Endpoints.Agents.DELETE_AGENTS_PARAM, List.of(agentId), Map.of(), null); - } - - public @Nullable T createRun(String agentId, Object input, Class responseType) - throws IOException, InterruptedException { - return request(Endpoints.Agents.POST_AGENTS_PARAM_RUNS, List.of(agentId), Map.of(), input, responseType); - } - - public @Nullable T run(String runId, Class responseType) throws IOException, InterruptedException { - return request(Endpoints.Agents.GET_AGENTS_RUNS_PARAM, List.of(runId), responseType); - } - - public @Nullable T conversation(String runId, Class responseType) throws IOException, InterruptedException { - return request(Endpoints.Agents.GET_AGENTS_RUNS_PARAM_CONVERSATION, List.of(runId), responseType); - } - - public @Nullable T health(Class responseType) throws IOException, InterruptedException { - return request(Endpoints.Agents.GET_AGENTS_HEALTH, List.of(), responseType); - } - - public Flow.Publisher watch(String runId) { - return streamPublisher(Endpoints.Agents.STREAM_AGENTS_RUNS_PARAM_STREAM, List.of(runId), Map.of()); - } - - public SseEventIterator watchBlocking(String runId) throws IOException, InterruptedException { - return streamEvents(Endpoints.Agents.STREAM_AGENTS_RUNS_PARAM_STREAM, List.of(runId), Map.of()); - } - - public JsonNode waitForCompletion(String runId, Duration interval, Duration timeout) throws Exception { + /** Waits until a run reaches a terminal status or the timeout expires. */ + public JsonNode waitForCompletion(String runId, Duration interval, Duration timeout) + throws IOException, InterruptedException, TimeoutException { return Poller.pollUntil( - () -> Objects.requireNonNull(run(runId, JsonNode.class), "Agent run response was empty"), + () -> Objects.requireNonNull(runs().get(runId, JsonNode.class), "Agent run response was empty"), result -> { String status = result.path("status").asText("").toLowerCase(java.util.Locale.ROOT); return List.of("completed", "succeeded", "failed", "cancelled", "rejected") @@ -75,12 +33,8 @@ public JsonNode waitForCompletion(String runId, Duration interval, Duration time timeout); } - private PageResult fetchPage(Map options, Class itemType) - throws IOException, InterruptedException { - Map query = options == null ? Map.of() : Map.copyOf(options); - JsonNode response = Objects.requireNonNull( - request(Endpoints.Agents.GET_AGENTS, List.of(), query, null, JsonNode.class), - "Agent list response was empty"); + private PageResult fetchPage(QueryParams query, Class itemType) throws IOException, InterruptedException { + JsonNode response = Objects.requireNonNull(list(query, JsonNode.class), "Agent list response was empty"); JsonNode items = response.isArray() ? response : response.path("data"); if (!items.isArray()) { items = response.path("agents"); @@ -98,10 +52,9 @@ private PageResult fetchPage(Map options, Class itemType) metadata.path("hasMore").asBoolean(metadata.path("has_more").asBoolean(!cursor.isBlank())); Long total = metadata.has("total") ? metadata.path("total").asLong() : null; return new PageResult<>(data, new Pagination(cursor, more, total), next -> { - Map nextQuery = new LinkedHashMap<>(); - query.forEach(nextQuery::put); - nextQuery.put("cursor", next); - return fetchPage(nextQuery, itemType); + QueryParams.Builder nextQuery = QueryParams.builder(); + query.values().forEach((name, values) -> values.forEach(value -> nextQuery.add(name, value))); + return fetchPage(nextQuery.add("cursor", next).build(), itemType); }); } } diff --git a/services/src/main/java/dev/frontal/sdk/resources/AgentsRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/AgentsRunsClient.java new file mode 100644 index 0000000..0737b19 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/AgentsRunsClient.java @@ -0,0 +1,336 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.Flow; +import org.jspecify.annotations.Nullable; + +/** Contract operations for agents/runs. Generated by scripts/generate_endpoints.py. */ +public final class AgentsRunsClient extends ServiceClient { + AgentsRunsClient(ApiClient client) { + super(ApiService.AGENTS, client); + } + + /** + * Calls the contract route {@code GET /action-runs/{param}}. + * @param decoded response type + * @param actionRunId actionRunId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("agents|GET|/action-runs/{param}") + public @Nullable T getByActionRunId(String actionRunId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Agents.GET_ACTION_RUNS_PARAM, List.of(actionRunId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /action-runs/{param}} using a generic response type. + * @param decoded response type + * @param actionRunId actionRunId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getByActionRunId(String actionRunId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Agents.GET_ACTION_RUNS_PARAM, List.of(actionRunId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /action-runs/{param}} without query parameters. + * @param decoded response type + * @param actionRunId actionRunId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getByActionRunId(String actionRunId, Class responseType) + throws IOException, InterruptedException { + return getByActionRunId(actionRunId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /action-runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param actionRunId actionRunId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getByActionRunId(String actionRunId, TypeReference responseType) + throws IOException, InterruptedException { + return getByActionRunId(actionRunId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /agents/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("agents|GET|/agents/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Agents.GET_AGENTS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /agents/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Agents.GET_AGENTS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /agents/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /agents/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /agents/runs/{param}/conversation}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("agents|GET|/agents/runs/{param}/conversation") + public @Nullable T conversation(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Agents.GET_AGENTS_RUNS_PARAM_CONVERSATION, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /agents/runs/{param}/conversation} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T conversation(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Agents.GET_AGENTS_RUNS_PARAM_CONVERSATION, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /agents/runs/{param}/conversation} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T conversation(String runId, Class responseType) throws IOException, InterruptedException { + return conversation(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /agents/runs/{param}/conversation} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T conversation(String runId, TypeReference responseType) + throws IOException, InterruptedException { + return conversation(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /agents/{param}/runs}. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("agents|GET|/agents/{param}/runs") + public @Nullable T list(String agentId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Agents.GET_AGENTS_PARAM_RUNS, List.of(agentId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /agents/{param}/runs} using a generic response type. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String agentId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Agents.GET_AGENTS_PARAM_RUNS, List.of(agentId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /agents/{param}/runs} without query parameters. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String agentId, Class responseType) throws IOException, InterruptedException { + return list(agentId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /agents/{param}/runs} without query parameters using a generic response type. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String agentId, TypeReference responseType) + throws IOException, InterruptedException { + return list(agentId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /agents/{param}/runs}. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("agents|POST|/agents/{param}/runs") + public @Nullable T create(String agentId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Agents.POST_AGENTS_PARAM_RUNS, List.of(agentId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /agents/{param}/runs} using a generic response type. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create( + String agentId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Agents.POST_AGENTS_PARAM_RUNS, List.of(agentId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /agents/{param}/runs} without query parameters. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(String agentId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(agentId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /agents/{param}/runs} without query parameters using a generic response type. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(String agentId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(agentId, QueryParams.empty(), body, responseType); + } + + /** + * Opens the event stream for {@code STREAM /agents/runs/{param}/stream}. + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @return a publisher that emits event data + */ + @SdkOperation("agents|STREAM|/agents/runs/{param}/stream") + public Flow.Publisher stream(String runId, QueryParams query) { + return streamPublisher(Endpoints.Agents.STREAM_AGENTS_RUNS_PARAM_STREAM, List.of(runId), query); + } + /** + * Opens a blocking event stream for {@code STREAM /agents/runs/{param}/stream}. + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @return an iterator that must be closed + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public SseEventIterator streamBlocking(String runId, QueryParams query) throws IOException, InterruptedException { + return streamEvents(Endpoints.Agents.STREAM_AGENTS_RUNS_PARAM_STREAM, List.of(runId), query); + } + /** + * Opens the event stream for {@code STREAM /agents/runs/{param}/stream} with no query parameters. + * @param runId runId supplied to the operation + * @return a publisher that emits event data + */ + public Flow.Publisher stream(String runId) { + return stream(runId, QueryParams.empty()); + } + /** + * Opens a blocking event stream for {@code STREAM /agents/runs/{param}/stream} with no query parameters. + * @param runId runId supplied to the operation + * @return an iterator that must be closed + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public SseEventIterator streamBlocking(String runId) throws IOException, InterruptedException { + return streamBlocking(runId, QueryParams.empty()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/AgentsServiceClient.java b/services/src/main/java/dev/frontal/sdk/resources/AgentsServiceClient.java new file mode 100644 index 0000000..1492695 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/AgentsServiceClient.java @@ -0,0 +1,413 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for agents. Generated by scripts/generate_endpoints.py. */ +public class AgentsServiceClient extends ServiceClient { + AgentsServiceClient(ApiClient client) { + super(ApiService.AGENTS, client); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public AgentsRunsClient runs() { + return new AgentsRunsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the versions resource client + */ + public AgentsVersionsClient versions() { + return new AgentsVersionsClient(client()); + } + + /** + * Calls the contract route {@code DELETE /agents/{param}}. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("agents|DELETE|/agents/{param}") + public @Nullable T delete(String agentId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Agents.DELETE_AGENTS_PARAM, List.of(agentId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /agents/{param}} using a generic response type. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String agentId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Agents.DELETE_AGENTS_PARAM, List.of(agentId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /agents/{param}} without query parameters. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String agentId, Class responseType) throws IOException, InterruptedException { + return delete(agentId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /agents/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String agentId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(agentId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /agents}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("agents|GET|/agents") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Agents.GET_AGENTS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /agents} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Agents.GET_AGENTS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /agents} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /agents} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /agents/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("agents|GET|/agents/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Agents.GET_AGENTS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /agents/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Agents.GET_AGENTS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /agents/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /agents/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /agents/{param}}. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("agents|GET|/agents/{param}") + public @Nullable T get(String agentId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Agents.GET_AGENTS_PARAM, List.of(agentId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /agents/{param}} using a generic response type. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String agentId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Agents.GET_AGENTS_PARAM, List.of(agentId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /agents/{param}} without query parameters. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String agentId, Class responseType) throws IOException, InterruptedException { + return get(agentId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /agents/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String agentId, TypeReference responseType) throws IOException, InterruptedException { + return get(agentId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /agents}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("agents|POST|/agents") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Agents.POST_AGENTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /agents} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Agents.POST_AGENTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /agents} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /agents} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /agents/{param}/rollback}. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("agents|POST|/agents/{param}/rollback") + public @Nullable T rollback(String agentId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Agents.POST_AGENTS_PARAM_ROLLBACK, List.of(agentId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /agents/{param}/rollback} using a generic response type. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T rollback( + String agentId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Agents.POST_AGENTS_PARAM_ROLLBACK, List.of(agentId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /agents/{param}/rollback} without query parameters. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T rollback(String agentId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return rollback(agentId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /agents/{param}/rollback} without query parameters using a generic response type. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T rollback(String agentId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return rollback(agentId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code PUT /agents/{param}}. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("agents|PUT|/agents/{param}") + public @Nullable T update(String agentId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Agents.PUT_AGENTS_PARAM, List.of(agentId), query, body, responseType); + } + /** + * Calls the contract route {@code PUT /agents/{param}} using a generic response type. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update( + String agentId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Agents.PUT_AGENTS_PARAM, List.of(agentId), query, body, responseType); + } + /** + * Calls the contract route {@code PUT /agents/{param}} without query parameters. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String agentId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return update(agentId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code PUT /agents/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String agentId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return update(agentId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/AgentsVersionsClient.java b/services/src/main/java/dev/frontal/sdk/resources/AgentsVersionsClient.java new file mode 100644 index 0000000..e4424fb --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/AgentsVersionsClient.java @@ -0,0 +1,68 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for agents/versions. Generated by scripts/generate_endpoints.py. */ +public final class AgentsVersionsClient extends ServiceClient { + AgentsVersionsClient(ApiClient client) { + super(ApiService.AGENTS, client); + } + + /** + * Calls the contract route {@code GET /agents/{param}/versions}. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("agents|GET|/agents/{param}/versions") + public @Nullable T list(String agentId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Agents.GET_AGENTS_PARAM_VERSIONS, List.of(agentId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /agents/{param}/versions} using a generic response type. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String agentId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Agents.GET_AGENTS_PARAM_VERSIONS, List.of(agentId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /agents/{param}/versions} without query parameters. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String agentId, Class responseType) throws IOException, InterruptedException { + return list(agentId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /agents/{param}/versions} without query parameters using a generic response type. + * @param decoded response type + * @param agentId agentId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String agentId, TypeReference responseType) + throws IOException, InterruptedException { + return list(agentId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/AiChatClient.java b/services/src/main/java/dev/frontal/sdk/resources/AiChatClient.java new file mode 100644 index 0000000..31184df --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/AiChatClient.java @@ -0,0 +1,15 @@ +package dev.frontal.sdk; + +/** Contract operations for ai/chat. Generated by scripts/generate_endpoints.py. */ +public final class AiChatClient extends ServiceClient { + AiChatClient(ApiClient client) { + super(ApiService.AI, client); + } + + /** Returns the client for the nested resource. + * @return the completions resource client + */ + public AiChatCompletionsClient completions() { + return new AiChatCompletionsClient(client()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/AiChatCompletionsClient.java b/services/src/main/java/dev/frontal/sdk/resources/AiChatCompletionsClient.java new file mode 100644 index 0000000..ecc853c --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/AiChatCompletionsClient.java @@ -0,0 +1,70 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ai/chat/completions. Generated by scripts/generate_endpoints.py. */ +public final class AiChatCompletionsClient extends ServiceClient { + AiChatCompletionsClient(ApiClient client) { + super(ApiService.AI, client); + } + + /** + * Calls the contract route {@code POST /ai/chat/completions}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ai|POST|/ai/chat/completions") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ai.POST_AI_CHAT_COMPLETIONS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ai/chat/completions} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ai.POST_AI_CHAT_COMPLETIONS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ai/chat/completions} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ai/chat/completions} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/AiClient.java b/services/src/main/java/dev/frontal/sdk/resources/AiClient.java index 8cbac65..335b05a 100644 --- a/services/src/main/java/dev/frontal/sdk/resources/AiClient.java +++ b/services/src/main/java/dev/frontal/sdk/resources/AiClient.java @@ -1,60 +1,21 @@ package dev.frontal.sdk; +import com.fasterxml.jackson.databind.node.ObjectNode; import java.io.IOException; -import java.nio.file.Path; -import java.util.List; -import java.util.Map; import org.jspecify.annotations.Nullable; -/** Frontal AI gateway operations backed by the AI OpenAPI snapshot. */ -public final class AiClient extends ServiceClient { +/** AI gateway operations, with a convenience method for a basic text prompt. */ +public final class AiClient extends AiServiceClient { AiClient(ApiClient client) { - super(ApiService.AI, client); - } - - public @Nullable T health(Class responseType) throws IOException, InterruptedException { - return request(Endpoints.Ai.GET_HEALTH, List.of(), Map.of(), null, responseType); - } - - public @Nullable T listModels(Class responseType) throws IOException, InterruptedException { - return request(Endpoints.Ai.GET_INTERNAL_MODELS, List.of(), Map.of(), null, responseType); - } - - public @Nullable T modelDefaults(Class responseType) throws IOException, InterruptedException { - return request(Endpoints.Ai.GET_INTERNAL_MODELS_DEFAULTS, List.of(), Map.of(), null, responseType); - } - - public @Nullable T chatCompletion(Object input, Class responseType) - throws IOException, InterruptedException { - return request(Endpoints.Ai.POST_AI_CHAT_COMPLETIONS, List.of(), Map.of(), input, responseType); + super(client); } + /** Sends a user prompt to a chat completion model. */ public @Nullable T generateText(String model, String prompt, Class responseType) throws IOException, InterruptedException { - Map message = Map.of("role", "user", "content", prompt); - Map body = Map.of("model", model, "messages", List.of(message)); - return chatCompletion(body, responseType); - } - - public @Nullable T embeddings(Object input, Class responseType) throws IOException, InterruptedException { - return request(Endpoints.Ai.POST_INTERNAL_EMBEDDINGS, List.of(), Map.of(), input, responseType); - } - - public @Nullable T predict(Object input, Class responseType) throws IOException, InterruptedException { - return request(Endpoints.Ai.POST_INTERNAL_PREDICTIONS, List.of(), Map.of(), input, responseType); - } - - public @Nullable T rerank(Object input, Class responseType) throws IOException, InterruptedException { - return request(Endpoints.Ai.POST_INTERNAL_RERANK, List.of(), Map.of(), input, responseType); - } - - public @Nullable T predictForm(Map fields, Map files, Class responseType) - throws IOException, InterruptedException { - return requestForm( - Endpoints.Ai.POSTFORMDATA_INTERNAL_PREDICTIONS, List.of(), Map.of(), fields, files, responseType); - } - - public byte[] predictRaw(byte[] input) throws IOException, InterruptedException { - return requestBytes(Endpoints.Ai.POSTRAW_INTERNAL_PREDICTIONS, List.of(), Map.of(), input); + ObjectNode body = client().objectMapper().createObjectNode(); + body.put("model", model); + body.putArray("messages").addObject().put("role", "user").put("content", prompt); + return chat().completions().create(body, responseType); } } diff --git a/services/src/main/java/dev/frontal/sdk/resources/AiInternalClient.java b/services/src/main/java/dev/frontal/sdk/resources/AiInternalClient.java new file mode 100644 index 0000000..6861e3e --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/AiInternalClient.java @@ -0,0 +1,311 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.nio.file.Path; +import java.util.List; +import java.util.Map; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ai/internal. Generated by scripts/generate_endpoints.py. */ +public final class AiInternalClient extends ServiceClient { + AiInternalClient(ApiClient client) { + super(ApiService.AI, client); + } + + /** Returns the client for the nested resource. + * @return the models resource client + */ + public AiInternalModelsClient models() { + return new AiInternalModelsClient(client()); + } + + /** + * Calls the contract route {@code POST /internal/embeddings}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ai|POST|/internal/embeddings") + public @Nullable T embed(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ai.POST_INTERNAL_EMBEDDINGS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /internal/embeddings} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T embed(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ai.POST_INTERNAL_EMBEDDINGS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /internal/embeddings} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T embed(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return embed(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /internal/embeddings} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T embed(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return embed(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /internal/predictions}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ai|POST|/internal/predictions") + public @Nullable T predict(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ai.POST_INTERNAL_PREDICTIONS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /internal/predictions} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T predict(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ai.POST_INTERNAL_PREDICTIONS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /internal/predictions} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T predict(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return predict(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /internal/predictions} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T predict(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return predict(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /internal/rerank}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ai|POST|/internal/rerank") + public @Nullable T rerank(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ai.POST_INTERNAL_RERANK, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /internal/rerank} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T rerank(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ai.POST_INTERNAL_RERANK, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /internal/rerank} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T rerank(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return rerank(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /internal/rerank} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T rerank(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return rerank(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POSTFORMDATA /internal/predictions}. + * @param decoded response type + * @param query query supplied to the operation + * @param fields fields supplied to the operation + * @param files files supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ai|POSTFORMDATA|/internal/predictions") + public @Nullable T predictForm( + QueryParams query, Map fields, Map files, Class responseType) + throws IOException, InterruptedException { + return requestForm( + Endpoints.Ai.POSTFORMDATA_INTERNAL_PREDICTIONS, List.of(), query, fields, files, responseType); + } + /** + * Calls the contract route {@code POSTFORMDATA /internal/predictions} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param fields fields supplied to the operation + * @param files files supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T predictForm( + QueryParams query, Map fields, Map files, TypeReference responseType) + throws IOException, InterruptedException { + return requestForm( + Endpoints.Ai.POSTFORMDATA_INTERNAL_PREDICTIONS, List.of(), query, fields, files, responseType); + } + /** + * Calls the contract route {@code POSTFORMDATA /internal/predictions} without query parameters. + * @param decoded response type + * @param fields fields supplied to the operation + * @param files files supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T predictForm(Map fields, Map files, Class responseType) + throws IOException, InterruptedException { + return predictForm(QueryParams.empty(), fields, files, responseType); + } + /** + * Calls the contract route {@code POSTFORMDATA /internal/predictions} without query parameters using a generic response type. + * @param decoded response type + * @param fields fields supplied to the operation + * @param files files supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T predictForm( + Map fields, Map files, TypeReference responseType) + throws IOException, InterruptedException { + return predictForm(QueryParams.empty(), fields, files, responseType); + } + + /** + * Calls the contract route {@code POSTRAW /internal/predictions}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ai|POSTRAW|/internal/predictions") + public @Nullable T predictRaw(QueryParams query, byte[] body, Class responseType) + throws IOException, InterruptedException { + return requestRaw(Endpoints.Ai.POSTRAW_INTERNAL_PREDICTIONS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POSTRAW /internal/predictions} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T predictRaw(QueryParams query, byte[] body, TypeReference responseType) + throws IOException, InterruptedException { + return requestRaw(Endpoints.Ai.POSTRAW_INTERNAL_PREDICTIONS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POSTRAW /internal/predictions} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T predictRaw(byte[] body, Class responseType) throws IOException, InterruptedException { + return predictRaw(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POSTRAW /internal/predictions} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T predictRaw(byte[] body, TypeReference responseType) + throws IOException, InterruptedException { + return predictRaw(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/AiInternalModelsClient.java b/services/src/main/java/dev/frontal/sdk/resources/AiInternalModelsClient.java new file mode 100644 index 0000000..fef6c44 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/AiInternalModelsClient.java @@ -0,0 +1,111 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ai/internal/models. Generated by scripts/generate_endpoints.py. */ +public final class AiInternalModelsClient extends ServiceClient { + AiInternalModelsClient(ApiClient client) { + super(ApiService.AI, client); + } + + /** + * Calls the contract route {@code GET /internal/models}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ai|GET|/internal/models") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ai.GET_INTERNAL_MODELS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /internal/models} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ai.GET_INTERNAL_MODELS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /internal/models} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /internal/models} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /internal/models/defaults}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ai|GET|/internal/models/defaults") + public @Nullable T defaults(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ai.GET_INTERNAL_MODELS_DEFAULTS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /internal/models/defaults} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T defaults(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ai.GET_INTERNAL_MODELS_DEFAULTS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /internal/models/defaults} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T defaults(Class responseType) throws IOException, InterruptedException { + return defaults(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /internal/models/defaults} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T defaults(TypeReference responseType) throws IOException, InterruptedException { + return defaults(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/AiServiceClient.java b/services/src/main/java/dev/frontal/sdk/resources/AiServiceClient.java new file mode 100644 index 0000000..25d4043 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/AiServiceClient.java @@ -0,0 +1,76 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ai. Generated by scripts/generate_endpoints.py. */ +public class AiServiceClient extends ServiceClient { + AiServiceClient(ApiClient client) { + super(ApiService.AI, client); + } + + /** Returns the client for the nested resource. + * @return the chat resource client + */ + public AiChatClient chat() { + return new AiChatClient(client()); + } + + /** Returns the client for the nested resource. + * @return the internal resource client + */ + public AiInternalClient internal() { + return new AiInternalClient(client()); + } + + /** + * Calls the contract route {@code GET /health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ai|GET|/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ai.GET_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ai.GET_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/AuditClient.java b/services/src/main/java/dev/frontal/sdk/resources/AuditClient.java new file mode 100644 index 0000000..c6ff239 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/AuditClient.java @@ -0,0 +1,15 @@ +package dev.frontal.sdk; + +/** Contract operations for audit. Generated by scripts/generate_endpoints.py. */ +public final class AuditClient extends ServiceClient { + AuditClient(ApiClient client) { + super(ApiService.AUDIT, client); + } + + /** Returns the client for the nested resource. + * @return the events resource client + */ + public AuditEventsClient events() { + return new AuditEventsClient(client()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/AuditEventsClient.java b/services/src/main/java/dev/frontal/sdk/resources/AuditEventsClient.java new file mode 100644 index 0000000..9c5af96 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/AuditEventsClient.java @@ -0,0 +1,229 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for audit/events. Generated by scripts/generate_endpoints.py. */ +public final class AuditEventsClient extends ServiceClient { + AuditEventsClient(ApiClient client) { + super(ApiService.AUDIT, client); + } + + /** + * Calls the contract route {@code GET /audit/events}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("audit|GET|/audit/events") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Audit.GET_AUDIT_EVENTS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /audit/events} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Audit.GET_AUDIT_EVENTS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /audit/events} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /audit/events} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /audit/events/{param}}. + * @param decoded response type + * @param eventId eventId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("audit|GET|/audit/events/{param}") + public @Nullable T get(String eventId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Audit.GET_AUDIT_EVENTS_PARAM, List.of(eventId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /audit/events/{param}} using a generic response type. + * @param decoded response type + * @param eventId eventId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String eventId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Audit.GET_AUDIT_EVENTS_PARAM, List.of(eventId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /audit/events/{param}} without query parameters. + * @param decoded response type + * @param eventId eventId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String eventId, Class responseType) throws IOException, InterruptedException { + return get(eventId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /audit/events/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param eventId eventId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String eventId, TypeReference responseType) throws IOException, InterruptedException { + return get(eventId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /audit/events}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("audit|POST|/audit/events") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Audit.POST_AUDIT_EVENTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /audit/events} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Audit.POST_AUDIT_EVENTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /audit/events} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /audit/events} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /audit/events/batch}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("audit|POST|/audit/events/batch") + public @Nullable T batch(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Audit.POST_AUDIT_EVENTS_BATCH, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /audit/events/batch} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T batch(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Audit.POST_AUDIT_EVENTS_BATCH, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /audit/events/batch} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T batch(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return batch(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /audit/events/batch} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T batch(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return batch(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/AuthAccountClient.java b/services/src/main/java/dev/frontal/sdk/resources/AuthAccountClient.java new file mode 100644 index 0000000..7ba3f99 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/AuthAccountClient.java @@ -0,0 +1,402 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for auth/account. Generated by scripts/generate_endpoints.py. */ +public final class AuthAccountClient extends ServiceClient { + AuthAccountClient(ApiClient client) { + super(ApiService.AUTH, client); + } + + /** Returns the client for the nested resource. + * @return the mfa resource client + */ + public AuthAccountMfaClient mfa() { + return new AuthAccountMfaClient(client()); + } + + /** Returns the client for the nested resource. + * @return the security resource client + */ + public AuthAccountSecurityClient security() { + return new AuthAccountSecurityClient(client()); + } + + /** Returns the client for the nested resource. + * @return the sessions resource client + */ + public AuthAccountSessionsClient sessions() { + return new AuthAccountSessionsClient(client()); + } + + /** + * Calls the contract route {@code DELETE /auth/account/profile}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|DELETE|/auth/account/profile") + public @Nullable T deleteProfile(QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.DELETE_AUTH_ACCOUNT_PROFILE, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /auth/account/profile} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T deleteProfile(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.DELETE_AUTH_ACCOUNT_PROFILE, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /auth/account/profile} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T deleteProfile(Class responseType) throws IOException, InterruptedException { + return deleteProfile(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /auth/account/profile} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T deleteProfile(TypeReference responseType) throws IOException, InterruptedException { + return deleteProfile(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /auth/account/audit-log}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|GET|/auth/account/audit-log") + public @Nullable T getAuditLog(QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_ACCOUNT_AUDIT_LOG, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/account/audit-log} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getAuditLog(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_ACCOUNT_AUDIT_LOG, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/account/audit-log} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getAuditLog(Class responseType) throws IOException, InterruptedException { + return getAuditLog(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /auth/account/audit-log} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getAuditLog(TypeReference responseType) throws IOException, InterruptedException { + return getAuditLog(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /auth/account/mfa}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|GET|/auth/account/mfa") + public @Nullable T getMfa(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_ACCOUNT_MFA, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/account/mfa} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getMfa(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_ACCOUNT_MFA, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/account/mfa} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getMfa(Class responseType) throws IOException, InterruptedException { + return getMfa(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /auth/account/mfa} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getMfa(TypeReference responseType) throws IOException, InterruptedException { + return getMfa(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /auth/account/profile}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|GET|/auth/account/profile") + public @Nullable T getProfile(QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_ACCOUNT_PROFILE, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/account/profile} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getProfile(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_ACCOUNT_PROFILE, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/account/profile} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getProfile(Class responseType) throws IOException, InterruptedException { + return getProfile(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /auth/account/profile} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getProfile(TypeReference responseType) throws IOException, InterruptedException { + return getProfile(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /auth/account/mfa}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/account/mfa") + public @Nullable T createMfa(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_ACCOUNT_MFA, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/account/mfa} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createMfa(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_ACCOUNT_MFA, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/account/mfa} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createMfa(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createMfa(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/account/mfa} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createMfa(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createMfa(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /auth/account/password}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/account/password") + public @Nullable T createPassword(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_ACCOUNT_PASSWORD, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/account/password} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createPassword(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_ACCOUNT_PASSWORD, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/account/password} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createPassword(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createPassword(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/account/password} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createPassword(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createPassword(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code PUT /auth/account/profile}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|PUT|/auth/account/profile") + public @Nullable T updateProfile(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.PUT_AUTH_ACCOUNT_PROFILE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code PUT /auth/account/profile} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T updateProfile(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.PUT_AUTH_ACCOUNT_PROFILE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code PUT /auth/account/profile} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T updateProfile(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return updateProfile(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code PUT /auth/account/profile} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T updateProfile(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return updateProfile(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/AuthAccountMfaClient.java b/services/src/main/java/dev/frontal/sdk/resources/AuthAccountMfaClient.java new file mode 100644 index 0000000..2b93ed3 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/AuthAccountMfaClient.java @@ -0,0 +1,246 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for auth/account/mfa. Generated by scripts/generate_endpoints.py. */ +public final class AuthAccountMfaClient extends ServiceClient { + AuthAccountMfaClient(ApiClient client) { + super(ApiService.AUTH, client); + } + + /** + * Calls the contract route {@code DELETE /auth/account/mfa/{param}}. + * @param decoded response type + * @param mfaId mfaId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|DELETE|/auth/account/mfa/{param}") + public @Nullable T delete(String mfaId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.DELETE_AUTH_ACCOUNT_MFA_PARAM, List.of(mfaId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /auth/account/mfa/{param}} using a generic response type. + * @param decoded response type + * @param mfaId mfaId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String mfaId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.DELETE_AUTH_ACCOUNT_MFA_PARAM, List.of(mfaId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /auth/account/mfa/{param}} without query parameters. + * @param decoded response type + * @param mfaId mfaId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String mfaId, Class responseType) throws IOException, InterruptedException { + return delete(mfaId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /auth/account/mfa/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param mfaId mfaId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String mfaId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(mfaId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /auth/account/mfa/{param}}. + * @param decoded response type + * @param mfaId mfaId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|GET|/auth/account/mfa/{param}") + public @Nullable T get(String mfaId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_ACCOUNT_MFA_PARAM, List.of(mfaId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/account/mfa/{param}} using a generic response type. + * @param decoded response type + * @param mfaId mfaId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String mfaId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_ACCOUNT_MFA_PARAM, List.of(mfaId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/account/mfa/{param}} without query parameters. + * @param decoded response type + * @param mfaId mfaId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String mfaId, Class responseType) throws IOException, InterruptedException { + return get(mfaId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /auth/account/mfa/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param mfaId mfaId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String mfaId, TypeReference responseType) throws IOException, InterruptedException { + return get(mfaId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /auth/account/mfa/{param}/challenge}. + * @param decoded response type + * @param mfaId mfaId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/account/mfa/{param}/challenge") + public @Nullable T createChallenge( + String mfaId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_ACCOUNT_MFA_PARAM_CHALLENGE, List.of(mfaId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/account/mfa/{param}/challenge} using a generic response type. + * @param decoded response type + * @param mfaId mfaId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createChallenge( + String mfaId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_ACCOUNT_MFA_PARAM_CHALLENGE, List.of(mfaId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/account/mfa/{param}/challenge} without query parameters. + * @param decoded response type + * @param mfaId mfaId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createChallenge(String mfaId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createChallenge(mfaId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/account/mfa/{param}/challenge} without query parameters using a generic response type. + * @param decoded response type + * @param mfaId mfaId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createChallenge(String mfaId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createChallenge(mfaId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /auth/account/mfa/{param}/verify}. + * @param decoded response type + * @param mfaId mfaId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/account/mfa/{param}/verify") + public @Nullable T verify(String mfaId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_ACCOUNT_MFA_PARAM_VERIFY, List.of(mfaId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/account/mfa/{param}/verify} using a generic response type. + * @param decoded response type + * @param mfaId mfaId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T verify( + String mfaId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_ACCOUNT_MFA_PARAM_VERIFY, List.of(mfaId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/account/mfa/{param}/verify} without query parameters. + * @param decoded response type + * @param mfaId mfaId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T verify(String mfaId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return verify(mfaId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/account/mfa/{param}/verify} without query parameters using a generic response type. + * @param decoded response type + * @param mfaId mfaId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T verify(String mfaId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return verify(mfaId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/AuthAccountSecurityApiKeysClient.java b/services/src/main/java/dev/frontal/sdk/resources/AuthAccountSecurityApiKeysClient.java new file mode 100644 index 0000000..ea1d904 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/AuthAccountSecurityApiKeysClient.java @@ -0,0 +1,304 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for auth/account/security/api-keys. Generated by scripts/generate_endpoints.py. */ +public final class AuthAccountSecurityApiKeysClient extends ServiceClient { + AuthAccountSecurityApiKeysClient(ApiClient client) { + super(ApiService.AUTH, client); + } + + /** + * Calls the contract route {@code DELETE /auth/account/security/api-keys/{param}}. + * @param decoded response type + * @param apiKeyId apiKeyId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|DELETE|/auth/account/security/api-keys/{param}") + public @Nullable T delete(String apiKeyId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Auth.DELETE_AUTH_ACCOUNT_SECURITY_API_KEYS_PARAM, + List.of(apiKeyId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code DELETE /auth/account/security/api-keys/{param}} using a generic response type. + * @param decoded response type + * @param apiKeyId apiKeyId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String apiKeyId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Auth.DELETE_AUTH_ACCOUNT_SECURITY_API_KEYS_PARAM, + List.of(apiKeyId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code DELETE /auth/account/security/api-keys/{param}} without query parameters. + * @param decoded response type + * @param apiKeyId apiKeyId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String apiKeyId, Class responseType) throws IOException, InterruptedException { + return delete(apiKeyId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /auth/account/security/api-keys/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param apiKeyId apiKeyId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String apiKeyId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(apiKeyId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /auth/account/security/api-keys}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|GET|/auth/account/security/api-keys") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_ACCOUNT_SECURITY_API_KEYS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/account/security/api-keys} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_ACCOUNT_SECURITY_API_KEYS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/account/security/api-keys} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /auth/account/security/api-keys} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /auth/account/security/api-keys/{param}}. + * @param decoded response type + * @param apiKeyId apiKeyId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|GET|/auth/account/security/api-keys/{param}") + public @Nullable T get(String apiKeyId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Auth.GET_AUTH_ACCOUNT_SECURITY_API_KEYS_PARAM, List.of(apiKeyId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/account/security/api-keys/{param}} using a generic response type. + * @param decoded response type + * @param apiKeyId apiKeyId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String apiKeyId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Auth.GET_AUTH_ACCOUNT_SECURITY_API_KEYS_PARAM, List.of(apiKeyId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/account/security/api-keys/{param}} without query parameters. + * @param decoded response type + * @param apiKeyId apiKeyId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String apiKeyId, Class responseType) throws IOException, InterruptedException { + return get(apiKeyId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /auth/account/security/api-keys/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param apiKeyId apiKeyId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String apiKeyId, TypeReference responseType) + throws IOException, InterruptedException { + return get(apiKeyId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /auth/account/security/api-keys}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/account/security/api-keys") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_ACCOUNT_SECURITY_API_KEYS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/account/security/api-keys} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_ACCOUNT_SECURITY_API_KEYS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/account/security/api-keys} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/account/security/api-keys} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code PUT /auth/account/security/api-keys/{param}}. + * @param decoded response type + * @param apiKeyId apiKeyId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|PUT|/auth/account/security/api-keys/{param}") + public @Nullable T update(String apiKeyId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Auth.PUT_AUTH_ACCOUNT_SECURITY_API_KEYS_PARAM, List.of(apiKeyId), query, body, responseType); + } + /** + * Calls the contract route {@code PUT /auth/account/security/api-keys/{param}} using a generic response type. + * @param decoded response type + * @param apiKeyId apiKeyId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update( + String apiKeyId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Auth.PUT_AUTH_ACCOUNT_SECURITY_API_KEYS_PARAM, List.of(apiKeyId), query, body, responseType); + } + /** + * Calls the contract route {@code PUT /auth/account/security/api-keys/{param}} without query parameters. + * @param decoded response type + * @param apiKeyId apiKeyId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String apiKeyId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return update(apiKeyId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code PUT /auth/account/security/api-keys/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param apiKeyId apiKeyId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String apiKeyId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return update(apiKeyId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/AuthAccountSecurityClient.java b/services/src/main/java/dev/frontal/sdk/resources/AuthAccountSecurityClient.java new file mode 100644 index 0000000..2b0ac8b --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/AuthAccountSecurityClient.java @@ -0,0 +1,22 @@ +package dev.frontal.sdk; + +/** Contract operations for auth/account/security. Generated by scripts/generate_endpoints.py. */ +public final class AuthAccountSecurityClient extends ServiceClient { + AuthAccountSecurityClient(ApiClient client) { + super(ApiService.AUTH, client); + } + + /** Returns the client for the nested resource. + * @return the api-keys resource client + */ + public AuthAccountSecurityApiKeysClient apiKeys() { + return new AuthAccountSecurityApiKeysClient(client()); + } + + /** Returns the client for the nested resource. + * @return the devices resource client + */ + public AuthAccountSecurityDevicesClient devices() { + return new AuthAccountSecurityDevicesClient(client()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/AuthAccountSecurityDevicesClient.java b/services/src/main/java/dev/frontal/sdk/resources/AuthAccountSecurityDevicesClient.java new file mode 100644 index 0000000..2bff5aa --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/AuthAccountSecurityDevicesClient.java @@ -0,0 +1,312 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for auth/account/security/devices. Generated by scripts/generate_endpoints.py. */ +public final class AuthAccountSecurityDevicesClient extends ServiceClient { + AuthAccountSecurityDevicesClient(ApiClient client) { + super(ApiService.AUTH, client); + } + + /** + * Calls the contract route {@code DELETE /auth/account/security/devices/{param}}. + * @param decoded response type + * @param deviceId deviceId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|DELETE|/auth/account/security/devices/{param}") + public @Nullable T delete(String deviceId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Auth.DELETE_AUTH_ACCOUNT_SECURITY_DEVICES_PARAM, + List.of(deviceId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code DELETE /auth/account/security/devices/{param}} using a generic response type. + * @param decoded response type + * @param deviceId deviceId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String deviceId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Auth.DELETE_AUTH_ACCOUNT_SECURITY_DEVICES_PARAM, + List.of(deviceId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code DELETE /auth/account/security/devices/{param}} without query parameters. + * @param decoded response type + * @param deviceId deviceId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String deviceId, Class responseType) throws IOException, InterruptedException { + return delete(deviceId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /auth/account/security/devices/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param deviceId deviceId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String deviceId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(deviceId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /auth/account/security/devices}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|GET|/auth/account/security/devices") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_ACCOUNT_SECURITY_DEVICES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/account/security/devices} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_ACCOUNT_SECURITY_DEVICES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/account/security/devices} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /auth/account/security/devices} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /auth/account/security/devices/{param}}. + * @param decoded response type + * @param deviceId deviceId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|GET|/auth/account/security/devices/{param}") + public @Nullable T get(String deviceId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Auth.GET_AUTH_ACCOUNT_SECURITY_DEVICES_PARAM, List.of(deviceId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/account/security/devices/{param}} using a generic response type. + * @param decoded response type + * @param deviceId deviceId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String deviceId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Auth.GET_AUTH_ACCOUNT_SECURITY_DEVICES_PARAM, List.of(deviceId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/account/security/devices/{param}} without query parameters. + * @param decoded response type + * @param deviceId deviceId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String deviceId, Class responseType) throws IOException, InterruptedException { + return get(deviceId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /auth/account/security/devices/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param deviceId deviceId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String deviceId, TypeReference responseType) + throws IOException, InterruptedException { + return get(deviceId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /auth/account/security/devices}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/account/security/devices") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_ACCOUNT_SECURITY_DEVICES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/account/security/devices} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_ACCOUNT_SECURITY_DEVICES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/account/security/devices} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/account/security/devices} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /auth/account/security/devices/{param}/trust}. + * @param decoded response type + * @param deviceId deviceId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/account/security/devices/{param}/trust") + public @Nullable T trust(String deviceId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Auth.POST_AUTH_ACCOUNT_SECURITY_DEVICES_PARAM_TRUST, + List.of(deviceId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /auth/account/security/devices/{param}/trust} using a generic response type. + * @param decoded response type + * @param deviceId deviceId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T trust( + String deviceId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Auth.POST_AUTH_ACCOUNT_SECURITY_DEVICES_PARAM_TRUST, + List.of(deviceId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /auth/account/security/devices/{param}/trust} without query parameters. + * @param decoded response type + * @param deviceId deviceId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T trust(String deviceId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return trust(deviceId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/account/security/devices/{param}/trust} without query parameters using a generic response type. + * @param decoded response type + * @param deviceId deviceId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T trust(String deviceId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return trust(deviceId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/AuthAccountSessionsClient.java b/services/src/main/java/dev/frontal/sdk/resources/AuthAccountSessionsClient.java new file mode 100644 index 0000000..1277daa --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/AuthAccountSessionsClient.java @@ -0,0 +1,183 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for auth/account/sessions. Generated by scripts/generate_endpoints.py. */ +public final class AuthAccountSessionsClient extends ServiceClient { + AuthAccountSessionsClient(ApiClient client) { + super(ApiService.AUTH, client); + } + + /** + * Calls the contract route {@code DELETE /auth/account/sessions/{param}}. + * @param decoded response type + * @param sessionId sessionId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|DELETE|/auth/account/sessions/{param}") + public @Nullable T delete(String sessionId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Auth.DELETE_AUTH_ACCOUNT_SESSIONS_PARAM, List.of(sessionId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /auth/account/sessions/{param}} using a generic response type. + * @param decoded response type + * @param sessionId sessionId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String sessionId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Auth.DELETE_AUTH_ACCOUNT_SESSIONS_PARAM, List.of(sessionId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /auth/account/sessions/{param}} without query parameters. + * @param decoded response type + * @param sessionId sessionId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String sessionId, Class responseType) throws IOException, InterruptedException { + return delete(sessionId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /auth/account/sessions/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param sessionId sessionId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String sessionId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(sessionId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /auth/account/sessions}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|GET|/auth/account/sessions") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_ACCOUNT_SESSIONS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/account/sessions} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_ACCOUNT_SESSIONS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/account/sessions} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /auth/account/sessions} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /auth/account/sessions/{param}/extend}. + * @param decoded response type + * @param sessionId sessionId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/account/sessions/{param}/extend") + public @Nullable T extend(String sessionId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Auth.POST_AUTH_ACCOUNT_SESSIONS_PARAM_EXTEND, List.of(sessionId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/account/sessions/{param}/extend} using a generic response type. + * @param decoded response type + * @param sessionId sessionId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T extend( + String sessionId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Auth.POST_AUTH_ACCOUNT_SESSIONS_PARAM_EXTEND, List.of(sessionId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/account/sessions/{param}/extend} without query parameters. + * @param decoded response type + * @param sessionId sessionId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T extend(String sessionId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return extend(sessionId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/account/sessions/{param}/extend} without query parameters using a generic response type. + * @param decoded response type + * @param sessionId sessionId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T extend(String sessionId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return extend(sessionId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/AuthAdminClient.java b/services/src/main/java/dev/frontal/sdk/resources/AuthAdminClient.java new file mode 100644 index 0000000..c5f3330 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/AuthAdminClient.java @@ -0,0 +1,133 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for auth/admin. Generated by scripts/generate_endpoints.py. */ +public final class AuthAdminClient extends ServiceClient { + AuthAdminClient(ApiClient client) { + super(ApiService.AUTH, client); + } + + /** Returns the client for the nested resource. + * @return the users resource client + */ + public AuthAdminUsersClient users() { + return new AuthAdminUsersClient(client()); + } + + /** + * Calls the contract route {@code POST /auth/admin/generate_link}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/admin/generate_link") + public @Nullable T createGenerateLink(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_ADMIN_GENERATE_LINK, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/admin/generate_link} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createGenerateLink(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_ADMIN_GENERATE_LINK, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/admin/generate_link} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createGenerateLink(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createGenerateLink(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/admin/generate_link} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createGenerateLink(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createGenerateLink(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /auth/admin/logout}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/admin/logout") + public @Nullable T logout(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_ADMIN_LOGOUT, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/admin/logout} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T logout(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_ADMIN_LOGOUT, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/admin/logout} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T logout(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return logout(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/admin/logout} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T logout(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return logout(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/AuthAdminUsersClient.java b/services/src/main/java/dev/frontal/sdk/resources/AuthAdminUsersClient.java new file mode 100644 index 0000000..c61db53 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/AuthAdminUsersClient.java @@ -0,0 +1,296 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for auth/admin/users. Generated by scripts/generate_endpoints.py. */ +public final class AuthAdminUsersClient extends ServiceClient { + AuthAdminUsersClient(ApiClient client) { + super(ApiService.AUTH, client); + } + + /** Returns the client for the nested resource. + * @return the factors resource client + */ + public AuthAdminUsersFactorsClient factors() { + return new AuthAdminUsersFactorsClient(client()); + } + + /** + * Calls the contract route {@code DELETE /auth/admin/users/{param}}. + * @param decoded response type + * @param userId userId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|DELETE|/auth/admin/users/{param}") + public @Nullable T delete(String userId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.DELETE_AUTH_ADMIN_USERS_PARAM, List.of(userId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /auth/admin/users/{param}} using a generic response type. + * @param decoded response type + * @param userId userId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String userId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.DELETE_AUTH_ADMIN_USERS_PARAM, List.of(userId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /auth/admin/users/{param}} without query parameters. + * @param decoded response type + * @param userId userId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String userId, Class responseType) throws IOException, InterruptedException { + return delete(userId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /auth/admin/users/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param userId userId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String userId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(userId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /auth/admin/users}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|GET|/auth/admin/users") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_ADMIN_USERS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/admin/users} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_ADMIN_USERS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/admin/users} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /auth/admin/users} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /auth/admin/users/{param}}. + * @param decoded response type + * @param userId userId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|GET|/auth/admin/users/{param}") + public @Nullable T get(String userId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_ADMIN_USERS_PARAM, List.of(userId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/admin/users/{param}} using a generic response type. + * @param decoded response type + * @param userId userId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String userId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_ADMIN_USERS_PARAM, List.of(userId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/admin/users/{param}} without query parameters. + * @param decoded response type + * @param userId userId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String userId, Class responseType) throws IOException, InterruptedException { + return get(userId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /auth/admin/users/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param userId userId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String userId, TypeReference responseType) throws IOException, InterruptedException { + return get(userId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /auth/admin/users}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/admin/users") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_ADMIN_USERS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/admin/users} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_ADMIN_USERS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/admin/users} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/admin/users} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code PUT /auth/admin/users/{param}}. + * @param decoded response type + * @param userId userId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|PUT|/auth/admin/users/{param}") + public @Nullable T update(String userId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.PUT_AUTH_ADMIN_USERS_PARAM, List.of(userId), query, body, responseType); + } + /** + * Calls the contract route {@code PUT /auth/admin/users/{param}} using a generic response type. + * @param decoded response type + * @param userId userId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update( + String userId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.PUT_AUTH_ADMIN_USERS_PARAM, List.of(userId), query, body, responseType); + } + /** + * Calls the contract route {@code PUT /auth/admin/users/{param}} without query parameters. + * @param decoded response type + * @param userId userId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String userId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return update(userId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code PUT /auth/admin/users/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param userId userId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String userId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return update(userId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/AuthAdminUsersFactorsClient.java b/services/src/main/java/dev/frontal/sdk/resources/AuthAdminUsersFactorsClient.java new file mode 100644 index 0000000..2af4b06 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/AuthAdminUsersFactorsClient.java @@ -0,0 +1,137 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for auth/admin/users/factors. Generated by scripts/generate_endpoints.py. */ +public final class AuthAdminUsersFactorsClient extends ServiceClient { + AuthAdminUsersFactorsClient(ApiClient client) { + super(ApiService.AUTH, client); + } + + /** + * Calls the contract route {@code DELETE /auth/admin/users/{param}/factors/{param}}. + * @param decoded response type + * @param userId userId supplied to the operation + * @param factorId factorId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|DELETE|/auth/admin/users/{param}/factors/{param}") + public @Nullable T delete(String userId, String factorId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Auth.DELETE_AUTH_ADMIN_USERS_PARAM_FACTORS_PARAM, + List.of(userId, factorId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code DELETE /auth/admin/users/{param}/factors/{param}} using a generic response type. + * @param decoded response type + * @param userId userId supplied to the operation + * @param factorId factorId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String userId, String factorId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Auth.DELETE_AUTH_ADMIN_USERS_PARAM_FACTORS_PARAM, + List.of(userId, factorId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code DELETE /auth/admin/users/{param}/factors/{param}} without query parameters. + * @param decoded response type + * @param userId userId supplied to the operation + * @param factorId factorId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String userId, String factorId, Class responseType) + throws IOException, InterruptedException { + return delete(userId, factorId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /auth/admin/users/{param}/factors/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param userId userId supplied to the operation + * @param factorId factorId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String userId, String factorId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(userId, factorId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /auth/admin/users/{param}/factors}. + * @param decoded response type + * @param userId userId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|GET|/auth/admin/users/{param}/factors") + public @Nullable T list(String userId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_ADMIN_USERS_PARAM_FACTORS, List.of(userId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/admin/users/{param}/factors} using a generic response type. + * @param decoded response type + * @param userId userId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String userId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_ADMIN_USERS_PARAM_FACTORS, List.of(userId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/admin/users/{param}/factors} without query parameters. + * @param decoded response type + * @param userId userId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String userId, Class responseType) throws IOException, InterruptedException { + return list(userId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /auth/admin/users/{param}/factors} without query parameters using a generic response type. + * @param decoded response type + * @param userId userId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String userId, TypeReference responseType) throws IOException, InterruptedException { + return list(userId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/AuthAuthClient.java b/services/src/main/java/dev/frontal/sdk/resources/AuthAuthClient.java new file mode 100644 index 0000000..fe04e59 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/AuthAuthClient.java @@ -0,0 +1,120 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for auth/auth. Generated by scripts/generate_endpoints.py. */ +public final class AuthAuthClient extends ServiceClient { + AuthAuthClient(ApiClient client) { + super(ApiService.AUTH, client); + } + + /** + * Calls the contract route {@code GET /auth/auth/session}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|GET|/auth/auth/session") + public @Nullable T getSession(QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_AUTH_SESSION, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/auth/session} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getSession(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_AUTH_SESSION, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/auth/session} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getSession(Class responseType) throws IOException, InterruptedException { + return getSession(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /auth/auth/session} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getSession(TypeReference responseType) throws IOException, InterruptedException { + return getSession(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /auth/auth/session}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/auth/session") + public @Nullable T createSession(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_AUTH_SESSION, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/auth/session} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createSession(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_AUTH_SESSION, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/auth/session} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createSession(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createSession(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/auth/session} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createSession(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createSession(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/AuthClient.java b/services/src/main/java/dev/frontal/sdk/resources/AuthClient.java new file mode 100644 index 0000000..321ebd0 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/AuthClient.java @@ -0,0 +1,1009 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for auth. Generated by scripts/generate_endpoints.py. */ +public final class AuthClient extends ServiceClient { + AuthClient(ApiClient client) { + super(ApiService.AUTH, client); + } + + /** Returns the client for the nested resource. + * @return the account resource client + */ + public AuthAccountClient account() { + return new AuthAccountClient(client()); + } + + /** Returns the client for the nested resource. + * @return the admin resource client + */ + public AuthAdminClient admin() { + return new AuthAdminClient(client()); + } + + /** Returns the client for the nested resource. + * @return the auth resource client + */ + public AuthAuthClient auth() { + return new AuthAuthClient(client()); + } + + /** Returns the client for the nested resource. + * @return the factors resource client + */ + public AuthFactorsClient factors() { + return new AuthFactorsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the mfa resource client + */ + public AuthMfaClient mfa() { + return new AuthMfaClient(client()); + } + + /** Returns the client for the nested resource. + * @return the user resource client + */ + public AuthUserClient user() { + return new AuthUserClient(client()); + } + + /** + * Calls the contract route {@code GET /auth/user}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|GET|/auth/user") + public @Nullable T getUser(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_USER, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/user} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getUser(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_USER, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/user} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getUser(Class responseType) throws IOException, InterruptedException { + return getUser(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /auth/user} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getUser(TypeReference responseType) throws IOException, InterruptedException { + return getUser(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /auth/authorize}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/authorize") + public @Nullable T createAuthorize(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_AUTHORIZE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/authorize} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createAuthorize(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_AUTHORIZE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/authorize} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createAuthorize(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createAuthorize(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/authorize} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createAuthorize(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createAuthorize(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /auth/invite}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/invite") + public @Nullable T createInvite(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_INVITE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/invite} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createInvite(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_INVITE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/invite} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createInvite(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createInvite(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/invite} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createInvite(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createInvite(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /auth/login}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/login") + public @Nullable T login(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_LOGIN, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/login} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T login(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_LOGIN, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/login} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T login(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return login(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/login} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T login(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return login(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /auth/logout}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/logout") + public @Nullable T logout(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_LOGOUT, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/logout} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T logout(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_LOGOUT, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/logout} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T logout(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return logout(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/logout} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T logout(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return logout(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /auth/otp}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/otp") + public @Nullable T createOtp(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_OTP, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/otp} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createOtp(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_OTP, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/otp} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createOtp(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createOtp(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/otp} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createOtp(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createOtp(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /auth/reauthenticate}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/reauthenticate") + public @Nullable T createReauthenticate(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_REAUTHENTICATE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/reauthenticate} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createReauthenticate( + QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_REAUTHENTICATE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/reauthenticate} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createReauthenticate(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createReauthenticate(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/reauthenticate} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createReauthenticate(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createReauthenticate(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /auth/recover}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/recover") + public @Nullable T createRecover(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_RECOVER, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/recover} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createRecover(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_RECOVER, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/recover} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createRecover(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createRecover(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/recover} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createRecover(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createRecover(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /auth/resend}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/resend") + public @Nullable T createResend(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_RESEND, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/resend} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createResend(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_RESEND, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/resend} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createResend(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createResend(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/resend} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createResend(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createResend(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /auth/signup}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/signup") + public @Nullable T createSignup(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_SIGNUP, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/signup} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createSignup(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_SIGNUP, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/signup} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createSignup(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createSignup(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/signup} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createSignup(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createSignup(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /auth/sso}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/sso") + public @Nullable T createSso(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_SSO, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/sso} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createSso(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_SSO, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/sso} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createSso(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createSso(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/sso} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createSso(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createSso(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /auth/token?grant_type=id_token}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/token?grant_type=id_token") + public @Nullable T createTokenGrantTypeIdToken( + QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_TOKEN_GRANT_TYPE_ID_TOKEN, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/token?grant_type=id_token} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createTokenGrantTypeIdToken( + QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_TOKEN_GRANT_TYPE_ID_TOKEN, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/token?grant_type=id_token} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createTokenGrantTypeIdToken(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createTokenGrantTypeIdToken(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/token?grant_type=id_token} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createTokenGrantTypeIdToken(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createTokenGrantTypeIdToken(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /auth/token?grant_type=password}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/token?grant_type=password") + public @Nullable T createTokenGrantTypePassword( + QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_TOKEN_GRANT_TYPE_PASSWORD, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/token?grant_type=password} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createTokenGrantTypePassword( + QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_TOKEN_GRANT_TYPE_PASSWORD, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/token?grant_type=password} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createTokenGrantTypePassword(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createTokenGrantTypePassword(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/token?grant_type=password} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createTokenGrantTypePassword(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createTokenGrantTypePassword(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /auth/token?grant_type=pkce}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/token?grant_type=pkce") + public @Nullable T createTokenGrantTypePkce(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_TOKEN_GRANT_TYPE_PKCE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/token?grant_type=pkce} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createTokenGrantTypePkce( + QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_TOKEN_GRANT_TYPE_PKCE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/token?grant_type=pkce} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createTokenGrantTypePkce(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createTokenGrantTypePkce(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/token?grant_type=pkce} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createTokenGrantTypePkce(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createTokenGrantTypePkce(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /auth/token?grant_type=refresh_token}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/token?grant_type=refresh_token") + public @Nullable T createTokenGrantTypeRefreshToken( + QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_TOKEN_GRANT_TYPE_REFRESH_TOKEN, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/token?grant_type=refresh_token} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createTokenGrantTypeRefreshToken( + QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_TOKEN_GRANT_TYPE_REFRESH_TOKEN, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/token?grant_type=refresh_token} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createTokenGrantTypeRefreshToken(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createTokenGrantTypeRefreshToken(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/token?grant_type=refresh_token} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createTokenGrantTypeRefreshToken(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createTokenGrantTypeRefreshToken(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /auth/verify}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/verify") + public @Nullable T verify(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_VERIFY, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/verify} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T verify(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_VERIFY, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/verify} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T verify(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return verify(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/verify} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T verify(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return verify(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code PUT /auth/user}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|PUT|/auth/user") + public @Nullable T updateUser(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.PUT_AUTH_USER, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code PUT /auth/user} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T updateUser(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.PUT_AUTH_USER, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code PUT /auth/user} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T updateUser(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return updateUser(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code PUT /auth/user} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T updateUser(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return updateUser(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/AuthFactorsClient.java b/services/src/main/java/dev/frontal/sdk/resources/AuthFactorsClient.java new file mode 100644 index 0000000..c57bf56 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/AuthFactorsClient.java @@ -0,0 +1,297 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for auth/factors. Generated by scripts/generate_endpoints.py. */ +public final class AuthFactorsClient extends ServiceClient { + AuthFactorsClient(ApiClient client) { + super(ApiService.AUTH, client); + } + + /** + * Calls the contract route {@code DELETE /auth/factors/{param}}. + * @param decoded response type + * @param factorId factorId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|DELETE|/auth/factors/{param}") + public @Nullable T delete(String factorId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.DELETE_AUTH_FACTORS_PARAM, List.of(factorId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /auth/factors/{param}} using a generic response type. + * @param decoded response type + * @param factorId factorId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String factorId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.DELETE_AUTH_FACTORS_PARAM, List.of(factorId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /auth/factors/{param}} without query parameters. + * @param decoded response type + * @param factorId factorId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String factorId, Class responseType) throws IOException, InterruptedException { + return delete(factorId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /auth/factors/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param factorId factorId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String factorId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(factorId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /auth/factors}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|GET|/auth/factors") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_FACTORS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/factors} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_FACTORS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/factors} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /auth/factors} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /auth/factors}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/factors") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_FACTORS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/factors} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_FACTORS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/factors} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/factors} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /auth/factors/{param}/challenge}. + * @param decoded response type + * @param factorId factorId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/factors/{param}/challenge") + public @Nullable T createChallenge( + String factorId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_FACTORS_PARAM_CHALLENGE, List.of(factorId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/factors/{param}/challenge} using a generic response type. + * @param decoded response type + * @param factorId factorId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createChallenge( + String factorId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_FACTORS_PARAM_CHALLENGE, List.of(factorId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/factors/{param}/challenge} without query parameters. + * @param decoded response type + * @param factorId factorId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createChallenge(String factorId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createChallenge(factorId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/factors/{param}/challenge} without query parameters using a generic response type. + * @param decoded response type + * @param factorId factorId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createChallenge(String factorId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createChallenge(factorId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /auth/factors/{param}/verify}. + * @param decoded response type + * @param factorId factorId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/factors/{param}/verify") + public @Nullable T verify(String factorId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_FACTORS_PARAM_VERIFY, List.of(factorId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/factors/{param}/verify} using a generic response type. + * @param decoded response type + * @param factorId factorId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T verify( + String factorId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_FACTORS_PARAM_VERIFY, List.of(factorId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/factors/{param}/verify} without query parameters. + * @param decoded response type + * @param factorId factorId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T verify(String factorId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return verify(factorId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/factors/{param}/verify} without query parameters using a generic response type. + * @param decoded response type + * @param factorId factorId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T verify(String factorId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return verify(factorId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/AuthMfaBackupCodesClient.java b/services/src/main/java/dev/frontal/sdk/resources/AuthMfaBackupCodesClient.java new file mode 100644 index 0000000..c687faf --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/AuthMfaBackupCodesClient.java @@ -0,0 +1,70 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for auth/mfa/backup-codes. Generated by scripts/generate_endpoints.py. */ +public final class AuthMfaBackupCodesClient extends ServiceClient { + AuthMfaBackupCodesClient(ApiClient client) { + super(ApiService.AUTH, client); + } + + /** + * Calls the contract route {@code POST /auth/mfa/backup-codes/regenerate}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/mfa/backup-codes/regenerate") + public @Nullable T createRegenerate(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_MFA_BACKUP_CODES_REGENERATE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/mfa/backup-codes/regenerate} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createRegenerate(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_MFA_BACKUP_CODES_REGENERATE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/mfa/backup-codes/regenerate} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createRegenerate(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createRegenerate(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/mfa/backup-codes/regenerate} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createRegenerate(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createRegenerate(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/AuthMfaClient.java b/services/src/main/java/dev/frontal/sdk/resources/AuthMfaClient.java new file mode 100644 index 0000000..d73386a --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/AuthMfaClient.java @@ -0,0 +1,294 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for auth/mfa. Generated by scripts/generate_endpoints.py. */ +public final class AuthMfaClient extends ServiceClient { + AuthMfaClient(ApiClient client) { + super(ApiService.AUTH, client); + } + + /** Returns the client for the nested resource. + * @return the backup-codes resource client + */ + public AuthMfaBackupCodesClient backupCodes() { + return new AuthMfaBackupCodesClient(client()); + } + + /** + * Calls the contract route {@code GET /auth/mfa/status}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|GET|/auth/mfa/status") + public @Nullable T status(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_MFA_STATUS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/mfa/status} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T status(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_MFA_STATUS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/mfa/status} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T status(Class responseType) throws IOException, InterruptedException { + return status(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /auth/mfa/status} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T status(TypeReference responseType) throws IOException, InterruptedException { + return status(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /auth/mfa/disable}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/mfa/disable") + public @Nullable T disable(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_MFA_DISABLE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/mfa/disable} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T disable(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_MFA_DISABLE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/mfa/disable} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T disable(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return disable(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/mfa/disable} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T disable(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return disable(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /auth/mfa/enable}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/mfa/enable") + public @Nullable T enable(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_MFA_ENABLE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/mfa/enable} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T enable(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_MFA_ENABLE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/mfa/enable} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T enable(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return enable(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/mfa/enable} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T enable(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return enable(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /auth/mfa/setup}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/mfa/setup") + public @Nullable T setup(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_MFA_SETUP, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/mfa/setup} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T setup(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_MFA_SETUP, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/mfa/setup} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T setup(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return setup(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/mfa/setup} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T setup(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return setup(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /auth/mfa/verify}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/mfa/verify") + public @Nullable T verify(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_MFA_VERIFY, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/mfa/verify} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T verify(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_MFA_VERIFY, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/mfa/verify} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T verify(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return verify(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/mfa/verify} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T verify(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return verify(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/AuthUserClient.java b/services/src/main/java/dev/frontal/sdk/resources/AuthUserClient.java new file mode 100644 index 0000000..9bcbb5c --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/AuthUserClient.java @@ -0,0 +1,15 @@ +package dev.frontal.sdk; + +/** Contract operations for auth/user. Generated by scripts/generate_endpoints.py. */ +public final class AuthUserClient extends ServiceClient { + AuthUserClient(ApiClient client) { + super(ApiService.AUTH, client); + } + + /** Returns the client for the nested resource. + * @return the identities resource client + */ + public AuthUserIdentitiesClient identities() { + return new AuthUserIdentitiesClient(client()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/AuthUserIdentitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/AuthUserIdentitiesClient.java new file mode 100644 index 0000000..56401c6 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/AuthUserIdentitiesClient.java @@ -0,0 +1,176 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for auth/user/identities. Generated by scripts/generate_endpoints.py. */ +public final class AuthUserIdentitiesClient extends ServiceClient { + AuthUserIdentitiesClient(ApiClient client) { + super(ApiService.AUTH, client); + } + + /** + * Calls the contract route {@code DELETE /auth/user/identities/{param}}. + * @param decoded response type + * @param identityId identityId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|DELETE|/auth/user/identities/{param}") + public @Nullable T delete(String identityId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Auth.DELETE_AUTH_USER_IDENTITIES_PARAM, List.of(identityId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /auth/user/identities/{param}} using a generic response type. + * @param decoded response type + * @param identityId identityId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String identityId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Auth.DELETE_AUTH_USER_IDENTITIES_PARAM, List.of(identityId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /auth/user/identities/{param}} without query parameters. + * @param decoded response type + * @param identityId identityId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String identityId, Class responseType) throws IOException, InterruptedException { + return delete(identityId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /auth/user/identities/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param identityId identityId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String identityId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(identityId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /auth/user/identities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|GET|/auth/user/identities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_USER_IDENTITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/user/identities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.GET_AUTH_USER_IDENTITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /auth/user/identities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /auth/user/identities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /auth/user/identities}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("auth|POST|/auth/user/identities") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_USER_IDENTITIES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/user/identities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Auth.POST_AUTH_USER_IDENTITIES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /auth/user/identities} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /auth/user/identities} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/BillingAddonsClient.java b/services/src/main/java/dev/frontal/sdk/resources/BillingAddonsClient.java new file mode 100644 index 0000000..2351bc8 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/BillingAddonsClient.java @@ -0,0 +1,15 @@ +package dev.frontal.sdk; + +/** Contract operations for billing/addons. Generated by scripts/generate_endpoints.py. */ +public final class BillingAddonsClient extends ServiceClient { + BillingAddonsClient(ApiClient client) { + super(ApiService.BILLING, client); + } + + /** Returns the client for the nested resource. + * @return the entitlements resource client + */ + public BillingAddonsEntitlementsClient entitlements() { + return new BillingAddonsEntitlementsClient(client()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/BillingAddonsEntitlementsClient.java b/services/src/main/java/dev/frontal/sdk/resources/BillingAddonsEntitlementsClient.java new file mode 100644 index 0000000..fa14261 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/BillingAddonsEntitlementsClient.java @@ -0,0 +1,70 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for billing/addons/entitlements. Generated by scripts/generate_endpoints.py. */ +public final class BillingAddonsEntitlementsClient extends ServiceClient { + BillingAddonsEntitlementsClient(ApiClient client) { + super(ApiService.BILLING, client); + } + + /** + * Calls the contract route {@code GET /billing/addons/{param}/entitlements}. + * @param decoded response type + * @param addonId addonId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("billing|GET|/billing/addons/{param}/entitlements") + public @Nullable T list(String addonId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.GET_BILLING_ADDONS_PARAM_ENTITLEMENTS, List.of(addonId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /billing/addons/{param}/entitlements} using a generic response type. + * @param decoded response type + * @param addonId addonId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String addonId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.GET_BILLING_ADDONS_PARAM_ENTITLEMENTS, List.of(addonId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /billing/addons/{param}/entitlements} without query parameters. + * @param decoded response type + * @param addonId addonId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String addonId, Class responseType) throws IOException, InterruptedException { + return list(addonId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /billing/addons/{param}/entitlements} without query parameters using a generic response type. + * @param decoded response type + * @param addonId addonId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String addonId, TypeReference responseType) + throws IOException, InterruptedException { + return list(addonId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/BillingClient.java b/services/src/main/java/dev/frontal/sdk/resources/BillingClient.java new file mode 100644 index 0000000..089494e --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/BillingClient.java @@ -0,0 +1,64 @@ +package dev.frontal.sdk; + +/** Contract operations for billing. Generated by scripts/generate_endpoints.py. */ +public final class BillingClient extends ServiceClient { + BillingClient(ApiClient client) { + super(ApiService.BILLING, client); + } + + /** Returns the client for the nested resource. + * @return the addons resource client + */ + public BillingAddonsClient addons() { + return new BillingAddonsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the customers resource client + */ + public BillingCustomersClient customers() { + return new BillingCustomersClient(client()); + } + + /** Returns the client for the nested resource. + * @return the invoices resource client + */ + public BillingInvoicesClient invoices() { + return new BillingInvoicesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the meters resource client + */ + public BillingMetersClient meters() { + return new BillingMetersClient(client()); + } + + /** Returns the client for the nested resource. + * @return the plans resource client + */ + public BillingPlansClient plans() { + return new BillingPlansClient(client()); + } + + /** Returns the client for the nested resource. + * @return the prices resource client + */ + public BillingPricesClient prices() { + return new BillingPricesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the subscriptions resource client + */ + public BillingSubscriptionsClient subscriptions() { + return new BillingSubscriptionsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the wallets resource client + */ + public BillingWalletsClient wallets() { + return new BillingWalletsClient(client()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/BillingCustomersClient.java b/services/src/main/java/dev/frontal/sdk/resources/BillingCustomersClient.java new file mode 100644 index 0000000..1f0d573 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/BillingCustomersClient.java @@ -0,0 +1,98 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for billing/customers. Generated by scripts/generate_endpoints.py. */ +public final class BillingCustomersClient extends ServiceClient { + BillingCustomersClient(ApiClient client) { + super(ApiService.BILLING, client); + } + + /** Returns the client for the nested resource. + * @return the entitlements resource client + */ + public BillingCustomersEntitlementsClient entitlements() { + return new BillingCustomersEntitlementsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the invoices resource client + */ + public BillingCustomersInvoicesClient invoices() { + return new BillingCustomersInvoicesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the portal resource client + */ + public BillingCustomersPortalClient portal() { + return new BillingCustomersPortalClient(client()); + } + + /** Returns the client for the nested resource. + * @return the wallets resource client + */ + public BillingCustomersWalletsClient wallets() { + return new BillingCustomersWalletsClient(client()); + } + + /** + * Calls the contract route {@code GET /billing/customers/{param}/usage}. + * @param decoded response type + * @param customerId customerId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("billing|GET|/billing/customers/{param}/usage") + public @Nullable T usage(String customerId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.GET_BILLING_CUSTOMERS_PARAM_USAGE, List.of(customerId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /billing/customers/{param}/usage} using a generic response type. + * @param decoded response type + * @param customerId customerId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T usage(String customerId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.GET_BILLING_CUSTOMERS_PARAM_USAGE, List.of(customerId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /billing/customers/{param}/usage} without query parameters. + * @param decoded response type + * @param customerId customerId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T usage(String customerId, Class responseType) throws IOException, InterruptedException { + return usage(customerId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /billing/customers/{param}/usage} without query parameters using a generic response type. + * @param decoded response type + * @param customerId customerId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T usage(String customerId, TypeReference responseType) + throws IOException, InterruptedException { + return usage(customerId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/BillingCustomersEntitlementsClient.java b/services/src/main/java/dev/frontal/sdk/resources/BillingCustomersEntitlementsClient.java new file mode 100644 index 0000000..9740966 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/BillingCustomersEntitlementsClient.java @@ -0,0 +1,78 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for billing/customers/entitlements. Generated by scripts/generate_endpoints.py. */ +public final class BillingCustomersEntitlementsClient extends ServiceClient { + BillingCustomersEntitlementsClient(ApiClient client) { + super(ApiService.BILLING, client); + } + + /** + * Calls the contract route {@code GET /billing/customers/{param}/entitlements}. + * @param decoded response type + * @param customerId customerId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("billing|GET|/billing/customers/{param}/entitlements") + public @Nullable T list(String customerId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.GET_BILLING_CUSTOMERS_PARAM_ENTITLEMENTS, + List.of(customerId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /billing/customers/{param}/entitlements} using a generic response type. + * @param decoded response type + * @param customerId customerId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String customerId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.GET_BILLING_CUSTOMERS_PARAM_ENTITLEMENTS, + List.of(customerId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /billing/customers/{param}/entitlements} without query parameters. + * @param decoded response type + * @param customerId customerId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String customerId, Class responseType) throws IOException, InterruptedException { + return list(customerId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /billing/customers/{param}/entitlements} without query parameters using a generic response type. + * @param decoded response type + * @param customerId customerId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String customerId, TypeReference responseType) + throws IOException, InterruptedException { + return list(customerId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/BillingCustomersInvoicesClient.java b/services/src/main/java/dev/frontal/sdk/resources/BillingCustomersInvoicesClient.java new file mode 100644 index 0000000..14d964b --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/BillingCustomersInvoicesClient.java @@ -0,0 +1,78 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for billing/customers/invoices. Generated by scripts/generate_endpoints.py. */ +public final class BillingCustomersInvoicesClient extends ServiceClient { + BillingCustomersInvoicesClient(ApiClient client) { + super(ApiService.BILLING, client); + } + + /** + * Calls the contract route {@code GET /billing/customers/{param}/invoices/summary}. + * @param decoded response type + * @param customerId customerId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("billing|GET|/billing/customers/{param}/invoices/summary") + public @Nullable T summary(String customerId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.GET_BILLING_CUSTOMERS_PARAM_INVOICES_SUMMARY, + List.of(customerId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /billing/customers/{param}/invoices/summary} using a generic response type. + * @param decoded response type + * @param customerId customerId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T summary(String customerId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.GET_BILLING_CUSTOMERS_PARAM_INVOICES_SUMMARY, + List.of(customerId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /billing/customers/{param}/invoices/summary} without query parameters. + * @param decoded response type + * @param customerId customerId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T summary(String customerId, Class responseType) throws IOException, InterruptedException { + return summary(customerId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /billing/customers/{param}/invoices/summary} without query parameters using a generic response type. + * @param decoded response type + * @param customerId customerId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T summary(String customerId, TypeReference responseType) + throws IOException, InterruptedException { + return summary(customerId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/BillingCustomersPortalClient.java b/services/src/main/java/dev/frontal/sdk/resources/BillingCustomersPortalClient.java new file mode 100644 index 0000000..cd6dfa8 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/BillingCustomersPortalClient.java @@ -0,0 +1,70 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for billing/customers/portal. Generated by scripts/generate_endpoints.py. */ +public final class BillingCustomersPortalClient extends ServiceClient { + BillingCustomersPortalClient(ApiClient client) { + super(ApiService.BILLING, client); + } + + /** + * Calls the contract route {@code GET /billing/customers/portal/{param}}. + * @param decoded response type + * @param portalId portalId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("billing|GET|/billing/customers/portal/{param}") + public @Nullable T get(String portalId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.GET_BILLING_CUSTOMERS_PORTAL_PARAM, List.of(portalId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /billing/customers/portal/{param}} using a generic response type. + * @param decoded response type + * @param portalId portalId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String portalId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.GET_BILLING_CUSTOMERS_PORTAL_PARAM, List.of(portalId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /billing/customers/portal/{param}} without query parameters. + * @param decoded response type + * @param portalId portalId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String portalId, Class responseType) throws IOException, InterruptedException { + return get(portalId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /billing/customers/portal/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param portalId portalId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String portalId, TypeReference responseType) + throws IOException, InterruptedException { + return get(portalId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/BillingCustomersWalletsClient.java b/services/src/main/java/dev/frontal/sdk/resources/BillingCustomersWalletsClient.java new file mode 100644 index 0000000..3514354 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/BillingCustomersWalletsClient.java @@ -0,0 +1,70 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for billing/customers/wallets. Generated by scripts/generate_endpoints.py. */ +public final class BillingCustomersWalletsClient extends ServiceClient { + BillingCustomersWalletsClient(ApiClient client) { + super(ApiService.BILLING, client); + } + + /** + * Calls the contract route {@code GET /billing/customers/{param}/wallets}. + * @param decoded response type + * @param customerId customerId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("billing|GET|/billing/customers/{param}/wallets") + public @Nullable T list(String customerId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.GET_BILLING_CUSTOMERS_PARAM_WALLETS, List.of(customerId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /billing/customers/{param}/wallets} using a generic response type. + * @param decoded response type + * @param customerId customerId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String customerId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.GET_BILLING_CUSTOMERS_PARAM_WALLETS, List.of(customerId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /billing/customers/{param}/wallets} without query parameters. + * @param decoded response type + * @param customerId customerId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String customerId, Class responseType) throws IOException, InterruptedException { + return list(customerId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /billing/customers/{param}/wallets} without query parameters using a generic response type. + * @param decoded response type + * @param customerId customerId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String customerId, TypeReference responseType) + throws IOException, InterruptedException { + return list(customerId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/BillingInvoicesClient.java b/services/src/main/java/dev/frontal/sdk/resources/BillingInvoicesClient.java new file mode 100644 index 0000000..399421a --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/BillingInvoicesClient.java @@ -0,0 +1,254 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for billing/invoices. Generated by scripts/generate_endpoints.py. */ +public final class BillingInvoicesClient extends ServiceClient { + BillingInvoicesClient(ApiClient client) { + super(ApiService.BILLING, client); + } + + /** + * Calls the contract route {@code GETRAW /billing/invoices/{param}/pdf}. + * @param decoded response type + * @param invoiceId invoiceId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("billing|GETRAW|/billing/invoices/{param}/pdf") + public @Nullable T getPdf(String invoiceId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.GETRAW_BILLING_INVOICES_PARAM_PDF, List.of(invoiceId), query, null, responseType); + } + /** + * Calls the contract route {@code GETRAW /billing/invoices/{param}/pdf} using a generic response type. + * @param decoded response type + * @param invoiceId invoiceId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getPdf(String invoiceId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.GETRAW_BILLING_INVOICES_PARAM_PDF, List.of(invoiceId), query, null, responseType); + } + /** + * Calls the contract route {@code GETRAW /billing/invoices/{param}/pdf} without query parameters. + * @param decoded response type + * @param invoiceId invoiceId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getPdf(String invoiceId, Class responseType) throws IOException, InterruptedException { + return getPdf(invoiceId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GETRAW /billing/invoices/{param}/pdf} without query parameters using a generic response type. + * @param decoded response type + * @param invoiceId invoiceId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getPdf(String invoiceId, TypeReference responseType) + throws IOException, InterruptedException { + return getPdf(invoiceId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /billing/invoices/preview}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("billing|POST|/billing/invoices/preview") + public @Nullable T preview(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Billing.POST_BILLING_INVOICES_PREVIEW, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /billing/invoices/preview} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T preview(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Billing.POST_BILLING_INVOICES_PREVIEW, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /billing/invoices/preview} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T preview(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return preview(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /billing/invoices/preview} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T preview(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return preview(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /billing/invoices/{param}/finalize}. + * @param decoded response type + * @param invoiceId invoiceId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("billing|POST|/billing/invoices/{param}/finalize") + public @Nullable T finalize(String invoiceId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.POST_BILLING_INVOICES_PARAM_FINALIZE, List.of(invoiceId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /billing/invoices/{param}/finalize} using a generic response type. + * @param decoded response type + * @param invoiceId invoiceId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T finalize( + String invoiceId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.POST_BILLING_INVOICES_PARAM_FINALIZE, List.of(invoiceId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /billing/invoices/{param}/finalize} without query parameters. + * @param decoded response type + * @param invoiceId invoiceId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T finalize(String invoiceId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return finalize(invoiceId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /billing/invoices/{param}/finalize} without query parameters using a generic response type. + * @param decoded response type + * @param invoiceId invoiceId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T finalize(String invoiceId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return finalize(invoiceId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /billing/invoices/{param}/void}. + * @param decoded response type + * @param invoiceId invoiceId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("billing|POST|/billing/invoices/{param}/void") + public @Nullable T resourceVoid( + String invoiceId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.POST_BILLING_INVOICES_PARAM_VOID, List.of(invoiceId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /billing/invoices/{param}/void} using a generic response type. + * @param decoded response type + * @param invoiceId invoiceId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T resourceVoid( + String invoiceId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.POST_BILLING_INVOICES_PARAM_VOID, List.of(invoiceId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /billing/invoices/{param}/void} without query parameters. + * @param decoded response type + * @param invoiceId invoiceId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T resourceVoid(String invoiceId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return resourceVoid(invoiceId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /billing/invoices/{param}/void} without query parameters using a generic response type. + * @param decoded response type + * @param invoiceId invoiceId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T resourceVoid(String invoiceId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return resourceVoid(invoiceId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/BillingMetersClient.java b/services/src/main/java/dev/frontal/sdk/resources/BillingMetersClient.java new file mode 100644 index 0000000..9ef148f --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/BillingMetersClient.java @@ -0,0 +1,77 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for billing/meters. Generated by scripts/generate_endpoints.py. */ +public final class BillingMetersClient extends ServiceClient { + BillingMetersClient(ApiClient client) { + super(ApiService.BILLING, client); + } + + /** + * Calls the contract route {@code POST /billing/meters/{param}/disable}. + * @param decoded response type + * @param meterId meterId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("billing|POST|/billing/meters/{param}/disable") + public @Nullable T disable(String meterId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.POST_BILLING_METERS_PARAM_DISABLE, List.of(meterId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /billing/meters/{param}/disable} using a generic response type. + * @param decoded response type + * @param meterId meterId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T disable( + String meterId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.POST_BILLING_METERS_PARAM_DISABLE, List.of(meterId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /billing/meters/{param}/disable} without query parameters. + * @param decoded response type + * @param meterId meterId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T disable(String meterId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return disable(meterId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /billing/meters/{param}/disable} without query parameters using a generic response type. + * @param decoded response type + * @param meterId meterId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T disable(String meterId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return disable(meterId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/BillingPlansClient.java b/services/src/main/java/dev/frontal/sdk/resources/BillingPlansClient.java new file mode 100644 index 0000000..6b15cd2 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/BillingPlansClient.java @@ -0,0 +1,82 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for billing/plans. Generated by scripts/generate_endpoints.py. */ +public final class BillingPlansClient extends ServiceClient { + BillingPlansClient(ApiClient client) { + super(ApiService.BILLING, client); + } + + /** Returns the client for the nested resource. + * @return the entitlements resource client + */ + public BillingPlansEntitlementsClient entitlements() { + return new BillingPlansEntitlementsClient(client()); + } + + /** + * Calls the contract route {@code POST /billing/plans/{param}/clone}. + * @param decoded response type + * @param planId planId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("billing|POST|/billing/plans/{param}/clone") + public @Nullable T clone(String planId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Billing.POST_BILLING_PLANS_PARAM_CLONE, List.of(planId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /billing/plans/{param}/clone} using a generic response type. + * @param decoded response type + * @param planId planId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T clone( + String planId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Billing.POST_BILLING_PLANS_PARAM_CLONE, List.of(planId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /billing/plans/{param}/clone} without query parameters. + * @param decoded response type + * @param planId planId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T clone(String planId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return clone(planId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /billing/plans/{param}/clone} without query parameters using a generic response type. + * @param decoded response type + * @param planId planId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T clone(String planId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return clone(planId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/BillingPlansEntitlementsClient.java b/services/src/main/java/dev/frontal/sdk/resources/BillingPlansEntitlementsClient.java new file mode 100644 index 0000000..b2d1c00 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/BillingPlansEntitlementsClient.java @@ -0,0 +1,69 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for billing/plans/entitlements. Generated by scripts/generate_endpoints.py. */ +public final class BillingPlansEntitlementsClient extends ServiceClient { + BillingPlansEntitlementsClient(ApiClient client) { + super(ApiService.BILLING, client); + } + + /** + * Calls the contract route {@code GET /billing/plans/{param}/entitlements}. + * @param decoded response type + * @param planId planId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("billing|GET|/billing/plans/{param}/entitlements") + public @Nullable T list(String planId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.GET_BILLING_PLANS_PARAM_ENTITLEMENTS, List.of(planId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /billing/plans/{param}/entitlements} using a generic response type. + * @param decoded response type + * @param planId planId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String planId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.GET_BILLING_PLANS_PARAM_ENTITLEMENTS, List.of(planId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /billing/plans/{param}/entitlements} without query parameters. + * @param decoded response type + * @param planId planId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String planId, Class responseType) throws IOException, InterruptedException { + return list(planId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /billing/plans/{param}/entitlements} without query parameters using a generic response type. + * @param decoded response type + * @param planId planId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String planId, TypeReference responseType) throws IOException, InterruptedException { + return list(planId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/BillingPricesClient.java b/services/src/main/java/dev/frontal/sdk/resources/BillingPricesClient.java new file mode 100644 index 0000000..b48a418 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/BillingPricesClient.java @@ -0,0 +1,15 @@ +package dev.frontal.sdk; + +/** Contract operations for billing/prices. Generated by scripts/generate_endpoints.py. */ +public final class BillingPricesClient extends ServiceClient { + BillingPricesClient(ApiClient client) { + super(ApiService.BILLING, client); + } + + /** Returns the client for the nested resource. + * @return the lookup resource client + */ + public BillingPricesLookupClient lookup() { + return new BillingPricesLookupClient(client()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/BillingPricesLookupClient.java b/services/src/main/java/dev/frontal/sdk/resources/BillingPricesLookupClient.java new file mode 100644 index 0000000..a95a28d --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/BillingPricesLookupClient.java @@ -0,0 +1,68 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for billing/prices/lookup. Generated by scripts/generate_endpoints.py. */ +public final class BillingPricesLookupClient extends ServiceClient { + BillingPricesLookupClient(ApiClient client) { + super(ApiService.BILLING, client); + } + + /** + * Calls the contract route {@code GET /billing/prices/lookup/{param}}. + * @param decoded response type + * @param lookupId lookupId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("billing|GET|/billing/prices/lookup/{param}") + public @Nullable T get(String lookupId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Billing.GET_BILLING_PRICES_LOOKUP_PARAM, List.of(lookupId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /billing/prices/lookup/{param}} using a generic response type. + * @param decoded response type + * @param lookupId lookupId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String lookupId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Billing.GET_BILLING_PRICES_LOOKUP_PARAM, List.of(lookupId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /billing/prices/lookup/{param}} without query parameters. + * @param decoded response type + * @param lookupId lookupId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String lookupId, Class responseType) throws IOException, InterruptedException { + return get(lookupId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /billing/prices/lookup/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param lookupId lookupId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String lookupId, TypeReference responseType) + throws IOException, InterruptedException { + return get(lookupId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/BillingSubscriptionsClient.java b/services/src/main/java/dev/frontal/sdk/resources/BillingSubscriptionsClient.java new file mode 100644 index 0000000..b50321d --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/BillingSubscriptionsClient.java @@ -0,0 +1,309 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for billing/subscriptions. Generated by scripts/generate_endpoints.py. */ +public final class BillingSubscriptionsClient extends ServiceClient { + BillingSubscriptionsClient(ApiClient client) { + super(ApiService.BILLING, client); + } + + /** Returns the client for the nested resource. + * @return the entitlements resource client + */ + public BillingSubscriptionsEntitlementsClient entitlements() { + return new BillingSubscriptionsEntitlementsClient(client()); + } + + /** + * Calls the contract route {@code POST /billing/subscriptions/{param}/activate}. + * @param decoded response type + * @param subscriptionId subscriptionId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("billing|POST|/billing/subscriptions/{param}/activate") + public @Nullable T activate( + String subscriptionId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.POST_BILLING_SUBSCRIPTIONS_PARAM_ACTIVATE, + List.of(subscriptionId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /billing/subscriptions/{param}/activate} using a generic response type. + * @param decoded response type + * @param subscriptionId subscriptionId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T activate( + String subscriptionId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.POST_BILLING_SUBSCRIPTIONS_PARAM_ACTIVATE, + List.of(subscriptionId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /billing/subscriptions/{param}/activate} without query parameters. + * @param decoded response type + * @param subscriptionId subscriptionId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T activate(String subscriptionId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return activate(subscriptionId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /billing/subscriptions/{param}/activate} without query parameters using a generic response type. + * @param decoded response type + * @param subscriptionId subscriptionId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T activate(String subscriptionId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return activate(subscriptionId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /billing/subscriptions/{param}/cancel}. + * @param decoded response type + * @param subscriptionId subscriptionId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("billing|POST|/billing/subscriptions/{param}/cancel") + public @Nullable T cancel( + String subscriptionId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.POST_BILLING_SUBSCRIPTIONS_PARAM_CANCEL, + List.of(subscriptionId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /billing/subscriptions/{param}/cancel} using a generic response type. + * @param decoded response type + * @param subscriptionId subscriptionId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T cancel( + String subscriptionId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.POST_BILLING_SUBSCRIPTIONS_PARAM_CANCEL, + List.of(subscriptionId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /billing/subscriptions/{param}/cancel} without query parameters. + * @param decoded response type + * @param subscriptionId subscriptionId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T cancel(String subscriptionId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return cancel(subscriptionId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /billing/subscriptions/{param}/cancel} without query parameters using a generic response type. + * @param decoded response type + * @param subscriptionId subscriptionId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T cancel(String subscriptionId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return cancel(subscriptionId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /billing/subscriptions/{param}/pause}. + * @param decoded response type + * @param subscriptionId subscriptionId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("billing|POST|/billing/subscriptions/{param}/pause") + public @Nullable T pause( + String subscriptionId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.POST_BILLING_SUBSCRIPTIONS_PARAM_PAUSE, + List.of(subscriptionId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /billing/subscriptions/{param}/pause} using a generic response type. + * @param decoded response type + * @param subscriptionId subscriptionId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T pause( + String subscriptionId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.POST_BILLING_SUBSCRIPTIONS_PARAM_PAUSE, + List.of(subscriptionId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /billing/subscriptions/{param}/pause} without query parameters. + * @param decoded response type + * @param subscriptionId subscriptionId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T pause(String subscriptionId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return pause(subscriptionId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /billing/subscriptions/{param}/pause} without query parameters using a generic response type. + * @param decoded response type + * @param subscriptionId subscriptionId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T pause(String subscriptionId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return pause(subscriptionId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /billing/subscriptions/{param}/resume}. + * @param decoded response type + * @param subscriptionId subscriptionId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("billing|POST|/billing/subscriptions/{param}/resume") + public @Nullable T resume( + String subscriptionId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.POST_BILLING_SUBSCRIPTIONS_PARAM_RESUME, + List.of(subscriptionId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /billing/subscriptions/{param}/resume} using a generic response type. + * @param decoded response type + * @param subscriptionId subscriptionId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T resume( + String subscriptionId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.POST_BILLING_SUBSCRIPTIONS_PARAM_RESUME, + List.of(subscriptionId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /billing/subscriptions/{param}/resume} without query parameters. + * @param decoded response type + * @param subscriptionId subscriptionId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T resume(String subscriptionId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return resume(subscriptionId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /billing/subscriptions/{param}/resume} without query parameters using a generic response type. + * @param decoded response type + * @param subscriptionId subscriptionId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T resume(String subscriptionId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return resume(subscriptionId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/BillingSubscriptionsEntitlementsClient.java b/services/src/main/java/dev/frontal/sdk/resources/BillingSubscriptionsEntitlementsClient.java new file mode 100644 index 0000000..0f29160 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/BillingSubscriptionsEntitlementsClient.java @@ -0,0 +1,78 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for billing/subscriptions/entitlements. Generated by scripts/generate_endpoints.py. */ +public final class BillingSubscriptionsEntitlementsClient extends ServiceClient { + BillingSubscriptionsEntitlementsClient(ApiClient client) { + super(ApiService.BILLING, client); + } + + /** + * Calls the contract route {@code GET /billing/subscriptions/{param}/entitlements}. + * @param decoded response type + * @param subscriptionId subscriptionId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("billing|GET|/billing/subscriptions/{param}/entitlements") + public @Nullable T list(String subscriptionId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.GET_BILLING_SUBSCRIPTIONS_PARAM_ENTITLEMENTS, + List.of(subscriptionId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /billing/subscriptions/{param}/entitlements} using a generic response type. + * @param decoded response type + * @param subscriptionId subscriptionId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String subscriptionId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.GET_BILLING_SUBSCRIPTIONS_PARAM_ENTITLEMENTS, + List.of(subscriptionId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /billing/subscriptions/{param}/entitlements} without query parameters. + * @param decoded response type + * @param subscriptionId subscriptionId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String subscriptionId, Class responseType) throws IOException, InterruptedException { + return list(subscriptionId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /billing/subscriptions/{param}/entitlements} without query parameters using a generic response type. + * @param decoded response type + * @param subscriptionId subscriptionId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String subscriptionId, TypeReference responseType) + throws IOException, InterruptedException { + return list(subscriptionId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/BillingWalletsBalanceClient.java b/services/src/main/java/dev/frontal/sdk/resources/BillingWalletsBalanceClient.java new file mode 100644 index 0000000..83f1a75 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/BillingWalletsBalanceClient.java @@ -0,0 +1,79 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for billing/wallets/balance. Generated by scripts/generate_endpoints.py. */ +public final class BillingWalletsBalanceClient extends ServiceClient { + BillingWalletsBalanceClient(ApiClient client) { + super(ApiService.BILLING, client); + } + + /** + * Calls the contract route {@code GET /billing/wallets/{param}/balance/real-time}. + * @param decoded response type + * @param walletId walletId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("billing|GET|/billing/wallets/{param}/balance/real-time") + public @Nullable T getRealTime(String walletId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.GET_BILLING_WALLETS_PARAM_BALANCE_REAL_TIME, + List.of(walletId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /billing/wallets/{param}/balance/real-time} using a generic response type. + * @param decoded response type + * @param walletId walletId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getRealTime(String walletId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.GET_BILLING_WALLETS_PARAM_BALANCE_REAL_TIME, + List.of(walletId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /billing/wallets/{param}/balance/real-time} without query parameters. + * @param decoded response type + * @param walletId walletId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getRealTime(String walletId, Class responseType) + throws IOException, InterruptedException { + return getRealTime(walletId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /billing/wallets/{param}/balance/real-time} without query parameters using a generic response type. + * @param decoded response type + * @param walletId walletId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getRealTime(String walletId, TypeReference responseType) + throws IOException, InterruptedException { + return getRealTime(walletId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/BillingWalletsClient.java b/services/src/main/java/dev/frontal/sdk/resources/BillingWalletsClient.java new file mode 100644 index 0000000..87146e7 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/BillingWalletsClient.java @@ -0,0 +1,155 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for billing/wallets. Generated by scripts/generate_endpoints.py. */ +public final class BillingWalletsClient extends ServiceClient { + BillingWalletsClient(ApiClient client) { + super(ApiService.BILLING, client); + } + + /** Returns the client for the nested resource. + * @return the balance resource client + */ + public BillingWalletsBalanceClient balance() { + return new BillingWalletsBalanceClient(client()); + } + + /** Returns the client for the nested resource. + * @return the transactions resource client + */ + public BillingWalletsTransactionsClient transactions() { + return new BillingWalletsTransactionsClient(client()); + } + + /** + * Calls the contract route {@code POST /billing/wallets/{param}/terminate}. + * @param decoded response type + * @param walletId walletId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("billing|POST|/billing/wallets/{param}/terminate") + public @Nullable T createTerminate( + String walletId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.POST_BILLING_WALLETS_PARAM_TERMINATE, List.of(walletId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /billing/wallets/{param}/terminate} using a generic response type. + * @param decoded response type + * @param walletId walletId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createTerminate( + String walletId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.POST_BILLING_WALLETS_PARAM_TERMINATE, List.of(walletId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /billing/wallets/{param}/terminate} without query parameters. + * @param decoded response type + * @param walletId walletId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createTerminate(String walletId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createTerminate(walletId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /billing/wallets/{param}/terminate} without query parameters using a generic response type. + * @param decoded response type + * @param walletId walletId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createTerminate(String walletId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createTerminate(walletId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /billing/wallets/{param}/top-up}. + * @param decoded response type + * @param walletId walletId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("billing|POST|/billing/wallets/{param}/top-up") + public @Nullable T topUp(String walletId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.POST_BILLING_WALLETS_PARAM_TOP_UP, List.of(walletId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /billing/wallets/{param}/top-up} using a generic response type. + * @param decoded response type + * @param walletId walletId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T topUp( + String walletId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.POST_BILLING_WALLETS_PARAM_TOP_UP, List.of(walletId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /billing/wallets/{param}/top-up} without query parameters. + * @param decoded response type + * @param walletId walletId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T topUp(String walletId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return topUp(walletId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /billing/wallets/{param}/top-up} without query parameters using a generic response type. + * @param decoded response type + * @param walletId walletId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T topUp(String walletId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return topUp(walletId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/BillingWalletsTransactionsClient.java b/services/src/main/java/dev/frontal/sdk/resources/BillingWalletsTransactionsClient.java new file mode 100644 index 0000000..6cfbed9 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/BillingWalletsTransactionsClient.java @@ -0,0 +1,70 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for billing/wallets/transactions. Generated by scripts/generate_endpoints.py. */ +public final class BillingWalletsTransactionsClient extends ServiceClient { + BillingWalletsTransactionsClient(ApiClient client) { + super(ApiService.BILLING, client); + } + + /** + * Calls the contract route {@code GET /billing/wallets/{param}/transactions}. + * @param decoded response type + * @param walletId walletId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("billing|GET|/billing/wallets/{param}/transactions") + public @Nullable T list(String walletId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.GET_BILLING_WALLETS_PARAM_TRANSACTIONS, List.of(walletId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /billing/wallets/{param}/transactions} using a generic response type. + * @param decoded response type + * @param walletId walletId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String walletId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Billing.GET_BILLING_WALLETS_PARAM_TRANSACTIONS, List.of(walletId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /billing/wallets/{param}/transactions} without query parameters. + * @param decoded response type + * @param walletId walletId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String walletId, Class responseType) throws IOException, InterruptedException { + return list(walletId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /billing/wallets/{param}/transactions} without query parameters using a generic response type. + * @param decoded response type + * @param walletId walletId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String walletId, TypeReference responseType) + throws IOException, InterruptedException { + return list(walletId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/BlobClient.java b/services/src/main/java/dev/frontal/sdk/resources/BlobClient.java new file mode 100644 index 0000000..2957690 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/BlobClient.java @@ -0,0 +1,15 @@ +package dev.frontal.sdk; + +/** Contract operations for blob. Generated by scripts/generate_endpoints.py. */ +public final class BlobClient extends ServiceClient { + BlobClient(ApiClient client) { + super(ApiService.BLOB, client); + } + + /** Returns the client for the nested resource. + * @return the object resource client + */ + public BlobObjectClient object() { + return new BlobObjectClient(client()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/BlobObjectClient.java b/services/src/main/java/dev/frontal/sdk/resources/BlobObjectClient.java new file mode 100644 index 0000000..3458c1e --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/BlobObjectClient.java @@ -0,0 +1,375 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.nio.file.Path; +import java.util.List; +import java.util.Map; +import org.jspecify.annotations.Nullable; + +/** Contract operations for blob/object. Generated by scripts/generate_endpoints.py. */ +public final class BlobObjectClient extends ServiceClient { + BlobObjectClient(ApiClient client) { + super(ApiService.BLOB, client); + } + + /** Returns the client for the nested resource. + * @return the info resource client + */ + public BlobObjectInfoClient info() { + return new BlobObjectInfoClient(client()); + } + + /** Returns the client for the nested resource. + * @return the list resource client + */ + public BlobObjectListClient list() { + return new BlobObjectListClient(client()); + } + + /** Returns the client for the nested resource. + * @return the sign resource client + */ + public BlobObjectSignClient sign() { + return new BlobObjectSignClient(client()); + } + + /** + * Calls the contract route {@code DELETE /blob/object/{param}/{param}}. + * @param decoded response type + * @param objectId objectId supplied to the operation + * @param objectId2 objectId2 supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("blob|DELETE|/blob/object/{param}/{param}") + public @Nullable T delete(String objectId, String objectId2, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Blob.DELETE_BLOB_OBJECT_PARAM_PARAM, List.of(objectId, objectId2), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /blob/object/{param}/{param}} using a generic response type. + * @param decoded response type + * @param objectId objectId supplied to the operation + * @param objectId2 objectId2 supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String objectId, String objectId2, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Blob.DELETE_BLOB_OBJECT_PARAM_PARAM, List.of(objectId, objectId2), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /blob/object/{param}/{param}} without query parameters. + * @param decoded response type + * @param objectId objectId supplied to the operation + * @param objectId2 objectId2 supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String objectId, String objectId2, Class responseType) + throws IOException, InterruptedException { + return delete(objectId, objectId2, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /blob/object/{param}/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param objectId objectId supplied to the operation + * @param objectId2 objectId2 supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String objectId, String objectId2, TypeReference responseType) + throws IOException, InterruptedException { + return delete(objectId, objectId2, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /blob/object/{param}/{param}}. + * @param decoded response type + * @param objectId objectId supplied to the operation + * @param objectId2 objectId2 supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("blob|GET|/blob/object/{param}/{param}") + public @Nullable T get(String objectId, String objectId2, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Blob.GET_BLOB_OBJECT_PARAM_PARAM, List.of(objectId, objectId2), query, null, responseType); + } + /** + * Calls the contract route {@code GET /blob/object/{param}/{param}} using a generic response type. + * @param decoded response type + * @param objectId objectId supplied to the operation + * @param objectId2 objectId2 supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String objectId, String objectId2, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Blob.GET_BLOB_OBJECT_PARAM_PARAM, List.of(objectId, objectId2), query, null, responseType); + } + /** + * Calls the contract route {@code GET /blob/object/{param}/{param}} without query parameters. + * @param decoded response type + * @param objectId objectId supplied to the operation + * @param objectId2 objectId2 supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String objectId, String objectId2, Class responseType) + throws IOException, InterruptedException { + return get(objectId, objectId2, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /blob/object/{param}/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param objectId objectId supplied to the operation + * @param objectId2 objectId2 supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String objectId, String objectId2, TypeReference responseType) + throws IOException, InterruptedException { + return get(objectId, objectId2, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /blob/object/copy}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("blob|POST|/blob/object/copy") + public @Nullable T copy(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Blob.POST_BLOB_OBJECT_COPY, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /blob/object/copy} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T copy(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Blob.POST_BLOB_OBJECT_COPY, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /blob/object/copy} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T copy(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return copy(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /blob/object/copy} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T copy(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return copy(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /blob/object/move}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("blob|POST|/blob/object/move") + public @Nullable T move(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Blob.POST_BLOB_OBJECT_MOVE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /blob/object/move} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T move(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Blob.POST_BLOB_OBJECT_MOVE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /blob/object/move} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T move(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return move(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /blob/object/move} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T move(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return move(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POSTFORMDATA /blob/object/{param}/{param}}. + * @param decoded response type + * @param objectId objectId supplied to the operation + * @param objectId2 objectId2 supplied to the operation + * @param query query supplied to the operation + * @param fields fields supplied to the operation + * @param files files supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("blob|POSTFORMDATA|/blob/object/{param}/{param}") + public @Nullable T get2( + String objectId, + String objectId2, + QueryParams query, + Map fields, + Map files, + Class responseType) + throws IOException, InterruptedException { + return requestForm( + Endpoints.Blob.POSTFORMDATA_BLOB_OBJECT_PARAM_PARAM, + List.of(objectId, objectId2), + query, + fields, + files, + responseType); + } + /** + * Calls the contract route {@code POSTFORMDATA /blob/object/{param}/{param}} using a generic response type. + * @param decoded response type + * @param objectId objectId supplied to the operation + * @param objectId2 objectId2 supplied to the operation + * @param query query supplied to the operation + * @param fields fields supplied to the operation + * @param files files supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get2( + String objectId, + String objectId2, + QueryParams query, + Map fields, + Map files, + TypeReference responseType) + throws IOException, InterruptedException { + return requestForm( + Endpoints.Blob.POSTFORMDATA_BLOB_OBJECT_PARAM_PARAM, + List.of(objectId, objectId2), + query, + fields, + files, + responseType); + } + /** + * Calls the contract route {@code POSTFORMDATA /blob/object/{param}/{param}} without query parameters. + * @param decoded response type + * @param objectId objectId supplied to the operation + * @param objectId2 objectId2 supplied to the operation + * @param fields fields supplied to the operation + * @param files files supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get2( + String objectId, + String objectId2, + Map fields, + Map files, + Class responseType) + throws IOException, InterruptedException { + return get2(objectId, objectId2, QueryParams.empty(), fields, files, responseType); + } + /** + * Calls the contract route {@code POSTFORMDATA /blob/object/{param}/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param objectId objectId supplied to the operation + * @param objectId2 objectId2 supplied to the operation + * @param fields fields supplied to the operation + * @param files files supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get2( + String objectId, + String objectId2, + Map fields, + Map files, + TypeReference responseType) + throws IOException, InterruptedException { + return get2(objectId, objectId2, QueryParams.empty(), fields, files, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/BlobObjectInfoClient.java b/services/src/main/java/dev/frontal/sdk/resources/BlobObjectInfoClient.java new file mode 100644 index 0000000..6ad3d14 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/BlobObjectInfoClient.java @@ -0,0 +1,75 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for blob/object/info. Generated by scripts/generate_endpoints.py. */ +public final class BlobObjectInfoClient extends ServiceClient { + BlobObjectInfoClient(ApiClient client) { + super(ApiService.BLOB, client); + } + + /** + * Calls the contract route {@code GET /blob/object/info/{param}/{param}}. + * @param decoded response type + * @param infoId infoId supplied to the operation + * @param infoId2 infoId2 supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("blob|GET|/blob/object/info/{param}/{param}") + public @Nullable T get(String infoId, String infoId2, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Blob.GET_BLOB_OBJECT_INFO_PARAM_PARAM, List.of(infoId, infoId2), query, null, responseType); + } + /** + * Calls the contract route {@code GET /blob/object/info/{param}/{param}} using a generic response type. + * @param decoded response type + * @param infoId infoId supplied to the operation + * @param infoId2 infoId2 supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String infoId, String infoId2, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Blob.GET_BLOB_OBJECT_INFO_PARAM_PARAM, List.of(infoId, infoId2), query, null, responseType); + } + /** + * Calls the contract route {@code GET /blob/object/info/{param}/{param}} without query parameters. + * @param decoded response type + * @param infoId infoId supplied to the operation + * @param infoId2 infoId2 supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String infoId, String infoId2, Class responseType) + throws IOException, InterruptedException { + return get(infoId, infoId2, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /blob/object/info/{param}/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param infoId infoId supplied to the operation + * @param infoId2 infoId2 supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String infoId, String infoId2, TypeReference responseType) + throws IOException, InterruptedException { + return get(infoId, infoId2, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/BlobObjectListClient.java b/services/src/main/java/dev/frontal/sdk/resources/BlobObjectListClient.java new file mode 100644 index 0000000..32be73c --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/BlobObjectListClient.java @@ -0,0 +1,74 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for blob/object/list. Generated by scripts/generate_endpoints.py. */ +public final class BlobObjectListClient extends ServiceClient { + BlobObjectListClient(ApiClient client) { + super(ApiService.BLOB, client); + } + + /** + * Calls the contract route {@code POST /blob/object/list/{param}}. + * @param decoded response type + * @param listId listId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("blob|POST|/blob/object/list/{param}") + public @Nullable T get(String listId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Blob.POST_BLOB_OBJECT_LIST_PARAM, List.of(listId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /blob/object/list/{param}} using a generic response type. + * @param decoded response type + * @param listId listId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String listId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Blob.POST_BLOB_OBJECT_LIST_PARAM, List.of(listId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /blob/object/list/{param}} without query parameters. + * @param decoded response type + * @param listId listId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String listId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return get(listId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /blob/object/list/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param listId listId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String listId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return get(listId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/BlobObjectSignClient.java b/services/src/main/java/dev/frontal/sdk/resources/BlobObjectSignClient.java new file mode 100644 index 0000000..a45d479 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/BlobObjectSignClient.java @@ -0,0 +1,82 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for blob/object/sign. Generated by scripts/generate_endpoints.py. */ +public final class BlobObjectSignClient extends ServiceClient { + BlobObjectSignClient(ApiClient client) { + super(ApiService.BLOB, client); + } + + /** + * Calls the contract route {@code POST /blob/object/sign/{param}/{param}}. + * @param decoded response type + * @param signId signId supplied to the operation + * @param signId2 signId2 supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("blob|POST|/blob/object/sign/{param}/{param}") + public @Nullable T get( + String signId, String signId2, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Blob.POST_BLOB_OBJECT_SIGN_PARAM_PARAM, List.of(signId, signId2), query, body, responseType); + } + /** + * Calls the contract route {@code POST /blob/object/sign/{param}/{param}} using a generic response type. + * @param decoded response type + * @param signId signId supplied to the operation + * @param signId2 signId2 supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get( + String signId, String signId2, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Blob.POST_BLOB_OBJECT_SIGN_PARAM_PARAM, List.of(signId, signId2), query, body, responseType); + } + /** + * Calls the contract route {@code POST /blob/object/sign/{param}/{param}} without query parameters. + * @param decoded response type + * @param signId signId supplied to the operation + * @param signId2 signId2 supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String signId, String signId2, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return get(signId, signId2, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /blob/object/sign/{param}/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param signId signId supplied to the operation + * @param signId2 signId2 supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String signId, String signId2, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return get(signId, signId2, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/ConnectionTestsClient.java b/services/src/main/java/dev/frontal/sdk/resources/ConnectionTestsClient.java new file mode 100644 index 0000000..4109f9f --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/ConnectionTestsClient.java @@ -0,0 +1,79 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for connection-tests. Generated by scripts/generate_endpoints.py. */ +public final class ConnectionTestsClient extends ServiceClient { + ConnectionTestsClient(ApiClient client) { + super(ApiService.CONNECTION_TESTS, client); + } + + /** + * Calls the contract route {@code GET /connection-tests/{param}}. + * @param decoded response type + * @param connectionTestId connectionTestId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("connection-tests|GET|/connection-tests/{param}") + public @Nullable T get(String connectionTestId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.ConnectionTests.GET_CONNECTION_TESTS_PARAM, + List.of(connectionTestId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /connection-tests/{param}} using a generic response type. + * @param decoded response type + * @param connectionTestId connectionTestId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String connectionTestId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.ConnectionTests.GET_CONNECTION_TESTS_PARAM, + List.of(connectionTestId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /connection-tests/{param}} without query parameters. + * @param decoded response type + * @param connectionTestId connectionTestId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String connectionTestId, Class responseType) + throws IOException, InterruptedException { + return get(connectionTestId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /connection-tests/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param connectionTestId connectionTestId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String connectionTestId, TypeReference responseType) + throws IOException, InterruptedException { + return get(connectionTestId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/ConnectorsCatalogClient.java b/services/src/main/java/dev/frontal/sdk/resources/ConnectorsCatalogClient.java new file mode 100644 index 0000000..64338da --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/ConnectorsCatalogClient.java @@ -0,0 +1,70 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for connectors/catalog. Generated by scripts/generate_endpoints.py. */ +public final class ConnectorsCatalogClient extends ServiceClient { + ConnectorsCatalogClient(ApiClient client) { + super(ApiService.CONNECTORS, client); + } + + /** + * Calls the contract route {@code GET /connectors/catalog/{param}}. + * @param decoded response type + * @param catalogId catalogId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("connectors|GET|/connectors/catalog/{param}") + public @Nullable T get(String catalogId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Connectors.GET_CONNECTORS_CATALOG_PARAM, List.of(catalogId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /connectors/catalog/{param}} using a generic response type. + * @param decoded response type + * @param catalogId catalogId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String catalogId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Connectors.GET_CONNECTORS_CATALOG_PARAM, List.of(catalogId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /connectors/catalog/{param}} without query parameters. + * @param decoded response type + * @param catalogId catalogId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String catalogId, Class responseType) throws IOException, InterruptedException { + return get(catalogId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /connectors/catalog/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param catalogId catalogId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String catalogId, TypeReference responseType) + throws IOException, InterruptedException { + return get(catalogId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/ConnectorsClient.java b/services/src/main/java/dev/frontal/sdk/resources/ConnectorsClient.java new file mode 100644 index 0000000..264ae1c --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/ConnectorsClient.java @@ -0,0 +1,98 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for connectors. Generated by scripts/generate_endpoints.py. */ +public final class ConnectorsClient extends ServiceClient { + ConnectorsClient(ApiClient client) { + super(ApiService.CONNECTORS, client); + } + + /** Returns the client for the nested resource. + * @return the catalog resource client + */ + public ConnectorsCatalogClient catalog() { + return new ConnectorsCatalogClient(client()); + } + + /** Returns the client for the nested resource. + * @return the connection-tests resource client + */ + public ConnectorsConnectionTestsClient connectionTests() { + return new ConnectorsConnectionTestsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the diagnostics resource client + */ + public ConnectorsDiagnosticsClient diagnostics() { + return new ConnectorsDiagnosticsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the installations resource client + */ + public ConnectorsInstallationsClient installations() { + return new ConnectorsInstallationsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the sync-runs resource client + */ + public ConnectorsSyncRunsClient syncRuns() { + return new ConnectorsSyncRunsClient(client()); + } + + /** + * Calls the contract route {@code GET /connectors/catalog}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("connectors|GET|/connectors/catalog") + public @Nullable T getCatalog(QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Connectors.GET_CONNECTORS_CATALOG, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /connectors/catalog} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getCatalog(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Connectors.GET_CONNECTORS_CATALOG, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /connectors/catalog} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getCatalog(Class responseType) throws IOException, InterruptedException { + return getCatalog(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /connectors/catalog} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getCatalog(TypeReference responseType) throws IOException, InterruptedException { + return getCatalog(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/ConnectorsConnectionTestsClient.java b/services/src/main/java/dev/frontal/sdk/resources/ConnectorsConnectionTestsClient.java new file mode 100644 index 0000000..6e0da2e --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/ConnectorsConnectionTestsClient.java @@ -0,0 +1,79 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for connectors/connection-tests. Generated by scripts/generate_endpoints.py. */ +public final class ConnectorsConnectionTestsClient extends ServiceClient { + ConnectorsConnectionTestsClient(ApiClient client) { + super(ApiService.CONNECTORS, client); + } + + /** + * Calls the contract route {@code GET /connectors/connection-tests/{param}}. + * @param decoded response type + * @param connectionTestId connectionTestId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("connectors|GET|/connectors/connection-tests/{param}") + public @Nullable T get(String connectionTestId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Connectors.GET_CONNECTORS_CONNECTION_TESTS_PARAM, + List.of(connectionTestId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /connectors/connection-tests/{param}} using a generic response type. + * @param decoded response type + * @param connectionTestId connectionTestId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String connectionTestId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Connectors.GET_CONNECTORS_CONNECTION_TESTS_PARAM, + List.of(connectionTestId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /connectors/connection-tests/{param}} without query parameters. + * @param decoded response type + * @param connectionTestId connectionTestId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String connectionTestId, Class responseType) + throws IOException, InterruptedException { + return get(connectionTestId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /connectors/connection-tests/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param connectionTestId connectionTestId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String connectionTestId, TypeReference responseType) + throws IOException, InterruptedException { + return get(connectionTestId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/ConnectorsDiagnosticsClient.java b/services/src/main/java/dev/frontal/sdk/resources/ConnectorsDiagnosticsClient.java new file mode 100644 index 0000000..013360a --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/ConnectorsDiagnosticsClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for connectors/diagnostics. Generated by scripts/generate_endpoints.py. */ +public final class ConnectorsDiagnosticsClient extends ServiceClient { + ConnectorsDiagnosticsClient(ApiClient client) { + super(ApiService.CONNECTORS, client); + } + + /** + * Calls the contract route {@code GET /diagnostics}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("connectors|GET|/diagnostics") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Connectors.GET_DIAGNOSTICS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /diagnostics} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Connectors.GET_DIAGNOSTICS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /diagnostics} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /diagnostics} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/ConnectorsInstallationsClient.java b/services/src/main/java/dev/frontal/sdk/resources/ConnectorsInstallationsClient.java new file mode 100644 index 0000000..7832ea0 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/ConnectorsInstallationsClient.java @@ -0,0 +1,466 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for connectors/installations. Generated by scripts/generate_endpoints.py. */ +public final class ConnectorsInstallationsClient extends ServiceClient { + ConnectorsInstallationsClient(ApiClient client) { + super(ApiService.CONNECTORS, client); + } + + /** + * Calls the contract route {@code DELETE /connectors/installations/{param}}. + * @param decoded response type + * @param installationId installationId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("connectors|DELETE|/connectors/installations/{param}") + public @Nullable T delete(String installationId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Connectors.DELETE_CONNECTORS_INSTALLATIONS_PARAM, + List.of(installationId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code DELETE /connectors/installations/{param}} using a generic response type. + * @param decoded response type + * @param installationId installationId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String installationId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Connectors.DELETE_CONNECTORS_INSTALLATIONS_PARAM, + List.of(installationId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code DELETE /connectors/installations/{param}} without query parameters. + * @param decoded response type + * @param installationId installationId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String installationId, Class responseType) + throws IOException, InterruptedException { + return delete(installationId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /connectors/installations/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param installationId installationId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String installationId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(installationId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /connectors/installations}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("connectors|GET|/connectors/installations") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Connectors.GET_CONNECTORS_INSTALLATIONS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /connectors/installations} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Connectors.GET_CONNECTORS_INSTALLATIONS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /connectors/installations} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /connectors/installations} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /connectors/installations/{param}}. + * @param decoded response type + * @param installationId installationId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("connectors|GET|/connectors/installations/{param}") + public @Nullable T get(String installationId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Connectors.GET_CONNECTORS_INSTALLATIONS_PARAM, + List.of(installationId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /connectors/installations/{param}} using a generic response type. + * @param decoded response type + * @param installationId installationId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String installationId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Connectors.GET_CONNECTORS_INSTALLATIONS_PARAM, + List.of(installationId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /connectors/installations/{param}} without query parameters. + * @param decoded response type + * @param installationId installationId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String installationId, Class responseType) throws IOException, InterruptedException { + return get(installationId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /connectors/installations/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param installationId installationId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String installationId, TypeReference responseType) + throws IOException, InterruptedException { + return get(installationId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code PATCH /connectors/installations/{param}}. + * @param decoded response type + * @param installationId installationId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("connectors|PATCH|/connectors/installations/{param}") + public @Nullable T update( + String installationId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Connectors.PATCH_CONNECTORS_INSTALLATIONS_PARAM, + List.of(installationId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code PATCH /connectors/installations/{param}} using a generic response type. + * @param decoded response type + * @param installationId installationId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update( + String installationId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Connectors.PATCH_CONNECTORS_INSTALLATIONS_PARAM, + List.of(installationId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code PATCH /connectors/installations/{param}} without query parameters. + * @param decoded response type + * @param installationId installationId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String installationId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return update(installationId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code PATCH /connectors/installations/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param installationId installationId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String installationId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return update(installationId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /connectors/installations}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("connectors|POST|/connectors/installations") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Connectors.POST_CONNECTORS_INSTALLATIONS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /connectors/installations} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Connectors.POST_CONNECTORS_INSTALLATIONS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /connectors/installations} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /connectors/installations} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /connectors/installations/{param}/pause}. + * @param decoded response type + * @param installationId installationId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("connectors|POST|/connectors/installations/{param}/pause") + public @Nullable T pause( + String installationId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Connectors.POST_CONNECTORS_INSTALLATIONS_PARAM_PAUSE, + List.of(installationId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /connectors/installations/{param}/pause} using a generic response type. + * @param decoded response type + * @param installationId installationId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T pause( + String installationId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Connectors.POST_CONNECTORS_INSTALLATIONS_PARAM_PAUSE, + List.of(installationId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /connectors/installations/{param}/pause} without query parameters. + * @param decoded response type + * @param installationId installationId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T pause(String installationId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return pause(installationId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /connectors/installations/{param}/pause} without query parameters using a generic response type. + * @param decoded response type + * @param installationId installationId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T pause(String installationId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return pause(installationId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /connectors/installations/{param}/resume}. + * @param decoded response type + * @param installationId installationId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("connectors|POST|/connectors/installations/{param}/resume") + public @Nullable T resume( + String installationId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Connectors.POST_CONNECTORS_INSTALLATIONS_PARAM_RESUME, + List.of(installationId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /connectors/installations/{param}/resume} using a generic response type. + * @param decoded response type + * @param installationId installationId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T resume( + String installationId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Connectors.POST_CONNECTORS_INSTALLATIONS_PARAM_RESUME, + List.of(installationId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /connectors/installations/{param}/resume} without query parameters. + * @param decoded response type + * @param installationId installationId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T resume(String installationId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return resume(installationId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /connectors/installations/{param}/resume} without query parameters using a generic response type. + * @param decoded response type + * @param installationId installationId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T resume(String installationId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return resume(installationId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/ConnectorsSyncRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/ConnectorsSyncRunsClient.java new file mode 100644 index 0000000..bc97757 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/ConnectorsSyncRunsClient.java @@ -0,0 +1,85 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for connectors/sync-runs. Generated by scripts/generate_endpoints.py. */ +public final class ConnectorsSyncRunsClient extends ServiceClient { + ConnectorsSyncRunsClient(ApiClient client) { + super(ApiService.CONNECTORS, client); + } + + /** + * Calls the contract route {@code POST /connectors/sync-runs/{param}/replay}. + * @param decoded response type + * @param syncRunId syncRunId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("connectors|POST|/connectors/sync-runs/{param}/replay") + public @Nullable T replay(String syncRunId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Connectors.POST_CONNECTORS_SYNC_RUNS_PARAM_REPLAY, + List.of(syncRunId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /connectors/sync-runs/{param}/replay} using a generic response type. + * @param decoded response type + * @param syncRunId syncRunId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T replay( + String syncRunId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Connectors.POST_CONNECTORS_SYNC_RUNS_PARAM_REPLAY, + List.of(syncRunId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /connectors/sync-runs/{param}/replay} without query parameters. + * @param decoded response type + * @param syncRunId syncRunId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T replay(String syncRunId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return replay(syncRunId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /connectors/sync-runs/{param}/replay} without query parameters using a generic response type. + * @param decoded response type + * @param syncRunId syncRunId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T replay(String syncRunId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return replay(syncRunId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataAggregationsAggregationsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataAggregationsAggregationsClient.java new file mode 100644 index 0000000..7ce18ee --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataAggregationsAggregationsClient.java @@ -0,0 +1,191 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/aggregations/aggregations. Generated by scripts/generate_endpoints.py. */ +public final class DataAggregationsAggregationsClient extends ServiceClient { + DataAggregationsAggregationsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the executions resource client + */ + public DataAggregationsAggregationsExecutionsClient executions() { + return new DataAggregationsAggregationsExecutionsClient(client()); + } + + /** + * Calls the contract route {@code GET /data/aggregations/aggregations}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/aggregations/aggregations") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_AGGREGATIONS_AGGREGATIONS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/aggregations/aggregations} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_AGGREGATIONS_AGGREGATIONS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/aggregations/aggregations} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/aggregations/aggregations} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/aggregations/aggregations/{param}}. + * @param decoded response type + * @param aggregationId aggregationId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/aggregations/aggregations/{param}") + public @Nullable T get(String aggregationId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_AGGREGATIONS_AGGREGATIONS_PARAM, + List.of(aggregationId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /data/aggregations/aggregations/{param}} using a generic response type. + * @param decoded response type + * @param aggregationId aggregationId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String aggregationId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_AGGREGATIONS_AGGREGATIONS_PARAM, + List.of(aggregationId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /data/aggregations/aggregations/{param}} without query parameters. + * @param decoded response type + * @param aggregationId aggregationId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String aggregationId, Class responseType) throws IOException, InterruptedException { + return get(aggregationId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/aggregations/aggregations/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param aggregationId aggregationId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String aggregationId, TypeReference responseType) + throws IOException, InterruptedException { + return get(aggregationId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/aggregations/aggregations}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/aggregations/aggregations") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_AGGREGATIONS_AGGREGATIONS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/aggregations/aggregations} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_AGGREGATIONS_AGGREGATIONS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/aggregations/aggregations} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/aggregations/aggregations} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataAggregationsAggregationsExecutionsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataAggregationsAggregationsExecutionsClient.java new file mode 100644 index 0000000..fab7b41 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataAggregationsAggregationsExecutionsClient.java @@ -0,0 +1,86 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/aggregations/aggregations/executions. Generated by scripts/generate_endpoints.py. */ +public final class DataAggregationsAggregationsExecutionsClient extends ServiceClient { + DataAggregationsAggregationsExecutionsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code POST /data/aggregations/aggregations/{param}/executions}. + * @param decoded response type + * @param aggregationId aggregationId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/aggregations/aggregations/{param}/executions") + public @Nullable T create( + String aggregationId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.POST_DATA_AGGREGATIONS_AGGREGATIONS_PARAM_EXECUTIONS, + List.of(aggregationId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /data/aggregations/aggregations/{param}/executions} using a generic response type. + * @param decoded response type + * @param aggregationId aggregationId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create( + String aggregationId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.POST_DATA_AGGREGATIONS_AGGREGATIONS_PARAM_EXECUTIONS, + List.of(aggregationId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /data/aggregations/aggregations/{param}/executions} without query parameters. + * @param decoded response type + * @param aggregationId aggregationId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(String aggregationId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(aggregationId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/aggregations/aggregations/{param}/executions} without query parameters using a generic response type. + * @param decoded response type + * @param aggregationId aggregationId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(String aggregationId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(aggregationId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataAggregationsCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataAggregationsCapabilitiesClient.java new file mode 100644 index 0000000..c22aecb --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataAggregationsCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/aggregations/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class DataAggregationsCapabilitiesClient extends ServiceClient { + DataAggregationsCapabilitiesClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/aggregations/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/aggregations/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_AGGREGATIONS_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/aggregations/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_AGGREGATIONS_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/aggregations/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/aggregations/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataAggregationsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataAggregationsClient.java new file mode 100644 index 0000000..065033d --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataAggregationsClient.java @@ -0,0 +1,132 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/aggregations. Generated by scripts/generate_endpoints.py. */ +public final class DataAggregationsClient extends ServiceClient { + DataAggregationsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the aggregations resource client + */ + public DataAggregationsAggregationsClient aggregations() { + return new DataAggregationsAggregationsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public DataAggregationsCapabilitiesClient capabilities() { + return new DataAggregationsCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public DataAggregationsRunsClient runs() { + return new DataAggregationsRunsClient(client()); + } + + /** + * Calls the contract route {@code GET /data/aggregations/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/aggregations/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_AGGREGATIONS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/aggregations/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_AGGREGATIONS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/aggregations/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/aggregations/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/aggregations/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/aggregations/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_AGGREGATIONS_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/aggregations/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_AGGREGATIONS_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/aggregations/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/aggregations/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataAggregationsRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataAggregationsRunsClient.java new file mode 100644 index 0000000..518c209 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataAggregationsRunsClient.java @@ -0,0 +1,173 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/aggregations/runs. Generated by scripts/generate_endpoints.py. */ +public final class DataAggregationsRunsClient extends ServiceClient { + DataAggregationsRunsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/aggregations/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/aggregations/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_AGGREGATIONS_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/aggregations/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_AGGREGATIONS_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/aggregations/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/aggregations/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/aggregations/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/aggregations/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_AGGREGATIONS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/aggregations/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_AGGREGATIONS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/aggregations/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/aggregations/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/aggregations/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/aggregations/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_AGGREGATIONS_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/aggregations/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_AGGREGATIONS_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/aggregations/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/aggregations/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataArchivalArchivalClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataArchivalArchivalClient.java new file mode 100644 index 0000000..34da8e8 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataArchivalArchivalClient.java @@ -0,0 +1,15 @@ +package dev.frontal.sdk; + +/** Contract operations for data/archival/archival. Generated by scripts/generate_endpoints.py. */ +public final class DataArchivalArchivalClient extends ServiceClient { + DataArchivalArchivalClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the policies resource client + */ + public DataArchivalArchivalPoliciesClient policies() { + return new DataArchivalArchivalPoliciesClient(client()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataArchivalArchivalPoliciesClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataArchivalArchivalPoliciesClient.java new file mode 100644 index 0000000..d7962da --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataArchivalArchivalPoliciesClient.java @@ -0,0 +1,183 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/archival/archival/policies. Generated by scripts/generate_endpoints.py. */ +public final class DataArchivalArchivalPoliciesClient extends ServiceClient { + DataArchivalArchivalPoliciesClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the executions resource client + */ + public DataArchivalArchivalPoliciesExecutionsClient executions() { + return new DataArchivalArchivalPoliciesExecutionsClient(client()); + } + + /** + * Calls the contract route {@code GET /data/archival/archival/policies}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/archival/archival/policies") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_ARCHIVAL_ARCHIVAL_POLICIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/archival/archival/policies} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_ARCHIVAL_ARCHIVAL_POLICIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/archival/archival/policies} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/archival/archival/policies} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/archival/archival/policies/{param}}. + * @param decoded response type + * @param policyId policyId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/archival/archival/policies/{param}") + public @Nullable T get(String policyId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_ARCHIVAL_ARCHIVAL_POLICIES_PARAM, List.of(policyId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/archival/archival/policies/{param}} using a generic response type. + * @param decoded response type + * @param policyId policyId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String policyId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_ARCHIVAL_ARCHIVAL_POLICIES_PARAM, List.of(policyId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/archival/archival/policies/{param}} without query parameters. + * @param decoded response type + * @param policyId policyId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String policyId, Class responseType) throws IOException, InterruptedException { + return get(policyId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/archival/archival/policies/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param policyId policyId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String policyId, TypeReference responseType) + throws IOException, InterruptedException { + return get(policyId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/archival/archival/policies}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/archival/archival/policies") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_ARCHIVAL_ARCHIVAL_POLICIES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/archival/archival/policies} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_ARCHIVAL_ARCHIVAL_POLICIES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/archival/archival/policies} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/archival/archival/policies} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataArchivalArchivalPoliciesExecutionsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataArchivalArchivalPoliciesExecutionsClient.java new file mode 100644 index 0000000..9bafaba --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataArchivalArchivalPoliciesExecutionsClient.java @@ -0,0 +1,85 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/archival/archival/policies/executions. Generated by scripts/generate_endpoints.py. */ +public final class DataArchivalArchivalPoliciesExecutionsClient extends ServiceClient { + DataArchivalArchivalPoliciesExecutionsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code POST /data/archival/archival/policies/{param}/executions}. + * @param decoded response type + * @param policyId policyId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/archival/archival/policies/{param}/executions") + public @Nullable T create(String policyId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.POST_DATA_ARCHIVAL_ARCHIVAL_POLICIES_PARAM_EXECUTIONS, + List.of(policyId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /data/archival/archival/policies/{param}/executions} using a generic response type. + * @param decoded response type + * @param policyId policyId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create( + String policyId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.POST_DATA_ARCHIVAL_ARCHIVAL_POLICIES_PARAM_EXECUTIONS, + List.of(policyId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /data/archival/archival/policies/{param}/executions} without query parameters. + * @param decoded response type + * @param policyId policyId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(String policyId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(policyId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/archival/archival/policies/{param}/executions} without query parameters using a generic response type. + * @param decoded response type + * @param policyId policyId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(String policyId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(policyId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataArchivalCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataArchivalCapabilitiesClient.java new file mode 100644 index 0000000..7b44ffd --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataArchivalCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/archival/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class DataArchivalCapabilitiesClient extends ServiceClient { + DataArchivalCapabilitiesClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/archival/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/archival/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_ARCHIVAL_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/archival/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_ARCHIVAL_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/archival/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/archival/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataArchivalClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataArchivalClient.java new file mode 100644 index 0000000..c98280e --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataArchivalClient.java @@ -0,0 +1,132 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/archival. Generated by scripts/generate_endpoints.py. */ +public final class DataArchivalClient extends ServiceClient { + DataArchivalClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the archival resource client + */ + public DataArchivalArchivalClient archival() { + return new DataArchivalArchivalClient(client()); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public DataArchivalCapabilitiesClient capabilities() { + return new DataArchivalCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public DataArchivalRunsClient runs() { + return new DataArchivalRunsClient(client()); + } + + /** + * Calls the contract route {@code GET /data/archival/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/archival/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_ARCHIVAL_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/archival/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_ARCHIVAL_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/archival/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/archival/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/archival/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/archival/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_ARCHIVAL_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/archival/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_ARCHIVAL_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/archival/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/archival/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataArchivalRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataArchivalRunsClient.java new file mode 100644 index 0000000..de5f1fb --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataArchivalRunsClient.java @@ -0,0 +1,173 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/archival/runs. Generated by scripts/generate_endpoints.py. */ +public final class DataArchivalRunsClient extends ServiceClient { + DataArchivalRunsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/archival/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/archival/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_ARCHIVAL_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/archival/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_ARCHIVAL_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/archival/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/archival/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/archival/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/archival/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_ARCHIVAL_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/archival/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_ARCHIVAL_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/archival/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/archival/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/archival/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/archival/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_ARCHIVAL_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/archival/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_ARCHIVAL_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/archival/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/archival/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataCatalogCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataCatalogCapabilitiesClient.java new file mode 100644 index 0000000..154307e --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataCatalogCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/catalog/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class DataCatalogCapabilitiesClient extends ServiceClient { + DataCatalogCapabilitiesClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/catalog/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/catalog/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_CATALOG_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_CATALOG_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataCatalogCatalogClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataCatalogCatalogClient.java new file mode 100644 index 0000000..119ddbb --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataCatalogCatalogClient.java @@ -0,0 +1,22 @@ +package dev.frontal.sdk; + +/** Contract operations for data/catalog/catalog. Generated by scripts/generate_endpoints.py. */ +public final class DataCatalogCatalogClient extends ServiceClient { + DataCatalogCatalogClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the datasets resource client + */ + public DataCatalogCatalogDatasetsClient datasets() { + return new DataCatalogCatalogDatasetsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the sources resource client + */ + public DataCatalogCatalogSourcesClient sources() { + return new DataCatalogCatalogSourcesClient(client()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataCatalogCatalogDatasetsArtifactsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataCatalogCatalogDatasetsArtifactsClient.java new file mode 100644 index 0000000..3ea7f6a --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataCatalogCatalogDatasetsArtifactsClient.java @@ -0,0 +1,84 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/catalog/catalog/datasets/artifacts. Generated by scripts/generate_endpoints.py. */ +public final class DataCatalogCatalogDatasetsArtifactsClient extends ServiceClient { + DataCatalogCatalogDatasetsArtifactsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/catalog/catalog/datasets/{param}/artifacts/{param}/content}. + * @param decoded response type + * @param datasetId datasetId supplied to the operation + * @param manifestId manifestId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/catalog/catalog/datasets/{param}/artifacts/{param}/content") + public @Nullable T getContent(String datasetId, String manifestId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_CATALOG_CATALOG_DATASETS_PARAM_ARTIFACTS_PARAM_CONTENT, + List.of(datasetId, manifestId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/catalog/datasets/{param}/artifacts/{param}/content} using a generic response type. + * @param decoded response type + * @param datasetId datasetId supplied to the operation + * @param manifestId manifestId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getContent( + String datasetId, String manifestId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_CATALOG_CATALOG_DATASETS_PARAM_ARTIFACTS_PARAM_CONTENT, + List.of(datasetId, manifestId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/catalog/datasets/{param}/artifacts/{param}/content} without query parameters. + * @param decoded response type + * @param datasetId datasetId supplied to the operation + * @param manifestId manifestId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getContent(String datasetId, String manifestId, Class responseType) + throws IOException, InterruptedException { + return getContent(datasetId, manifestId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/catalog/datasets/{param}/artifacts/{param}/content} without query parameters using a generic response type. + * @param decoded response type + * @param datasetId datasetId supplied to the operation + * @param manifestId manifestId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getContent(String datasetId, String manifestId, TypeReference responseType) + throws IOException, InterruptedException { + return getContent(datasetId, manifestId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataCatalogCatalogDatasetsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataCatalogCatalogDatasetsClient.java new file mode 100644 index 0000000..a1750ce --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataCatalogCatalogDatasetsClient.java @@ -0,0 +1,126 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/catalog/catalog/datasets. Generated by scripts/generate_endpoints.py. */ +public final class DataCatalogCatalogDatasetsClient extends ServiceClient { + DataCatalogCatalogDatasetsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the artifacts resource client + */ + public DataCatalogCatalogDatasetsArtifactsClient artifacts() { + return new DataCatalogCatalogDatasetsArtifactsClient(client()); + } + + /** + * Calls the contract route {@code GET /data/catalog/catalog/datasets}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/catalog/catalog/datasets") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_CATALOG_CATALOG_DATASETS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/catalog/datasets} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_CATALOG_CATALOG_DATASETS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/catalog/datasets} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/catalog/datasets} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/catalog/catalog/datasets/{param}}. + * @param decoded response type + * @param datasetId datasetId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/catalog/catalog/datasets/{param}") + public @Nullable T get(String datasetId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_CATALOG_CATALOG_DATASETS_PARAM, List.of(datasetId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/catalog/datasets/{param}} using a generic response type. + * @param decoded response type + * @param datasetId datasetId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String datasetId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_CATALOG_CATALOG_DATASETS_PARAM, List.of(datasetId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/catalog/datasets/{param}} without query parameters. + * @param decoded response type + * @param datasetId datasetId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String datasetId, Class responseType) throws IOException, InterruptedException { + return get(datasetId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/catalog/datasets/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param datasetId datasetId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String datasetId, TypeReference responseType) + throws IOException, InterruptedException { + return get(datasetId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataCatalogCatalogSourcesClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataCatalogCatalogSourcesClient.java new file mode 100644 index 0000000..598aa55 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataCatalogCatalogSourcesClient.java @@ -0,0 +1,119 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/catalog/catalog/sources. Generated by scripts/generate_endpoints.py. */ +public final class DataCatalogCatalogSourcesClient extends ServiceClient { + DataCatalogCatalogSourcesClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/catalog/catalog/sources}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/catalog/catalog/sources") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_CATALOG_CATALOG_SOURCES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/catalog/sources} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_CATALOG_CATALOG_SOURCES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/catalog/sources} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/catalog/sources} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/catalog/catalog/sources/{param}}. + * @param decoded response type + * @param sourceId sourceId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/catalog/catalog/sources/{param}") + public @Nullable T get(String sourceId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_CATALOG_CATALOG_SOURCES_PARAM, List.of(sourceId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/catalog/sources/{param}} using a generic response type. + * @param decoded response type + * @param sourceId sourceId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String sourceId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_CATALOG_CATALOG_SOURCES_PARAM, List.of(sourceId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/catalog/sources/{param}} without query parameters. + * @param decoded response type + * @param sourceId sourceId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String sourceId, Class responseType) throws IOException, InterruptedException { + return get(sourceId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/catalog/sources/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param sourceId sourceId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String sourceId, TypeReference responseType) + throws IOException, InterruptedException { + return get(sourceId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataCatalogClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataCatalogClient.java new file mode 100644 index 0000000..7ddd17b --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataCatalogClient.java @@ -0,0 +1,132 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/catalog. Generated by scripts/generate_endpoints.py. */ +public final class DataCatalogClient extends ServiceClient { + DataCatalogClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public DataCatalogCapabilitiesClient capabilities() { + return new DataCatalogCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the catalog resource client + */ + public DataCatalogCatalogClient catalog() { + return new DataCatalogCatalogClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public DataCatalogRunsClient runs() { + return new DataCatalogRunsClient(client()); + } + + /** + * Calls the contract route {@code GET /data/catalog/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/catalog/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_CATALOG_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_CATALOG_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/catalog/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/catalog/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_CATALOG_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_CATALOG_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataCatalogRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataCatalogRunsClient.java new file mode 100644 index 0000000..4d7358d --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataCatalogRunsClient.java @@ -0,0 +1,173 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/catalog/runs. Generated by scripts/generate_endpoints.py. */ +public final class DataCatalogRunsClient extends ServiceClient { + DataCatalogRunsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/catalog/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/catalog/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_CATALOG_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_CATALOG_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/catalog/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/catalog/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_CATALOG_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_CATALOG_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/catalog/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/catalog/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/catalog/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_CATALOG_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/catalog/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_CATALOG_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/catalog/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/catalog/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataClient.java new file mode 100644 index 0000000..56f731f --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataClient.java @@ -0,0 +1,113 @@ +package dev.frontal.sdk; + +/** Contract operations for data. Generated by scripts/generate_endpoints.py. */ +public final class DataClient extends ServiceClient { + DataClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the aggregations resource client + */ + public DataAggregationsClient aggregations() { + return new DataAggregationsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the archival resource client + */ + public DataArchivalClient archival() { + return new DataArchivalClient(client()); + } + + /** Returns the client for the nested resource. + * @return the catalog resource client + */ + public DataCatalogClient catalog() { + return new DataCatalogClient(client()); + } + + /** Returns the client for the nested resource. + * @return the enrichment resource client + */ + public DataEnrichmentClient enrichment() { + return new DataEnrichmentClient(client()); + } + + /** Returns the client for the nested resource. + * @return the exports resource client + */ + public DataExportsClient exports() { + return new DataExportsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the ingest resource client + */ + public DataIngestClient ingest() { + return new DataIngestClient(client()); + } + + /** Returns the client for the nested resource. + * @return the normalization resource client + */ + public DataNormalizationClient normalization() { + return new DataNormalizationClient(client()); + } + + /** Returns the client for the nested resource. + * @return the pipelines resource client + */ + public DataPipelinesClient pipelines() { + return new DataPipelinesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the quality resource client + */ + public DataQualityClient quality() { + return new DataQualityClient(client()); + } + + /** Returns the client for the nested resource. + * @return the query resource client + */ + public DataQueryClient query() { + return new DataQueryClient(client()); + } + + /** Returns the client for the nested resource. + * @return the schemas resource client + */ + public DataSchemasClient schemas() { + return new DataSchemasClient(client()); + } + + /** Returns the client for the nested resource. + * @return the serving resource client + */ + public DataServingClient serving() { + return new DataServingClient(client()); + } + + /** Returns the client for the nested resource. + * @return the streams resource client + */ + public DataStreamsClient streams() { + return new DataStreamsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the sync resource client + */ + public DataSyncClient sync() { + return new DataSyncClient(client()); + } + + /** Returns the client for the nested resource. + * @return the transformations resource client + */ + public DataTransformationsClient transformations() { + return new DataTransformationsClient(client()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataEnrichmentCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataEnrichmentCapabilitiesClient.java new file mode 100644 index 0000000..b4936df --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataEnrichmentCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/enrichment/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class DataEnrichmentCapabilitiesClient extends ServiceClient { + DataEnrichmentCapabilitiesClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/enrichment/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/enrichment/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_ENRICHMENT_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/enrichment/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_ENRICHMENT_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/enrichment/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/enrichment/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataEnrichmentClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataEnrichmentClient.java new file mode 100644 index 0000000..48f1de4 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataEnrichmentClient.java @@ -0,0 +1,132 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/enrichment. Generated by scripts/generate_endpoints.py. */ +public final class DataEnrichmentClient extends ServiceClient { + DataEnrichmentClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public DataEnrichmentCapabilitiesClient capabilities() { + return new DataEnrichmentCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the enrichment resource client + */ + public DataEnrichmentEnrichmentClient enrichment() { + return new DataEnrichmentEnrichmentClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public DataEnrichmentRunsClient runs() { + return new DataEnrichmentRunsClient(client()); + } + + /** + * Calls the contract route {@code GET /data/enrichment/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/enrichment/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_ENRICHMENT_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/enrichment/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_ENRICHMENT_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/enrichment/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/enrichment/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/enrichment/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/enrichment/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_ENRICHMENT_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/enrichment/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_ENRICHMENT_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/enrichment/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/enrichment/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataEnrichmentEnrichmentClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataEnrichmentEnrichmentClient.java new file mode 100644 index 0000000..ccdbbc7 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataEnrichmentEnrichmentClient.java @@ -0,0 +1,15 @@ +package dev.frontal.sdk; + +/** Contract operations for data/enrichment/enrichment. Generated by scripts/generate_endpoints.py. */ +public final class DataEnrichmentEnrichmentClient extends ServiceClient { + DataEnrichmentEnrichmentClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the profiles resource client + */ + public DataEnrichmentEnrichmentProfilesClient profiles() { + return new DataEnrichmentEnrichmentProfilesClient(client()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataEnrichmentEnrichmentProfilesClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataEnrichmentEnrichmentProfilesClient.java new file mode 100644 index 0000000..666402f --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataEnrichmentEnrichmentProfilesClient.java @@ -0,0 +1,191 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/enrichment/enrichment/profiles. Generated by scripts/generate_endpoints.py. */ +public final class DataEnrichmentEnrichmentProfilesClient extends ServiceClient { + DataEnrichmentEnrichmentProfilesClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the executions resource client + */ + public DataEnrichmentEnrichmentProfilesExecutionsClient executions() { + return new DataEnrichmentEnrichmentProfilesExecutionsClient(client()); + } + + /** + * Calls the contract route {@code GET /data/enrichment/enrichment/profiles}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/enrichment/enrichment/profiles") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_ENRICHMENT_ENRICHMENT_PROFILES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/enrichment/enrichment/profiles} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_ENRICHMENT_ENRICHMENT_PROFILES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/enrichment/enrichment/profiles} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/enrichment/enrichment/profiles} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/enrichment/enrichment/profiles/{param}}. + * @param decoded response type + * @param profileId profileId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/enrichment/enrichment/profiles/{param}") + public @Nullable T get(String profileId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_ENRICHMENT_ENRICHMENT_PROFILES_PARAM, + List.of(profileId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /data/enrichment/enrichment/profiles/{param}} using a generic response type. + * @param decoded response type + * @param profileId profileId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String profileId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_ENRICHMENT_ENRICHMENT_PROFILES_PARAM, + List.of(profileId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /data/enrichment/enrichment/profiles/{param}} without query parameters. + * @param decoded response type + * @param profileId profileId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String profileId, Class responseType) throws IOException, InterruptedException { + return get(profileId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/enrichment/enrichment/profiles/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param profileId profileId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String profileId, TypeReference responseType) + throws IOException, InterruptedException { + return get(profileId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/enrichment/enrichment/profiles}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/enrichment/enrichment/profiles") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_ENRICHMENT_ENRICHMENT_PROFILES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/enrichment/enrichment/profiles} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_ENRICHMENT_ENRICHMENT_PROFILES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/enrichment/enrichment/profiles} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/enrichment/enrichment/profiles} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataEnrichmentEnrichmentProfilesExecutionsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataEnrichmentEnrichmentProfilesExecutionsClient.java new file mode 100644 index 0000000..8d894c1 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataEnrichmentEnrichmentProfilesExecutionsClient.java @@ -0,0 +1,85 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/enrichment/enrichment/profiles/executions. Generated by scripts/generate_endpoints.py. */ +public final class DataEnrichmentEnrichmentProfilesExecutionsClient extends ServiceClient { + DataEnrichmentEnrichmentProfilesExecutionsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code POST /data/enrichment/enrichment/profiles/{param}/executions}. + * @param decoded response type + * @param profileId profileId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/enrichment/enrichment/profiles/{param}/executions") + public @Nullable T create(String profileId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.POST_DATA_ENRICHMENT_ENRICHMENT_PROFILES_PARAM_EXECUTIONS, + List.of(profileId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /data/enrichment/enrichment/profiles/{param}/executions} using a generic response type. + * @param decoded response type + * @param profileId profileId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create( + String profileId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.POST_DATA_ENRICHMENT_ENRICHMENT_PROFILES_PARAM_EXECUTIONS, + List.of(profileId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /data/enrichment/enrichment/profiles/{param}/executions} without query parameters. + * @param decoded response type + * @param profileId profileId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(String profileId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(profileId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/enrichment/enrichment/profiles/{param}/executions} without query parameters using a generic response type. + * @param decoded response type + * @param profileId profileId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(String profileId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(profileId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataEnrichmentRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataEnrichmentRunsClient.java new file mode 100644 index 0000000..26898ec --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataEnrichmentRunsClient.java @@ -0,0 +1,173 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/enrichment/runs. Generated by scripts/generate_endpoints.py. */ +public final class DataEnrichmentRunsClient extends ServiceClient { + DataEnrichmentRunsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/enrichment/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/enrichment/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_ENRICHMENT_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/enrichment/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_ENRICHMENT_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/enrichment/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/enrichment/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/enrichment/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/enrichment/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_ENRICHMENT_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/enrichment/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_ENRICHMENT_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/enrichment/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/enrichment/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/enrichment/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/enrichment/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_ENRICHMENT_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/enrichment/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_ENRICHMENT_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/enrichment/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/enrichment/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataExportsCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataExportsCapabilitiesClient.java new file mode 100644 index 0000000..3b2ce05 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataExportsCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/exports/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class DataExportsCapabilitiesClient extends ServiceClient { + DataExportsCapabilitiesClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/exports/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/exports/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_EXPORTS_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/exports/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_EXPORTS_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/exports/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/exports/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataExportsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataExportsClient.java new file mode 100644 index 0000000..cbcd338 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataExportsClient.java @@ -0,0 +1,132 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/exports. Generated by scripts/generate_endpoints.py. */ +public final class DataExportsClient extends ServiceClient { + DataExportsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public DataExportsCapabilitiesClient capabilities() { + return new DataExportsCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the exports resource client + */ + public DataExportsExportsClient exports() { + return new DataExportsExportsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public DataExportsRunsClient runs() { + return new DataExportsRunsClient(client()); + } + + /** + * Calls the contract route {@code GET /data/exports/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/exports/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_EXPORTS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/exports/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_EXPORTS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/exports/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/exports/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/exports/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/exports/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_EXPORTS_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/exports/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_EXPORTS_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/exports/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/exports/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataExportsExportsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataExportsExportsClient.java new file mode 100644 index 0000000..af78ec0 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataExportsExportsClient.java @@ -0,0 +1,181 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/exports/exports. Generated by scripts/generate_endpoints.py. */ +public final class DataExportsExportsClient extends ServiceClient { + DataExportsExportsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the executions resource client + */ + public DataExportsExportsExecutionsClient executions() { + return new DataExportsExportsExecutionsClient(client()); + } + + /** + * Calls the contract route {@code GET /data/exports/exports}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/exports/exports") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_EXPORTS_EXPORTS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/exports/exports} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_EXPORTS_EXPORTS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/exports/exports} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/exports/exports} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/exports/exports/{param}}. + * @param decoded response type + * @param exportId exportId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/exports/exports/{param}") + public @Nullable T get(String exportId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_EXPORTS_EXPORTS_PARAM, List.of(exportId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/exports/exports/{param}} using a generic response type. + * @param decoded response type + * @param exportId exportId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String exportId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_EXPORTS_EXPORTS_PARAM, List.of(exportId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/exports/exports/{param}} without query parameters. + * @param decoded response type + * @param exportId exportId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String exportId, Class responseType) throws IOException, InterruptedException { + return get(exportId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/exports/exports/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param exportId exportId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String exportId, TypeReference responseType) + throws IOException, InterruptedException { + return get(exportId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/exports/exports}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/exports/exports") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_EXPORTS_EXPORTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/exports/exports} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_EXPORTS_EXPORTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/exports/exports} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/exports/exports} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataExportsExportsExecutionsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataExportsExportsExecutionsClient.java new file mode 100644 index 0000000..3f2ca45 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataExportsExportsExecutionsClient.java @@ -0,0 +1,85 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/exports/exports/executions. Generated by scripts/generate_endpoints.py. */ +public final class DataExportsExportsExecutionsClient extends ServiceClient { + DataExportsExportsExecutionsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code POST /data/exports/exports/{param}/executions}. + * @param decoded response type + * @param exportId exportId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/exports/exports/{param}/executions") + public @Nullable T create(String exportId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.POST_DATA_EXPORTS_EXPORTS_PARAM_EXECUTIONS, + List.of(exportId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /data/exports/exports/{param}/executions} using a generic response type. + * @param decoded response type + * @param exportId exportId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create( + String exportId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.POST_DATA_EXPORTS_EXPORTS_PARAM_EXECUTIONS, + List.of(exportId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /data/exports/exports/{param}/executions} without query parameters. + * @param decoded response type + * @param exportId exportId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(String exportId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(exportId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/exports/exports/{param}/executions} without query parameters using a generic response type. + * @param decoded response type + * @param exportId exportId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(String exportId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(exportId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataExportsRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataExportsRunsClient.java new file mode 100644 index 0000000..ffac191 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataExportsRunsClient.java @@ -0,0 +1,173 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/exports/runs. Generated by scripts/generate_endpoints.py. */ +public final class DataExportsRunsClient extends ServiceClient { + DataExportsRunsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/exports/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/exports/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_EXPORTS_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/exports/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_EXPORTS_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/exports/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/exports/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/exports/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/exports/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_EXPORTS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/exports/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_EXPORTS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/exports/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/exports/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/exports/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/exports/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_EXPORTS_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/exports/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_EXPORTS_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/exports/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/exports/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataIngestCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataIngestCapabilitiesClient.java new file mode 100644 index 0000000..bde47e5 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataIngestCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/ingest/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class DataIngestCapabilitiesClient extends ServiceClient { + DataIngestCapabilitiesClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/ingest/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/ingest/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_INGEST_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_INGEST_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataIngestClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataIngestClient.java new file mode 100644 index 0000000..d58f594 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataIngestClient.java @@ -0,0 +1,139 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/ingest. Generated by scripts/generate_endpoints.py. */ +public final class DataIngestClient extends ServiceClient { + DataIngestClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public DataIngestCapabilitiesClient capabilities() { + return new DataIngestCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the datasets resource client + */ + public DataIngestDatasetsClient datasets() { + return new DataIngestDatasetsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public DataIngestRunsClient runs() { + return new DataIngestRunsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the schemas resource client + */ + public DataIngestSchemasClient schemas() { + return new DataIngestSchemasClient(client()); + } + + /** + * Calls the contract route {@code GET /data/ingest/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/ingest/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_INGEST_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_INGEST_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/ingest/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/ingest/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_INGEST_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_INGEST_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataIngestDatasetsArtifactsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataIngestDatasetsArtifactsClient.java new file mode 100644 index 0000000..d7686b8 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataIngestDatasetsArtifactsClient.java @@ -0,0 +1,84 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/ingest/datasets/artifacts. Generated by scripts/generate_endpoints.py. */ +public final class DataIngestDatasetsArtifactsClient extends ServiceClient { + DataIngestDatasetsArtifactsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/ingest/datasets/{param}/artifacts/{param}/content}. + * @param decoded response type + * @param datasetId datasetId supplied to the operation + * @param manifestId manifestId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/ingest/datasets/{param}/artifacts/{param}/content") + public @Nullable T getContent(String datasetId, String manifestId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_INGEST_DATASETS_PARAM_ARTIFACTS_PARAM_CONTENT, + List.of(datasetId, manifestId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/datasets/{param}/artifacts/{param}/content} using a generic response type. + * @param decoded response type + * @param datasetId datasetId supplied to the operation + * @param manifestId manifestId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getContent( + String datasetId, String manifestId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_INGEST_DATASETS_PARAM_ARTIFACTS_PARAM_CONTENT, + List.of(datasetId, manifestId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/datasets/{param}/artifacts/{param}/content} without query parameters. + * @param decoded response type + * @param datasetId datasetId supplied to the operation + * @param manifestId manifestId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getContent(String datasetId, String manifestId, Class responseType) + throws IOException, InterruptedException { + return getContent(datasetId, manifestId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/datasets/{param}/artifacts/{param}/content} without query parameters using a generic response type. + * @param decoded response type + * @param datasetId datasetId supplied to the operation + * @param manifestId manifestId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getContent(String datasetId, String manifestId, TypeReference responseType) + throws IOException, InterruptedException { + return getContent(datasetId, manifestId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataIngestDatasetsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataIngestDatasetsClient.java new file mode 100644 index 0000000..eba4798 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataIngestDatasetsClient.java @@ -0,0 +1,181 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/ingest/datasets. Generated by scripts/generate_endpoints.py. */ +public final class DataIngestDatasetsClient extends ServiceClient { + DataIngestDatasetsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the artifacts resource client + */ + public DataIngestDatasetsArtifactsClient artifacts() { + return new DataIngestDatasetsArtifactsClient(client()); + } + + /** + * Calls the contract route {@code GET /data/ingest/datasets}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/ingest/datasets") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_INGEST_DATASETS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/datasets} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_INGEST_DATASETS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/datasets} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/datasets} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/ingest/datasets/{param}}. + * @param decoded response type + * @param datasetId datasetId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/ingest/datasets/{param}") + public @Nullable T get(String datasetId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_INGEST_DATASETS_PARAM, List.of(datasetId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/datasets/{param}} using a generic response type. + * @param decoded response type + * @param datasetId datasetId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String datasetId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_INGEST_DATASETS_PARAM, List.of(datasetId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/datasets/{param}} without query parameters. + * @param decoded response type + * @param datasetId datasetId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String datasetId, Class responseType) throws IOException, InterruptedException { + return get(datasetId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/datasets/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param datasetId datasetId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String datasetId, TypeReference responseType) + throws IOException, InterruptedException { + return get(datasetId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/ingest/datasets/ingest}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/ingest/datasets/ingest") + public @Nullable T ingest(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_INGEST_DATASETS_INGEST, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/ingest/datasets/ingest} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T ingest(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_INGEST_DATASETS_INGEST, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/ingest/datasets/ingest} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T ingest(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return ingest(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/ingest/datasets/ingest} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T ingest(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return ingest(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataIngestRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataIngestRunsClient.java new file mode 100644 index 0000000..f737264 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataIngestRunsClient.java @@ -0,0 +1,173 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/ingest/runs. Generated by scripts/generate_endpoints.py. */ +public final class DataIngestRunsClient extends ServiceClient { + DataIngestRunsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/ingest/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/ingest/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_INGEST_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_INGEST_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/ingest/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/ingest/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_INGEST_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_INGEST_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/ingest/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/ingest/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_INGEST_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/ingest/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_INGEST_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/ingest/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/ingest/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataIngestSchemasClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataIngestSchemasClient.java new file mode 100644 index 0000000..b98abe2 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataIngestSchemasClient.java @@ -0,0 +1,117 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/ingest/schemas. Generated by scripts/generate_endpoints.py. */ +public final class DataIngestSchemasClient extends ServiceClient { + DataIngestSchemasClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/ingest/schemas}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/ingest/schemas") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_INGEST_SCHEMAS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/schemas} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_INGEST_SCHEMAS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/schemas} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/schemas} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/ingest/schemas/{param}}. + * @param decoded response type + * @param schemaRef schemaRef supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/ingest/schemas/{param}") + public @Nullable T get(String schemaRef, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_INGEST_SCHEMAS_PARAM, List.of(schemaRef), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/schemas/{param}} using a generic response type. + * @param decoded response type + * @param schemaRef schemaRef supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String schemaRef, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_INGEST_SCHEMAS_PARAM, List.of(schemaRef), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/schemas/{param}} without query parameters. + * @param decoded response type + * @param schemaRef schemaRef supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String schemaRef, Class responseType) throws IOException, InterruptedException { + return get(schemaRef, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/ingest/schemas/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param schemaRef schemaRef supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String schemaRef, TypeReference responseType) + throws IOException, InterruptedException { + return get(schemaRef, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataNormalizationCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataNormalizationCapabilitiesClient.java new file mode 100644 index 0000000..a3fb406 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataNormalizationCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/normalization/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class DataNormalizationCapabilitiesClient extends ServiceClient { + DataNormalizationCapabilitiesClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/normalization/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/normalization/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_NORMALIZATION_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/normalization/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_NORMALIZATION_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/normalization/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/normalization/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataNormalizationClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataNormalizationClient.java new file mode 100644 index 0000000..84a0d38 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataNormalizationClient.java @@ -0,0 +1,132 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/normalization. Generated by scripts/generate_endpoints.py. */ +public final class DataNormalizationClient extends ServiceClient { + DataNormalizationClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public DataNormalizationCapabilitiesClient capabilities() { + return new DataNormalizationCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the normalization resource client + */ + public DataNormalizationNormalizationClient normalization() { + return new DataNormalizationNormalizationClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public DataNormalizationRunsClient runs() { + return new DataNormalizationRunsClient(client()); + } + + /** + * Calls the contract route {@code GET /data/normalization/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/normalization/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_NORMALIZATION_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/normalization/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_NORMALIZATION_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/normalization/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/normalization/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/normalization/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/normalization/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_NORMALIZATION_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/normalization/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_NORMALIZATION_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/normalization/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/normalization/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataNormalizationNormalizationClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataNormalizationNormalizationClient.java new file mode 100644 index 0000000..4fc6274 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataNormalizationNormalizationClient.java @@ -0,0 +1,15 @@ +package dev.frontal.sdk; + +/** Contract operations for data/normalization/normalization. Generated by scripts/generate_endpoints.py. */ +public final class DataNormalizationNormalizationClient extends ServiceClient { + DataNormalizationNormalizationClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the profiles resource client + */ + public DataNormalizationNormalizationProfilesClient profiles() { + return new DataNormalizationNormalizationProfilesClient(client()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataNormalizationNormalizationProfilesClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataNormalizationNormalizationProfilesClient.java new file mode 100644 index 0000000..e5d4c53 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataNormalizationNormalizationProfilesClient.java @@ -0,0 +1,195 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/normalization/normalization/profiles. Generated by scripts/generate_endpoints.py. */ +public final class DataNormalizationNormalizationProfilesClient extends ServiceClient { + DataNormalizationNormalizationProfilesClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the executions resource client + */ + public DataNormalizationNormalizationProfilesExecutionsClient executions() { + return new DataNormalizationNormalizationProfilesExecutionsClient(client()); + } + + /** + * Calls the contract route {@code GET /data/normalization/normalization/profiles}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/normalization/normalization/profiles") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_NORMALIZATION_NORMALIZATION_PROFILES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/normalization/normalization/profiles} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_NORMALIZATION_NORMALIZATION_PROFILES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/normalization/normalization/profiles} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/normalization/normalization/profiles} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/normalization/normalization/profiles/{param}}. + * @param decoded response type + * @param profileId profileId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/normalization/normalization/profiles/{param}") + public @Nullable T get(String profileId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_NORMALIZATION_NORMALIZATION_PROFILES_PARAM, + List.of(profileId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /data/normalization/normalization/profiles/{param}} using a generic response type. + * @param decoded response type + * @param profileId profileId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String profileId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_NORMALIZATION_NORMALIZATION_PROFILES_PARAM, + List.of(profileId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /data/normalization/normalization/profiles/{param}} without query parameters. + * @param decoded response type + * @param profileId profileId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String profileId, Class responseType) throws IOException, InterruptedException { + return get(profileId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/normalization/normalization/profiles/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param profileId profileId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String profileId, TypeReference responseType) + throws IOException, InterruptedException { + return get(profileId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/normalization/normalization/profiles}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/normalization/normalization/profiles") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.POST_DATA_NORMALIZATION_NORMALIZATION_PROFILES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/normalization/normalization/profiles} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.POST_DATA_NORMALIZATION_NORMALIZATION_PROFILES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/normalization/normalization/profiles} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/normalization/normalization/profiles} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataNormalizationNormalizationProfilesExecutionsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataNormalizationNormalizationProfilesExecutionsClient.java new file mode 100644 index 0000000..ff81e4e --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataNormalizationNormalizationProfilesExecutionsClient.java @@ -0,0 +1,85 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/normalization/normalization/profiles/executions. Generated by scripts/generate_endpoints.py. */ +public final class DataNormalizationNormalizationProfilesExecutionsClient extends ServiceClient { + DataNormalizationNormalizationProfilesExecutionsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code POST /data/normalization/normalization/profiles/{param}/executions}. + * @param decoded response type + * @param profileId profileId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/normalization/normalization/profiles/{param}/executions") + public @Nullable T create(String profileId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.POST_DATA_NORMALIZATION_NORMALIZATION_PROFILES_PARAM_EXECUTIONS, + List.of(profileId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /data/normalization/normalization/profiles/{param}/executions} using a generic response type. + * @param decoded response type + * @param profileId profileId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create( + String profileId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.POST_DATA_NORMALIZATION_NORMALIZATION_PROFILES_PARAM_EXECUTIONS, + List.of(profileId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /data/normalization/normalization/profiles/{param}/executions} without query parameters. + * @param decoded response type + * @param profileId profileId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(String profileId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(profileId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/normalization/normalization/profiles/{param}/executions} without query parameters using a generic response type. + * @param decoded response type + * @param profileId profileId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(String profileId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(profileId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataNormalizationRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataNormalizationRunsClient.java new file mode 100644 index 0000000..1f889ea --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataNormalizationRunsClient.java @@ -0,0 +1,173 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/normalization/runs. Generated by scripts/generate_endpoints.py. */ +public final class DataNormalizationRunsClient extends ServiceClient { + DataNormalizationRunsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/normalization/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/normalization/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_NORMALIZATION_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/normalization/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_NORMALIZATION_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/normalization/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/normalization/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/normalization/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/normalization/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_NORMALIZATION_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/normalization/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_NORMALIZATION_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/normalization/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/normalization/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/normalization/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/normalization/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_NORMALIZATION_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/normalization/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_NORMALIZATION_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/normalization/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/normalization/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataPipelinesCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataPipelinesCapabilitiesClient.java new file mode 100644 index 0000000..ad26b48 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataPipelinesCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/pipelines/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class DataPipelinesCapabilitiesClient extends ServiceClient { + DataPipelinesCapabilitiesClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/pipelines/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/pipelines/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_PIPELINES_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_PIPELINES_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataPipelinesClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataPipelinesClient.java new file mode 100644 index 0000000..eedea89 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataPipelinesClient.java @@ -0,0 +1,139 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/pipelines. Generated by scripts/generate_endpoints.py. */ +public final class DataPipelinesClient extends ServiceClient { + DataPipelinesClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public DataPipelinesCapabilitiesClient capabilities() { + return new DataPipelinesCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the pipeline-runs resource client + */ + public DataPipelinesPipelineRunsClient pipelineRuns() { + return new DataPipelinesPipelineRunsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the pipelines resource client + */ + public DataPipelinesPipelinesClient pipelines() { + return new DataPipelinesPipelinesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public DataPipelinesRunsClient runs() { + return new DataPipelinesRunsClient(client()); + } + + /** + * Calls the contract route {@code GET /data/pipelines/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/pipelines/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_PIPELINES_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_PIPELINES_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/pipelines/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/pipelines/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_PIPELINES_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_PIPELINES_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataPipelinesPipelineRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataPipelinesPipelineRunsClient.java new file mode 100644 index 0000000..775aa73 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataPipelinesPipelineRunsClient.java @@ -0,0 +1,118 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/pipelines/pipeline-runs. Generated by scripts/generate_endpoints.py. */ +public final class DataPipelinesPipelineRunsClient extends ServiceClient { + DataPipelinesPipelineRunsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/pipelines/pipeline-runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/pipelines/pipeline-runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_PIPELINES_PIPELINE_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/pipeline-runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_PIPELINES_PIPELINE_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/pipeline-runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/pipeline-runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/pipelines/pipeline-runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/pipelines/pipeline-runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_PIPELINES_PIPELINE_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/pipeline-runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_PIPELINES_PIPELINE_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/pipeline-runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/pipeline-runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataPipelinesPipelinesClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataPipelinesPipelinesClient.java new file mode 100644 index 0000000..c879874 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataPipelinesPipelinesClient.java @@ -0,0 +1,176 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/pipelines/pipelines. Generated by scripts/generate_endpoints.py. */ +public final class DataPipelinesPipelinesClient extends ServiceClient { + DataPipelinesPipelinesClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/pipelines/pipelines}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/pipelines/pipelines") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_PIPELINES_PIPELINES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/pipelines} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_PIPELINES_PIPELINES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/pipelines} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/pipelines} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/pipelines/pipelines/{param}}. + * @param decoded response type + * @param definitionId definitionId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/pipelines/pipelines/{param}") + public @Nullable T get(String definitionId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_PIPELINES_PIPELINES_PARAM, List.of(definitionId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/pipelines/{param}} using a generic response type. + * @param decoded response type + * @param definitionId definitionId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String definitionId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_PIPELINES_PIPELINES_PARAM, List.of(definitionId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/pipelines/{param}} without query parameters. + * @param decoded response type + * @param definitionId definitionId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String definitionId, Class responseType) throws IOException, InterruptedException { + return get(definitionId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/pipelines/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param definitionId definitionId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String definitionId, TypeReference responseType) + throws IOException, InterruptedException { + return get(definitionId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/pipelines/pipelines}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/pipelines/pipelines") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_PIPELINES_PIPELINES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/pipelines/pipelines} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_PIPELINES_PIPELINES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/pipelines/pipelines} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/pipelines/pipelines} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataPipelinesRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataPipelinesRunsClient.java new file mode 100644 index 0000000..e2fbd05 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataPipelinesRunsClient.java @@ -0,0 +1,173 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/pipelines/runs. Generated by scripts/generate_endpoints.py. */ +public final class DataPipelinesRunsClient extends ServiceClient { + DataPipelinesRunsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/pipelines/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/pipelines/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_PIPELINES_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_PIPELINES_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/pipelines/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/pipelines/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_PIPELINES_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_PIPELINES_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/pipelines/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/pipelines/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_PIPELINES_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/pipelines/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_PIPELINES_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/pipelines/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/pipelines/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataQualityCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataQualityCapabilitiesClient.java new file mode 100644 index 0000000..4f5c053 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataQualityCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/quality/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class DataQualityCapabilitiesClient extends ServiceClient { + DataQualityCapabilitiesClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/quality/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/quality/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_QUALITY_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/quality/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_QUALITY_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/quality/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/quality/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataQualityClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataQualityClient.java new file mode 100644 index 0000000..82ae619 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataQualityClient.java @@ -0,0 +1,132 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/quality. Generated by scripts/generate_endpoints.py. */ +public final class DataQualityClient extends ServiceClient { + DataQualityClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public DataQualityCapabilitiesClient capabilities() { + return new DataQualityCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the quality resource client + */ + public DataQualityQualityClient quality() { + return new DataQualityQualityClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public DataQualityRunsClient runs() { + return new DataQualityRunsClient(client()); + } + + /** + * Calls the contract route {@code GET /data/quality/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/quality/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_QUALITY_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/quality/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_QUALITY_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/quality/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/quality/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/quality/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/quality/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_QUALITY_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/quality/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_QUALITY_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/quality/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/quality/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataQualityQualityClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataQualityQualityClient.java new file mode 100644 index 0000000..404f18c --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataQualityQualityClient.java @@ -0,0 +1,15 @@ +package dev.frontal.sdk; + +/** Contract operations for data/quality/quality. Generated by scripts/generate_endpoints.py. */ +public final class DataQualityQualityClient extends ServiceClient { + DataQualityQualityClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the rulesets resource client + */ + public DataQualityQualityRulesetsClient rulesets() { + return new DataQualityQualityRulesetsClient(client()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataQualityQualityRulesetsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataQualityQualityRulesetsClient.java new file mode 100644 index 0000000..483b95a --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataQualityQualityRulesetsClient.java @@ -0,0 +1,183 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/quality/quality/rulesets. Generated by scripts/generate_endpoints.py. */ +public final class DataQualityQualityRulesetsClient extends ServiceClient { + DataQualityQualityRulesetsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the evaluations resource client + */ + public DataQualityQualityRulesetsEvaluationsClient evaluations() { + return new DataQualityQualityRulesetsEvaluationsClient(client()); + } + + /** + * Calls the contract route {@code GET /data/quality/quality/rulesets}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/quality/quality/rulesets") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_QUALITY_QUALITY_RULESETS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/quality/quality/rulesets} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_QUALITY_QUALITY_RULESETS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/quality/quality/rulesets} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/quality/quality/rulesets} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/quality/quality/rulesets/{param}}. + * @param decoded response type + * @param rulesetId rulesetId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/quality/quality/rulesets/{param}") + public @Nullable T get(String rulesetId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_QUALITY_QUALITY_RULESETS_PARAM, List.of(rulesetId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/quality/quality/rulesets/{param}} using a generic response type. + * @param decoded response type + * @param rulesetId rulesetId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String rulesetId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_QUALITY_QUALITY_RULESETS_PARAM, List.of(rulesetId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/quality/quality/rulesets/{param}} without query parameters. + * @param decoded response type + * @param rulesetId rulesetId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String rulesetId, Class responseType) throws IOException, InterruptedException { + return get(rulesetId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/quality/quality/rulesets/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param rulesetId rulesetId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String rulesetId, TypeReference responseType) + throws IOException, InterruptedException { + return get(rulesetId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/quality/quality/rulesets}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/quality/quality/rulesets") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_QUALITY_QUALITY_RULESETS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/quality/quality/rulesets} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_QUALITY_QUALITY_RULESETS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/quality/quality/rulesets} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/quality/quality/rulesets} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataQualityQualityRulesetsEvaluationsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataQualityQualityRulesetsEvaluationsClient.java new file mode 100644 index 0000000..3b5bbd6 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataQualityQualityRulesetsEvaluationsClient.java @@ -0,0 +1,85 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/quality/quality/rulesets/evaluations. Generated by scripts/generate_endpoints.py. */ +public final class DataQualityQualityRulesetsEvaluationsClient extends ServiceClient { + DataQualityQualityRulesetsEvaluationsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code POST /data/quality/quality/rulesets/{param}/evaluations}. + * @param decoded response type + * @param rulesetId rulesetId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/quality/quality/rulesets/{param}/evaluations") + public @Nullable T create(String rulesetId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.POST_DATA_QUALITY_QUALITY_RULESETS_PARAM_EVALUATIONS, + List.of(rulesetId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /data/quality/quality/rulesets/{param}/evaluations} using a generic response type. + * @param decoded response type + * @param rulesetId rulesetId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create( + String rulesetId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.POST_DATA_QUALITY_QUALITY_RULESETS_PARAM_EVALUATIONS, + List.of(rulesetId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /data/quality/quality/rulesets/{param}/evaluations} without query parameters. + * @param decoded response type + * @param rulesetId rulesetId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(String rulesetId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(rulesetId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/quality/quality/rulesets/{param}/evaluations} without query parameters using a generic response type. + * @param decoded response type + * @param rulesetId rulesetId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(String rulesetId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(rulesetId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataQualityRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataQualityRunsClient.java new file mode 100644 index 0000000..53b0bb9 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataQualityRunsClient.java @@ -0,0 +1,173 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/quality/runs. Generated by scripts/generate_endpoints.py. */ +public final class DataQualityRunsClient extends ServiceClient { + DataQualityRunsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/quality/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/quality/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_QUALITY_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/quality/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_QUALITY_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/quality/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/quality/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/quality/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/quality/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_QUALITY_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/quality/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_QUALITY_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/quality/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/quality/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/quality/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/quality/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_QUALITY_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/quality/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_QUALITY_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/quality/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/quality/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataQueryCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataQueryCapabilitiesClient.java new file mode 100644 index 0000000..ce7f2c0 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataQueryCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/query/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class DataQueryCapabilitiesClient extends ServiceClient { + DataQueryCapabilitiesClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/query/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/query/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_QUERY_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/query/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_QUERY_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/query/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/query/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataQueryClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataQueryClient.java new file mode 100644 index 0000000..0d3abb2 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataQueryClient.java @@ -0,0 +1,132 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/query. Generated by scripts/generate_endpoints.py. */ +public final class DataQueryClient extends ServiceClient { + DataQueryClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public DataQueryCapabilitiesClient capabilities() { + return new DataQueryCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the query resource client + */ + public DataQueryQueryClient query() { + return new DataQueryQueryClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public DataQueryRunsClient runs() { + return new DataQueryRunsClient(client()); + } + + /** + * Calls the contract route {@code GET /data/query/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/query/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_QUERY_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/query/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_QUERY_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/query/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/query/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/query/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/query/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_QUERY_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/query/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_QUERY_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/query/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/query/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataQueryQueryClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataQueryQueryClient.java new file mode 100644 index 0000000..7b1944f --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataQueryQueryClient.java @@ -0,0 +1,70 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/query/query. Generated by scripts/generate_endpoints.py. */ +public final class DataQueryQueryClient extends ServiceClient { + DataQueryQueryClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code POST /data/query/query/federated}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/query/query/federated") + public @Nullable T federated(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_QUERY_QUERY_FEDERATED, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/query/query/federated} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T federated(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_QUERY_QUERY_FEDERATED, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/query/query/federated} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T federated(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return federated(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/query/query/federated} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T federated(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return federated(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataQueryRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataQueryRunsClient.java new file mode 100644 index 0000000..4aad081 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataQueryRunsClient.java @@ -0,0 +1,173 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/query/runs. Generated by scripts/generate_endpoints.py. */ +public final class DataQueryRunsClient extends ServiceClient { + DataQueryRunsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/query/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/query/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_QUERY_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/query/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_QUERY_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/query/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/query/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/query/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/query/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_QUERY_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/query/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_QUERY_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/query/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/query/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/query/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/query/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_QUERY_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/query/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_QUERY_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/query/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/query/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataSchemasCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataSchemasCapabilitiesClient.java new file mode 100644 index 0000000..a420faf --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataSchemasCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/schemas/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class DataSchemasCapabilitiesClient extends ServiceClient { + DataSchemasCapabilitiesClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/schemas/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/schemas/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SCHEMAS_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/schemas/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SCHEMAS_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/schemas/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/schemas/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataSchemasClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataSchemasClient.java new file mode 100644 index 0000000..dc545b4 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataSchemasClient.java @@ -0,0 +1,132 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/schemas. Generated by scripts/generate_endpoints.py. */ +public final class DataSchemasClient extends ServiceClient { + DataSchemasClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public DataSchemasCapabilitiesClient capabilities() { + return new DataSchemasCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public DataSchemasRunsClient runs() { + return new DataSchemasRunsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the schemas resource client + */ + public DataSchemasSchemasClient schemas() { + return new DataSchemasSchemasClient(client()); + } + + /** + * Calls the contract route {@code GET /data/schemas/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/schemas/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SCHEMAS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/schemas/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SCHEMAS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/schemas/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/schemas/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/schemas/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/schemas/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SCHEMAS_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/schemas/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SCHEMAS_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/schemas/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/schemas/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataSchemasRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataSchemasRunsClient.java new file mode 100644 index 0000000..7de34d4 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataSchemasRunsClient.java @@ -0,0 +1,173 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/schemas/runs. Generated by scripts/generate_endpoints.py. */ +public final class DataSchemasRunsClient extends ServiceClient { + DataSchemasRunsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/schemas/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/schemas/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SCHEMAS_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/schemas/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SCHEMAS_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/schemas/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/schemas/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/schemas/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/schemas/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SCHEMAS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/schemas/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SCHEMAS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/schemas/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/schemas/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/schemas/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/schemas/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_SCHEMAS_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/schemas/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_SCHEMAS_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/schemas/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/schemas/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataSchemasSchemasClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataSchemasSchemasClient.java new file mode 100644 index 0000000..cb88601 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataSchemasSchemasClient.java @@ -0,0 +1,230 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/schemas/schemas. Generated by scripts/generate_endpoints.py. */ +public final class DataSchemasSchemasClient extends ServiceClient { + DataSchemasSchemasClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/schemas/schemas}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/schemas/schemas") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SCHEMAS_SCHEMAS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/schemas/schemas} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SCHEMAS_SCHEMAS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/schemas/schemas} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/schemas/schemas} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/schemas/schemas/{param}}. + * @param decoded response type + * @param schemaRef schemaRef supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/schemas/schemas/{param}") + public @Nullable T get(String schemaRef, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SCHEMAS_SCHEMAS_PARAM, List.of(schemaRef), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/schemas/schemas/{param}} using a generic response type. + * @param decoded response type + * @param schemaRef schemaRef supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String schemaRef, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SCHEMAS_SCHEMAS_PARAM, List.of(schemaRef), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/schemas/schemas/{param}} without query parameters. + * @param decoded response type + * @param schemaRef schemaRef supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String schemaRef, Class responseType) throws IOException, InterruptedException { + return get(schemaRef, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/schemas/schemas/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param schemaRef schemaRef supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String schemaRef, TypeReference responseType) + throws IOException, InterruptedException { + return get(schemaRef, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/schemas/schemas}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/schemas/schemas") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_SCHEMAS_SCHEMAS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/schemas/schemas} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_SCHEMAS_SCHEMAS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/schemas/schemas} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/schemas/schemas} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /data/schemas/schemas/resolve}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/schemas/schemas/resolve") + public @Nullable T resolve(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_SCHEMAS_SCHEMAS_RESOLVE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/schemas/schemas/resolve} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T resolve(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_SCHEMAS_SCHEMAS_RESOLVE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/schemas/schemas/resolve} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T resolve(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return resolve(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/schemas/schemas/resolve} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T resolve(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return resolve(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataServingCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataServingCapabilitiesClient.java new file mode 100644 index 0000000..18f107b --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataServingCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/serving/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class DataServingCapabilitiesClient extends ServiceClient { + DataServingCapabilitiesClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/serving/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/serving/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SERVING_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/serving/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SERVING_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/serving/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/serving/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataServingClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataServingClient.java new file mode 100644 index 0000000..af9d57d --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataServingClient.java @@ -0,0 +1,132 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/serving. Generated by scripts/generate_endpoints.py. */ +public final class DataServingClient extends ServiceClient { + DataServingClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public DataServingCapabilitiesClient capabilities() { + return new DataServingCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public DataServingRunsClient runs() { + return new DataServingRunsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the serving resource client + */ + public DataServingServingClient serving() { + return new DataServingServingClient(client()); + } + + /** + * Calls the contract route {@code GET /data/serving/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/serving/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SERVING_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/serving/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SERVING_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/serving/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/serving/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/serving/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/serving/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SERVING_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/serving/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SERVING_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/serving/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/serving/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataServingRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataServingRunsClient.java new file mode 100644 index 0000000..fabb753 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataServingRunsClient.java @@ -0,0 +1,173 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/serving/runs. Generated by scripts/generate_endpoints.py. */ +public final class DataServingRunsClient extends ServiceClient { + DataServingRunsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/serving/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/serving/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SERVING_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/serving/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SERVING_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/serving/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/serving/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/serving/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/serving/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SERVING_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/serving/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SERVING_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/serving/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/serving/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/serving/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/serving/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_SERVING_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/serving/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_SERVING_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/serving/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/serving/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataServingServingClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataServingServingClient.java new file mode 100644 index 0000000..1b20f43 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataServingServingClient.java @@ -0,0 +1,15 @@ +package dev.frontal.sdk; + +/** Contract operations for data/serving/serving. Generated by scripts/generate_endpoints.py. */ +public final class DataServingServingClient extends ServiceClient { + DataServingServingClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the products resource client + */ + public DataServingServingProductsClient products() { + return new DataServingServingProductsClient(client()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataServingServingProductsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataServingServingProductsClient.java new file mode 100644 index 0000000..56bb8c0 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataServingServingProductsClient.java @@ -0,0 +1,183 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/serving/serving/products. Generated by scripts/generate_endpoints.py. */ +public final class DataServingServingProductsClient extends ServiceClient { + DataServingServingProductsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the refreshes resource client + */ + public DataServingServingProductsRefreshesClient refreshes() { + return new DataServingServingProductsRefreshesClient(client()); + } + + /** + * Calls the contract route {@code GET /data/serving/serving/products}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/serving/serving/products") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SERVING_SERVING_PRODUCTS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/serving/serving/products} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SERVING_SERVING_PRODUCTS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/serving/serving/products} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/serving/serving/products} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/serving/serving/products/{param}}. + * @param decoded response type + * @param productId productId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/serving/serving/products/{param}") + public @Nullable T get(String productId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_SERVING_SERVING_PRODUCTS_PARAM, List.of(productId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/serving/serving/products/{param}} using a generic response type. + * @param decoded response type + * @param productId productId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String productId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_SERVING_SERVING_PRODUCTS_PARAM, List.of(productId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/serving/serving/products/{param}} without query parameters. + * @param decoded response type + * @param productId productId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String productId, Class responseType) throws IOException, InterruptedException { + return get(productId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/serving/serving/products/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param productId productId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String productId, TypeReference responseType) + throws IOException, InterruptedException { + return get(productId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/serving/serving/products}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/serving/serving/products") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_SERVING_SERVING_PRODUCTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/serving/serving/products} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_SERVING_SERVING_PRODUCTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/serving/serving/products} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/serving/serving/products} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataServingServingProductsRefreshesClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataServingServingProductsRefreshesClient.java new file mode 100644 index 0000000..94ad973 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataServingServingProductsRefreshesClient.java @@ -0,0 +1,85 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/serving/serving/products/refreshes. Generated by scripts/generate_endpoints.py. */ +public final class DataServingServingProductsRefreshesClient extends ServiceClient { + DataServingServingProductsRefreshesClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code POST /data/serving/serving/products/{param}/refreshes}. + * @param decoded response type + * @param productId productId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/serving/serving/products/{param}/refreshes") + public @Nullable T create(String productId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.POST_DATA_SERVING_SERVING_PRODUCTS_PARAM_REFRESHES, + List.of(productId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /data/serving/serving/products/{param}/refreshes} using a generic response type. + * @param decoded response type + * @param productId productId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create( + String productId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.POST_DATA_SERVING_SERVING_PRODUCTS_PARAM_REFRESHES, + List.of(productId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /data/serving/serving/products/{param}/refreshes} without query parameters. + * @param decoded response type + * @param productId productId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(String productId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(productId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/serving/serving/products/{param}/refreshes} without query parameters using a generic response type. + * @param decoded response type + * @param productId productId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(String productId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(productId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataStreamsCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataStreamsCapabilitiesClient.java new file mode 100644 index 0000000..71aad3c --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataStreamsCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/streams/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class DataStreamsCapabilitiesClient extends ServiceClient { + DataStreamsCapabilitiesClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/streams/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/streams/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_STREAMS_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/streams/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_STREAMS_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/streams/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/streams/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataStreamsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataStreamsClient.java new file mode 100644 index 0000000..b284283 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataStreamsClient.java @@ -0,0 +1,132 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/streams. Generated by scripts/generate_endpoints.py. */ +public final class DataStreamsClient extends ServiceClient { + DataStreamsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public DataStreamsCapabilitiesClient capabilities() { + return new DataStreamsCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public DataStreamsRunsClient runs() { + return new DataStreamsRunsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the streams resource client + */ + public DataStreamsStreamsClient streams() { + return new DataStreamsStreamsClient(client()); + } + + /** + * Calls the contract route {@code GET /data/streams/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/streams/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_STREAMS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/streams/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_STREAMS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/streams/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/streams/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/streams/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/streams/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_STREAMS_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/streams/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_STREAMS_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/streams/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/streams/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataStreamsRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataStreamsRunsClient.java new file mode 100644 index 0000000..fd8bb89 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataStreamsRunsClient.java @@ -0,0 +1,173 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/streams/runs. Generated by scripts/generate_endpoints.py. */ +public final class DataStreamsRunsClient extends ServiceClient { + DataStreamsRunsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/streams/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/streams/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_STREAMS_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/streams/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_STREAMS_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/streams/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/streams/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/streams/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/streams/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_STREAMS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/streams/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_STREAMS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/streams/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/streams/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/streams/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/streams/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_STREAMS_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/streams/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_STREAMS_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/streams/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/streams/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataStreamsStreamsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataStreamsStreamsClient.java new file mode 100644 index 0000000..c49d31f --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataStreamsStreamsClient.java @@ -0,0 +1,181 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/streams/streams. Generated by scripts/generate_endpoints.py. */ +public final class DataStreamsStreamsClient extends ServiceClient { + DataStreamsStreamsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the deliveries resource client + */ + public DataStreamsStreamsDeliveriesClient deliveries() { + return new DataStreamsStreamsDeliveriesClient(client()); + } + + /** + * Calls the contract route {@code GET /data/streams/streams}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/streams/streams") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_STREAMS_STREAMS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/streams/streams} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_STREAMS_STREAMS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/streams/streams} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/streams/streams} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/streams/streams/{param}}. + * @param decoded response type + * @param streamId streamId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/streams/streams/{param}") + public @Nullable T get(String streamId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_STREAMS_STREAMS_PARAM, List.of(streamId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/streams/streams/{param}} using a generic response type. + * @param decoded response type + * @param streamId streamId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String streamId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_STREAMS_STREAMS_PARAM, List.of(streamId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/streams/streams/{param}} without query parameters. + * @param decoded response type + * @param streamId streamId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String streamId, Class responseType) throws IOException, InterruptedException { + return get(streamId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/streams/streams/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param streamId streamId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String streamId, TypeReference responseType) + throws IOException, InterruptedException { + return get(streamId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/streams/streams}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/streams/streams") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_STREAMS_STREAMS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/streams/streams} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_STREAMS_STREAMS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/streams/streams} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/streams/streams} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataStreamsStreamsDeliveriesClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataStreamsStreamsDeliveriesClient.java new file mode 100644 index 0000000..49f41fd --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataStreamsStreamsDeliveriesClient.java @@ -0,0 +1,85 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/streams/streams/deliveries. Generated by scripts/generate_endpoints.py. */ +public final class DataStreamsStreamsDeliveriesClient extends ServiceClient { + DataStreamsStreamsDeliveriesClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code POST /data/streams/streams/{param}/deliveries}. + * @param decoded response type + * @param streamId streamId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/streams/streams/{param}/deliveries") + public @Nullable T create(String streamId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.POST_DATA_STREAMS_STREAMS_PARAM_DELIVERIES, + List.of(streamId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /data/streams/streams/{param}/deliveries} using a generic response type. + * @param decoded response type + * @param streamId streamId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create( + String streamId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.POST_DATA_STREAMS_STREAMS_PARAM_DELIVERIES, + List.of(streamId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /data/streams/streams/{param}/deliveries} without query parameters. + * @param decoded response type + * @param streamId streamId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(String streamId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(streamId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/streams/streams/{param}/deliveries} without query parameters using a generic response type. + * @param decoded response type + * @param streamId streamId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(String streamId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(streamId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataSyncCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataSyncCapabilitiesClient.java new file mode 100644 index 0000000..2d1a21c --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataSyncCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/sync/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class DataSyncCapabilitiesClient extends ServiceClient { + DataSyncCapabilitiesClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/sync/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/sync/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SYNC_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/sync/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SYNC_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/sync/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/sync/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataSyncClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataSyncClient.java new file mode 100644 index 0000000..8a1ff2c --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataSyncClient.java @@ -0,0 +1,132 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/sync. Generated by scripts/generate_endpoints.py. */ +public final class DataSyncClient extends ServiceClient { + DataSyncClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public DataSyncCapabilitiesClient capabilities() { + return new DataSyncCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public DataSyncRunsClient runs() { + return new DataSyncRunsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the sync resource client + */ + public DataSyncSyncClient sync() { + return new DataSyncSyncClient(client()); + } + + /** + * Calls the contract route {@code GET /data/sync/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/sync/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SYNC_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/sync/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SYNC_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/sync/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/sync/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/sync/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/sync/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SYNC_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/sync/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SYNC_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/sync/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/sync/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataSyncRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataSyncRunsClient.java new file mode 100644 index 0000000..00fb925 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataSyncRunsClient.java @@ -0,0 +1,173 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/sync/runs. Generated by scripts/generate_endpoints.py. */ +public final class DataSyncRunsClient extends ServiceClient { + DataSyncRunsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/sync/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/sync/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SYNC_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/sync/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SYNC_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/sync/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/sync/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/sync/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/sync/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SYNC_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/sync/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SYNC_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/sync/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/sync/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/sync/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/sync/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_SYNC_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/sync/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_SYNC_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/sync/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/sync/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataSyncSyncClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataSyncSyncClient.java new file mode 100644 index 0000000..26c8986 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataSyncSyncClient.java @@ -0,0 +1,15 @@ +package dev.frontal.sdk; + +/** Contract operations for data/sync/sync. Generated by scripts/generate_endpoints.py. */ +public final class DataSyncSyncClient extends ServiceClient { + DataSyncSyncClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the jobs resource client + */ + public DataSyncSyncJobsClient jobs() { + return new DataSyncSyncJobsClient(client()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataSyncSyncJobsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataSyncSyncJobsClient.java new file mode 100644 index 0000000..f72b9e2 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataSyncSyncJobsClient.java @@ -0,0 +1,180 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/sync/sync/jobs. Generated by scripts/generate_endpoints.py. */ +public final class DataSyncSyncJobsClient extends ServiceClient { + DataSyncSyncJobsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the executions resource client + */ + public DataSyncSyncJobsExecutionsClient executions() { + return new DataSyncSyncJobsExecutionsClient(client()); + } + + /** + * Calls the contract route {@code GET /data/sync/sync/jobs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/sync/sync/jobs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SYNC_SYNC_JOBS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/sync/sync/jobs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SYNC_SYNC_JOBS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/sync/sync/jobs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/sync/sync/jobs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/sync/sync/jobs/{param}}. + * @param decoded response type + * @param jobId jobId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/sync/sync/jobs/{param}") + public @Nullable T get(String jobId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SYNC_SYNC_JOBS_PARAM, List.of(jobId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/sync/sync/jobs/{param}} using a generic response type. + * @param decoded response type + * @param jobId jobId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String jobId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_SYNC_SYNC_JOBS_PARAM, List.of(jobId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/sync/sync/jobs/{param}} without query parameters. + * @param decoded response type + * @param jobId jobId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String jobId, Class responseType) throws IOException, InterruptedException { + return get(jobId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/sync/sync/jobs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param jobId jobId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String jobId, TypeReference responseType) throws IOException, InterruptedException { + return get(jobId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/sync/sync/jobs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/sync/sync/jobs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_SYNC_SYNC_JOBS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/sync/sync/jobs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_SYNC_SYNC_JOBS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/sync/sync/jobs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/sync/sync/jobs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataSyncSyncJobsExecutionsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataSyncSyncJobsExecutionsClient.java new file mode 100644 index 0000000..d04947b --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataSyncSyncJobsExecutionsClient.java @@ -0,0 +1,77 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/sync/sync/jobs/executions. Generated by scripts/generate_endpoints.py. */ +public final class DataSyncSyncJobsExecutionsClient extends ServiceClient { + DataSyncSyncJobsExecutionsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code POST /data/sync/sync/jobs/{param}/executions}. + * @param decoded response type + * @param jobId jobId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/sync/sync/jobs/{param}/executions") + public @Nullable T create(String jobId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.POST_DATA_SYNC_SYNC_JOBS_PARAM_EXECUTIONS, List.of(jobId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/sync/sync/jobs/{param}/executions} using a generic response type. + * @param decoded response type + * @param jobId jobId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create( + String jobId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.POST_DATA_SYNC_SYNC_JOBS_PARAM_EXECUTIONS, List.of(jobId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/sync/sync/jobs/{param}/executions} without query parameters. + * @param decoded response type + * @param jobId jobId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(String jobId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(jobId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/sync/sync/jobs/{param}/executions} without query parameters using a generic response type. + * @param decoded response type + * @param jobId jobId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(String jobId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(jobId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataTransformationsCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataTransformationsCapabilitiesClient.java new file mode 100644 index 0000000..c246a7d --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataTransformationsCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/transformations/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class DataTransformationsCapabilitiesClient extends ServiceClient { + DataTransformationsCapabilitiesClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/transformations/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/transformations/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_TRANSFORMATIONS_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/transformations/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_TRANSFORMATIONS_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/transformations/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/transformations/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataTransformationsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataTransformationsClient.java new file mode 100644 index 0000000..c82d72f --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataTransformationsClient.java @@ -0,0 +1,132 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/transformations. Generated by scripts/generate_endpoints.py. */ +public final class DataTransformationsClient extends ServiceClient { + DataTransformationsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public DataTransformationsCapabilitiesClient capabilities() { + return new DataTransformationsCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public DataTransformationsRunsClient runs() { + return new DataTransformationsRunsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the transformations resource client + */ + public DataTransformationsTransformationsClient transformations() { + return new DataTransformationsTransformationsClient(client()); + } + + /** + * Calls the contract route {@code GET /data/transformations/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/transformations/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_TRANSFORMATIONS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/transformations/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_TRANSFORMATIONS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/transformations/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/transformations/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/transformations/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/transformations/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_TRANSFORMATIONS_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/transformations/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_TRANSFORMATIONS_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/transformations/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/transformations/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataTransformationsRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataTransformationsRunsClient.java new file mode 100644 index 0000000..c7af806 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataTransformationsRunsClient.java @@ -0,0 +1,173 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/transformations/runs. Generated by scripts/generate_endpoints.py. */ +public final class DataTransformationsRunsClient extends ServiceClient { + DataTransformationsRunsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code GET /data/transformations/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/transformations/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_TRANSFORMATIONS_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/transformations/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_TRANSFORMATIONS_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/transformations/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/transformations/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/transformations/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/transformations/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_TRANSFORMATIONS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/transformations/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_TRANSFORMATIONS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/transformations/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/transformations/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/transformations/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/transformations/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_TRANSFORMATIONS_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/transformations/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_TRANSFORMATIONS_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/transformations/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/transformations/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataTransformationsTransformationsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataTransformationsTransformationsClient.java new file mode 100644 index 0000000..4517cdb --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataTransformationsTransformationsClient.java @@ -0,0 +1,192 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/transformations/transformations. Generated by scripts/generate_endpoints.py. */ +public final class DataTransformationsTransformationsClient extends ServiceClient { + DataTransformationsTransformationsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** Returns the client for the nested resource. + * @return the executions resource client + */ + public DataTransformationsTransformationsExecutionsClient executions() { + return new DataTransformationsTransformationsExecutionsClient(client()); + } + + /** + * Calls the contract route {@code GET /data/transformations/transformations}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/transformations/transformations") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_TRANSFORMATIONS_TRANSFORMATIONS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/transformations/transformations} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.GET_DATA_TRANSFORMATIONS_TRANSFORMATIONS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/transformations/transformations} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/transformations/transformations} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/transformations/transformations/{param}}. + * @param decoded response type + * @param transformationId transformationId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|GET|/data/transformations/transformations/{param}") + public @Nullable T get(String transformationId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_TRANSFORMATIONS_TRANSFORMATIONS_PARAM, + List.of(transformationId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /data/transformations/transformations/{param}} using a generic response type. + * @param decoded response type + * @param transformationId transformationId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String transformationId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.GET_DATA_TRANSFORMATIONS_TRANSFORMATIONS_PARAM, + List.of(transformationId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /data/transformations/transformations/{param}} without query parameters. + * @param decoded response type + * @param transformationId transformationId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String transformationId, Class responseType) + throws IOException, InterruptedException { + return get(transformationId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/transformations/transformations/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param transformationId transformationId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String transformationId, TypeReference responseType) + throws IOException, InterruptedException { + return get(transformationId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/transformations/transformations}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/transformations/transformations") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_TRANSFORMATIONS_TRANSFORMATIONS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/transformations/transformations} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Data.POST_DATA_TRANSFORMATIONS_TRANSFORMATIONS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/transformations/transformations} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/transformations/transformations} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/DataTransformationsTransformationsExecutionsClient.java b/services/src/main/java/dev/frontal/sdk/resources/DataTransformationsTransformationsExecutionsClient.java new file mode 100644 index 0000000..b7774e8 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/DataTransformationsTransformationsExecutionsClient.java @@ -0,0 +1,86 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for data/transformations/transformations/executions. Generated by scripts/generate_endpoints.py. */ +public final class DataTransformationsTransformationsExecutionsClient extends ServiceClient { + DataTransformationsTransformationsExecutionsClient(ApiClient client) { + super(ApiService.DATA, client); + } + + /** + * Calls the contract route {@code POST /data/transformations/transformations/{param}/executions}. + * @param decoded response type + * @param transformationId transformationId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("data|POST|/data/transformations/transformations/{param}/executions") + public @Nullable T create( + String transformationId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.POST_DATA_TRANSFORMATIONS_TRANSFORMATIONS_PARAM_EXECUTIONS, + List.of(transformationId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /data/transformations/transformations/{param}/executions} using a generic response type. + * @param decoded response type + * @param transformationId transformationId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create( + String transformationId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Data.POST_DATA_TRANSFORMATIONS_TRANSFORMATIONS_PARAM_EXECUTIONS, + List.of(transformationId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /data/transformations/transformations/{param}/executions} without query parameters. + * @param decoded response type + * @param transformationId transformationId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(String transformationId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(transformationId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/transformations/transformations/{param}/executions} without query parameters using a generic response type. + * @param decoded response type + * @param transformationId transformationId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(String transformationId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(transformationId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/Endpoints.java b/services/src/main/java/dev/frontal/sdk/resources/Endpoints.java index 6d8739e..10ca367 100644 --- a/services/src/main/java/dev/frontal/sdk/resources/Endpoints.java +++ b/services/src/main/java/dev/frontal/sdk/resources/Endpoints.java @@ -4,38 +4,47 @@ public final class Endpoints { private Endpoints() {} - public static final class ActionRuns { - private ActionRuns() {} - - public static final Endpoint GET_ACTION_RUNS_PARAM = - new Endpoint(ApiService.ACTION_RUNS, HttpMethod.GET, "/action-runs/{param}"); - } - public static final class Agents { private Agents() {} + /** Endpoint for {@code DELETE /agents/{param}}. */ public static final Endpoint DELETE_AGENTS_PARAM = new Endpoint(ApiService.AGENTS, HttpMethod.DELETE, "/agents/{param}"); + /** Endpoint for {@code GET /action-runs/{param}}. */ + public static final Endpoint GET_ACTION_RUNS_PARAM = + new Endpoint(ApiService.AGENTS, HttpMethod.GET, "/action-runs/{param}"); + /** Endpoint for {@code GET /agents}. */ public static final Endpoint GET_AGENTS = new Endpoint(ApiService.AGENTS, HttpMethod.GET, "/agents"); + /** Endpoint for {@code GET /agents/health}. */ public static final Endpoint GET_AGENTS_HEALTH = new Endpoint(ApiService.AGENTS, HttpMethod.GET, "/agents/health"); + /** Endpoint for {@code GET /agents/runs/{param}}. */ public static final Endpoint GET_AGENTS_RUNS_PARAM = new Endpoint(ApiService.AGENTS, HttpMethod.GET, "/agents/runs/{param}"); + /** Endpoint for {@code GET /agents/runs/{param}/conversation}. */ public static final Endpoint GET_AGENTS_RUNS_PARAM_CONVERSATION = new Endpoint(ApiService.AGENTS, HttpMethod.GET, "/agents/runs/{param}/conversation"); + /** Endpoint for {@code GET /agents/{param}}. */ public static final Endpoint GET_AGENTS_PARAM = new Endpoint(ApiService.AGENTS, HttpMethod.GET, "/agents/{param}"); + /** Endpoint for {@code GET /agents/{param}/runs}. */ public static final Endpoint GET_AGENTS_PARAM_RUNS = new Endpoint(ApiService.AGENTS, HttpMethod.GET, "/agents/{param}/runs"); + /** Endpoint for {@code GET /agents/{param}/versions}. */ public static final Endpoint GET_AGENTS_PARAM_VERSIONS = new Endpoint(ApiService.AGENTS, HttpMethod.GET, "/agents/{param}/versions"); + /** Endpoint for {@code POST /agents}. */ public static final Endpoint POST_AGENTS = new Endpoint(ApiService.AGENTS, HttpMethod.POST, "/agents"); + /** Endpoint for {@code POST /agents/{param}/rollback}. */ public static final Endpoint POST_AGENTS_PARAM_ROLLBACK = new Endpoint(ApiService.AGENTS, HttpMethod.POST, "/agents/{param}/rollback"); + /** Endpoint for {@code POST /agents/{param}/runs}. */ public static final Endpoint POST_AGENTS_PARAM_RUNS = new Endpoint(ApiService.AGENTS, HttpMethod.POST, "/agents/{param}/runs"); + /** Endpoint for {@code PUT /agents/{param}}. */ public static final Endpoint PUT_AGENTS_PARAM = new Endpoint(ApiService.AGENTS, HttpMethod.PUT, "/agents/{param}"); + /** Endpoint for {@code STREAM /agents/runs/{param}/stream}. */ public static final Endpoint STREAM_AGENTS_RUNS_PARAM_STREAM = new Endpoint(ApiService.AGENTS, HttpMethod.STREAM, "/agents/runs/{param}/stream"); } @@ -43,21 +52,30 @@ private Agents() {} public static final class Ai { private Ai() {} + /** Endpoint for {@code GET /health}. */ public static final Endpoint GET_HEALTH = new Endpoint(ApiService.AI, HttpMethod.GET, "/health"); + /** Endpoint for {@code GET /internal/models}. */ public static final Endpoint GET_INTERNAL_MODELS = new Endpoint(ApiService.AI, HttpMethod.GET, "/internal/models"); + /** Endpoint for {@code GET /internal/models/defaults}. */ public static final Endpoint GET_INTERNAL_MODELS_DEFAULTS = new Endpoint(ApiService.AI, HttpMethod.GET, "/internal/models/defaults"); + /** Endpoint for {@code POST /ai/chat/completions}. */ public static final Endpoint POST_AI_CHAT_COMPLETIONS = new Endpoint(ApiService.AI, HttpMethod.POST, "/ai/chat/completions"); + /** Endpoint for {@code POST /internal/embeddings}. */ public static final Endpoint POST_INTERNAL_EMBEDDINGS = new Endpoint(ApiService.AI, HttpMethod.POST, "/internal/embeddings"); + /** Endpoint for {@code POST /internal/predictions}. */ public static final Endpoint POST_INTERNAL_PREDICTIONS = new Endpoint(ApiService.AI, HttpMethod.POST, "/internal/predictions"); + /** Endpoint for {@code POST /internal/rerank}. */ public static final Endpoint POST_INTERNAL_RERANK = new Endpoint(ApiService.AI, HttpMethod.POST, "/internal/rerank"); + /** Endpoint for {@code POSTFORMDATA /internal/predictions}. */ public static final Endpoint POSTFORMDATA_INTERNAL_PREDICTIONS = new Endpoint(ApiService.AI, HttpMethod.POSTFORMDATA, "/internal/predictions"); + /** Endpoint for {@code POSTRAW /internal/predictions}. */ public static final Endpoint POSTRAW_INTERNAL_PREDICTIONS = new Endpoint(ApiService.AI, HttpMethod.POSTRAW, "/internal/predictions"); } @@ -65,11 +83,15 @@ private Ai() {} public static final class Audit { private Audit() {} + /** Endpoint for {@code GET /audit/events}. */ public static final Endpoint GET_AUDIT_EVENTS = new Endpoint(ApiService.AUDIT, HttpMethod.GET, "/audit/events"); + /** Endpoint for {@code GET /audit/events/{param}}. */ public static final Endpoint GET_AUDIT_EVENTS_PARAM = new Endpoint(ApiService.AUDIT, HttpMethod.GET, "/audit/events/{param}"); + /** Endpoint for {@code POST /audit/events}. */ public static final Endpoint POST_AUDIT_EVENTS = new Endpoint(ApiService.AUDIT, HttpMethod.POST, "/audit/events"); + /** Endpoint for {@code POST /audit/events/batch}. */ public static final Endpoint POST_AUDIT_EVENTS_BATCH = new Endpoint(ApiService.AUDIT, HttpMethod.POST, "/audit/events/batch"); } @@ -77,176 +99,265 @@ private Audit() {} public static final class Auth { private Auth() {} + /** Endpoint for {@code DELETE /auth/account/mfa/{param}}. */ public static final Endpoint DELETE_AUTH_ACCOUNT_MFA_PARAM = new Endpoint(ApiService.AUTH, HttpMethod.DELETE, "/auth/account/mfa/{param}"); + /** Endpoint for {@code DELETE /auth/account/profile}. */ public static final Endpoint DELETE_AUTH_ACCOUNT_PROFILE = new Endpoint(ApiService.AUTH, HttpMethod.DELETE, "/auth/account/profile"); + /** Endpoint for {@code DELETE /auth/account/security/api-keys/{param}}. */ public static final Endpoint DELETE_AUTH_ACCOUNT_SECURITY_API_KEYS_PARAM = new Endpoint(ApiService.AUTH, HttpMethod.DELETE, "/auth/account/security/api-keys/{param}"); + /** Endpoint for {@code DELETE /auth/account/security/devices/{param}}. */ public static final Endpoint DELETE_AUTH_ACCOUNT_SECURITY_DEVICES_PARAM = new Endpoint(ApiService.AUTH, HttpMethod.DELETE, "/auth/account/security/devices/{param}"); + /** Endpoint for {@code DELETE /auth/account/sessions/{param}}. */ public static final Endpoint DELETE_AUTH_ACCOUNT_SESSIONS_PARAM = new Endpoint(ApiService.AUTH, HttpMethod.DELETE, "/auth/account/sessions/{param}"); + /** Endpoint for {@code DELETE /auth/admin/users/{param}}. */ public static final Endpoint DELETE_AUTH_ADMIN_USERS_PARAM = new Endpoint(ApiService.AUTH, HttpMethod.DELETE, "/auth/admin/users/{param}"); + /** Endpoint for {@code DELETE /auth/admin/users/{param}/factors/{param}}. */ public static final Endpoint DELETE_AUTH_ADMIN_USERS_PARAM_FACTORS_PARAM = new Endpoint(ApiService.AUTH, HttpMethod.DELETE, "/auth/admin/users/{param}/factors/{param}"); + /** Endpoint for {@code DELETE /auth/factors/{param}}. */ public static final Endpoint DELETE_AUTH_FACTORS_PARAM = new Endpoint(ApiService.AUTH, HttpMethod.DELETE, "/auth/factors/{param}"); + /** Endpoint for {@code DELETE /auth/user/identities/{param}}. */ public static final Endpoint DELETE_AUTH_USER_IDENTITIES_PARAM = new Endpoint(ApiService.AUTH, HttpMethod.DELETE, "/auth/user/identities/{param}"); + /** Endpoint for {@code GET /auth/account/audit-log}. */ public static final Endpoint GET_AUTH_ACCOUNT_AUDIT_LOG = new Endpoint(ApiService.AUTH, HttpMethod.GET, "/auth/account/audit-log"); + /** Endpoint for {@code GET /auth/account/mfa}. */ public static final Endpoint GET_AUTH_ACCOUNT_MFA = new Endpoint(ApiService.AUTH, HttpMethod.GET, "/auth/account/mfa"); + /** Endpoint for {@code GET /auth/account/mfa/{param}}. */ public static final Endpoint GET_AUTH_ACCOUNT_MFA_PARAM = new Endpoint(ApiService.AUTH, HttpMethod.GET, "/auth/account/mfa/{param}"); + /** Endpoint for {@code GET /auth/account/profile}. */ public static final Endpoint GET_AUTH_ACCOUNT_PROFILE = new Endpoint(ApiService.AUTH, HttpMethod.GET, "/auth/account/profile"); + /** Endpoint for {@code GET /auth/account/security/api-keys}. */ public static final Endpoint GET_AUTH_ACCOUNT_SECURITY_API_KEYS = new Endpoint(ApiService.AUTH, HttpMethod.GET, "/auth/account/security/api-keys"); + /** Endpoint for {@code GET /auth/account/security/api-keys/{param}}. */ public static final Endpoint GET_AUTH_ACCOUNT_SECURITY_API_KEYS_PARAM = new Endpoint(ApiService.AUTH, HttpMethod.GET, "/auth/account/security/api-keys/{param}"); + /** Endpoint for {@code GET /auth/account/security/devices}. */ public static final Endpoint GET_AUTH_ACCOUNT_SECURITY_DEVICES = new Endpoint(ApiService.AUTH, HttpMethod.GET, "/auth/account/security/devices"); + /** Endpoint for {@code GET /auth/account/security/devices/{param}}. */ public static final Endpoint GET_AUTH_ACCOUNT_SECURITY_DEVICES_PARAM = new Endpoint(ApiService.AUTH, HttpMethod.GET, "/auth/account/security/devices/{param}"); + /** Endpoint for {@code GET /auth/account/sessions}. */ public static final Endpoint GET_AUTH_ACCOUNT_SESSIONS = new Endpoint(ApiService.AUTH, HttpMethod.GET, "/auth/account/sessions"); + /** Endpoint for {@code GET /auth/admin/users}. */ public static final Endpoint GET_AUTH_ADMIN_USERS = new Endpoint(ApiService.AUTH, HttpMethod.GET, "/auth/admin/users"); + /** Endpoint for {@code GET /auth/admin/users/{param}}. */ public static final Endpoint GET_AUTH_ADMIN_USERS_PARAM = new Endpoint(ApiService.AUTH, HttpMethod.GET, "/auth/admin/users/{param}"); + /** Endpoint for {@code GET /auth/admin/users/{param}/factors}. */ public static final Endpoint GET_AUTH_ADMIN_USERS_PARAM_FACTORS = new Endpoint(ApiService.AUTH, HttpMethod.GET, "/auth/admin/users/{param}/factors"); + /** Endpoint for {@code GET /auth/auth/session}. */ public static final Endpoint GET_AUTH_AUTH_SESSION = new Endpoint(ApiService.AUTH, HttpMethod.GET, "/auth/auth/session"); + /** Endpoint for {@code GET /auth/factors}. */ public static final Endpoint GET_AUTH_FACTORS = new Endpoint(ApiService.AUTH, HttpMethod.GET, "/auth/factors"); + /** Endpoint for {@code GET /auth/mfa/status}. */ public static final Endpoint GET_AUTH_MFA_STATUS = new Endpoint(ApiService.AUTH, HttpMethod.GET, "/auth/mfa/status"); + /** Endpoint for {@code GET /auth/user}. */ public static final Endpoint GET_AUTH_USER = new Endpoint(ApiService.AUTH, HttpMethod.GET, "/auth/user"); + /** Endpoint for {@code GET /auth/user/identities}. */ public static final Endpoint GET_AUTH_USER_IDENTITIES = new Endpoint(ApiService.AUTH, HttpMethod.GET, "/auth/user/identities"); + /** Endpoint for {@code POST /auth/account/mfa}. */ public static final Endpoint POST_AUTH_ACCOUNT_MFA = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/account/mfa"); + /** Endpoint for {@code POST /auth/account/mfa/{param}/challenge}. */ public static final Endpoint POST_AUTH_ACCOUNT_MFA_PARAM_CHALLENGE = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/account/mfa/{param}/challenge"); + /** Endpoint for {@code POST /auth/account/mfa/{param}/verify}. */ public static final Endpoint POST_AUTH_ACCOUNT_MFA_PARAM_VERIFY = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/account/mfa/{param}/verify"); + /** Endpoint for {@code POST /auth/account/password}. */ public static final Endpoint POST_AUTH_ACCOUNT_PASSWORD = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/account/password"); + /** Endpoint for {@code POST /auth/account/security/api-keys}. */ public static final Endpoint POST_AUTH_ACCOUNT_SECURITY_API_KEYS = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/account/security/api-keys"); + /** Endpoint for {@code POST /auth/account/security/devices}. */ public static final Endpoint POST_AUTH_ACCOUNT_SECURITY_DEVICES = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/account/security/devices"); + /** Endpoint for {@code POST /auth/account/security/devices/{param}/trust}. */ public static final Endpoint POST_AUTH_ACCOUNT_SECURITY_DEVICES_PARAM_TRUST = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/account/security/devices/{param}/trust"); + /** Endpoint for {@code POST /auth/account/sessions/{param}/extend}. */ public static final Endpoint POST_AUTH_ACCOUNT_SESSIONS_PARAM_EXTEND = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/account/sessions/{param}/extend"); + /** Endpoint for {@code POST /auth/admin/generate_link}. */ public static final Endpoint POST_AUTH_ADMIN_GENERATE_LINK = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/admin/generate_link"); + /** Endpoint for {@code POST /auth/admin/logout}. */ public static final Endpoint POST_AUTH_ADMIN_LOGOUT = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/admin/logout"); + /** Endpoint for {@code POST /auth/admin/users}. */ public static final Endpoint POST_AUTH_ADMIN_USERS = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/admin/users"); + /** Endpoint for {@code POST /auth/auth/session}. */ public static final Endpoint POST_AUTH_AUTH_SESSION = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/auth/session"); + /** Endpoint for {@code POST /auth/authorize}. */ public static final Endpoint POST_AUTH_AUTHORIZE = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/authorize"); + /** Endpoint for {@code POST /auth/factors}. */ public static final Endpoint POST_AUTH_FACTORS = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/factors"); + /** Endpoint for {@code POST /auth/factors/{param}/challenge}. */ public static final Endpoint POST_AUTH_FACTORS_PARAM_CHALLENGE = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/factors/{param}/challenge"); + /** Endpoint for {@code POST /auth/factors/{param}/verify}. */ public static final Endpoint POST_AUTH_FACTORS_PARAM_VERIFY = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/factors/{param}/verify"); + /** Endpoint for {@code POST /auth/invite}. */ public static final Endpoint POST_AUTH_INVITE = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/invite"); + /** Endpoint for {@code POST /auth/login}. */ public static final Endpoint POST_AUTH_LOGIN = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/login"); + /** Endpoint for {@code POST /auth/logout}. */ public static final Endpoint POST_AUTH_LOGOUT = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/logout"); + /** Endpoint for {@code POST /auth/mfa/backup-codes/regenerate}. */ public static final Endpoint POST_AUTH_MFA_BACKUP_CODES_REGENERATE = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/mfa/backup-codes/regenerate"); + /** Endpoint for {@code POST /auth/mfa/disable}. */ public static final Endpoint POST_AUTH_MFA_DISABLE = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/mfa/disable"); + /** Endpoint for {@code POST /auth/mfa/enable}. */ public static final Endpoint POST_AUTH_MFA_ENABLE = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/mfa/enable"); + /** Endpoint for {@code POST /auth/mfa/setup}. */ public static final Endpoint POST_AUTH_MFA_SETUP = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/mfa/setup"); + /** Endpoint for {@code POST /auth/mfa/verify}. */ public static final Endpoint POST_AUTH_MFA_VERIFY = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/mfa/verify"); + /** Endpoint for {@code POST /auth/otp}. */ public static final Endpoint POST_AUTH_OTP = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/otp"); + /** Endpoint for {@code POST /auth/reauthenticate}. */ public static final Endpoint POST_AUTH_REAUTHENTICATE = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/reauthenticate"); + /** Endpoint for {@code POST /auth/recover}. */ public static final Endpoint POST_AUTH_RECOVER = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/recover"); + /** Endpoint for {@code POST /auth/resend}. */ public static final Endpoint POST_AUTH_RESEND = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/resend"); + /** Endpoint for {@code POST /auth/signup}. */ public static final Endpoint POST_AUTH_SIGNUP = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/signup"); + /** Endpoint for {@code POST /auth/sso}. */ public static final Endpoint POST_AUTH_SSO = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/sso"); + /** Endpoint for {@code POST /auth/token?grant_type=id_token}. */ public static final Endpoint POST_AUTH_TOKEN_GRANT_TYPE_ID_TOKEN = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/token?grant_type=id_token"); + /** Endpoint for {@code POST /auth/token?grant_type=password}. */ public static final Endpoint POST_AUTH_TOKEN_GRANT_TYPE_PASSWORD = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/token?grant_type=password"); + /** Endpoint for {@code POST /auth/token?grant_type=pkce}. */ public static final Endpoint POST_AUTH_TOKEN_GRANT_TYPE_PKCE = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/token?grant_type=pkce"); + /** Endpoint for {@code POST /auth/token?grant_type=refresh_token}. */ public static final Endpoint POST_AUTH_TOKEN_GRANT_TYPE_REFRESH_TOKEN = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/token?grant_type=refresh_token"); + /** Endpoint for {@code POST /auth/user/identities}. */ public static final Endpoint POST_AUTH_USER_IDENTITIES = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/user/identities"); + /** Endpoint for {@code POST /auth/verify}. */ public static final Endpoint POST_AUTH_VERIFY = new Endpoint(ApiService.AUTH, HttpMethod.POST, "/auth/verify"); + /** Endpoint for {@code PUT /auth/account/profile}. */ public static final Endpoint PUT_AUTH_ACCOUNT_PROFILE = new Endpoint(ApiService.AUTH, HttpMethod.PUT, "/auth/account/profile"); + /** Endpoint for {@code PUT /auth/account/security/api-keys/{param}}. */ public static final Endpoint PUT_AUTH_ACCOUNT_SECURITY_API_KEYS_PARAM = new Endpoint(ApiService.AUTH, HttpMethod.PUT, "/auth/account/security/api-keys/{param}"); + /** Endpoint for {@code PUT /auth/admin/users/{param}}. */ public static final Endpoint PUT_AUTH_ADMIN_USERS_PARAM = new Endpoint(ApiService.AUTH, HttpMethod.PUT, "/auth/admin/users/{param}"); + /** Endpoint for {@code PUT /auth/user}. */ public static final Endpoint PUT_AUTH_USER = new Endpoint(ApiService.AUTH, HttpMethod.PUT, "/auth/user"); } public static final class Billing { private Billing() {} + /** Endpoint for {@code GET /billing/addons/{param}/entitlements}. */ public static final Endpoint GET_BILLING_ADDONS_PARAM_ENTITLEMENTS = new Endpoint(ApiService.BILLING, HttpMethod.GET, "/billing/addons/{param}/entitlements"); + /** Endpoint for {@code GET /billing/customers/portal/{param}}. */ public static final Endpoint GET_BILLING_CUSTOMERS_PORTAL_PARAM = new Endpoint(ApiService.BILLING, HttpMethod.GET, "/billing/customers/portal/{param}"); + /** Endpoint for {@code GET /billing/customers/{param}/entitlements}. */ public static final Endpoint GET_BILLING_CUSTOMERS_PARAM_ENTITLEMENTS = new Endpoint(ApiService.BILLING, HttpMethod.GET, "/billing/customers/{param}/entitlements"); + /** Endpoint for {@code GET /billing/customers/{param}/invoices/summary}. */ public static final Endpoint GET_BILLING_CUSTOMERS_PARAM_INVOICES_SUMMARY = new Endpoint(ApiService.BILLING, HttpMethod.GET, "/billing/customers/{param}/invoices/summary"); + /** Endpoint for {@code GET /billing/customers/{param}/usage}. */ public static final Endpoint GET_BILLING_CUSTOMERS_PARAM_USAGE = new Endpoint(ApiService.BILLING, HttpMethod.GET, "/billing/customers/{param}/usage"); + /** Endpoint for {@code GET /billing/customers/{param}/wallets}. */ public static final Endpoint GET_BILLING_CUSTOMERS_PARAM_WALLETS = new Endpoint(ApiService.BILLING, HttpMethod.GET, "/billing/customers/{param}/wallets"); + /** Endpoint for {@code GET /billing/plans/{param}/entitlements}. */ public static final Endpoint GET_BILLING_PLANS_PARAM_ENTITLEMENTS = new Endpoint(ApiService.BILLING, HttpMethod.GET, "/billing/plans/{param}/entitlements"); + /** Endpoint for {@code GET /billing/prices/lookup/{param}}. */ public static final Endpoint GET_BILLING_PRICES_LOOKUP_PARAM = new Endpoint(ApiService.BILLING, HttpMethod.GET, "/billing/prices/lookup/{param}"); + /** Endpoint for {@code GET /billing/subscriptions/{param}/entitlements}. */ public static final Endpoint GET_BILLING_SUBSCRIPTIONS_PARAM_ENTITLEMENTS = new Endpoint(ApiService.BILLING, HttpMethod.GET, "/billing/subscriptions/{param}/entitlements"); + /** Endpoint for {@code GET /billing/wallets/{param}/balance/real-time}. */ public static final Endpoint GET_BILLING_WALLETS_PARAM_BALANCE_REAL_TIME = new Endpoint(ApiService.BILLING, HttpMethod.GET, "/billing/wallets/{param}/balance/real-time"); + /** Endpoint for {@code GET /billing/wallets/{param}/transactions}. */ public static final Endpoint GET_BILLING_WALLETS_PARAM_TRANSACTIONS = new Endpoint(ApiService.BILLING, HttpMethod.GET, "/billing/wallets/{param}/transactions"); + /** Endpoint for {@code GETRAW /billing/invoices/{param}/pdf}. */ public static final Endpoint GETRAW_BILLING_INVOICES_PARAM_PDF = new Endpoint(ApiService.BILLING, HttpMethod.GETRAW, "/billing/invoices/{param}/pdf"); + /** Endpoint for {@code POST /billing/invoices/preview}. */ public static final Endpoint POST_BILLING_INVOICES_PREVIEW = new Endpoint(ApiService.BILLING, HttpMethod.POST, "/billing/invoices/preview"); + /** Endpoint for {@code POST /billing/invoices/{param}/finalize}. */ public static final Endpoint POST_BILLING_INVOICES_PARAM_FINALIZE = new Endpoint(ApiService.BILLING, HttpMethod.POST, "/billing/invoices/{param}/finalize"); + /** Endpoint for {@code POST /billing/invoices/{param}/void}. */ public static final Endpoint POST_BILLING_INVOICES_PARAM_VOID = new Endpoint(ApiService.BILLING, HttpMethod.POST, "/billing/invoices/{param}/void"); + /** Endpoint for {@code POST /billing/meters/{param}/disable}. */ public static final Endpoint POST_BILLING_METERS_PARAM_DISABLE = new Endpoint(ApiService.BILLING, HttpMethod.POST, "/billing/meters/{param}/disable"); + /** Endpoint for {@code POST /billing/plans/{param}/clone}. */ public static final Endpoint POST_BILLING_PLANS_PARAM_CLONE = new Endpoint(ApiService.BILLING, HttpMethod.POST, "/billing/plans/{param}/clone"); + /** Endpoint for {@code POST /billing/subscriptions/{param}/activate}. */ public static final Endpoint POST_BILLING_SUBSCRIPTIONS_PARAM_ACTIVATE = new Endpoint(ApiService.BILLING, HttpMethod.POST, "/billing/subscriptions/{param}/activate"); + /** Endpoint for {@code POST /billing/subscriptions/{param}/cancel}. */ public static final Endpoint POST_BILLING_SUBSCRIPTIONS_PARAM_CANCEL = new Endpoint(ApiService.BILLING, HttpMethod.POST, "/billing/subscriptions/{param}/cancel"); + /** Endpoint for {@code POST /billing/subscriptions/{param}/pause}. */ public static final Endpoint POST_BILLING_SUBSCRIPTIONS_PARAM_PAUSE = new Endpoint(ApiService.BILLING, HttpMethod.POST, "/billing/subscriptions/{param}/pause"); + /** Endpoint for {@code POST /billing/subscriptions/{param}/resume}. */ public static final Endpoint POST_BILLING_SUBSCRIPTIONS_PARAM_RESUME = new Endpoint(ApiService.BILLING, HttpMethod.POST, "/billing/subscriptions/{param}/resume"); + /** Endpoint for {@code POST /billing/wallets/{param}/terminate}. */ public static final Endpoint POST_BILLING_WALLETS_PARAM_TERMINATE = new Endpoint(ApiService.BILLING, HttpMethod.POST, "/billing/wallets/{param}/terminate"); + /** Endpoint for {@code POST /billing/wallets/{param}/top-up}. */ public static final Endpoint POST_BILLING_WALLETS_PARAM_TOP_UP = new Endpoint(ApiService.BILLING, HttpMethod.POST, "/billing/wallets/{param}/top-up"); } @@ -254,20 +365,28 @@ private Billing() {} public static final class Blob { private Blob() {} + /** Endpoint for {@code DELETE /blob/object/{param}/{param}}. */ public static final Endpoint DELETE_BLOB_OBJECT_PARAM_PARAM = new Endpoint(ApiService.BLOB, HttpMethod.DELETE, "/blob/object/{param}/{param}"); + /** Endpoint for {@code GET /blob/object/info/{param}/{param}}. */ public static final Endpoint GET_BLOB_OBJECT_INFO_PARAM_PARAM = new Endpoint(ApiService.BLOB, HttpMethod.GET, "/blob/object/info/{param}/{param}"); + /** Endpoint for {@code GET /blob/object/{param}/{param}}. */ public static final Endpoint GET_BLOB_OBJECT_PARAM_PARAM = new Endpoint(ApiService.BLOB, HttpMethod.GET, "/blob/object/{param}/{param}"); + /** Endpoint for {@code POST /blob/object/copy}. */ public static final Endpoint POST_BLOB_OBJECT_COPY = new Endpoint(ApiService.BLOB, HttpMethod.POST, "/blob/object/copy"); + /** Endpoint for {@code POST /blob/object/list/{param}}. */ public static final Endpoint POST_BLOB_OBJECT_LIST_PARAM = new Endpoint(ApiService.BLOB, HttpMethod.POST, "/blob/object/list/{param}"); + /** Endpoint for {@code POST /blob/object/move}. */ public static final Endpoint POST_BLOB_OBJECT_MOVE = new Endpoint(ApiService.BLOB, HttpMethod.POST, "/blob/object/move"); + /** Endpoint for {@code POST /blob/object/sign/{param}/{param}}. */ public static final Endpoint POST_BLOB_OBJECT_SIGN_PARAM_PARAM = new Endpoint(ApiService.BLOB, HttpMethod.POST, "/blob/object/sign/{param}/{param}"); + /** Endpoint for {@code POSTFORMDATA /blob/object/{param}/{param}}. */ public static final Endpoint POSTFORMDATA_BLOB_OBJECT_PARAM_PARAM = new Endpoint(ApiService.BLOB, HttpMethod.POSTFORMDATA, "/blob/object/{param}/{param}"); } @@ -275,28 +394,40 @@ private Blob() {} public static final class Connectors { private Connectors() {} + /** Endpoint for {@code DELETE /connectors/installations/{param}}. */ public static final Endpoint DELETE_CONNECTORS_INSTALLATIONS_PARAM = new Endpoint(ApiService.CONNECTORS, HttpMethod.DELETE, "/connectors/installations/{param}"); + /** Endpoint for {@code GET /connectors/catalog}. */ public static final Endpoint GET_CONNECTORS_CATALOG = new Endpoint(ApiService.CONNECTORS, HttpMethod.GET, "/connectors/catalog"); + /** Endpoint for {@code GET /connectors/catalog/{param}}. */ public static final Endpoint GET_CONNECTORS_CATALOG_PARAM = new Endpoint(ApiService.CONNECTORS, HttpMethod.GET, "/connectors/catalog/{param}"); + /** Endpoint for {@code GET /connectors/connection-tests/{param}}. */ public static final Endpoint GET_CONNECTORS_CONNECTION_TESTS_PARAM = new Endpoint(ApiService.CONNECTORS, HttpMethod.GET, "/connectors/connection-tests/{param}"); + /** Endpoint for {@code GET /connectors/installations}. */ public static final Endpoint GET_CONNECTORS_INSTALLATIONS = new Endpoint(ApiService.CONNECTORS, HttpMethod.GET, "/connectors/installations"); + /** Endpoint for {@code GET /connectors/installations/{param}}. */ public static final Endpoint GET_CONNECTORS_INSTALLATIONS_PARAM = new Endpoint(ApiService.CONNECTORS, HttpMethod.GET, "/connectors/installations/{param}"); + /** Endpoint for {@code GET /diagnostics}. */ public static final Endpoint GET_DIAGNOSTICS = new Endpoint(ApiService.CONNECTORS, HttpMethod.GET, "/diagnostics"); + /** Endpoint for {@code PATCH /connectors/installations/{param}}. */ public static final Endpoint PATCH_CONNECTORS_INSTALLATIONS_PARAM = new Endpoint(ApiService.CONNECTORS, HttpMethod.PATCH, "/connectors/installations/{param}"); + /** Endpoint for {@code POST /connectors/installations}. */ public static final Endpoint POST_CONNECTORS_INSTALLATIONS = new Endpoint(ApiService.CONNECTORS, HttpMethod.POST, "/connectors/installations"); + /** Endpoint for {@code POST /connectors/installations/{param}/pause}. */ public static final Endpoint POST_CONNECTORS_INSTALLATIONS_PARAM_PAUSE = new Endpoint(ApiService.CONNECTORS, HttpMethod.POST, "/connectors/installations/{param}/pause"); + /** Endpoint for {@code POST /connectors/installations/{param}/resume}. */ public static final Endpoint POST_CONNECTORS_INSTALLATIONS_PARAM_RESUME = new Endpoint(ApiService.CONNECTORS, HttpMethod.POST, "/connectors/installations/{param}/resume"); + /** Endpoint for {@code POST /connectors/sync-runs/{param}/replay}. */ public static final Endpoint POST_CONNECTORS_SYNC_RUNS_PARAM_REPLAY = new Endpoint(ApiService.CONNECTORS, HttpMethod.POST, "/connectors/sync-runs/{param}/replay"); } @@ -304,6 +435,7 @@ private Connectors() {} public static final class ConnectionTests { private ConnectionTests() {} + /** Endpoint for {@code GET /connection-tests/{param}}. */ public static final Endpoint GET_CONNECTION_TESTS_PARAM = new Endpoint(ApiService.CONNECTION_TESTS, HttpMethod.GET, "/connection-tests/{param}"); } @@ -311,306 +443,457 @@ private ConnectionTests() {} public static final class Data { private Data() {} + /** Endpoint for {@code GET /data/aggregations/aggregations}. */ public static final Endpoint GET_DATA_AGGREGATIONS_AGGREGATIONS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/aggregations/aggregations"); + /** Endpoint for {@code GET /data/aggregations/aggregations/{param}}. */ public static final Endpoint GET_DATA_AGGREGATIONS_AGGREGATIONS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/aggregations/aggregations/{param}"); + /** Endpoint for {@code GET /data/aggregations/capabilities}. */ public static final Endpoint GET_DATA_AGGREGATIONS_CAPABILITIES = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/aggregations/capabilities"); + /** Endpoint for {@code GET /data/aggregations/health}. */ public static final Endpoint GET_DATA_AGGREGATIONS_HEALTH = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/aggregations/health"); + /** Endpoint for {@code GET /data/aggregations/info}. */ public static final Endpoint GET_DATA_AGGREGATIONS_INFO = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/aggregations/info"); + /** Endpoint for {@code GET /data/aggregations/runs}. */ public static final Endpoint GET_DATA_AGGREGATIONS_RUNS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/aggregations/runs"); + /** Endpoint for {@code GET /data/aggregations/runs/{param}}. */ public static final Endpoint GET_DATA_AGGREGATIONS_RUNS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/aggregations/runs/{param}"); + /** Endpoint for {@code GET /data/archival/archival/policies}. */ public static final Endpoint GET_DATA_ARCHIVAL_ARCHIVAL_POLICIES = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/archival/archival/policies"); + /** Endpoint for {@code GET /data/archival/archival/policies/{param}}. */ public static final Endpoint GET_DATA_ARCHIVAL_ARCHIVAL_POLICIES_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/archival/archival/policies/{param}"); + /** Endpoint for {@code GET /data/archival/capabilities}. */ public static final Endpoint GET_DATA_ARCHIVAL_CAPABILITIES = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/archival/capabilities"); + /** Endpoint for {@code GET /data/archival/health}. */ public static final Endpoint GET_DATA_ARCHIVAL_HEALTH = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/archival/health"); + /** Endpoint for {@code GET /data/archival/info}. */ public static final Endpoint GET_DATA_ARCHIVAL_INFO = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/archival/info"); + /** Endpoint for {@code GET /data/archival/runs}. */ public static final Endpoint GET_DATA_ARCHIVAL_RUNS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/archival/runs"); + /** Endpoint for {@code GET /data/archival/runs/{param}}. */ public static final Endpoint GET_DATA_ARCHIVAL_RUNS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/archival/runs/{param}"); + /** Endpoint for {@code GET /data/catalog/capabilities}. */ public static final Endpoint GET_DATA_CATALOG_CAPABILITIES = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/catalog/capabilities"); + /** Endpoint for {@code GET /data/catalog/catalog/datasets}. */ public static final Endpoint GET_DATA_CATALOG_CATALOG_DATASETS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/catalog/catalog/datasets"); + /** Endpoint for {@code GET /data/catalog/catalog/datasets/{param}}. */ public static final Endpoint GET_DATA_CATALOG_CATALOG_DATASETS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/catalog/catalog/datasets/{param}"); + /** Endpoint for {@code GET /data/catalog/catalog/datasets/{param}/artifacts/{param}/content}. */ public static final Endpoint GET_DATA_CATALOG_CATALOG_DATASETS_PARAM_ARTIFACTS_PARAM_CONTENT = new Endpoint( ApiService.DATA, HttpMethod.GET, "/data/catalog/catalog/datasets/{param}/artifacts/{param}/content"); + /** Endpoint for {@code GET /data/catalog/catalog/sources}. */ public static final Endpoint GET_DATA_CATALOG_CATALOG_SOURCES = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/catalog/catalog/sources"); + /** Endpoint for {@code GET /data/catalog/catalog/sources/{param}}. */ public static final Endpoint GET_DATA_CATALOG_CATALOG_SOURCES_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/catalog/catalog/sources/{param}"); + /** Endpoint for {@code GET /data/catalog/health}. */ public static final Endpoint GET_DATA_CATALOG_HEALTH = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/catalog/health"); + /** Endpoint for {@code GET /data/catalog/info}. */ public static final Endpoint GET_DATA_CATALOG_INFO = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/catalog/info"); + /** Endpoint for {@code GET /data/catalog/runs}. */ public static final Endpoint GET_DATA_CATALOG_RUNS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/catalog/runs"); + /** Endpoint for {@code GET /data/catalog/runs/{param}}. */ public static final Endpoint GET_DATA_CATALOG_RUNS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/catalog/runs/{param}"); + /** Endpoint for {@code GET /data/enrichment/capabilities}. */ public static final Endpoint GET_DATA_ENRICHMENT_CAPABILITIES = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/enrichment/capabilities"); + /** Endpoint for {@code GET /data/enrichment/enrichment/profiles}. */ public static final Endpoint GET_DATA_ENRICHMENT_ENRICHMENT_PROFILES = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/enrichment/enrichment/profiles"); + /** Endpoint for {@code GET /data/enrichment/enrichment/profiles/{param}}. */ public static final Endpoint GET_DATA_ENRICHMENT_ENRICHMENT_PROFILES_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/enrichment/enrichment/profiles/{param}"); + /** Endpoint for {@code GET /data/enrichment/health}. */ public static final Endpoint GET_DATA_ENRICHMENT_HEALTH = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/enrichment/health"); + /** Endpoint for {@code GET /data/enrichment/info}. */ public static final Endpoint GET_DATA_ENRICHMENT_INFO = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/enrichment/info"); + /** Endpoint for {@code GET /data/enrichment/runs}. */ public static final Endpoint GET_DATA_ENRICHMENT_RUNS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/enrichment/runs"); + /** Endpoint for {@code GET /data/enrichment/runs/{param}}. */ public static final Endpoint GET_DATA_ENRICHMENT_RUNS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/enrichment/runs/{param}"); + /** Endpoint for {@code GET /data/exports/capabilities}. */ public static final Endpoint GET_DATA_EXPORTS_CAPABILITIES = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/exports/capabilities"); + /** Endpoint for {@code GET /data/exports/exports}. */ public static final Endpoint GET_DATA_EXPORTS_EXPORTS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/exports/exports"); + /** Endpoint for {@code GET /data/exports/exports/{param}}. */ public static final Endpoint GET_DATA_EXPORTS_EXPORTS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/exports/exports/{param}"); + /** Endpoint for {@code GET /data/exports/health}. */ public static final Endpoint GET_DATA_EXPORTS_HEALTH = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/exports/health"); + /** Endpoint for {@code GET /data/exports/info}. */ public static final Endpoint GET_DATA_EXPORTS_INFO = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/exports/info"); + /** Endpoint for {@code GET /data/exports/runs}. */ public static final Endpoint GET_DATA_EXPORTS_RUNS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/exports/runs"); + /** Endpoint for {@code GET /data/exports/runs/{param}}. */ public static final Endpoint GET_DATA_EXPORTS_RUNS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/exports/runs/{param}"); + /** Endpoint for {@code GET /data/ingest/capabilities}. */ public static final Endpoint GET_DATA_INGEST_CAPABILITIES = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/ingest/capabilities"); + /** Endpoint for {@code GET /data/ingest/datasets}. */ public static final Endpoint GET_DATA_INGEST_DATASETS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/ingest/datasets"); + /** Endpoint for {@code GET /data/ingest/datasets/{param}}. */ public static final Endpoint GET_DATA_INGEST_DATASETS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/ingest/datasets/{param}"); + /** Endpoint for {@code GET /data/ingest/datasets/{param}/artifacts/{param}/content}. */ public static final Endpoint GET_DATA_INGEST_DATASETS_PARAM_ARTIFACTS_PARAM_CONTENT = new Endpoint( ApiService.DATA, HttpMethod.GET, "/data/ingest/datasets/{param}/artifacts/{param}/content"); + /** Endpoint for {@code GET /data/ingest/health}. */ public static final Endpoint GET_DATA_INGEST_HEALTH = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/ingest/health"); + /** Endpoint for {@code GET /data/ingest/info}. */ public static final Endpoint GET_DATA_INGEST_INFO = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/ingest/info"); + /** Endpoint for {@code GET /data/ingest/runs}. */ public static final Endpoint GET_DATA_INGEST_RUNS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/ingest/runs"); + /** Endpoint for {@code GET /data/ingest/runs/{param}}. */ public static final Endpoint GET_DATA_INGEST_RUNS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/ingest/runs/{param}"); + /** Endpoint for {@code GET /data/ingest/schemas}. */ public static final Endpoint GET_DATA_INGEST_SCHEMAS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/ingest/schemas"); + /** Endpoint for {@code GET /data/ingest/schemas/{param}}. */ public static final Endpoint GET_DATA_INGEST_SCHEMAS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/ingest/schemas/{param}"); + /** Endpoint for {@code GET /data/normalization/capabilities}. */ public static final Endpoint GET_DATA_NORMALIZATION_CAPABILITIES = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/normalization/capabilities"); + /** Endpoint for {@code GET /data/normalization/health}. */ public static final Endpoint GET_DATA_NORMALIZATION_HEALTH = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/normalization/health"); + /** Endpoint for {@code GET /data/normalization/info}. */ public static final Endpoint GET_DATA_NORMALIZATION_INFO = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/normalization/info"); + /** Endpoint for {@code GET /data/normalization/normalization/profiles}. */ public static final Endpoint GET_DATA_NORMALIZATION_NORMALIZATION_PROFILES = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/normalization/normalization/profiles"); + /** Endpoint for {@code GET /data/normalization/normalization/profiles/{param}}. */ public static final Endpoint GET_DATA_NORMALIZATION_NORMALIZATION_PROFILES_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/normalization/normalization/profiles/{param}"); + /** Endpoint for {@code GET /data/normalization/runs}. */ public static final Endpoint GET_DATA_NORMALIZATION_RUNS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/normalization/runs"); + /** Endpoint for {@code GET /data/normalization/runs/{param}}. */ public static final Endpoint GET_DATA_NORMALIZATION_RUNS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/normalization/runs/{param}"); + /** Endpoint for {@code GET /data/pipelines/capabilities}. */ public static final Endpoint GET_DATA_PIPELINES_CAPABILITIES = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/pipelines/capabilities"); + /** Endpoint for {@code GET /data/pipelines/health}. */ public static final Endpoint GET_DATA_PIPELINES_HEALTH = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/pipelines/health"); + /** Endpoint for {@code GET /data/pipelines/info}. */ public static final Endpoint GET_DATA_PIPELINES_INFO = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/pipelines/info"); + /** Endpoint for {@code GET /data/pipelines/pipeline-runs}. */ public static final Endpoint GET_DATA_PIPELINES_PIPELINE_RUNS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/pipelines/pipeline-runs"); + /** Endpoint for {@code GET /data/pipelines/pipeline-runs/{param}}. */ public static final Endpoint GET_DATA_PIPELINES_PIPELINE_RUNS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/pipelines/pipeline-runs/{param}"); + /** Endpoint for {@code GET /data/pipelines/pipelines}. */ public static final Endpoint GET_DATA_PIPELINES_PIPELINES = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/pipelines/pipelines"); + /** Endpoint for {@code GET /data/pipelines/pipelines/{param}}. */ public static final Endpoint GET_DATA_PIPELINES_PIPELINES_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/pipelines/pipelines/{param}"); + /** Endpoint for {@code GET /data/pipelines/runs}. */ public static final Endpoint GET_DATA_PIPELINES_RUNS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/pipelines/runs"); + /** Endpoint for {@code GET /data/pipelines/runs/{param}}. */ public static final Endpoint GET_DATA_PIPELINES_RUNS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/pipelines/runs/{param}"); + /** Endpoint for {@code GET /data/quality/capabilities}. */ public static final Endpoint GET_DATA_QUALITY_CAPABILITIES = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/quality/capabilities"); + /** Endpoint for {@code GET /data/quality/health}. */ public static final Endpoint GET_DATA_QUALITY_HEALTH = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/quality/health"); + /** Endpoint for {@code GET /data/quality/info}. */ public static final Endpoint GET_DATA_QUALITY_INFO = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/quality/info"); + /** Endpoint for {@code GET /data/quality/quality/rulesets}. */ public static final Endpoint GET_DATA_QUALITY_QUALITY_RULESETS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/quality/quality/rulesets"); + /** Endpoint for {@code GET /data/quality/quality/rulesets/{param}}. */ public static final Endpoint GET_DATA_QUALITY_QUALITY_RULESETS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/quality/quality/rulesets/{param}"); + /** Endpoint for {@code GET /data/quality/runs}. */ public static final Endpoint GET_DATA_QUALITY_RUNS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/quality/runs"); + /** Endpoint for {@code GET /data/quality/runs/{param}}. */ public static final Endpoint GET_DATA_QUALITY_RUNS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/quality/runs/{param}"); + /** Endpoint for {@code GET /data/query/capabilities}. */ public static final Endpoint GET_DATA_QUERY_CAPABILITIES = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/query/capabilities"); + /** Endpoint for {@code GET /data/query/health}. */ public static final Endpoint GET_DATA_QUERY_HEALTH = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/query/health"); + /** Endpoint for {@code GET /data/query/info}. */ public static final Endpoint GET_DATA_QUERY_INFO = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/query/info"); + /** Endpoint for {@code GET /data/query/runs}. */ public static final Endpoint GET_DATA_QUERY_RUNS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/query/runs"); + /** Endpoint for {@code GET /data/query/runs/{param}}. */ public static final Endpoint GET_DATA_QUERY_RUNS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/query/runs/{param}"); + /** Endpoint for {@code GET /data/schemas/capabilities}. */ public static final Endpoint GET_DATA_SCHEMAS_CAPABILITIES = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/schemas/capabilities"); + /** Endpoint for {@code GET /data/schemas/health}. */ public static final Endpoint GET_DATA_SCHEMAS_HEALTH = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/schemas/health"); + /** Endpoint for {@code GET /data/schemas/info}. */ public static final Endpoint GET_DATA_SCHEMAS_INFO = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/schemas/info"); + /** Endpoint for {@code GET /data/schemas/runs}. */ public static final Endpoint GET_DATA_SCHEMAS_RUNS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/schemas/runs"); + /** Endpoint for {@code GET /data/schemas/runs/{param}}. */ public static final Endpoint GET_DATA_SCHEMAS_RUNS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/schemas/runs/{param}"); + /** Endpoint for {@code GET /data/schemas/schemas}. */ public static final Endpoint GET_DATA_SCHEMAS_SCHEMAS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/schemas/schemas"); + /** Endpoint for {@code GET /data/schemas/schemas/{param}}. */ public static final Endpoint GET_DATA_SCHEMAS_SCHEMAS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/schemas/schemas/{param}"); + /** Endpoint for {@code GET /data/serving/capabilities}. */ public static final Endpoint GET_DATA_SERVING_CAPABILITIES = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/serving/capabilities"); + /** Endpoint for {@code GET /data/serving/health}. */ public static final Endpoint GET_DATA_SERVING_HEALTH = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/serving/health"); + /** Endpoint for {@code GET /data/serving/info}. */ public static final Endpoint GET_DATA_SERVING_INFO = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/serving/info"); + /** Endpoint for {@code GET /data/serving/runs}. */ public static final Endpoint GET_DATA_SERVING_RUNS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/serving/runs"); + /** Endpoint for {@code GET /data/serving/runs/{param}}. */ public static final Endpoint GET_DATA_SERVING_RUNS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/serving/runs/{param}"); + /** Endpoint for {@code GET /data/serving/serving/products}. */ public static final Endpoint GET_DATA_SERVING_SERVING_PRODUCTS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/serving/serving/products"); + /** Endpoint for {@code GET /data/serving/serving/products/{param}}. */ public static final Endpoint GET_DATA_SERVING_SERVING_PRODUCTS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/serving/serving/products/{param}"); + /** Endpoint for {@code GET /data/streams/capabilities}. */ public static final Endpoint GET_DATA_STREAMS_CAPABILITIES = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/streams/capabilities"); + /** Endpoint for {@code GET /data/streams/health}. */ public static final Endpoint GET_DATA_STREAMS_HEALTH = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/streams/health"); + /** Endpoint for {@code GET /data/streams/info}. */ public static final Endpoint GET_DATA_STREAMS_INFO = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/streams/info"); + /** Endpoint for {@code GET /data/streams/runs}. */ public static final Endpoint GET_DATA_STREAMS_RUNS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/streams/runs"); + /** Endpoint for {@code GET /data/streams/runs/{param}}. */ public static final Endpoint GET_DATA_STREAMS_RUNS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/streams/runs/{param}"); + /** Endpoint for {@code GET /data/streams/streams}. */ public static final Endpoint GET_DATA_STREAMS_STREAMS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/streams/streams"); + /** Endpoint for {@code GET /data/streams/streams/{param}}. */ public static final Endpoint GET_DATA_STREAMS_STREAMS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/streams/streams/{param}"); + /** Endpoint for {@code GET /data/sync/capabilities}. */ public static final Endpoint GET_DATA_SYNC_CAPABILITIES = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/sync/capabilities"); + /** Endpoint for {@code GET /data/sync/health}. */ public static final Endpoint GET_DATA_SYNC_HEALTH = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/sync/health"); + /** Endpoint for {@code GET /data/sync/info}. */ public static final Endpoint GET_DATA_SYNC_INFO = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/sync/info"); + /** Endpoint for {@code GET /data/sync/runs}. */ public static final Endpoint GET_DATA_SYNC_RUNS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/sync/runs"); + /** Endpoint for {@code GET /data/sync/runs/{param}}. */ public static final Endpoint GET_DATA_SYNC_RUNS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/sync/runs/{param}"); + /** Endpoint for {@code GET /data/sync/sync/jobs}. */ public static final Endpoint GET_DATA_SYNC_SYNC_JOBS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/sync/sync/jobs"); + /** Endpoint for {@code GET /data/sync/sync/jobs/{param}}. */ public static final Endpoint GET_DATA_SYNC_SYNC_JOBS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/sync/sync/jobs/{param}"); + /** Endpoint for {@code GET /data/transformations/capabilities}. */ public static final Endpoint GET_DATA_TRANSFORMATIONS_CAPABILITIES = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/transformations/capabilities"); + /** Endpoint for {@code GET /data/transformations/health}. */ public static final Endpoint GET_DATA_TRANSFORMATIONS_HEALTH = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/transformations/health"); + /** Endpoint for {@code GET /data/transformations/info}. */ public static final Endpoint GET_DATA_TRANSFORMATIONS_INFO = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/transformations/info"); + /** Endpoint for {@code GET /data/transformations/runs}. */ public static final Endpoint GET_DATA_TRANSFORMATIONS_RUNS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/transformations/runs"); + /** Endpoint for {@code GET /data/transformations/runs/{param}}. */ public static final Endpoint GET_DATA_TRANSFORMATIONS_RUNS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/transformations/runs/{param}"); + /** Endpoint for {@code GET /data/transformations/transformations}. */ public static final Endpoint GET_DATA_TRANSFORMATIONS_TRANSFORMATIONS = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/transformations/transformations"); + /** Endpoint for {@code GET /data/transformations/transformations/{param}}. */ public static final Endpoint GET_DATA_TRANSFORMATIONS_TRANSFORMATIONS_PARAM = new Endpoint(ApiService.DATA, HttpMethod.GET, "/data/transformations/transformations/{param}"); + /** Endpoint for {@code POST /data/aggregations/aggregations}. */ public static final Endpoint POST_DATA_AGGREGATIONS_AGGREGATIONS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/aggregations/aggregations"); + /** Endpoint for {@code POST /data/aggregations/aggregations/{param}/executions}. */ public static final Endpoint POST_DATA_AGGREGATIONS_AGGREGATIONS_PARAM_EXECUTIONS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/aggregations/aggregations/{param}/executions"); + /** Endpoint for {@code POST /data/aggregations/runs}. */ public static final Endpoint POST_DATA_AGGREGATIONS_RUNS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/aggregations/runs"); + /** Endpoint for {@code POST /data/archival/archival/policies}. */ public static final Endpoint POST_DATA_ARCHIVAL_ARCHIVAL_POLICIES = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/archival/archival/policies"); + /** Endpoint for {@code POST /data/archival/archival/policies/{param}/executions}. */ public static final Endpoint POST_DATA_ARCHIVAL_ARCHIVAL_POLICIES_PARAM_EXECUTIONS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/archival/archival/policies/{param}/executions"); + /** Endpoint for {@code POST /data/archival/runs}. */ public static final Endpoint POST_DATA_ARCHIVAL_RUNS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/archival/runs"); + /** Endpoint for {@code POST /data/catalog/runs}. */ public static final Endpoint POST_DATA_CATALOG_RUNS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/catalog/runs"); + /** Endpoint for {@code POST /data/enrichment/enrichment/profiles}. */ public static final Endpoint POST_DATA_ENRICHMENT_ENRICHMENT_PROFILES = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/enrichment/enrichment/profiles"); + /** Endpoint for {@code POST /data/enrichment/enrichment/profiles/{param}/executions}. */ public static final Endpoint POST_DATA_ENRICHMENT_ENRICHMENT_PROFILES_PARAM_EXECUTIONS = new Endpoint( ApiService.DATA, HttpMethod.POST, "/data/enrichment/enrichment/profiles/{param}/executions"); + /** Endpoint for {@code POST /data/enrichment/runs}. */ public static final Endpoint POST_DATA_ENRICHMENT_RUNS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/enrichment/runs"); + /** Endpoint for {@code POST /data/exports/exports}. */ public static final Endpoint POST_DATA_EXPORTS_EXPORTS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/exports/exports"); + /** Endpoint for {@code POST /data/exports/exports/{param}/executions}. */ public static final Endpoint POST_DATA_EXPORTS_EXPORTS_PARAM_EXECUTIONS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/exports/exports/{param}/executions"); + /** Endpoint for {@code POST /data/exports/runs}. */ public static final Endpoint POST_DATA_EXPORTS_RUNS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/exports/runs"); + /** Endpoint for {@code POST /data/ingest/datasets/ingest}. */ public static final Endpoint POST_DATA_INGEST_DATASETS_INGEST = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/ingest/datasets/ingest"); + /** Endpoint for {@code POST /data/ingest/runs}. */ public static final Endpoint POST_DATA_INGEST_RUNS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/ingest/runs"); + /** Endpoint for {@code POST /data/normalization/normalization/profiles}. */ public static final Endpoint POST_DATA_NORMALIZATION_NORMALIZATION_PROFILES = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/normalization/normalization/profiles"); + /** Endpoint for {@code POST /data/normalization/normalization/profiles/{param}/executions}. */ public static final Endpoint POST_DATA_NORMALIZATION_NORMALIZATION_PROFILES_PARAM_EXECUTIONS = new Endpoint( ApiService.DATA, HttpMethod.POST, "/data/normalization/normalization/profiles/{param}/executions"); + /** Endpoint for {@code POST /data/normalization/runs}. */ public static final Endpoint POST_DATA_NORMALIZATION_RUNS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/normalization/runs"); + /** Endpoint for {@code POST /data/pipelines/pipelines}. */ public static final Endpoint POST_DATA_PIPELINES_PIPELINES = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/pipelines/pipelines"); + /** Endpoint for {@code POST /data/pipelines/runs}. */ public static final Endpoint POST_DATA_PIPELINES_RUNS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/pipelines/runs"); + /** Endpoint for {@code POST /data/quality/quality/rulesets}. */ public static final Endpoint POST_DATA_QUALITY_QUALITY_RULESETS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/quality/quality/rulesets"); + /** Endpoint for {@code POST /data/quality/quality/rulesets/{param}/evaluations}. */ public static final Endpoint POST_DATA_QUALITY_QUALITY_RULESETS_PARAM_EVALUATIONS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/quality/quality/rulesets/{param}/evaluations"); + /** Endpoint for {@code POST /data/quality/runs}. */ public static final Endpoint POST_DATA_QUALITY_RUNS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/quality/runs"); + /** Endpoint for {@code POST /data/query/query/federated}. */ public static final Endpoint POST_DATA_QUERY_QUERY_FEDERATED = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/query/query/federated"); + /** Endpoint for {@code POST /data/query/runs}. */ public static final Endpoint POST_DATA_QUERY_RUNS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/query/runs"); + /** Endpoint for {@code POST /data/schemas/runs}. */ public static final Endpoint POST_DATA_SCHEMAS_RUNS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/schemas/runs"); + /** Endpoint for {@code POST /data/schemas/schemas}. */ public static final Endpoint POST_DATA_SCHEMAS_SCHEMAS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/schemas/schemas"); + /** Endpoint for {@code POST /data/schemas/schemas/resolve}. */ public static final Endpoint POST_DATA_SCHEMAS_SCHEMAS_RESOLVE = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/schemas/schemas/resolve"); + /** Endpoint for {@code POST /data/serving/runs}. */ public static final Endpoint POST_DATA_SERVING_RUNS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/serving/runs"); + /** Endpoint for {@code POST /data/serving/serving/products}. */ public static final Endpoint POST_DATA_SERVING_SERVING_PRODUCTS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/serving/serving/products"); + /** Endpoint for {@code POST /data/serving/serving/products/{param}/refreshes}. */ public static final Endpoint POST_DATA_SERVING_SERVING_PRODUCTS_PARAM_REFRESHES = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/serving/serving/products/{param}/refreshes"); + /** Endpoint for {@code POST /data/streams/runs}. */ public static final Endpoint POST_DATA_STREAMS_RUNS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/streams/runs"); + /** Endpoint for {@code POST /data/streams/streams}. */ public static final Endpoint POST_DATA_STREAMS_STREAMS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/streams/streams"); + /** Endpoint for {@code POST /data/streams/streams/{param}/deliveries}. */ public static final Endpoint POST_DATA_STREAMS_STREAMS_PARAM_DELIVERIES = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/streams/streams/{param}/deliveries"); + /** Endpoint for {@code POST /data/sync/runs}. */ public static final Endpoint POST_DATA_SYNC_RUNS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/sync/runs"); + /** Endpoint for {@code POST /data/sync/sync/jobs}. */ public static final Endpoint POST_DATA_SYNC_SYNC_JOBS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/sync/sync/jobs"); + /** Endpoint for {@code POST /data/sync/sync/jobs/{param}/executions}. */ public static final Endpoint POST_DATA_SYNC_SYNC_JOBS_PARAM_EXECUTIONS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/sync/sync/jobs/{param}/executions"); + /** Endpoint for {@code POST /data/transformations/runs}. */ public static final Endpoint POST_DATA_TRANSFORMATIONS_RUNS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/transformations/runs"); + /** Endpoint for {@code POST /data/transformations/transformations}. */ public static final Endpoint POST_DATA_TRANSFORMATIONS_TRANSFORMATIONS = new Endpoint(ApiService.DATA, HttpMethod.POST, "/data/transformations/transformations"); + /** Endpoint for {@code POST /data/transformations/transformations/{param}/executions}. */ public static final Endpoint POST_DATA_TRANSFORMATIONS_TRANSFORMATIONS_PARAM_EXECUTIONS = new Endpoint( ApiService.DATA, HttpMethod.POST, "/data/transformations/transformations/{param}/executions"); } @@ -618,36 +901,53 @@ private Data() {} public static final class Events { private Events() {} + /** Endpoint for {@code GET /events}. */ public static final Endpoint GET_EVENTS = new Endpoint(ApiService.EVENTS, HttpMethod.GET, "/events"); + /** Endpoint for {@code GET /events/monitoring}. */ public static final Endpoint GET_EVENTS_MONITORING = new Endpoint(ApiService.EVENTS, HttpMethod.GET, "/events/monitoring"); + /** Endpoint for {@code GET /events/{param}}. */ public static final Endpoint GET_EVENTS_PARAM = new Endpoint(ApiService.EVENTS, HttpMethod.GET, "/events/{param}"); + /** Endpoint for {@code POST /events}. */ public static final Endpoint POST_EVENTS = new Endpoint(ApiService.EVENTS, HttpMethod.POST, "/events"); + /** Endpoint for {@code POST /events/analytics}. */ public static final Endpoint POST_EVENTS_ANALYTICS = new Endpoint(ApiService.EVENTS, HttpMethod.POST, "/events/analytics"); + /** Endpoint for {@code POST /events/analytics-v2}. */ public static final Endpoint POST_EVENTS_ANALYTICS_V2 = new Endpoint(ApiService.EVENTS, HttpMethod.POST, "/events/analytics-v2"); + /** Endpoint for {@code POST /events/benchmark/v1}. */ public static final Endpoint POST_EVENTS_BENCHMARK_V1 = new Endpoint(ApiService.EVENTS, HttpMethod.POST, "/events/benchmark/v1"); + /** Endpoint for {@code POST /events/benchmark/v2}. */ public static final Endpoint POST_EVENTS_BENCHMARK_V2 = new Endpoint(ApiService.EVENTS, HttpMethod.POST, "/events/benchmark/v2"); + /** Endpoint for {@code POST /events/bulk}. */ public static final Endpoint POST_EVENTS_BULK = new Endpoint(ApiService.EVENTS, HttpMethod.POST, "/events/bulk"); + /** Endpoint for {@code POST /events/huggingface-billing}. */ public static final Endpoint POST_EVENTS_HUGGINGFACE_BILLING = new Endpoint(ApiService.EVENTS, HttpMethod.POST, "/events/huggingface-billing"); + /** Endpoint for {@code POST /events/query}. */ public static final Endpoint POST_EVENTS_QUERY = new Endpoint(ApiService.EVENTS, HttpMethod.POST, "/events/query"); + /** Endpoint for {@code POST /events/raw/reprocess/all}. */ public static final Endpoint POST_EVENTS_RAW_REPROCESS_ALL = new Endpoint(ApiService.EVENTS, HttpMethod.POST, "/events/raw/reprocess/all"); + /** Endpoint for {@code POST /events/raw/reprocess/pending}. */ public static final Endpoint POST_EVENTS_RAW_REPROCESS_PENDING = new Endpoint(ApiService.EVENTS, HttpMethod.POST, "/events/raw/reprocess/pending"); + /** Endpoint for {@code POST /events/reprocess}. */ public static final Endpoint POST_EVENTS_REPROCESS = new Endpoint(ApiService.EVENTS, HttpMethod.POST, "/events/reprocess"); + /** Endpoint for {@code POST /events/reprocess/internal}. */ public static final Endpoint POST_EVENTS_REPROCESS_INTERNAL = new Endpoint(ApiService.EVENTS, HttpMethod.POST, "/events/reprocess/internal"); + /** Endpoint for {@code POST /events/usage}. */ public static final Endpoint POST_EVENTS_USAGE = new Endpoint(ApiService.EVENTS, HttpMethod.POST, "/events/usage"); + /** Endpoint for {@code POST /events/usage/meter}. */ public static final Endpoint POST_EVENTS_USAGE_METER = new Endpoint(ApiService.EVENTS, HttpMethod.POST, "/events/usage/meter"); } @@ -655,82 +955,80 @@ private Events() {} public static final class Governance { private Governance() {} + /** Endpoint for {@code DELETE /policies/{param}}. */ public static final Endpoint DELETE_POLICIES_PARAM = new Endpoint(ApiService.GOVERNANCE, HttpMethod.DELETE, "/policies/{param}"); + /** Endpoint for {@code DELETE /roles/{param}}. */ public static final Endpoint DELETE_ROLES_PARAM = new Endpoint(ApiService.GOVERNANCE, HttpMethod.DELETE, "/roles/{param}"); + /** Endpoint for {@code GET /compliance/assessments}. */ public static final Endpoint GET_COMPLIANCE_ASSESSMENTS = new Endpoint(ApiService.GOVERNANCE, HttpMethod.GET, "/compliance/assessments"); + /** Endpoint for {@code GET /compliance/assessments/{param}}. */ public static final Endpoint GET_COMPLIANCE_ASSESSMENTS_PARAM = new Endpoint(ApiService.GOVERNANCE, HttpMethod.GET, "/compliance/assessments/{param}"); + /** Endpoint for {@code GET /compliance/frameworks}. */ public static final Endpoint GET_COMPLIANCE_FRAMEWORKS = new Endpoint(ApiService.GOVERNANCE, HttpMethod.GET, "/compliance/frameworks"); + /** Endpoint for {@code GET /compliance/score}. */ public static final Endpoint GET_COMPLIANCE_SCORE = new Endpoint(ApiService.GOVERNANCE, HttpMethod.GET, "/compliance/score"); + /** Endpoint for {@code GET /compliance/violations}. */ public static final Endpoint GET_COMPLIANCE_VIOLATIONS = new Endpoint(ApiService.GOVERNANCE, HttpMethod.GET, "/compliance/violations"); + /** Endpoint for {@code GET /permissions}. */ public static final Endpoint GET_PERMISSIONS = new Endpoint(ApiService.GOVERNANCE, HttpMethod.GET, "/permissions"); + /** Endpoint for {@code GET /permissions/{param}}. */ public static final Endpoint GET_PERMISSIONS_PARAM = new Endpoint(ApiService.GOVERNANCE, HttpMethod.GET, "/permissions/{param}"); + /** Endpoint for {@code GET /policies}. */ public static final Endpoint GET_POLICIES = new Endpoint(ApiService.GOVERNANCE, HttpMethod.GET, "/policies"); + /** Endpoint for {@code GET /policies/templates}. */ public static final Endpoint GET_POLICIES_TEMPLATES = new Endpoint(ApiService.GOVERNANCE, HttpMethod.GET, "/policies/templates"); + /** Endpoint for {@code GET /policies/{param}}. */ public static final Endpoint GET_POLICIES_PARAM = new Endpoint(ApiService.GOVERNANCE, HttpMethod.GET, "/policies/{param}"); + /** Endpoint for {@code GET /policies/{param}/versions}. */ public static final Endpoint GET_POLICIES_PARAM_VERSIONS = new Endpoint(ApiService.GOVERNANCE, HttpMethod.GET, "/policies/{param}/versions"); + /** Endpoint for {@code GET /roles}. */ public static final Endpoint GET_ROLES = new Endpoint(ApiService.GOVERNANCE, HttpMethod.GET, "/roles"); + /** Endpoint for {@code GET /roles/{param}}. */ public static final Endpoint GET_ROLES_PARAM = new Endpoint(ApiService.GOVERNANCE, HttpMethod.GET, "/roles/{param}"); + /** Endpoint for {@code POST /access/check}. */ public static final Endpoint POST_ACCESS_CHECK = new Endpoint(ApiService.GOVERNANCE, HttpMethod.POST, "/access/check"); + /** Endpoint for {@code POST /compliance/assessments}. */ public static final Endpoint POST_COMPLIANCE_ASSESSMENTS = new Endpoint(ApiService.GOVERNANCE, HttpMethod.POST, "/compliance/assessments"); + /** Endpoint for {@code POST /compliance/violations/{param}/resolve}. */ public static final Endpoint POST_COMPLIANCE_VIOLATIONS_PARAM_RESOLVE = new Endpoint(ApiService.GOVERNANCE, HttpMethod.POST, "/compliance/violations/{param}/resolve"); + /** Endpoint for {@code POST /permissions}. */ public static final Endpoint POST_PERMISSIONS = new Endpoint(ApiService.GOVERNANCE, HttpMethod.POST, "/permissions"); + /** Endpoint for {@code POST /policies}. */ public static final Endpoint POST_POLICIES = new Endpoint(ApiService.GOVERNANCE, HttpMethod.POST, "/policies"); + /** Endpoint for {@code POST /policies/from-template}. */ public static final Endpoint POST_POLICIES_FROM_TEMPLATE = new Endpoint(ApiService.GOVERNANCE, HttpMethod.POST, "/policies/from-template"); + /** Endpoint for {@code POST /policies/validate}. */ public static final Endpoint POST_POLICIES_VALIDATE = new Endpoint(ApiService.GOVERNANCE, HttpMethod.POST, "/policies/validate"); + /** Endpoint for {@code POST /roles}. */ public static final Endpoint POST_ROLES = new Endpoint(ApiService.GOVERNANCE, HttpMethod.POST, "/roles"); + /** Endpoint for {@code PUT /policies/{param}}. */ public static final Endpoint PUT_POLICIES_PARAM = new Endpoint(ApiService.GOVERNANCE, HttpMethod.PUT, "/policies/{param}"); } - public static final class Integrations { - private Integrations() {} - - public static final Endpoint DELETE_INTEGRATIONS_PARAM = - new Endpoint(ApiService.INTEGRATIONS, HttpMethod.DELETE, "/integrations/{param}"); - public static final Endpoint GET_INTEGRATIONS_PARAM = - new Endpoint(ApiService.INTEGRATIONS, HttpMethod.GET, "/integrations/{param}"); - public static final Endpoint GET_INTEGRATIONS_PARAM_ACTION_RUNS = - new Endpoint(ApiService.INTEGRATIONS, HttpMethod.GET, "/integrations/{param}/action-runs"); - public static final Endpoint GET_INTEGRATIONS_PARAM_CAPABILITIES = - new Endpoint(ApiService.INTEGRATIONS, HttpMethod.GET, "/integrations/{param}/capabilities"); - public static final Endpoint GET_INTEGRATIONS_PARAM_CONNECTION_TESTS = - new Endpoint(ApiService.INTEGRATIONS, HttpMethod.GET, "/integrations/{param}/connection-tests"); - public static final Endpoint GET_INTEGRATIONS_PARAM_SURFACES = - new Endpoint(ApiService.INTEGRATIONS, HttpMethod.GET, "/integrations/{param}/surfaces"); - public static final Endpoint PATCH_INTEGRATIONS_PARAM = - new Endpoint(ApiService.INTEGRATIONS, HttpMethod.PATCH, "/integrations/{param}"); - public static final Endpoint POST_INTEGRATIONS_PARAM_ACTION_RUNS = - new Endpoint(ApiService.INTEGRATIONS, HttpMethod.POST, "/integrations/{param}/action-runs"); - public static final Endpoint POST_INTEGRATIONS_PARAM_CONNECTION_TESTS = - new Endpoint(ApiService.INTEGRATIONS, HttpMethod.POST, "/integrations/{param}/connection-tests"); - public static final Endpoint PUT_INTEGRATIONS_PARAM_CAPABILITIES_PARAM = - new Endpoint(ApiService.INTEGRATIONS, HttpMethod.PUT, "/integrations/{param}/capabilities/{param}"); - public static final Endpoint PUT_INTEGRATIONS_PARAM_SURFACES_PARAM = - new Endpoint(ApiService.INTEGRATIONS, HttpMethod.PUT, "/integrations/{param}/surfaces/{param}"); - } - public static final class Invocations { private Invocations() {} + /** Endpoint for {@code POST /invocations}. */ public static final Endpoint POST_INVOCATIONS = new Endpoint(ApiService.INVOCATIONS, HttpMethod.POST, "/invocations"); } @@ -738,18 +1036,25 @@ private Invocations() {} public static final class Lineage { private Lineage() {} + /** Endpoint for {@code GET /lineage/edges}. */ public static final Endpoint GET_LINEAGE_EDGES = new Endpoint(ApiService.LINEAGE, HttpMethod.GET, "/lineage/edges"); + /** Endpoint for {@code GET /lineage/edges/{param}}. */ public static final Endpoint GET_LINEAGE_EDGES_PARAM = new Endpoint(ApiService.LINEAGE, HttpMethod.GET, "/lineage/edges/{param}"); + /** Endpoint for {@code GET /lineage/graph}. */ public static final Endpoint GET_LINEAGE_GRAPH = new Endpoint(ApiService.LINEAGE, HttpMethod.GET, "/lineage/graph"); + /** Endpoint for {@code GET /lineage/nodes}. */ public static final Endpoint GET_LINEAGE_NODES = new Endpoint(ApiService.LINEAGE, HttpMethod.GET, "/lineage/nodes"); + /** Endpoint for {@code GET /lineage/nodes/{param}}. */ public static final Endpoint GET_LINEAGE_NODES_PARAM = new Endpoint(ApiService.LINEAGE, HttpMethod.GET, "/lineage/nodes/{param}"); + /** Endpoint for {@code GET /lineage/nodes/{param}/trace}. */ public static final Endpoint GET_LINEAGE_NODES_PARAM_TRACE = new Endpoint(ApiService.LINEAGE, HttpMethod.GET, "/lineage/nodes/{param}/trace"); + /** Endpoint for {@code POST /lineage/impact}. */ public static final Endpoint POST_LINEAGE_IMPACT = new Endpoint(ApiService.LINEAGE, HttpMethod.POST, "/lineage/impact"); } @@ -757,66 +1062,97 @@ private Lineage() {} public static final class Observability { private Observability() {} + /** Endpoint for {@code DELETE /observability/alerts/rules/{param}}. */ public static final Endpoint DELETE_OBSERVABILITY_ALERTS_RULES_PARAM = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.DELETE, "/observability/alerts/rules/{param}"); + /** Endpoint for {@code DELETE /observability/alerts/{param}}. */ public static final Endpoint DELETE_OBSERVABILITY_ALERTS_PARAM = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.DELETE, "/observability/alerts/{param}"); + /** Endpoint for {@code DELETE /observability/dashboards/{param}}. */ public static final Endpoint DELETE_OBSERVABILITY_DASHBOARDS_PARAM = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.DELETE, "/observability/dashboards/{param}"); + /** Endpoint for {@code GET /observability/alerts}. */ public static final Endpoint GET_OBSERVABILITY_ALERTS = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.GET, "/observability/alerts"); + /** Endpoint for {@code GET /observability/alerts/incidents}. */ public static final Endpoint GET_OBSERVABILITY_ALERTS_INCIDENTS = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.GET, "/observability/alerts/incidents"); + /** Endpoint for {@code GET /observability/alerts/rules}. */ public static final Endpoint GET_OBSERVABILITY_ALERTS_RULES = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.GET, "/observability/alerts/rules"); + /** Endpoint for {@code GET /observability/alerts/rules/{param}}. */ public static final Endpoint GET_OBSERVABILITY_ALERTS_RULES_PARAM = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.GET, "/observability/alerts/rules/{param}"); + /** Endpoint for {@code GET /observability/dashboards}. */ public static final Endpoint GET_OBSERVABILITY_DASHBOARDS = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.GET, "/observability/dashboards"); + /** Endpoint for {@code GET /observability/dashboards/{param}}. */ public static final Endpoint GET_OBSERVABILITY_DASHBOARDS_PARAM = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.GET, "/observability/dashboards/{param}"); + /** Endpoint for {@code GET /observability/events/stats}. */ public static final Endpoint GET_OBSERVABILITY_EVENTS_STATS = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.GET, "/observability/events/stats"); + /** Endpoint for {@code GET /observability/metrics}. */ public static final Endpoint GET_OBSERVABILITY_METRICS = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.GET, "/observability/metrics"); + /** Endpoint for {@code GET /observability/metrics/list}. */ public static final Endpoint GET_OBSERVABILITY_METRICS_LIST = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.GET, "/observability/metrics/list"); + /** Endpoint for {@code GET /observability/traces}. */ public static final Endpoint GET_OBSERVABILITY_TRACES = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.GET, "/observability/traces"); + /** Endpoint for {@code GET /observability/traces/{param}}. */ public static final Endpoint GET_OBSERVABILITY_TRACES_PARAM = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.GET, "/observability/traces/{param}"); + /** Endpoint for {@code POST /observability/alerts}. */ public static final Endpoint POST_OBSERVABILITY_ALERTS = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.POST, "/observability/alerts"); + /** Endpoint for {@code POST /observability/alerts/rules}. */ public static final Endpoint POST_OBSERVABILITY_ALERTS_RULES = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.POST, "/observability/alerts/rules"); + /** Endpoint for {@code POST /observability/alerts/rules/{param}/toggle}. */ public static final Endpoint POST_OBSERVABILITY_ALERTS_RULES_PARAM_TOGGLE = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.POST, "/observability/alerts/rules/{param}/toggle"); + /** Endpoint for {@code POST /observability/alerts/{param}/disable}. */ public static final Endpoint POST_OBSERVABILITY_ALERTS_PARAM_DISABLE = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.POST, "/observability/alerts/{param}/disable"); + /** Endpoint for {@code POST /observability/alerts/{param}/enable}. */ public static final Endpoint POST_OBSERVABILITY_ALERTS_PARAM_ENABLE = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.POST, "/observability/alerts/{param}/enable"); + /** Endpoint for {@code POST /observability/dashboards}. */ public static final Endpoint POST_OBSERVABILITY_DASHBOARDS = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.POST, "/observability/dashboards"); + /** Endpoint for {@code POST /observability/dashboards/{param}/share}. */ public static final Endpoint POST_OBSERVABILITY_DASHBOARDS_PARAM_SHARE = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.POST, "/observability/dashboards/{param}/share"); + /** Endpoint for {@code POST /observability/events}. */ public static final Endpoint POST_OBSERVABILITY_EVENTS = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.POST, "/observability/events"); + /** Endpoint for {@code POST /observability/events/batch}. */ public static final Endpoint POST_OBSERVABILITY_EVENTS_BATCH = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.POST, "/observability/events/batch"); + /** Endpoint for {@code POST /observability/logs/ingest}. */ public static final Endpoint POST_OBSERVABILITY_LOGS_INGEST = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.POST, "/observability/logs/ingest"); + /** Endpoint for {@code POST /observability/logs/query}. */ public static final Endpoint POST_OBSERVABILITY_LOGS_QUERY = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.POST, "/observability/logs/query"); + /** Endpoint for {@code POST /observability/metrics/ingest}. */ public static final Endpoint POST_OBSERVABILITY_METRICS_INGEST = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.POST, "/observability/metrics/ingest"); + /** Endpoint for {@code POST /observability/traces/query}. */ public static final Endpoint POST_OBSERVABILITY_TRACES_QUERY = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.POST, "/observability/traces/query"); + /** Endpoint for {@code PUT /observability/alerts/rules/{param}}. */ public static final Endpoint PUT_OBSERVABILITY_ALERTS_RULES_PARAM = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.PUT, "/observability/alerts/rules/{param}"); + /** Endpoint for {@code PUT /observability/alerts/{param}}. */ public static final Endpoint PUT_OBSERVABILITY_ALERTS_PARAM = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.PUT, "/observability/alerts/{param}"); + /** Endpoint for {@code PUT /observability/dashboards/{param}}. */ public static final Endpoint PUT_OBSERVABILITY_DASHBOARDS_PARAM = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.PUT, "/observability/dashboards/{param}"); + /** Endpoint for {@code STREAM /observability/logs/stream}. */ public static final Endpoint STREAM_OBSERVABILITY_LOGS_STREAM = new Endpoint(ApiService.OBSERVABILITY, HttpMethod.STREAM, "/observability/logs/stream"); } @@ -824,346 +1160,517 @@ private Observability() {} public static final class Ontology { private Ontology() {} + /** Endpoint for {@code DELETE /ontology/objects/object-types/{param}}. */ public static final Endpoint DELETE_ONTOLOGY_OBJECTS_OBJECT_TYPES_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.DELETE, "/ontology/objects/object-types/{param}"); + /** Endpoint for {@code DELETE /ontology/objects/objects/{param}}. */ public static final Endpoint DELETE_ONTOLOGY_OBJECTS_OBJECTS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.DELETE, "/ontology/objects/objects/{param}"); + /** Endpoint for {@code DELETE /ontology/reasoning/rules/{param}}. */ public static final Endpoint DELETE_ONTOLOGY_REASONING_RULES_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.DELETE, "/ontology/reasoning/rules/{param}"); + /** Endpoint for {@code DELETE /ontology/relationships/relationship-types/{param}}. */ public static final Endpoint DELETE_ONTOLOGY_RELATIONSHIPS_RELATIONSHIP_TYPES_PARAM = new Endpoint( ApiService.ONTOLOGY, HttpMethod.DELETE, "/ontology/relationships/relationship-types/{param}"); + /** Endpoint for {@code DELETE /ontology/relationships/relationships/{param}}. */ public static final Endpoint DELETE_ONTOLOGY_RELATIONSHIPS_RELATIONSHIPS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.DELETE, "/ontology/relationships/relationships/{param}"); + /** Endpoint for {@code DELETE /ontology/rollouts/rollouts/{param}}. */ public static final Endpoint DELETE_ONTOLOGY_ROLLOUTS_ROLLOUTS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.DELETE, "/ontology/rollouts/rollouts/{param}"); + /** Endpoint for {@code DELETE /ontology/rollups/rollups/{param}}. */ public static final Endpoint DELETE_ONTOLOGY_ROLLUPS_ROLLUPS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.DELETE, "/ontology/rollups/rollups/{param}"); + /** Endpoint for {@code DELETE /ontology/schemas/schemas/{param}}. */ public static final Endpoint DELETE_ONTOLOGY_SCHEMAS_SCHEMAS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.DELETE, "/ontology/schemas/schemas/{param}"); + /** Endpoint for {@code DELETE /ontology/validation/rules/{param}}. */ public static final Endpoint DELETE_ONTOLOGY_VALIDATION_RULES_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.DELETE, "/ontology/validation/rules/{param}"); + /** Endpoint for {@code DELETE /ontology/versions/versions/{param}}. */ public static final Endpoint DELETE_ONTOLOGY_VERSIONS_VERSIONS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.DELETE, "/ontology/versions/versions/{param}"); + /** Endpoint for {@code GET /ontology/engine/capabilities}. */ public static final Endpoint GET_ONTOLOGY_ENGINE_CAPABILITIES = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/engine/capabilities"); + /** Endpoint for {@code GET /ontology/engine/health}. */ public static final Endpoint GET_ONTOLOGY_ENGINE_HEALTH = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/engine/health"); + /** Endpoint for {@code GET /ontology/engine/info}. */ public static final Endpoint GET_ONTOLOGY_ENGINE_INFO = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/engine/info"); + /** Endpoint for {@code GET /ontology/engine/runs}. */ public static final Endpoint GET_ONTOLOGY_ENGINE_RUNS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/engine/runs"); + /** Endpoint for {@code GET /ontology/engine/runs/{param}}. */ public static final Endpoint GET_ONTOLOGY_ENGINE_RUNS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/engine/runs/{param}"); + /** Endpoint for {@code GET /ontology/events/capabilities}. */ public static final Endpoint GET_ONTOLOGY_EVENTS_CAPABILITIES = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/events/capabilities"); + /** Endpoint for {@code GET /ontology/events/events}. */ public static final Endpoint GET_ONTOLOGY_EVENTS_EVENTS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/events/events"); + /** Endpoint for {@code GET /ontology/events/events/checkpoints/{param}}. */ public static final Endpoint GET_ONTOLOGY_EVENTS_EVENTS_CHECKPOINTS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/events/events/checkpoints/{param}"); + /** Endpoint for {@code GET /ontology/events/events/{param}}. */ public static final Endpoint GET_ONTOLOGY_EVENTS_EVENTS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/events/events/{param}"); + /** Endpoint for {@code GET /ontology/events/health}. */ public static final Endpoint GET_ONTOLOGY_EVENTS_HEALTH = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/events/health"); + /** Endpoint for {@code GET /ontology/events/info}. */ public static final Endpoint GET_ONTOLOGY_EVENTS_INFO = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/events/info"); + /** Endpoint for {@code GET /ontology/events/runs}. */ public static final Endpoint GET_ONTOLOGY_EVENTS_RUNS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/events/runs"); + /** Endpoint for {@code GET /ontology/events/runs/{param}}. */ public static final Endpoint GET_ONTOLOGY_EVENTS_RUNS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/events/runs/{param}"); + /** Endpoint for {@code GET /ontology/extract/capabilities}. */ public static final Endpoint GET_ONTOLOGY_EXTRACT_CAPABILITIES = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/extract/capabilities"); + /** Endpoint for {@code GET /ontology/extract/health}. */ public static final Endpoint GET_ONTOLOGY_EXTRACT_HEALTH = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/extract/health"); + /** Endpoint for {@code GET /ontology/extract/info}. */ public static final Endpoint GET_ONTOLOGY_EXTRACT_INFO = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/extract/info"); + /** Endpoint for {@code GET /ontology/extract/runs}. */ public static final Endpoint GET_ONTOLOGY_EXTRACT_RUNS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/extract/runs"); + /** Endpoint for {@code GET /ontology/extract/runs/{param}}. */ public static final Endpoint GET_ONTOLOGY_EXTRACT_RUNS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/extract/runs/{param}"); + /** Endpoint for {@code GET /ontology/graph/capabilities}. */ public static final Endpoint GET_ONTOLOGY_GRAPH_CAPABILITIES = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/graph/capabilities"); + /** Endpoint for {@code GET /ontology/graph/entities/{param}}. */ public static final Endpoint GET_ONTOLOGY_GRAPH_ENTITIES_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/graph/entities/{param}"); + /** Endpoint for {@code GET /ontology/graph/entities/{param}/provenance}. */ public static final Endpoint GET_ONTOLOGY_GRAPH_ENTITIES_PARAM_PROVENANCE = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/graph/entities/{param}/provenance"); + /** Endpoint for {@code GET /ontology/graph/health}. */ public static final Endpoint GET_ONTOLOGY_GRAPH_HEALTH = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/graph/health"); + /** Endpoint for {@code GET /ontology/graph/info}. */ public static final Endpoint GET_ONTOLOGY_GRAPH_INFO = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/graph/info"); + /** Endpoint for {@code GET /ontology/graph/relationships/{param}}. */ public static final Endpoint GET_ONTOLOGY_GRAPH_RELATIONSHIPS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/graph/relationships/{param}"); + /** Endpoint for {@code GET /ontology/graph/runs}. */ public static final Endpoint GET_ONTOLOGY_GRAPH_RUNS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/graph/runs"); + /** Endpoint for {@code GET /ontology/graph/runs/{param}}. */ public static final Endpoint GET_ONTOLOGY_GRAPH_RUNS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/graph/runs/{param}"); + /** Endpoint for {@code GET /ontology/objects/capabilities}. */ public static final Endpoint GET_ONTOLOGY_OBJECTS_CAPABILITIES = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/objects/capabilities"); + /** Endpoint for {@code GET /ontology/objects/health}. */ public static final Endpoint GET_ONTOLOGY_OBJECTS_HEALTH = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/objects/health"); + /** Endpoint for {@code GET /ontology/objects/info}. */ public static final Endpoint GET_ONTOLOGY_OBJECTS_INFO = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/objects/info"); + /** Endpoint for {@code GET /ontology/objects/object-types}. */ public static final Endpoint GET_ONTOLOGY_OBJECTS_OBJECT_TYPES = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/objects/object-types"); + /** Endpoint for {@code GET /ontology/objects/object-types/{param}}. */ public static final Endpoint GET_ONTOLOGY_OBJECTS_OBJECT_TYPES_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/objects/object-types/{param}"); + /** Endpoint for {@code GET /ontology/objects/objects}. */ public static final Endpoint GET_ONTOLOGY_OBJECTS_OBJECTS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/objects/objects"); + /** Endpoint for {@code GET /ontology/objects/objects/{param}}. */ public static final Endpoint GET_ONTOLOGY_OBJECTS_OBJECTS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/objects/objects/{param}"); + /** Endpoint for {@code GET /ontology/objects/runs}. */ public static final Endpoint GET_ONTOLOGY_OBJECTS_RUNS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/objects/runs"); + /** Endpoint for {@code GET /ontology/objects/runs/{param}}. */ public static final Endpoint GET_ONTOLOGY_OBJECTS_RUNS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/objects/runs/{param}"); + /** Endpoint for {@code GET /ontology/reasoning/capabilities}. */ public static final Endpoint GET_ONTOLOGY_REASONING_CAPABILITIES = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/reasoning/capabilities"); + /** Endpoint for {@code GET /ontology/reasoning/health}. */ public static final Endpoint GET_ONTOLOGY_REASONING_HEALTH = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/reasoning/health"); + /** Endpoint for {@code GET /ontology/reasoning/info}. */ public static final Endpoint GET_ONTOLOGY_REASONING_INFO = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/reasoning/info"); + /** Endpoint for {@code GET /ontology/reasoning/rules}. */ public static final Endpoint GET_ONTOLOGY_REASONING_RULES = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/reasoning/rules"); + /** Endpoint for {@code GET /ontology/reasoning/runs}. */ public static final Endpoint GET_ONTOLOGY_REASONING_RUNS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/reasoning/runs"); + /** Endpoint for {@code GET /ontology/reasoning/runs/{param}}. */ public static final Endpoint GET_ONTOLOGY_REASONING_RUNS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/reasoning/runs/{param}"); + /** Endpoint for {@code GET /ontology/relationships/capabilities}. */ public static final Endpoint GET_ONTOLOGY_RELATIONSHIPS_CAPABILITIES = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/relationships/capabilities"); + /** Endpoint for {@code GET /ontology/relationships/health}. */ public static final Endpoint GET_ONTOLOGY_RELATIONSHIPS_HEALTH = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/relationships/health"); + /** Endpoint for {@code GET /ontology/relationships/info}. */ public static final Endpoint GET_ONTOLOGY_RELATIONSHIPS_INFO = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/relationships/info"); + /** Endpoint for {@code GET /ontology/relationships/relationship-types}. */ public static final Endpoint GET_ONTOLOGY_RELATIONSHIPS_RELATIONSHIP_TYPES = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/relationships/relationship-types"); + /** Endpoint for {@code GET /ontology/relationships/relationships}. */ public static final Endpoint GET_ONTOLOGY_RELATIONSHIPS_RELATIONSHIPS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/relationships/relationships"); + /** Endpoint for {@code GET /ontology/relationships/relationships/{param}}. */ public static final Endpoint GET_ONTOLOGY_RELATIONSHIPS_RELATIONSHIPS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/relationships/relationships/{param}"); + /** Endpoint for {@code GET /ontology/relationships/runs}. */ public static final Endpoint GET_ONTOLOGY_RELATIONSHIPS_RUNS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/relationships/runs"); + /** Endpoint for {@code GET /ontology/relationships/runs/{param}}. */ public static final Endpoint GET_ONTOLOGY_RELATIONSHIPS_RUNS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/relationships/runs/{param}"); + /** Endpoint for {@code GET /ontology/rollouts/capabilities}. */ public static final Endpoint GET_ONTOLOGY_ROLLOUTS_CAPABILITIES = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/rollouts/capabilities"); + /** Endpoint for {@code GET /ontology/rollouts/health}. */ public static final Endpoint GET_ONTOLOGY_ROLLOUTS_HEALTH = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/rollouts/health"); + /** Endpoint for {@code GET /ontology/rollouts/info}. */ public static final Endpoint GET_ONTOLOGY_ROLLOUTS_INFO = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/rollouts/info"); + /** Endpoint for {@code GET /ontology/rollouts/rollouts}. */ public static final Endpoint GET_ONTOLOGY_ROLLOUTS_ROLLOUTS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/rollouts/rollouts"); + /** Endpoint for {@code GET /ontology/rollouts/rollouts/{param}}. */ public static final Endpoint GET_ONTOLOGY_ROLLOUTS_ROLLOUTS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/rollouts/rollouts/{param}"); + /** Endpoint for {@code GET /ontology/rollouts/rollouts/{param}/status}. */ public static final Endpoint GET_ONTOLOGY_ROLLOUTS_ROLLOUTS_PARAM_STATUS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/rollouts/rollouts/{param}/status"); + /** Endpoint for {@code GET /ontology/rollouts/runs}. */ public static final Endpoint GET_ONTOLOGY_ROLLOUTS_RUNS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/rollouts/runs"); + /** Endpoint for {@code GET /ontology/rollouts/runs/{param}}. */ public static final Endpoint GET_ONTOLOGY_ROLLOUTS_RUNS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/rollouts/runs/{param}"); + /** Endpoint for {@code GET /ontology/rollups/capabilities}. */ public static final Endpoint GET_ONTOLOGY_ROLLUPS_CAPABILITIES = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/rollups/capabilities"); + /** Endpoint for {@code GET /ontology/rollups/health}. */ public static final Endpoint GET_ONTOLOGY_ROLLUPS_HEALTH = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/rollups/health"); + /** Endpoint for {@code GET /ontology/rollups/info}. */ public static final Endpoint GET_ONTOLOGY_ROLLUPS_INFO = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/rollups/info"); + /** Endpoint for {@code GET /ontology/rollups/rollup-results/{param}}. */ public static final Endpoint GET_ONTOLOGY_ROLLUPS_ROLLUP_RESULTS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/rollups/rollup-results/{param}"); + /** Endpoint for {@code GET /ontology/rollups/rollups}. */ public static final Endpoint GET_ONTOLOGY_ROLLUPS_ROLLUPS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/rollups/rollups"); + /** Endpoint for {@code GET /ontology/rollups/rollups/{param}}. */ public static final Endpoint GET_ONTOLOGY_ROLLUPS_ROLLUPS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/rollups/rollups/{param}"); + /** Endpoint for {@code GET /ontology/rollups/rollups/{param}/result}. */ public static final Endpoint GET_ONTOLOGY_ROLLUPS_ROLLUPS_PARAM_RESULT = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/rollups/rollups/{param}/result"); + /** Endpoint for {@code GET /ontology/rollups/runs}. */ public static final Endpoint GET_ONTOLOGY_ROLLUPS_RUNS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/rollups/runs"); + /** Endpoint for {@code GET /ontology/rollups/runs/{param}}. */ public static final Endpoint GET_ONTOLOGY_ROLLUPS_RUNS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/rollups/runs/{param}"); + /** Endpoint for {@code GET /ontology/schemas/capabilities}. */ public static final Endpoint GET_ONTOLOGY_SCHEMAS_CAPABILITIES = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/schemas/capabilities"); + /** Endpoint for {@code GET /ontology/schemas/health}. */ public static final Endpoint GET_ONTOLOGY_SCHEMAS_HEALTH = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/schemas/health"); + /** Endpoint for {@code GET /ontology/schemas/info}. */ public static final Endpoint GET_ONTOLOGY_SCHEMAS_INFO = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/schemas/info"); + /** Endpoint for {@code GET /ontology/schemas/runs}. */ public static final Endpoint GET_ONTOLOGY_SCHEMAS_RUNS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/schemas/runs"); + /** Endpoint for {@code GET /ontology/schemas/runs/{param}}. */ public static final Endpoint GET_ONTOLOGY_SCHEMAS_RUNS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/schemas/runs/{param}"); + /** Endpoint for {@code GET /ontology/schemas/schemas}. */ public static final Endpoint GET_ONTOLOGY_SCHEMAS_SCHEMAS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/schemas/schemas"); + /** Endpoint for {@code GET /ontology/schemas/schemas/{param}}. */ public static final Endpoint GET_ONTOLOGY_SCHEMAS_SCHEMAS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/schemas/schemas/{param}"); + /** Endpoint for {@code GET /ontology/transformations/capabilities}. */ public static final Endpoint GET_ONTOLOGY_TRANSFORMATIONS_CAPABILITIES = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/transformations/capabilities"); + /** Endpoint for {@code GET /ontology/transformations/health}. */ public static final Endpoint GET_ONTOLOGY_TRANSFORMATIONS_HEALTH = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/transformations/health"); + /** Endpoint for {@code GET /ontology/transformations/info}. */ public static final Endpoint GET_ONTOLOGY_TRANSFORMATIONS_INFO = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/transformations/info"); + /** Endpoint for {@code GET /ontology/transformations/runs}. */ public static final Endpoint GET_ONTOLOGY_TRANSFORMATIONS_RUNS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/transformations/runs"); + /** Endpoint for {@code GET /ontology/transformations/runs/{param}}. */ public static final Endpoint GET_ONTOLOGY_TRANSFORMATIONS_RUNS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/transformations/runs/{param}"); + /** Endpoint for {@code GET /ontology/validation/capabilities}. */ public static final Endpoint GET_ONTOLOGY_VALIDATION_CAPABILITIES = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/validation/capabilities"); + /** Endpoint for {@code GET /ontology/validation/health}. */ public static final Endpoint GET_ONTOLOGY_VALIDATION_HEALTH = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/validation/health"); + /** Endpoint for {@code GET /ontology/validation/info}. */ public static final Endpoint GET_ONTOLOGY_VALIDATION_INFO = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/validation/info"); + /** Endpoint for {@code GET /ontology/validation/rules}. */ public static final Endpoint GET_ONTOLOGY_VALIDATION_RULES = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/validation/rules"); + /** Endpoint for {@code GET /ontology/validation/rules/{param}}. */ public static final Endpoint GET_ONTOLOGY_VALIDATION_RULES_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/validation/rules/{param}"); + /** Endpoint for {@code GET /ontology/validation/runs}. */ public static final Endpoint GET_ONTOLOGY_VALIDATION_RUNS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/validation/runs"); + /** Endpoint for {@code GET /ontology/validation/runs/{param}}. */ public static final Endpoint GET_ONTOLOGY_VALIDATION_RUNS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/validation/runs/{param}"); + /** Endpoint for {@code GET /ontology/versions/capabilities}. */ public static final Endpoint GET_ONTOLOGY_VERSIONS_CAPABILITIES = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/versions/capabilities"); + /** Endpoint for {@code GET /ontology/versions/health}. */ public static final Endpoint GET_ONTOLOGY_VERSIONS_HEALTH = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/versions/health"); + /** Endpoint for {@code GET /ontology/versions/info}. */ public static final Endpoint GET_ONTOLOGY_VERSIONS_INFO = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/versions/info"); + /** Endpoint for {@code GET /ontology/versions/release-bundles}. */ public static final Endpoint GET_ONTOLOGY_VERSIONS_RELEASE_BUNDLES = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/versions/release-bundles"); + /** Endpoint for {@code GET /ontology/versions/release-bundles/{param}}. */ public static final Endpoint GET_ONTOLOGY_VERSIONS_RELEASE_BUNDLES_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/versions/release-bundles/{param}"); + /** Endpoint for {@code GET /ontology/versions/runs}. */ public static final Endpoint GET_ONTOLOGY_VERSIONS_RUNS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/versions/runs"); + /** Endpoint for {@code GET /ontology/versions/runs/{param}}. */ public static final Endpoint GET_ONTOLOGY_VERSIONS_RUNS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/versions/runs/{param}"); + /** Endpoint for {@code GET /ontology/versions/versions/{param}}. */ public static final Endpoint GET_ONTOLOGY_VERSIONS_VERSIONS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.GET, "/ontology/versions/versions/{param}"); + /** Endpoint for {@code POST /ontology/engine/ontologies/compare-versions}. */ public static final Endpoint POST_ONTOLOGY_ENGINE_ONTOLOGIES_COMPARE_VERSIONS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/engine/ontologies/compare-versions"); + /** Endpoint for {@code POST /ontology/engine/ontologies/export}. */ public static final Endpoint POST_ONTOLOGY_ENGINE_ONTOLOGIES_EXPORT = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/engine/ontologies/export"); + /** Endpoint for {@code POST /ontology/engine/ontologies/export-shacl}. */ public static final Endpoint POST_ONTOLOGY_ENGINE_ONTOLOGIES_EXPORT_SHACL = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/engine/ontologies/export-shacl"); + /** Endpoint for {@code POST /ontology/engine/ontologies/generate}. */ public static final Endpoint POST_ONTOLOGY_ENGINE_ONTOLOGIES_GENERATE = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/engine/ontologies/generate"); + /** Endpoint for {@code POST /ontology/engine/ontologies/infer-classes}. */ public static final Endpoint POST_ONTOLOGY_ENGINE_ONTOLOGIES_INFER_CLASSES = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/engine/ontologies/infer-classes"); + /** Endpoint for {@code POST /ontology/engine/ontologies/infer-properties}. */ public static final Endpoint POST_ONTOLOGY_ENGINE_ONTOLOGIES_INFER_PROPERTIES = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/engine/ontologies/infer-properties"); + /** Endpoint for {@code POST /ontology/engine/ontologies/validate}. */ public static final Endpoint POST_ONTOLOGY_ENGINE_ONTOLOGIES_VALIDATE = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/engine/ontologies/validate"); + /** Endpoint for {@code POST /ontology/engine/runs}. */ public static final Endpoint POST_ONTOLOGY_ENGINE_RUNS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/engine/runs"); + /** Endpoint for {@code POST /ontology/events/events}. */ public static final Endpoint POST_ONTOLOGY_EVENTS_EVENTS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/events/events"); + /** Endpoint for {@code POST /ontology/events/events/checkpoints}. */ public static final Endpoint POST_ONTOLOGY_EVENTS_EVENTS_CHECKPOINTS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/events/events/checkpoints"); + /** Endpoint for {@code POST /ontology/events/events/leases/acknowledge}. */ public static final Endpoint POST_ONTOLOGY_EVENTS_EVENTS_LEASES_ACKNOWLEDGE = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/events/events/leases/acknowledge"); + /** Endpoint for {@code POST /ontology/events/events/leases/acquire}. */ public static final Endpoint POST_ONTOLOGY_EVENTS_EVENTS_LEASES_ACQUIRE = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/events/events/leases/acquire"); + /** Endpoint for {@code POST /ontology/events/runs}. */ public static final Endpoint POST_ONTOLOGY_EVENTS_RUNS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/events/runs"); + /** Endpoint for {@code POST /ontology/extract/extract/analyze}. */ public static final Endpoint POST_ONTOLOGY_EXTRACT_EXTRACT_ANALYZE = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/extract/extract/analyze"); + /** Endpoint for {@code POST /ontology/extract/extract/architecture}. */ public static final Endpoint POST_ONTOLOGY_EXTRACT_EXTRACT_ARCHITECTURE = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/extract/extract/architecture"); + /** Endpoint for {@code POST /ontology/extract/extract/coreferences}. */ public static final Endpoint POST_ONTOLOGY_EXTRACT_EXTRACT_COREFERENCES = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/extract/extract/coreferences"); + /** Endpoint for {@code POST /ontology/extract/extract/entities}. */ public static final Endpoint POST_ONTOLOGY_EXTRACT_EXTRACT_ENTITIES = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/extract/extract/entities"); + /** Endpoint for {@code POST /ontology/extract/extract/events}. */ public static final Endpoint POST_ONTOLOGY_EXTRACT_EXTRACT_EVENTS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/extract/extract/events"); + /** Endpoint for {@code POST /ontology/extract/extract/relations}. */ public static final Endpoint POST_ONTOLOGY_EXTRACT_EXTRACT_RELATIONS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/extract/extract/relations"); + /** Endpoint for {@code POST /ontology/extract/extract/triplets}. */ public static final Endpoint POST_ONTOLOGY_EXTRACT_EXTRACT_TRIPLETS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/extract/extract/triplets"); + /** Endpoint for {@code POST /ontology/extract/runs}. */ public static final Endpoint POST_ONTOLOGY_EXTRACT_RUNS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/extract/runs"); + /** Endpoint for {@code POST /ontology/graph/graph/analyze}. */ public static final Endpoint POST_ONTOLOGY_GRAPH_GRAPH_ANALYZE = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/graph/graph/analyze"); + /** Endpoint for {@code POST /ontology/graph/graph/build}. */ public static final Endpoint POST_ONTOLOGY_GRAPH_GRAPH_BUILD = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/graph/graph/build"); + /** Endpoint for {@code POST /ontology/graph/graph/bulk-read}. */ public static final Endpoint POST_ONTOLOGY_GRAPH_GRAPH_BULK_READ = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/graph/graph/bulk-read"); + /** Endpoint for {@code POST /ontology/graph/graph/neighborhood}. */ public static final Endpoint POST_ONTOLOGY_GRAPH_GRAPH_NEIGHBORHOOD = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/graph/graph/neighborhood"); + /** Endpoint for {@code POST /ontology/graph/graph/path}. */ public static final Endpoint POST_ONTOLOGY_GRAPH_GRAPH_PATH = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/graph/graph/path"); + /** Endpoint for {@code POST /ontology/graph/graph/query}. */ public static final Endpoint POST_ONTOLOGY_GRAPH_GRAPH_QUERY = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/graph/graph/query"); + /** Endpoint for {@code POST /ontology/graph/runs}. */ public static final Endpoint POST_ONTOLOGY_GRAPH_RUNS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/graph/runs"); + /** Endpoint for {@code POST /ontology/objects/runs}. */ public static final Endpoint POST_ONTOLOGY_OBJECTS_RUNS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/objects/runs"); + /** Endpoint for {@code POST /ontology/reasoning/explain}. */ public static final Endpoint POST_ONTOLOGY_REASONING_EXPLAIN = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/reasoning/explain"); + /** Endpoint for {@code POST /ontology/reasoning/facts}. */ public static final Endpoint POST_ONTOLOGY_REASONING_FACTS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/reasoning/facts"); + /** Endpoint for {@code POST /ontology/reasoning/facts/load-graph}. */ public static final Endpoint POST_ONTOLOGY_REASONING_FACTS_LOAD_GRAPH = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/reasoning/facts/load-graph"); + /** Endpoint for {@code POST /ontology/reasoning/reason/backward}. */ public static final Endpoint POST_ONTOLOGY_REASONING_REASON_BACKWARD = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/reasoning/reason/backward"); + /** Endpoint for {@code POST /ontology/reasoning/reason/forward}. */ public static final Endpoint POST_ONTOLOGY_REASONING_REASON_FORWARD = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/reasoning/reason/forward"); + /** Endpoint for {@code POST /ontology/reasoning/rules}. */ public static final Endpoint POST_ONTOLOGY_REASONING_RULES = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/reasoning/rules"); + /** Endpoint for {@code POST /ontology/reasoning/runs}. */ public static final Endpoint POST_ONTOLOGY_REASONING_RUNS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/reasoning/runs"); + /** Endpoint for {@code POST /ontology/relationships/runs}. */ public static final Endpoint POST_ONTOLOGY_RELATIONSHIPS_RUNS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/relationships/runs"); + /** Endpoint for {@code POST /ontology/rollouts/rollouts}. */ public static final Endpoint POST_ONTOLOGY_ROLLOUTS_ROLLOUTS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/rollouts/rollouts"); + /** Endpoint for {@code POST /ontology/rollouts/rollouts/{param}/pause}. */ public static final Endpoint POST_ONTOLOGY_ROLLOUTS_ROLLOUTS_PARAM_PAUSE = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/rollouts/rollouts/{param}/pause"); + /** Endpoint for {@code POST /ontology/rollouts/rollouts/{param}/resume}. */ public static final Endpoint POST_ONTOLOGY_ROLLOUTS_ROLLOUTS_PARAM_RESUME = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/rollouts/rollouts/{param}/resume"); + /** Endpoint for {@code POST /ontology/rollouts/rollouts/{param}/rollback}. */ public static final Endpoint POST_ONTOLOGY_ROLLOUTS_ROLLOUTS_PARAM_ROLLBACK = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/rollouts/rollouts/{param}/rollback"); + /** Endpoint for {@code POST /ontology/rollouts/rollouts/{param}/start}. */ public static final Endpoint POST_ONTOLOGY_ROLLOUTS_ROLLOUTS_PARAM_START = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/rollouts/rollouts/{param}/start"); + /** Endpoint for {@code POST /ontology/rollouts/runs}. */ public static final Endpoint POST_ONTOLOGY_ROLLOUTS_RUNS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/rollouts/runs"); + /** Endpoint for {@code POST /ontology/rollups/rollups}. */ public static final Endpoint POST_ONTOLOGY_ROLLUPS_ROLLUPS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/rollups/rollups"); + /** Endpoint for {@code POST /ontology/rollups/rollups/{param}/execute}. */ public static final Endpoint POST_ONTOLOGY_ROLLUPS_ROLLUPS_PARAM_EXECUTE = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/rollups/rollups/{param}/execute"); + /** Endpoint for {@code POST /ontology/rollups/rollups/{param}/preview}. */ public static final Endpoint POST_ONTOLOGY_ROLLUPS_ROLLUPS_PARAM_PREVIEW = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/rollups/rollups/{param}/preview"); + /** Endpoint for {@code POST /ontology/rollups/runs}. */ public static final Endpoint POST_ONTOLOGY_ROLLUPS_RUNS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/rollups/runs"); + /** Endpoint for {@code POST /ontology/schemas/runs}. */ public static final Endpoint POST_ONTOLOGY_SCHEMAS_RUNS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/schemas/runs"); + /** Endpoint for {@code POST /ontology/schemas/schemas}. */ public static final Endpoint POST_ONTOLOGY_SCHEMAS_SCHEMAS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/schemas/schemas"); + /** Endpoint for {@code POST /ontology/schemas/schemas/validate}. */ public static final Endpoint POST_ONTOLOGY_SCHEMAS_SCHEMAS_VALIDATE = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/schemas/schemas/validate"); + /** Endpoint for {@code POST /ontology/transformations/runs}. */ public static final Endpoint POST_ONTOLOGY_TRANSFORMATIONS_RUNS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/transformations/runs"); + /** Endpoint for {@code POST /ontology/transformations/transformations}. */ public static final Endpoint POST_ONTOLOGY_TRANSFORMATIONS_TRANSFORMATIONS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/transformations/transformations"); + /** Endpoint for {@code POST /ontology/validation/payloads/validate}. */ public static final Endpoint POST_ONTOLOGY_VALIDATION_PAYLOADS_VALIDATE = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/validation/payloads/validate"); + /** Endpoint for {@code POST /ontology/validation/rules}. */ public static final Endpoint POST_ONTOLOGY_VALIDATION_RULES = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/validation/rules"); + /** Endpoint for {@code POST /ontology/validation/runs}. */ public static final Endpoint POST_ONTOLOGY_VALIDATION_RUNS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/validation/runs"); + /** Endpoint for {@code POST /ontology/versions/audit/verify}. */ public static final Endpoint POST_ONTOLOGY_VERSIONS_AUDIT_VERIFY = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/versions/audit/verify"); + /** Endpoint for {@code POST /ontology/versions/release-bundles}. */ public static final Endpoint POST_ONTOLOGY_VERSIONS_RELEASE_BUNDLES = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/versions/release-bundles"); + /** Endpoint for {@code POST /ontology/versions/runs}. */ public static final Endpoint POST_ONTOLOGY_VERSIONS_RUNS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/versions/runs"); + /** Endpoint for {@code POST /ontology/versions/versions}. */ public static final Endpoint POST_ONTOLOGY_VERSIONS_VERSIONS = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/versions/versions"); + /** Endpoint for {@code POST /ontology/versions/versions/compare}. */ public static final Endpoint POST_ONTOLOGY_VERSIONS_VERSIONS_COMPARE = new Endpoint(ApiService.ONTOLOGY, HttpMethod.POST, "/ontology/versions/versions/compare"); + /** Endpoint for {@code PUT /ontology/graph/entities/{param}}. */ public static final Endpoint PUT_ONTOLOGY_GRAPH_ENTITIES_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.PUT, "/ontology/graph/entities/{param}"); + /** Endpoint for {@code PUT /ontology/graph/relationships/{param}}. */ public static final Endpoint PUT_ONTOLOGY_GRAPH_RELATIONSHIPS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.PUT, "/ontology/graph/relationships/{param}"); + /** Endpoint for {@code PUT /ontology/objects/object-types/{param}}. */ public static final Endpoint PUT_ONTOLOGY_OBJECTS_OBJECT_TYPES_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.PUT, "/ontology/objects/object-types/{param}"); + /** Endpoint for {@code PUT /ontology/objects/objects/{param}}. */ public static final Endpoint PUT_ONTOLOGY_OBJECTS_OBJECTS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.PUT, "/ontology/objects/objects/{param}"); + /** Endpoint for {@code PUT /ontology/reasoning/rules/{param}}. */ public static final Endpoint PUT_ONTOLOGY_REASONING_RULES_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.PUT, "/ontology/reasoning/rules/{param}"); + /** Endpoint for {@code PUT /ontology/relationships/relationships/{param}}. */ public static final Endpoint PUT_ONTOLOGY_RELATIONSHIPS_RELATIONSHIPS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.PUT, "/ontology/relationships/relationships/{param}"); + /** Endpoint for {@code PUT /ontology/rollouts/rollouts/{param}}. */ public static final Endpoint PUT_ONTOLOGY_ROLLOUTS_ROLLOUTS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.PUT, "/ontology/rollouts/rollouts/{param}"); + /** Endpoint for {@code PUT /ontology/rollups/rollups/{param}}. */ public static final Endpoint PUT_ONTOLOGY_ROLLUPS_ROLLUPS_PARAM = new Endpoint(ApiService.ONTOLOGY, HttpMethod.PUT, "/ontology/rollups/rollups/{param}"); } @@ -1171,26 +1678,37 @@ private Ontology() {} public static final class Pipelines { private Pipelines() {} + /** Endpoint for {@code GET /data/pipelines/capabilities}. */ public static final Endpoint GET_DATA_PIPELINES_CAPABILITIES = new Endpoint(ApiService.PIPELINES, HttpMethod.GET, "/data/pipelines/capabilities"); + /** Endpoint for {@code GET /data/pipelines/health}. */ public static final Endpoint GET_DATA_PIPELINES_HEALTH = new Endpoint(ApiService.PIPELINES, HttpMethod.GET, "/data/pipelines/health"); + /** Endpoint for {@code GET /data/pipelines/info}. */ public static final Endpoint GET_DATA_PIPELINES_INFO = new Endpoint(ApiService.PIPELINES, HttpMethod.GET, "/data/pipelines/info"); + /** Endpoint for {@code GET /data/pipelines/pipeline-runs}. */ public static final Endpoint GET_DATA_PIPELINES_PIPELINE_RUNS = new Endpoint(ApiService.PIPELINES, HttpMethod.GET, "/data/pipelines/pipeline-runs"); + /** Endpoint for {@code GET /data/pipelines/pipeline-runs/{param}}. */ public static final Endpoint GET_DATA_PIPELINES_PIPELINE_RUNS_PARAM = new Endpoint(ApiService.PIPELINES, HttpMethod.GET, "/data/pipelines/pipeline-runs/{param}"); + /** Endpoint for {@code GET /data/pipelines/pipelines}. */ public static final Endpoint GET_DATA_PIPELINES_PIPELINES = new Endpoint(ApiService.PIPELINES, HttpMethod.GET, "/data/pipelines/pipelines"); + /** Endpoint for {@code GET /data/pipelines/pipelines/{param}}. */ public static final Endpoint GET_DATA_PIPELINES_PIPELINES_PARAM = new Endpoint(ApiService.PIPELINES, HttpMethod.GET, "/data/pipelines/pipelines/{param}"); + /** Endpoint for {@code GET /data/pipelines/runs}. */ public static final Endpoint GET_DATA_PIPELINES_RUNS = new Endpoint(ApiService.PIPELINES, HttpMethod.GET, "/data/pipelines/runs"); + /** Endpoint for {@code POST /data/pipelines/pipelines}. */ public static final Endpoint POST_DATA_PIPELINES_PIPELINES = new Endpoint(ApiService.PIPELINES, HttpMethod.POST, "/data/pipelines/pipelines"); + /** Endpoint for {@code POST /data/pipelines/runs}. */ public static final Endpoint POST_DATA_PIPELINES_RUNS = new Endpoint(ApiService.PIPELINES, HttpMethod.POST, "/data/pipelines/runs"); + /** Endpoint for {@code STREAM /data/pipelines/pipeline-runs/{param}}. */ public static final Endpoint STREAM_DATA_PIPELINES_PIPELINE_RUNS_PARAM = new Endpoint(ApiService.PIPELINES, HttpMethod.STREAM, "/data/pipelines/pipeline-runs/{param}"); } @@ -1198,6 +1716,7 @@ private Pipelines() {} public static final class Providers { private Providers() {} + /** Endpoint for {@code GET /providers/{param}}. */ public static final Endpoint GET_PROVIDERS_PARAM = new Endpoint(ApiService.PROVIDERS, HttpMethod.GET, "/providers/{param}"); } @@ -1209,10 +1728,13 @@ private React() {} public static final class Sandbox { private Sandbox() {} + /** Endpoint for {@code GET /sandbox/languages}. */ public static final Endpoint GET_SANDBOX_LANGUAGES = new Endpoint(ApiService.SANDBOX, HttpMethod.GET, "/sandbox/languages"); + /** Endpoint for {@code POST /sandbox/self-test}. */ public static final Endpoint POST_SANDBOX_SELF_TEST = new Endpoint(ApiService.SANDBOX, HttpMethod.POST, "/sandbox/self-test"); + /** Endpoint for {@code POST /sandbox/submit}. */ public static final Endpoint POST_SANDBOX_SUBMIT = new Endpoint(ApiService.SANDBOX, HttpMethod.POST, "/sandbox/submit"); } @@ -1220,24 +1742,34 @@ private Sandbox() {} public static final class Schedules { private Schedules() {} + /** Endpoint for {@code DELETE /workflows/schedules/{param}}. */ public static final Endpoint DELETE_WORKFLOWS_SCHEDULES_PARAM = new Endpoint(ApiService.SCHEDULES, HttpMethod.DELETE, "/workflows/schedules/{param}"); + /** Endpoint for {@code GET /workflows/schedules}. */ public static final Endpoint GET_WORKFLOWS_SCHEDULES = new Endpoint(ApiService.SCHEDULES, HttpMethod.GET, "/workflows/schedules"); + /** Endpoint for {@code GET /workflows/schedules/{param}}. */ public static final Endpoint GET_WORKFLOWS_SCHEDULES_PARAM = new Endpoint(ApiService.SCHEDULES, HttpMethod.GET, "/workflows/schedules/{param}"); + /** Endpoint for {@code PATCH /workflows/schedules/{param}}. */ public static final Endpoint PATCH_WORKFLOWS_SCHEDULES_PARAM = new Endpoint(ApiService.SCHEDULES, HttpMethod.PATCH, "/workflows/schedules/{param}"); + /** Endpoint for {@code POST /workflows/cron/parse}. */ public static final Endpoint POST_WORKFLOWS_CRON_PARSE = new Endpoint(ApiService.SCHEDULES, HttpMethod.POST, "/workflows/cron/parse"); + /** Endpoint for {@code POST /workflows/cron/validate}. */ public static final Endpoint POST_WORKFLOWS_CRON_VALIDATE = new Endpoint(ApiService.SCHEDULES, HttpMethod.POST, "/workflows/cron/validate"); + /** Endpoint for {@code POST /workflows/schedules}. */ public static final Endpoint POST_WORKFLOWS_SCHEDULES = new Endpoint(ApiService.SCHEDULES, HttpMethod.POST, "/workflows/schedules"); + /** Endpoint for {@code POST /workflows/schedules/{param}/pause}. */ public static final Endpoint POST_WORKFLOWS_SCHEDULES_PARAM_PAUSE = new Endpoint(ApiService.SCHEDULES, HttpMethod.POST, "/workflows/schedules/{param}/pause"); + /** Endpoint for {@code POST /workflows/schedules/{param}/resume}. */ public static final Endpoint POST_WORKFLOWS_SCHEDULES_PARAM_RESUME = new Endpoint(ApiService.SCHEDULES, HttpMethod.POST, "/workflows/schedules/{param}/resume"); + /** Endpoint for {@code POST /workflows/schedules/{param}/trigger}. */ public static final Endpoint POST_WORKFLOWS_SCHEDULES_PARAM_TRIGGER = new Endpoint(ApiService.SCHEDULES, HttpMethod.POST, "/workflows/schedules/{param}/trigger"); } @@ -1245,22 +1777,32 @@ private Schedules() {} public static final class Webhooks { private Webhooks() {} + /** Endpoint for {@code DELETE /webhooks/{param}}. */ public static final Endpoint DELETE_WEBHOOKS_PARAM = new Endpoint(ApiService.WEBHOOKS, HttpMethod.DELETE, "/webhooks/{param}"); + /** Endpoint for {@code GET /webhooks}. */ public static final Endpoint GET_WEBHOOKS = new Endpoint(ApiService.WEBHOOKS, HttpMethod.GET, "/webhooks"); + /** Endpoint for {@code GET /webhooks/deliveries}. */ public static final Endpoint GET_WEBHOOKS_DELIVERIES = new Endpoint(ApiService.WEBHOOKS, HttpMethod.GET, "/webhooks/deliveries"); + /** Endpoint for {@code GET /webhooks/deliveries/{param}}. */ public static final Endpoint GET_WEBHOOKS_DELIVERIES_PARAM = new Endpoint(ApiService.WEBHOOKS, HttpMethod.GET, "/webhooks/deliveries/{param}"); + /** Endpoint for {@code GET /webhooks/stats}. */ public static final Endpoint GET_WEBHOOKS_STATS = new Endpoint(ApiService.WEBHOOKS, HttpMethod.GET, "/webhooks/stats"); + /** Endpoint for {@code GET /webhooks/{param}}. */ public static final Endpoint GET_WEBHOOKS_PARAM = new Endpoint(ApiService.WEBHOOKS, HttpMethod.GET, "/webhooks/{param}"); + /** Endpoint for {@code POST /webhooks}. */ public static final Endpoint POST_WEBHOOKS = new Endpoint(ApiService.WEBHOOKS, HttpMethod.POST, "/webhooks"); + /** Endpoint for {@code POST /webhooks/deliveries/{param}/retry}. */ public static final Endpoint POST_WEBHOOKS_DELIVERIES_PARAM_RETRY = new Endpoint(ApiService.WEBHOOKS, HttpMethod.POST, "/webhooks/deliveries/{param}/retry"); + /** Endpoint for {@code POST /webhooks/{param}/rotate-secret}. */ public static final Endpoint POST_WEBHOOKS_PARAM_ROTATE_SECRET = new Endpoint(ApiService.WEBHOOKS, HttpMethod.POST, "/webhooks/{param}/rotate-secret"); + /** Endpoint for {@code PUT /webhooks/{param}}. */ public static final Endpoint PUT_WEBHOOKS_PARAM = new Endpoint(ApiService.WEBHOOKS, HttpMethod.PUT, "/webhooks/{param}"); } @@ -1268,18 +1810,25 @@ private Webhooks() {} public static final class WebhookEndpoints { private WebhookEndpoints() {} + /** Endpoint for {@code DELETE /webhook-endpoints/{param}}. */ public static final Endpoint DELETE_WEBHOOK_ENDPOINTS_PARAM = new Endpoint(ApiService.WEBHOOK_ENDPOINTS, HttpMethod.DELETE, "/webhook-endpoints/{param}"); + /** Endpoint for {@code GET /webhook-endpoints}. */ public static final Endpoint GET_WEBHOOK_ENDPOINTS = new Endpoint(ApiService.WEBHOOK_ENDPOINTS, HttpMethod.GET, "/webhook-endpoints"); + /** Endpoint for {@code GET /webhook-endpoints/{param}}. */ public static final Endpoint GET_WEBHOOK_ENDPOINTS_PARAM = new Endpoint(ApiService.WEBHOOK_ENDPOINTS, HttpMethod.GET, "/webhook-endpoints/{param}"); + /** Endpoint for {@code GET /webhook-endpoints/{param}/deliveries}. */ public static final Endpoint GET_WEBHOOK_ENDPOINTS_PARAM_DELIVERIES = new Endpoint(ApiService.WEBHOOK_ENDPOINTS, HttpMethod.GET, "/webhook-endpoints/{param}/deliveries"); + /** Endpoint for {@code PATCH /webhook-endpoints/{param}}. */ public static final Endpoint PATCH_WEBHOOK_ENDPOINTS_PARAM = new Endpoint(ApiService.WEBHOOK_ENDPOINTS, HttpMethod.PATCH, "/webhook-endpoints/{param}"); + /** Endpoint for {@code POST /webhook-endpoints}. */ public static final Endpoint POST_WEBHOOK_ENDPOINTS = new Endpoint(ApiService.WEBHOOK_ENDPOINTS, HttpMethod.POST, "/webhook-endpoints"); + /** Endpoint for {@code POST /webhook-endpoints/{param}/rotate-secret}. */ public static final Endpoint POST_WEBHOOK_ENDPOINTS_PARAM_ROTATE_SECRET = new Endpoint(ApiService.WEBHOOK_ENDPOINTS, HttpMethod.POST, "/webhook-endpoints/{param}/rotate-secret"); } @@ -1287,62 +1836,92 @@ private WebhookEndpoints() {} public static final class Workflows { private Workflows() {} + /** Endpoint for {@code DELETE /workflows/{param}}. */ public static final Endpoint DELETE_WORKFLOWS_PARAM = new Endpoint(ApiService.WORKFLOWS, HttpMethod.DELETE, "/workflows/{param}"); + /** Endpoint for {@code GET /workflows}. */ public static final Endpoint GET_WORKFLOWS = new Endpoint(ApiService.WORKFLOWS, HttpMethod.GET, "/workflows"); + /** Endpoint for {@code GET /workflows/approvals}. */ public static final Endpoint GET_WORKFLOWS_APPROVALS = new Endpoint(ApiService.WORKFLOWS, HttpMethod.GET, "/workflows/approvals"); + /** Endpoint for {@code GET /workflows/approvals/{param}}. */ public static final Endpoint GET_WORKFLOWS_APPROVALS_PARAM = new Endpoint(ApiService.WORKFLOWS, HttpMethod.GET, "/workflows/approvals/{param}"); + /** Endpoint for {@code GET /workflows/executions}. */ public static final Endpoint GET_WORKFLOWS_EXECUTIONS = new Endpoint(ApiService.WORKFLOWS, HttpMethod.GET, "/workflows/executions"); + /** Endpoint for {@code GET /workflows/executions/{param}}. */ public static final Endpoint GET_WORKFLOWS_EXECUTIONS_PARAM = new Endpoint(ApiService.WORKFLOWS, HttpMethod.GET, "/workflows/executions/{param}"); + /** Endpoint for {@code GET /workflows/executions/{param}/tasks}. */ public static final Endpoint GET_WORKFLOWS_EXECUTIONS_PARAM_TASKS = new Endpoint(ApiService.WORKFLOWS, HttpMethod.GET, "/workflows/executions/{param}/tasks"); + /** Endpoint for {@code GET /workflows/runs/{param}/steps}. */ public static final Endpoint GET_WORKFLOWS_RUNS_PARAM_STEPS = new Endpoint(ApiService.WORKFLOWS, HttpMethod.GET, "/workflows/runs/{param}/steps"); + /** Endpoint for {@code GET /workflows/tasks/{param}}. */ public static final Endpoint GET_WORKFLOWS_TASKS_PARAM = new Endpoint(ApiService.WORKFLOWS, HttpMethod.GET, "/workflows/tasks/{param}"); + /** Endpoint for {@code GET /workflows/templates}. */ public static final Endpoint GET_WORKFLOWS_TEMPLATES = new Endpoint(ApiService.WORKFLOWS, HttpMethod.GET, "/workflows/templates"); + /** Endpoint for {@code GET /workflows/templates/{param}}. */ public static final Endpoint GET_WORKFLOWS_TEMPLATES_PARAM = new Endpoint(ApiService.WORKFLOWS, HttpMethod.GET, "/workflows/templates/{param}"); + /** Endpoint for {@code GET /workflows/{param}}. */ public static final Endpoint GET_WORKFLOWS_PARAM = new Endpoint(ApiService.WORKFLOWS, HttpMethod.GET, "/workflows/{param}"); + /** Endpoint for {@code GET /workflows/{param}/{param}}. */ public static final Endpoint GET_WORKFLOWS_PARAM_PARAM = new Endpoint(ApiService.WORKFLOWS, HttpMethod.GET, "/workflows/{param}/{param}"); + /** Endpoint for {@code GET /workflows/{param}/{param}/summary}. */ public static final Endpoint GET_WORKFLOWS_PARAM_PARAM_SUMMARY = new Endpoint(ApiService.WORKFLOWS, HttpMethod.GET, "/workflows/{param}/{param}/summary"); + /** Endpoint for {@code GET /workflows/{param}/{param}/timeline}. */ public static final Endpoint GET_WORKFLOWS_PARAM_PARAM_TIMELINE = new Endpoint(ApiService.WORKFLOWS, HttpMethod.GET, "/workflows/{param}/{param}/timeline"); + /** Endpoint for {@code PATCH /workflows/{param}}. */ public static final Endpoint PATCH_WORKFLOWS_PARAM = new Endpoint(ApiService.WORKFLOWS, HttpMethod.PATCH, "/workflows/{param}"); + /** Endpoint for {@code POST /workflows}. */ public static final Endpoint POST_WORKFLOWS = new Endpoint(ApiService.WORKFLOWS, HttpMethod.POST, "/workflows"); + /** Endpoint for {@code POST /workflows/approvals/{param}/approve}. */ public static final Endpoint POST_WORKFLOWS_APPROVALS_PARAM_APPROVE = new Endpoint(ApiService.WORKFLOWS, HttpMethod.POST, "/workflows/approvals/{param}/approve"); + /** Endpoint for {@code POST /workflows/approvals/{param}/reject}. */ public static final Endpoint POST_WORKFLOWS_APPROVALS_PARAM_REJECT = new Endpoint(ApiService.WORKFLOWS, HttpMethod.POST, "/workflows/approvals/{param}/reject"); + /** Endpoint for {@code POST /workflows/batch}. */ public static final Endpoint POST_WORKFLOWS_BATCH = new Endpoint(ApiService.WORKFLOWS, HttpMethod.POST, "/workflows/batch"); + /** Endpoint for {@code POST /workflows/executions}. */ public static final Endpoint POST_WORKFLOWS_EXECUTIONS = new Endpoint(ApiService.WORKFLOWS, HttpMethod.POST, "/workflows/executions"); + /** Endpoint for {@code POST /workflows/search}. */ public static final Endpoint POST_WORKFLOWS_SEARCH = new Endpoint(ApiService.WORKFLOWS, HttpMethod.POST, "/workflows/search"); + /** Endpoint for {@code POST /workflows/tasks/{param}/cancel}. */ public static final Endpoint POST_WORKFLOWS_TASKS_PARAM_CANCEL = new Endpoint(ApiService.WORKFLOWS, HttpMethod.POST, "/workflows/tasks/{param}/cancel"); + /** Endpoint for {@code POST /workflows/tasks/{param}/retry}. */ public static final Endpoint POST_WORKFLOWS_TASKS_PARAM_RETRY = new Endpoint(ApiService.WORKFLOWS, HttpMethod.POST, "/workflows/tasks/{param}/retry"); + /** Endpoint for {@code POST /workflows/templates}. */ public static final Endpoint POST_WORKFLOWS_TEMPLATES = new Endpoint(ApiService.WORKFLOWS, HttpMethod.POST, "/workflows/templates"); + /** Endpoint for {@code POST /workflows/templates/{param}/instantiate}. */ public static final Endpoint POST_WORKFLOWS_TEMPLATES_PARAM_INSTANTIATE = new Endpoint(ApiService.WORKFLOWS, HttpMethod.POST, "/workflows/templates/{param}/instantiate"); + /** Endpoint for {@code POST /workflows/{param}/archive}. */ public static final Endpoint POST_WORKFLOWS_PARAM_ARCHIVE = new Endpoint(ApiService.WORKFLOWS, HttpMethod.POST, "/workflows/{param}/archive"); + /** Endpoint for {@code POST /workflows/{param}/publish}. */ public static final Endpoint POST_WORKFLOWS_PARAM_PUBLISH = new Endpoint(ApiService.WORKFLOWS, HttpMethod.POST, "/workflows/{param}/publish"); + /** Endpoint for {@code POST /workflows/{param}/restore}. */ public static final Endpoint POST_WORKFLOWS_PARAM_RESTORE = new Endpoint(ApiService.WORKFLOWS, HttpMethod.POST, "/workflows/{param}/restore"); + /** Endpoint for {@code POST /workflows/{param}/versions}. */ public static final Endpoint POST_WORKFLOWS_PARAM_VERSIONS = new Endpoint(ApiService.WORKFLOWS, HttpMethod.POST, "/workflows/{param}/versions"); } diff --git a/services/src/main/java/dev/frontal/sdk/resources/EventsBenchmarkClient.java b/services/src/main/java/dev/frontal/sdk/resources/EventsBenchmarkClient.java new file mode 100644 index 0000000..6eb5645 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/EventsBenchmarkClient.java @@ -0,0 +1,126 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for events/benchmark. Generated by scripts/generate_endpoints.py. */ +public final class EventsBenchmarkClient extends ServiceClient { + EventsBenchmarkClient(ApiClient client) { + super(ApiService.EVENTS, client); + } + + /** + * Calls the contract route {@code POST /events/benchmark/v1}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("events|POST|/events/benchmark/v1") + public @Nullable T createV1(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS_BENCHMARK_V1, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events/benchmark/v1} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createV1(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS_BENCHMARK_V1, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events/benchmark/v1} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createV1(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createV1(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /events/benchmark/v1} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createV1(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createV1(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /events/benchmark/v2}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("events|POST|/events/benchmark/v2") + public @Nullable T createV2(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS_BENCHMARK_V2, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events/benchmark/v2} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createV2(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS_BENCHMARK_V2, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events/benchmark/v2} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createV2(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createV2(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /events/benchmark/v2} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createV2(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createV2(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/EventsClient.java b/services/src/main/java/dev/frontal/sdk/resources/EventsClient.java new file mode 100644 index 0000000..540089c --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/EventsClient.java @@ -0,0 +1,644 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for events. Generated by scripts/generate_endpoints.py. */ +public final class EventsClient extends ServiceClient { + EventsClient(ApiClient client) { + super(ApiService.EVENTS, client); + } + + /** Returns the client for the nested resource. + * @return the benchmark resource client + */ + public EventsBenchmarkClient benchmark() { + return new EventsBenchmarkClient(client()); + } + + /** Returns the client for the nested resource. + * @return the raw resource client + */ + public EventsRawClient raw() { + return new EventsRawClient(client()); + } + + /** Returns the client for the nested resource. + * @return the reprocess resource client + */ + public EventsReprocessClient reprocess() { + return new EventsReprocessClient(client()); + } + + /** Returns the client for the nested resource. + * @return the usage resource client + */ + public EventsUsageClient usage() { + return new EventsUsageClient(client()); + } + + /** + * Calls the contract route {@code GET /events}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("events|GET|/events") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Events.GET_EVENTS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /events} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.GET_EVENTS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /events} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /events} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /events/monitoring}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("events|GET|/events/monitoring") + public @Nullable T getMonitoring(QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.GET_EVENTS_MONITORING, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /events/monitoring} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getMonitoring(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.GET_EVENTS_MONITORING, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /events/monitoring} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getMonitoring(Class responseType) throws IOException, InterruptedException { + return getMonitoring(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /events/monitoring} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getMonitoring(TypeReference responseType) throws IOException, InterruptedException { + return getMonitoring(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /events/{param}}. + * @param decoded response type + * @param id id supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("events|GET|/events/{param}") + public @Nullable T get(String id, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.GET_EVENTS_PARAM, List.of(id), query, null, responseType); + } + /** + * Calls the contract route {@code GET /events/{param}} using a generic response type. + * @param decoded response type + * @param id id supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String id, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.GET_EVENTS_PARAM, List.of(id), query, null, responseType); + } + /** + * Calls the contract route {@code GET /events/{param}} without query parameters. + * @param decoded response type + * @param id id supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String id, Class responseType) throws IOException, InterruptedException { + return get(id, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /events/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param id id supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String id, TypeReference responseType) throws IOException, InterruptedException { + return get(id, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /events}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("events|POST|/events") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /events} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /events/analytics}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("events|POST|/events/analytics") + public @Nullable T analytics(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS_ANALYTICS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events/analytics} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T analytics(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS_ANALYTICS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events/analytics} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T analytics(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return analytics(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /events/analytics} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T analytics(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return analytics(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /events/analytics-v2}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("events|POST|/events/analytics-v2") + public @Nullable T createAnalyticsV2(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS_ANALYTICS_V2, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events/analytics-v2} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createAnalyticsV2(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS_ANALYTICS_V2, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events/analytics-v2} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createAnalyticsV2(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createAnalyticsV2(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /events/analytics-v2} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createAnalyticsV2(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createAnalyticsV2(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /events/bulk}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("events|POST|/events/bulk") + public @Nullable T bulk(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS_BULK, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events/bulk} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T bulk(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS_BULK, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events/bulk} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T bulk(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return bulk(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /events/bulk} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T bulk(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return bulk(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /events/huggingface-billing}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("events|POST|/events/huggingface-billing") + public @Nullable T createHuggingfaceBilling(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS_HUGGINGFACE_BILLING, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events/huggingface-billing} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createHuggingfaceBilling( + QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS_HUGGINGFACE_BILLING, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events/huggingface-billing} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createHuggingfaceBilling(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createHuggingfaceBilling(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /events/huggingface-billing} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createHuggingfaceBilling(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createHuggingfaceBilling(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /events/query}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("events|POST|/events/query") + public @Nullable T query(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS_QUERY, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events/query} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T query(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS_QUERY, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events/query} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T query(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return query(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /events/query} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T query(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return query(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /events/reprocess}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("events|POST|/events/reprocess") + public @Nullable T reprocess(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS_REPROCESS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events/reprocess} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T reprocess(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS_REPROCESS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events/reprocess} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T reprocess(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return reprocess(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /events/reprocess} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T reprocess(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return reprocess(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /events/usage}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("events|POST|/events/usage") + public @Nullable T usage(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS_USAGE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events/usage} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T usage(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS_USAGE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events/usage} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T usage(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return usage(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /events/usage} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T usage(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return usage(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/EventsRawClient.java b/services/src/main/java/dev/frontal/sdk/resources/EventsRawClient.java new file mode 100644 index 0000000..f5ecf19 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/EventsRawClient.java @@ -0,0 +1,15 @@ +package dev.frontal.sdk; + +/** Contract operations for events/raw. Generated by scripts/generate_endpoints.py. */ +public final class EventsRawClient extends ServiceClient { + EventsRawClient(ApiClient client) { + super(ApiService.EVENTS, client); + } + + /** Returns the client for the nested resource. + * @return the reprocess resource client + */ + public EventsRawReprocessClient reprocess() { + return new EventsRawReprocessClient(client()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/EventsRawReprocessClient.java b/services/src/main/java/dev/frontal/sdk/resources/EventsRawReprocessClient.java new file mode 100644 index 0000000..43bb259 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/EventsRawReprocessClient.java @@ -0,0 +1,126 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for events/raw/reprocess. Generated by scripts/generate_endpoints.py. */ +public final class EventsRawReprocessClient extends ServiceClient { + EventsRawReprocessClient(ApiClient client) { + super(ApiService.EVENTS, client); + } + + /** + * Calls the contract route {@code POST /events/raw/reprocess/all}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("events|POST|/events/raw/reprocess/all") + public @Nullable T createAll(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS_RAW_REPROCESS_ALL, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events/raw/reprocess/all} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createAll(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS_RAW_REPROCESS_ALL, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events/raw/reprocess/all} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createAll(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createAll(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /events/raw/reprocess/all} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createAll(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createAll(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /events/raw/reprocess/pending}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("events|POST|/events/raw/reprocess/pending") + public @Nullable T createPending(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS_RAW_REPROCESS_PENDING, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events/raw/reprocess/pending} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createPending(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS_RAW_REPROCESS_PENDING, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events/raw/reprocess/pending} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createPending(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createPending(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /events/raw/reprocess/pending} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createPending(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createPending(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/EventsReprocessClient.java b/services/src/main/java/dev/frontal/sdk/resources/EventsReprocessClient.java new file mode 100644 index 0000000..fe1d835 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/EventsReprocessClient.java @@ -0,0 +1,70 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for events/reprocess. Generated by scripts/generate_endpoints.py. */ +public final class EventsReprocessClient extends ServiceClient { + EventsReprocessClient(ApiClient client) { + super(ApiService.EVENTS, client); + } + + /** + * Calls the contract route {@code POST /events/reprocess/internal}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("events|POST|/events/reprocess/internal") + public @Nullable T createInternal(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS_REPROCESS_INTERNAL, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events/reprocess/internal} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createInternal(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS_REPROCESS_INTERNAL, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events/reprocess/internal} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createInternal(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createInternal(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /events/reprocess/internal} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createInternal(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createInternal(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/EventsUsageClient.java b/services/src/main/java/dev/frontal/sdk/resources/EventsUsageClient.java new file mode 100644 index 0000000..dfca8fc --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/EventsUsageClient.java @@ -0,0 +1,70 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for events/usage. Generated by scripts/generate_endpoints.py. */ +public final class EventsUsageClient extends ServiceClient { + EventsUsageClient(ApiClient client) { + super(ApiService.EVENTS, client); + } + + /** + * Calls the contract route {@code POST /events/usage/meter}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("events|POST|/events/usage/meter") + public @Nullable T createMeter(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS_USAGE_METER, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events/usage/meter} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createMeter(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Events.POST_EVENTS_USAGE_METER, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /events/usage/meter} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createMeter(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createMeter(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /events/usage/meter} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createMeter(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createMeter(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/GovernanceAccessClient.java b/services/src/main/java/dev/frontal/sdk/resources/GovernanceAccessClient.java new file mode 100644 index 0000000..aafe217 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/GovernanceAccessClient.java @@ -0,0 +1,70 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for governance/access. Generated by scripts/generate_endpoints.py. */ +public final class GovernanceAccessClient extends ServiceClient { + GovernanceAccessClient(ApiClient client) { + super(ApiService.GOVERNANCE, client); + } + + /** + * Calls the contract route {@code POST /access/check}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("governance|POST|/access/check") + public @Nullable T check(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.POST_ACCESS_CHECK, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /access/check} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T check(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.POST_ACCESS_CHECK, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /access/check} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T check(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return check(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /access/check} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T check(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return check(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/GovernanceClient.java b/services/src/main/java/dev/frontal/sdk/resources/GovernanceClient.java new file mode 100644 index 0000000..df9742f --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/GovernanceClient.java @@ -0,0 +1,43 @@ +package dev.frontal.sdk; + +/** Contract operations for governance. Generated by scripts/generate_endpoints.py. */ +public final class GovernanceClient extends ServiceClient { + GovernanceClient(ApiClient client) { + super(ApiService.GOVERNANCE, client); + } + + /** Returns the client for the nested resource. + * @return the access resource client + */ + public GovernanceAccessClient access() { + return new GovernanceAccessClient(client()); + } + + /** Returns the client for the nested resource. + * @return the compliance resource client + */ + public GovernanceComplianceClient compliance() { + return new GovernanceComplianceClient(client()); + } + + /** Returns the client for the nested resource. + * @return the permissions resource client + */ + public GovernancePermissionsClient permissions() { + return new GovernancePermissionsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the policies resource client + */ + public GovernancePoliciesClient policies() { + return new GovernancePoliciesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the roles resource client + */ + public GovernanceRolesClient roles() { + return new GovernanceRolesClient(client()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/GovernanceComplianceAssessmentsClient.java b/services/src/main/java/dev/frontal/sdk/resources/GovernanceComplianceAssessmentsClient.java new file mode 100644 index 0000000..a02a692 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/GovernanceComplianceAssessmentsClient.java @@ -0,0 +1,184 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for governance/compliance/assessments. Generated by scripts/generate_endpoints.py. */ +public final class GovernanceComplianceAssessmentsClient extends ServiceClient { + GovernanceComplianceAssessmentsClient(ApiClient client) { + super(ApiService.GOVERNANCE, client); + } + + /** + * Calls the contract route {@code GET /compliance/assessments}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("governance|GET|/compliance/assessments") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Governance.GET_COMPLIANCE_ASSESSMENTS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /compliance/assessments} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.GET_COMPLIANCE_ASSESSMENTS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /compliance/assessments} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /compliance/assessments} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /compliance/assessments/{param}}. + * @param decoded response type + * @param assessmentId assessmentId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("governance|GET|/compliance/assessments/{param}") + public @Nullable T get(String assessmentId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Governance.GET_COMPLIANCE_ASSESSMENTS_PARAM, + List.of(assessmentId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /compliance/assessments/{param}} using a generic response type. + * @param decoded response type + * @param assessmentId assessmentId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String assessmentId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Governance.GET_COMPLIANCE_ASSESSMENTS_PARAM, + List.of(assessmentId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /compliance/assessments/{param}} without query parameters. + * @param decoded response type + * @param assessmentId assessmentId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String assessmentId, Class responseType) throws IOException, InterruptedException { + return get(assessmentId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /compliance/assessments/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param assessmentId assessmentId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String assessmentId, TypeReference responseType) + throws IOException, InterruptedException { + return get(assessmentId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /compliance/assessments}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("governance|POST|/compliance/assessments") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.POST_COMPLIANCE_ASSESSMENTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /compliance/assessments} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.POST_COMPLIANCE_ASSESSMENTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /compliance/assessments} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /compliance/assessments} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/GovernanceComplianceClient.java b/services/src/main/java/dev/frontal/sdk/resources/GovernanceComplianceClient.java new file mode 100644 index 0000000..5939886 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/GovernanceComplianceClient.java @@ -0,0 +1,83 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for governance/compliance. Generated by scripts/generate_endpoints.py. */ +public final class GovernanceComplianceClient extends ServiceClient { + GovernanceComplianceClient(ApiClient client) { + super(ApiService.GOVERNANCE, client); + } + + /** Returns the client for the nested resource. + * @return the assessments resource client + */ + public GovernanceComplianceAssessmentsClient assessments() { + return new GovernanceComplianceAssessmentsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the frameworks resource client + */ + public GovernanceComplianceFrameworksClient frameworks() { + return new GovernanceComplianceFrameworksClient(client()); + } + + /** Returns the client for the nested resource. + * @return the violations resource client + */ + public GovernanceComplianceViolationsClient violations() { + return new GovernanceComplianceViolationsClient(client()); + } + + /** + * Calls the contract route {@code GET /compliance/score}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("governance|GET|/compliance/score") + public @Nullable T getScore(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Governance.GET_COMPLIANCE_SCORE, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /compliance/score} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getScore(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.GET_COMPLIANCE_SCORE, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /compliance/score} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getScore(Class responseType) throws IOException, InterruptedException { + return getScore(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /compliance/score} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getScore(TypeReference responseType) throws IOException, InterruptedException { + return getScore(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/GovernanceComplianceFrameworksClient.java b/services/src/main/java/dev/frontal/sdk/resources/GovernanceComplianceFrameworksClient.java new file mode 100644 index 0000000..dea66ce --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/GovernanceComplianceFrameworksClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for governance/compliance/frameworks. Generated by scripts/generate_endpoints.py. */ +public final class GovernanceComplianceFrameworksClient extends ServiceClient { + GovernanceComplianceFrameworksClient(ApiClient client) { + super(ApiService.GOVERNANCE, client); + } + + /** + * Calls the contract route {@code GET /compliance/frameworks}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("governance|GET|/compliance/frameworks") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Governance.GET_COMPLIANCE_FRAMEWORKS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /compliance/frameworks} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.GET_COMPLIANCE_FRAMEWORKS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /compliance/frameworks} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /compliance/frameworks} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/GovernanceComplianceViolationsClient.java b/services/src/main/java/dev/frontal/sdk/resources/GovernanceComplianceViolationsClient.java new file mode 100644 index 0000000..49747bf --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/GovernanceComplianceViolationsClient.java @@ -0,0 +1,135 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for governance/compliance/violations. Generated by scripts/generate_endpoints.py. */ +public final class GovernanceComplianceViolationsClient extends ServiceClient { + GovernanceComplianceViolationsClient(ApiClient client) { + super(ApiService.GOVERNANCE, client); + } + + /** + * Calls the contract route {@code GET /compliance/violations}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("governance|GET|/compliance/violations") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Governance.GET_COMPLIANCE_VIOLATIONS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /compliance/violations} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.GET_COMPLIANCE_VIOLATIONS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /compliance/violations} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /compliance/violations} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /compliance/violations/{param}/resolve}. + * @param decoded response type + * @param violationId violationId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("governance|POST|/compliance/violations/{param}/resolve") + public @Nullable T resolve( + String violationId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Governance.POST_COMPLIANCE_VIOLATIONS_PARAM_RESOLVE, + List.of(violationId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /compliance/violations/{param}/resolve} using a generic response type. + * @param decoded response type + * @param violationId violationId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T resolve( + String violationId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Governance.POST_COMPLIANCE_VIOLATIONS_PARAM_RESOLVE, + List.of(violationId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /compliance/violations/{param}/resolve} without query parameters. + * @param decoded response type + * @param violationId violationId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T resolve(String violationId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return resolve(violationId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /compliance/violations/{param}/resolve} without query parameters using a generic response type. + * @param decoded response type + * @param violationId violationId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T resolve(String violationId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return resolve(violationId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/GovernancePermissionsClient.java b/services/src/main/java/dev/frontal/sdk/resources/GovernancePermissionsClient.java new file mode 100644 index 0000000..58e1480 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/GovernancePermissionsClient.java @@ -0,0 +1,174 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for governance/permissions. Generated by scripts/generate_endpoints.py. */ +public final class GovernancePermissionsClient extends ServiceClient { + GovernancePermissionsClient(ApiClient client) { + super(ApiService.GOVERNANCE, client); + } + + /** + * Calls the contract route {@code GET /permissions}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("governance|GET|/permissions") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Governance.GET_PERMISSIONS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /permissions} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.GET_PERMISSIONS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /permissions} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /permissions} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /permissions/{param}}. + * @param decoded response type + * @param permissionId permissionId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("governance|GET|/permissions/{param}") + public @Nullable T get(String permissionId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.GET_PERMISSIONS_PARAM, List.of(permissionId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /permissions/{param}} using a generic response type. + * @param decoded response type + * @param permissionId permissionId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String permissionId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.GET_PERMISSIONS_PARAM, List.of(permissionId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /permissions/{param}} without query parameters. + * @param decoded response type + * @param permissionId permissionId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String permissionId, Class responseType) throws IOException, InterruptedException { + return get(permissionId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /permissions/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param permissionId permissionId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String permissionId, TypeReference responseType) + throws IOException, InterruptedException { + return get(permissionId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /permissions}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("governance|POST|/permissions") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.POST_PERMISSIONS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /permissions} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.POST_PERMISSIONS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /permissions} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /permissions} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/GovernancePoliciesClient.java b/services/src/main/java/dev/frontal/sdk/resources/GovernancePoliciesClient.java new file mode 100644 index 0000000..fee2f8e --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/GovernancePoliciesClient.java @@ -0,0 +1,416 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for governance/policies. Generated by scripts/generate_endpoints.py. */ +public final class GovernancePoliciesClient extends ServiceClient { + GovernancePoliciesClient(ApiClient client) { + super(ApiService.GOVERNANCE, client); + } + + /** Returns the client for the nested resource. + * @return the templates resource client + */ + public GovernancePoliciesTemplatesClient templates() { + return new GovernancePoliciesTemplatesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the versions resource client + */ + public GovernancePoliciesVersionsClient versions() { + return new GovernancePoliciesVersionsClient(client()); + } + + /** + * Calls the contract route {@code DELETE /policies/{param}}. + * @param decoded response type + * @param policyId policyId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("governance|DELETE|/policies/{param}") + public @Nullable T delete(String policyId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.DELETE_POLICIES_PARAM, List.of(policyId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /policies/{param}} using a generic response type. + * @param decoded response type + * @param policyId policyId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String policyId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.DELETE_POLICIES_PARAM, List.of(policyId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /policies/{param}} without query parameters. + * @param decoded response type + * @param policyId policyId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String policyId, Class responseType) throws IOException, InterruptedException { + return delete(policyId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /policies/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param policyId policyId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String policyId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(policyId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /policies}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("governance|GET|/policies") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Governance.GET_POLICIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /policies} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.GET_POLICIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /policies} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /policies} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /policies/{param}}. + * @param decoded response type + * @param policyId policyId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("governance|GET|/policies/{param}") + public @Nullable T get(String policyId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.GET_POLICIES_PARAM, List.of(policyId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /policies/{param}} using a generic response type. + * @param decoded response type + * @param policyId policyId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String policyId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.GET_POLICIES_PARAM, List.of(policyId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /policies/{param}} without query parameters. + * @param decoded response type + * @param policyId policyId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String policyId, Class responseType) throws IOException, InterruptedException { + return get(policyId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /policies/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param policyId policyId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String policyId, TypeReference responseType) + throws IOException, InterruptedException { + return get(policyId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /policies}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("governance|POST|/policies") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.POST_POLICIES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /policies} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.POST_POLICIES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /policies} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /policies} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /policies/from-template}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("governance|POST|/policies/from-template") + public @Nullable T createFromTemplate(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.POST_POLICIES_FROM_TEMPLATE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /policies/from-template} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createFromTemplate(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.POST_POLICIES_FROM_TEMPLATE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /policies/from-template} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createFromTemplate(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createFromTemplate(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /policies/from-template} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createFromTemplate(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createFromTemplate(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /policies/validate}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("governance|POST|/policies/validate") + public @Nullable T validate(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.POST_POLICIES_VALIDATE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /policies/validate} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T validate(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.POST_POLICIES_VALIDATE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /policies/validate} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T validate(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return validate(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /policies/validate} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T validate(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return validate(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code PUT /policies/{param}}. + * @param decoded response type + * @param policyId policyId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("governance|PUT|/policies/{param}") + public @Nullable T update(String policyId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.PUT_POLICIES_PARAM, List.of(policyId), query, body, responseType); + } + /** + * Calls the contract route {@code PUT /policies/{param}} using a generic response type. + * @param decoded response type + * @param policyId policyId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update( + String policyId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.PUT_POLICIES_PARAM, List.of(policyId), query, body, responseType); + } + /** + * Calls the contract route {@code PUT /policies/{param}} without query parameters. + * @param decoded response type + * @param policyId policyId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String policyId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return update(policyId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code PUT /policies/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param policyId policyId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String policyId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return update(policyId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/GovernancePoliciesTemplatesClient.java b/services/src/main/java/dev/frontal/sdk/resources/GovernancePoliciesTemplatesClient.java new file mode 100644 index 0000000..6fe5ac8 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/GovernancePoliciesTemplatesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for governance/policies/templates. Generated by scripts/generate_endpoints.py. */ +public final class GovernancePoliciesTemplatesClient extends ServiceClient { + GovernancePoliciesTemplatesClient(ApiClient client) { + super(ApiService.GOVERNANCE, client); + } + + /** + * Calls the contract route {@code GET /policies/templates}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("governance|GET|/policies/templates") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Governance.GET_POLICIES_TEMPLATES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /policies/templates} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.GET_POLICIES_TEMPLATES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /policies/templates} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /policies/templates} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/GovernancePoliciesVersionsClient.java b/services/src/main/java/dev/frontal/sdk/resources/GovernancePoliciesVersionsClient.java new file mode 100644 index 0000000..c33df3a --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/GovernancePoliciesVersionsClient.java @@ -0,0 +1,68 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for governance/policies/versions. Generated by scripts/generate_endpoints.py. */ +public final class GovernancePoliciesVersionsClient extends ServiceClient { + GovernancePoliciesVersionsClient(ApiClient client) { + super(ApiService.GOVERNANCE, client); + } + + /** + * Calls the contract route {@code GET /policies/{param}/versions}. + * @param decoded response type + * @param policyId policyId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("governance|GET|/policies/{param}/versions") + public @Nullable T list(String policyId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.GET_POLICIES_PARAM_VERSIONS, List.of(policyId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /policies/{param}/versions} using a generic response type. + * @param decoded response type + * @param policyId policyId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String policyId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.GET_POLICIES_PARAM_VERSIONS, List.of(policyId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /policies/{param}/versions} without query parameters. + * @param decoded response type + * @param policyId policyId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String policyId, Class responseType) throws IOException, InterruptedException { + return list(policyId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /policies/{param}/versions} without query parameters using a generic response type. + * @param decoded response type + * @param policyId policyId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String policyId, TypeReference responseType) + throws IOException, InterruptedException { + return list(policyId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/GovernanceRolesClient.java b/services/src/main/java/dev/frontal/sdk/resources/GovernanceRolesClient.java new file mode 100644 index 0000000..7746ed4 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/GovernanceRolesClient.java @@ -0,0 +1,228 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for governance/roles. Generated by scripts/generate_endpoints.py. */ +public final class GovernanceRolesClient extends ServiceClient { + GovernanceRolesClient(ApiClient client) { + super(ApiService.GOVERNANCE, client); + } + + /** + * Calls the contract route {@code DELETE /roles/{param}}. + * @param decoded response type + * @param roleId roleId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("governance|DELETE|/roles/{param}") + public @Nullable T delete(String roleId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.DELETE_ROLES_PARAM, List.of(roleId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /roles/{param}} using a generic response type. + * @param decoded response type + * @param roleId roleId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String roleId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.DELETE_ROLES_PARAM, List.of(roleId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /roles/{param}} without query parameters. + * @param decoded response type + * @param roleId roleId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String roleId, Class responseType) throws IOException, InterruptedException { + return delete(roleId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /roles/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param roleId roleId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String roleId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(roleId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /roles}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("governance|GET|/roles") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Governance.GET_ROLES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /roles} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.GET_ROLES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /roles} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /roles} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /roles/{param}}. + * @param decoded response type + * @param roleId roleId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("governance|GET|/roles/{param}") + public @Nullable T get(String roleId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.GET_ROLES_PARAM, List.of(roleId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /roles/{param}} using a generic response type. + * @param decoded response type + * @param roleId roleId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String roleId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.GET_ROLES_PARAM, List.of(roleId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /roles/{param}} without query parameters. + * @param decoded response type + * @param roleId roleId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String roleId, Class responseType) throws IOException, InterruptedException { + return get(roleId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /roles/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param roleId roleId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String roleId, TypeReference responseType) throws IOException, InterruptedException { + return get(roleId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /roles}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("governance|POST|/roles") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.POST_ROLES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /roles} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Governance.POST_ROLES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /roles} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /roles} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/InvocationsClient.java b/services/src/main/java/dev/frontal/sdk/resources/InvocationsClient.java new file mode 100644 index 0000000..26dc8f7 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/InvocationsClient.java @@ -0,0 +1,70 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for invocations. Generated by scripts/generate_endpoints.py. */ +public final class InvocationsClient extends ServiceClient { + InvocationsClient(ApiClient client) { + super(ApiService.INVOCATIONS, client); + } + + /** + * Calls the contract route {@code POST /invocations}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("invocations|POST|/invocations") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Invocations.POST_INVOCATIONS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /invocations} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Invocations.POST_INVOCATIONS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /invocations} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /invocations} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/LineageClient.java b/services/src/main/java/dev/frontal/sdk/resources/LineageClient.java new file mode 100644 index 0000000..42964c2 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/LineageClient.java @@ -0,0 +1,133 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for lineage. Generated by scripts/generate_endpoints.py. */ +public final class LineageClient extends ServiceClient { + LineageClient(ApiClient client) { + super(ApiService.LINEAGE, client); + } + + /** Returns the client for the nested resource. + * @return the edges resource client + */ + public LineageEdgesClient edges() { + return new LineageEdgesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the nodes resource client + */ + public LineageNodesClient nodes() { + return new LineageNodesClient(client()); + } + + /** + * Calls the contract route {@code GET /lineage/graph}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("lineage|GET|/lineage/graph") + public @Nullable T getGraph(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Lineage.GET_LINEAGE_GRAPH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /lineage/graph} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getGraph(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Lineage.GET_LINEAGE_GRAPH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /lineage/graph} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getGraph(Class responseType) throws IOException, InterruptedException { + return getGraph(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /lineage/graph} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getGraph(TypeReference responseType) throws IOException, InterruptedException { + return getGraph(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /lineage/impact}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("lineage|POST|/lineage/impact") + public @Nullable T createImpact(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Lineage.POST_LINEAGE_IMPACT, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /lineage/impact} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createImpact(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Lineage.POST_LINEAGE_IMPACT, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /lineage/impact} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createImpact(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createImpact(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /lineage/impact} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createImpact(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createImpact(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/LineageEdgesClient.java b/services/src/main/java/dev/frontal/sdk/resources/LineageEdgesClient.java new file mode 100644 index 0000000..86748c6 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/LineageEdgesClient.java @@ -0,0 +1,116 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for lineage/edges. Generated by scripts/generate_endpoints.py. */ +public final class LineageEdgesClient extends ServiceClient { + LineageEdgesClient(ApiClient client) { + super(ApiService.LINEAGE, client); + } + + /** + * Calls the contract route {@code GET /lineage/edges}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("lineage|GET|/lineage/edges") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Lineage.GET_LINEAGE_EDGES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /lineage/edges} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Lineage.GET_LINEAGE_EDGES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /lineage/edges} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /lineage/edges} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /lineage/edges/{param}}. + * @param decoded response type + * @param edgeId edgeId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("lineage|GET|/lineage/edges/{param}") + public @Nullable T get(String edgeId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Lineage.GET_LINEAGE_EDGES_PARAM, List.of(edgeId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /lineage/edges/{param}} using a generic response type. + * @param decoded response type + * @param edgeId edgeId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String edgeId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Lineage.GET_LINEAGE_EDGES_PARAM, List.of(edgeId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /lineage/edges/{param}} without query parameters. + * @param decoded response type + * @param edgeId edgeId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String edgeId, Class responseType) throws IOException, InterruptedException { + return get(edgeId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /lineage/edges/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param edgeId edgeId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String edgeId, TypeReference responseType) throws IOException, InterruptedException { + return get(edgeId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/LineageNodesClient.java b/services/src/main/java/dev/frontal/sdk/resources/LineageNodesClient.java new file mode 100644 index 0000000..b8c1f8f --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/LineageNodesClient.java @@ -0,0 +1,171 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for lineage/nodes. Generated by scripts/generate_endpoints.py. */ +public final class LineageNodesClient extends ServiceClient { + LineageNodesClient(ApiClient client) { + super(ApiService.LINEAGE, client); + } + + /** + * Calls the contract route {@code GET /lineage/nodes}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("lineage|GET|/lineage/nodes") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Lineage.GET_LINEAGE_NODES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /lineage/nodes} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Lineage.GET_LINEAGE_NODES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /lineage/nodes} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /lineage/nodes} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /lineage/nodes/{param}}. + * @param decoded response type + * @param nodeId nodeId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("lineage|GET|/lineage/nodes/{param}") + public @Nullable T get(String nodeId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Lineage.GET_LINEAGE_NODES_PARAM, List.of(nodeId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /lineage/nodes/{param}} using a generic response type. + * @param decoded response type + * @param nodeId nodeId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String nodeId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Lineage.GET_LINEAGE_NODES_PARAM, List.of(nodeId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /lineage/nodes/{param}} without query parameters. + * @param decoded response type + * @param nodeId nodeId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String nodeId, Class responseType) throws IOException, InterruptedException { + return get(nodeId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /lineage/nodes/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param nodeId nodeId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String nodeId, TypeReference responseType) throws IOException, InterruptedException { + return get(nodeId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /lineage/nodes/{param}/trace}. + * @param decoded response type + * @param nodeId nodeId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("lineage|GET|/lineage/nodes/{param}/trace") + public @Nullable T getTrace(String nodeId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Lineage.GET_LINEAGE_NODES_PARAM_TRACE, List.of(nodeId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /lineage/nodes/{param}/trace} using a generic response type. + * @param decoded response type + * @param nodeId nodeId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getTrace(String nodeId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Lineage.GET_LINEAGE_NODES_PARAM_TRACE, List.of(nodeId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /lineage/nodes/{param}/trace} without query parameters. + * @param decoded response type + * @param nodeId nodeId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getTrace(String nodeId, Class responseType) throws IOException, InterruptedException { + return getTrace(nodeId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /lineage/nodes/{param}/trace} without query parameters using a generic response type. + * @param decoded response type + * @param nodeId nodeId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getTrace(String nodeId, TypeReference responseType) + throws IOException, InterruptedException { + return getTrace(nodeId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/ObservabilityAlertsClient.java b/services/src/main/java/dev/frontal/sdk/resources/ObservabilityAlertsClient.java new file mode 100644 index 0000000..153948f --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/ObservabilityAlertsClient.java @@ -0,0 +1,395 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for observability/alerts. Generated by scripts/generate_endpoints.py. */ +public final class ObservabilityAlertsClient extends ServiceClient { + ObservabilityAlertsClient(ApiClient client) { + super(ApiService.OBSERVABILITY, client); + } + + /** Returns the client for the nested resource. + * @return the incidents resource client + */ + public ObservabilityAlertsIncidentsClient incidents() { + return new ObservabilityAlertsIncidentsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the rules resource client + */ + public ObservabilityAlertsRulesClient rules() { + return new ObservabilityAlertsRulesClient(client()); + } + + /** + * Calls the contract route {@code DELETE /observability/alerts/{param}}. + * @param decoded response type + * @param alertId alertId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|DELETE|/observability/alerts/{param}") + public @Nullable T delete(String alertId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.DELETE_OBSERVABILITY_ALERTS_PARAM, List.of(alertId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /observability/alerts/{param}} using a generic response type. + * @param decoded response type + * @param alertId alertId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String alertId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.DELETE_OBSERVABILITY_ALERTS_PARAM, List.of(alertId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /observability/alerts/{param}} without query parameters. + * @param decoded response type + * @param alertId alertId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String alertId, Class responseType) throws IOException, InterruptedException { + return delete(alertId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /observability/alerts/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param alertId alertId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String alertId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(alertId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /observability/alerts}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|GET|/observability/alerts") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Observability.GET_OBSERVABILITY_ALERTS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /observability/alerts} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Observability.GET_OBSERVABILITY_ALERTS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /observability/alerts} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /observability/alerts} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /observability/alerts}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|POST|/observability/alerts") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Observability.POST_OBSERVABILITY_ALERTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /observability/alerts} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Observability.POST_OBSERVABILITY_ALERTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /observability/alerts} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /observability/alerts} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /observability/alerts/{param}/disable}. + * @param decoded response type + * @param alertId alertId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|POST|/observability/alerts/{param}/disable") + public @Nullable T disable(String alertId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.POST_OBSERVABILITY_ALERTS_PARAM_DISABLE, + List.of(alertId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /observability/alerts/{param}/disable} using a generic response type. + * @param decoded response type + * @param alertId alertId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T disable( + String alertId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.POST_OBSERVABILITY_ALERTS_PARAM_DISABLE, + List.of(alertId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /observability/alerts/{param}/disable} without query parameters. + * @param decoded response type + * @param alertId alertId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T disable(String alertId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return disable(alertId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /observability/alerts/{param}/disable} without query parameters using a generic response type. + * @param decoded response type + * @param alertId alertId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T disable(String alertId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return disable(alertId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /observability/alerts/{param}/enable}. + * @param decoded response type + * @param alertId alertId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|POST|/observability/alerts/{param}/enable") + public @Nullable T enable(String alertId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.POST_OBSERVABILITY_ALERTS_PARAM_ENABLE, + List.of(alertId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /observability/alerts/{param}/enable} using a generic response type. + * @param decoded response type + * @param alertId alertId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T enable( + String alertId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.POST_OBSERVABILITY_ALERTS_PARAM_ENABLE, + List.of(alertId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /observability/alerts/{param}/enable} without query parameters. + * @param decoded response type + * @param alertId alertId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T enable(String alertId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return enable(alertId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /observability/alerts/{param}/enable} without query parameters using a generic response type. + * @param decoded response type + * @param alertId alertId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T enable(String alertId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return enable(alertId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code PUT /observability/alerts/{param}}. + * @param decoded response type + * @param alertId alertId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|PUT|/observability/alerts/{param}") + public @Nullable T update(String alertId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.PUT_OBSERVABILITY_ALERTS_PARAM, List.of(alertId), query, body, responseType); + } + /** + * Calls the contract route {@code PUT /observability/alerts/{param}} using a generic response type. + * @param decoded response type + * @param alertId alertId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update( + String alertId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.PUT_OBSERVABILITY_ALERTS_PARAM, List.of(alertId), query, body, responseType); + } + /** + * Calls the contract route {@code PUT /observability/alerts/{param}} without query parameters. + * @param decoded response type + * @param alertId alertId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String alertId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return update(alertId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code PUT /observability/alerts/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param alertId alertId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String alertId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return update(alertId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/ObservabilityAlertsIncidentsClient.java b/services/src/main/java/dev/frontal/sdk/resources/ObservabilityAlertsIncidentsClient.java new file mode 100644 index 0000000..c83f70e --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/ObservabilityAlertsIncidentsClient.java @@ -0,0 +1,64 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for observability/alerts/incidents. Generated by scripts/generate_endpoints.py. */ +public final class ObservabilityAlertsIncidentsClient extends ServiceClient { + ObservabilityAlertsIncidentsClient(ApiClient client) { + super(ApiService.OBSERVABILITY, client); + } + + /** + * Calls the contract route {@code GET /observability/alerts/incidents}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|GET|/observability/alerts/incidents") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request( + Endpoints.Observability.GET_OBSERVABILITY_ALERTS_INCIDENTS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /observability/alerts/incidents} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.GET_OBSERVABILITY_ALERTS_INCIDENTS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /observability/alerts/incidents} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /observability/alerts/incidents} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/ObservabilityAlertsRulesClient.java b/services/src/main/java/dev/frontal/sdk/resources/ObservabilityAlertsRulesClient.java new file mode 100644 index 0000000..c1ec788 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/ObservabilityAlertsRulesClient.java @@ -0,0 +1,390 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for observability/alerts/rules. Generated by scripts/generate_endpoints.py. */ +public final class ObservabilityAlertsRulesClient extends ServiceClient { + ObservabilityAlertsRulesClient(ApiClient client) { + super(ApiService.OBSERVABILITY, client); + } + + /** + * Calls the contract route {@code DELETE /observability/alerts/rules/{param}}. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|DELETE|/observability/alerts/rules/{param}") + public @Nullable T delete(String ruleId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.DELETE_OBSERVABILITY_ALERTS_RULES_PARAM, + List.of(ruleId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code DELETE /observability/alerts/rules/{param}} using a generic response type. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String ruleId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.DELETE_OBSERVABILITY_ALERTS_RULES_PARAM, + List.of(ruleId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code DELETE /observability/alerts/rules/{param}} without query parameters. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String ruleId, Class responseType) throws IOException, InterruptedException { + return delete(ruleId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /observability/alerts/rules/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String ruleId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(ruleId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /observability/alerts/rules}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|GET|/observability/alerts/rules") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Observability.GET_OBSERVABILITY_ALERTS_RULES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /observability/alerts/rules} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Observability.GET_OBSERVABILITY_ALERTS_RULES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /observability/alerts/rules} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /observability/alerts/rules} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /observability/alerts/rules/{param}}. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|GET|/observability/alerts/rules/{param}") + public @Nullable T get(String ruleId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.GET_OBSERVABILITY_ALERTS_RULES_PARAM, + List.of(ruleId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /observability/alerts/rules/{param}} using a generic response type. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String ruleId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.GET_OBSERVABILITY_ALERTS_RULES_PARAM, + List.of(ruleId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /observability/alerts/rules/{param}} without query parameters. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String ruleId, Class responseType) throws IOException, InterruptedException { + return get(ruleId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /observability/alerts/rules/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String ruleId, TypeReference responseType) throws IOException, InterruptedException { + return get(ruleId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /observability/alerts/rules}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|POST|/observability/alerts/rules") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Observability.POST_OBSERVABILITY_ALERTS_RULES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /observability/alerts/rules} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Observability.POST_OBSERVABILITY_ALERTS_RULES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /observability/alerts/rules} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /observability/alerts/rules} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /observability/alerts/rules/{param}/toggle}. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|POST|/observability/alerts/rules/{param}/toggle") + public @Nullable T toggle(String ruleId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.POST_OBSERVABILITY_ALERTS_RULES_PARAM_TOGGLE, + List.of(ruleId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /observability/alerts/rules/{param}/toggle} using a generic response type. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T toggle( + String ruleId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.POST_OBSERVABILITY_ALERTS_RULES_PARAM_TOGGLE, + List.of(ruleId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /observability/alerts/rules/{param}/toggle} without query parameters. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T toggle(String ruleId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return toggle(ruleId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /observability/alerts/rules/{param}/toggle} without query parameters using a generic response type. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T toggle(String ruleId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return toggle(ruleId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code PUT /observability/alerts/rules/{param}}. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|PUT|/observability/alerts/rules/{param}") + public @Nullable T update(String ruleId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.PUT_OBSERVABILITY_ALERTS_RULES_PARAM, + List.of(ruleId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code PUT /observability/alerts/rules/{param}} using a generic response type. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update( + String ruleId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.PUT_OBSERVABILITY_ALERTS_RULES_PARAM, + List.of(ruleId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code PUT /observability/alerts/rules/{param}} without query parameters. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String ruleId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return update(ruleId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code PUT /observability/alerts/rules/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String ruleId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return update(ruleId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/ObservabilityClient.java b/services/src/main/java/dev/frontal/sdk/resources/ObservabilityClient.java new file mode 100644 index 0000000..37908d0 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/ObservabilityClient.java @@ -0,0 +1,50 @@ +package dev.frontal.sdk; + +/** Contract operations for observability. Generated by scripts/generate_endpoints.py. */ +public final class ObservabilityClient extends ServiceClient { + ObservabilityClient(ApiClient client) { + super(ApiService.OBSERVABILITY, client); + } + + /** Returns the client for the nested resource. + * @return the alerts resource client + */ + public ObservabilityAlertsClient alerts() { + return new ObservabilityAlertsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the dashboards resource client + */ + public ObservabilityDashboardsClient dashboards() { + return new ObservabilityDashboardsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the events resource client + */ + public ObservabilityEventsClient events() { + return new ObservabilityEventsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the logs resource client + */ + public ObservabilityLogsClient logs() { + return new ObservabilityLogsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the metrics resource client + */ + public ObservabilityMetricsClient metrics() { + return new ObservabilityMetricsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the traces resource client + */ + public ObservabilityTracesClient traces() { + return new ObservabilityTracesClient(client()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/ObservabilityDashboardsClient.java b/services/src/main/java/dev/frontal/sdk/resources/ObservabilityDashboardsClient.java new file mode 100644 index 0000000..f1b0a93 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/ObservabilityDashboardsClient.java @@ -0,0 +1,391 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for observability/dashboards. Generated by scripts/generate_endpoints.py. */ +public final class ObservabilityDashboardsClient extends ServiceClient { + ObservabilityDashboardsClient(ApiClient client) { + super(ApiService.OBSERVABILITY, client); + } + + /** + * Calls the contract route {@code DELETE /observability/dashboards/{param}}. + * @param decoded response type + * @param dashboardId dashboardId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|DELETE|/observability/dashboards/{param}") + public @Nullable T delete(String dashboardId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.DELETE_OBSERVABILITY_DASHBOARDS_PARAM, + List.of(dashboardId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code DELETE /observability/dashboards/{param}} using a generic response type. + * @param decoded response type + * @param dashboardId dashboardId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String dashboardId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.DELETE_OBSERVABILITY_DASHBOARDS_PARAM, + List.of(dashboardId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code DELETE /observability/dashboards/{param}} without query parameters. + * @param decoded response type + * @param dashboardId dashboardId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String dashboardId, Class responseType) throws IOException, InterruptedException { + return delete(dashboardId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /observability/dashboards/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param dashboardId dashboardId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String dashboardId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(dashboardId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /observability/dashboards}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|GET|/observability/dashboards") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Observability.GET_OBSERVABILITY_DASHBOARDS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /observability/dashboards} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Observability.GET_OBSERVABILITY_DASHBOARDS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /observability/dashboards} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /observability/dashboards} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /observability/dashboards/{param}}. + * @param decoded response type + * @param dashboardId dashboardId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|GET|/observability/dashboards/{param}") + public @Nullable T get(String dashboardId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.GET_OBSERVABILITY_DASHBOARDS_PARAM, + List.of(dashboardId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /observability/dashboards/{param}} using a generic response type. + * @param decoded response type + * @param dashboardId dashboardId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String dashboardId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.GET_OBSERVABILITY_DASHBOARDS_PARAM, + List.of(dashboardId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /observability/dashboards/{param}} without query parameters. + * @param decoded response type + * @param dashboardId dashboardId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String dashboardId, Class responseType) throws IOException, InterruptedException { + return get(dashboardId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /observability/dashboards/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param dashboardId dashboardId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String dashboardId, TypeReference responseType) + throws IOException, InterruptedException { + return get(dashboardId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /observability/dashboards}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|POST|/observability/dashboards") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Observability.POST_OBSERVABILITY_DASHBOARDS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /observability/dashboards} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Observability.POST_OBSERVABILITY_DASHBOARDS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /observability/dashboards} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /observability/dashboards} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /observability/dashboards/{param}/share}. + * @param decoded response type + * @param dashboardId dashboardId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|POST|/observability/dashboards/{param}/share") + public @Nullable T share(String dashboardId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.POST_OBSERVABILITY_DASHBOARDS_PARAM_SHARE, + List.of(dashboardId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /observability/dashboards/{param}/share} using a generic response type. + * @param decoded response type + * @param dashboardId dashboardId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T share( + String dashboardId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.POST_OBSERVABILITY_DASHBOARDS_PARAM_SHARE, + List.of(dashboardId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /observability/dashboards/{param}/share} without query parameters. + * @param decoded response type + * @param dashboardId dashboardId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T share(String dashboardId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return share(dashboardId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /observability/dashboards/{param}/share} without query parameters using a generic response type. + * @param decoded response type + * @param dashboardId dashboardId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T share(String dashboardId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return share(dashboardId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code PUT /observability/dashboards/{param}}. + * @param decoded response type + * @param dashboardId dashboardId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|PUT|/observability/dashboards/{param}") + public @Nullable T update(String dashboardId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.PUT_OBSERVABILITY_DASHBOARDS_PARAM, + List.of(dashboardId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code PUT /observability/dashboards/{param}} using a generic response type. + * @param decoded response type + * @param dashboardId dashboardId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update( + String dashboardId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.PUT_OBSERVABILITY_DASHBOARDS_PARAM, + List.of(dashboardId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code PUT /observability/dashboards/{param}} without query parameters. + * @param decoded response type + * @param dashboardId dashboardId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String dashboardId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return update(dashboardId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code PUT /observability/dashboards/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param dashboardId dashboardId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String dashboardId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return update(dashboardId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/ObservabilityEventsClient.java b/services/src/main/java/dev/frontal/sdk/resources/ObservabilityEventsClient.java new file mode 100644 index 0000000..10e2f23 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/ObservabilityEventsClient.java @@ -0,0 +1,133 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for observability/events. Generated by scripts/generate_endpoints.py. */ +public final class ObservabilityEventsClient extends ServiceClient { + ObservabilityEventsClient(ApiClient client) { + super(ApiService.OBSERVABILITY, client); + } + + /** Returns the client for the nested resource. + * @return the stats resource client + */ + public ObservabilityEventsStatsClient stats() { + return new ObservabilityEventsStatsClient(client()); + } + + /** + * Calls the contract route {@code POST /observability/events}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|POST|/observability/events") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Observability.POST_OBSERVABILITY_EVENTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /observability/events} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Observability.POST_OBSERVABILITY_EVENTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /observability/events} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /observability/events} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /observability/events/batch}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|POST|/observability/events/batch") + public @Nullable T batch(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Observability.POST_OBSERVABILITY_EVENTS_BATCH, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /observability/events/batch} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T batch(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Observability.POST_OBSERVABILITY_EVENTS_BATCH, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /observability/events/batch} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T batch(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return batch(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /observability/events/batch} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T batch(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return batch(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/ObservabilityEventsStatsClient.java b/services/src/main/java/dev/frontal/sdk/resources/ObservabilityEventsStatsClient.java new file mode 100644 index 0000000..8624741 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/ObservabilityEventsStatsClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for observability/events/stats. Generated by scripts/generate_endpoints.py. */ +public final class ObservabilityEventsStatsClient extends ServiceClient { + ObservabilityEventsStatsClient(ApiClient client) { + super(ApiService.OBSERVABILITY, client); + } + + /** + * Calls the contract route {@code GET /observability/events/stats}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|GET|/observability/events/stats") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Observability.GET_OBSERVABILITY_EVENTS_STATS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /observability/events/stats} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Observability.GET_OBSERVABILITY_EVENTS_STATS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /observability/events/stats} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /observability/events/stats} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/ObservabilityLogsClient.java b/services/src/main/java/dev/frontal/sdk/resources/ObservabilityLogsClient.java new file mode 100644 index 0000000..7905292 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/ObservabilityLogsClient.java @@ -0,0 +1,163 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.Flow; +import org.jspecify.annotations.Nullable; + +/** Contract operations for observability/logs. Generated by scripts/generate_endpoints.py. */ +public final class ObservabilityLogsClient extends ServiceClient { + ObservabilityLogsClient(ApiClient client) { + super(ApiService.OBSERVABILITY, client); + } + + /** + * Calls the contract route {@code POST /observability/logs/ingest}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|POST|/observability/logs/ingest") + public @Nullable T ingest(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Observability.POST_OBSERVABILITY_LOGS_INGEST, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /observability/logs/ingest} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T ingest(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Observability.POST_OBSERVABILITY_LOGS_INGEST, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /observability/logs/ingest} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T ingest(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return ingest(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /observability/logs/ingest} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T ingest(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return ingest(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /observability/logs/query}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|POST|/observability/logs/query") + public @Nullable T query(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Observability.POST_OBSERVABILITY_LOGS_QUERY, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /observability/logs/query} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T query(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Observability.POST_OBSERVABILITY_LOGS_QUERY, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /observability/logs/query} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T query(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return query(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /observability/logs/query} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T query(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return query(QueryParams.empty(), body, responseType); + } + + /** + * Opens the event stream for {@code STREAM /observability/logs/stream}. + * @param query query supplied to the operation + * @return a publisher that emits event data + */ + @SdkOperation("observability|STREAM|/observability/logs/stream") + public Flow.Publisher stream(QueryParams query) { + return streamPublisher(Endpoints.Observability.STREAM_OBSERVABILITY_LOGS_STREAM, List.of(), query); + } + /** + * Opens a blocking event stream for {@code STREAM /observability/logs/stream}. + * @param query query supplied to the operation + * @return an iterator that must be closed + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public SseEventIterator streamBlocking(QueryParams query) throws IOException, InterruptedException { + return streamEvents(Endpoints.Observability.STREAM_OBSERVABILITY_LOGS_STREAM, List.of(), query); + } + /** + * Opens the event stream for {@code STREAM /observability/logs/stream} with no query parameters. + * @return a publisher that emits event data + */ + public Flow.Publisher stream() { + return stream(QueryParams.empty()); + } + /** + * Opens a blocking event stream for {@code STREAM /observability/logs/stream} with no query parameters. + * @return an iterator that must be closed + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public SseEventIterator streamBlocking() throws IOException, InterruptedException { + return streamBlocking(QueryParams.empty()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/ObservabilityMetricsClient.java b/services/src/main/java/dev/frontal/sdk/resources/ObservabilityMetricsClient.java new file mode 100644 index 0000000..dc9d377 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/ObservabilityMetricsClient.java @@ -0,0 +1,168 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for observability/metrics. Generated by scripts/generate_endpoints.py. */ +public final class ObservabilityMetricsClient extends ServiceClient { + ObservabilityMetricsClient(ApiClient client) { + super(ApiService.OBSERVABILITY, client); + } + + /** + * Calls the contract route {@code GET /observability/metrics}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|GET|/observability/metrics") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Observability.GET_OBSERVABILITY_METRICS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /observability/metrics} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Observability.GET_OBSERVABILITY_METRICS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /observability/metrics} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /observability/metrics} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /observability/metrics/list}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|GET|/observability/metrics/list") + public @Nullable T getList(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Observability.GET_OBSERVABILITY_METRICS_LIST, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /observability/metrics/list} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getList(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Observability.GET_OBSERVABILITY_METRICS_LIST, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /observability/metrics/list} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getList(Class responseType) throws IOException, InterruptedException { + return getList(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /observability/metrics/list} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getList(TypeReference responseType) throws IOException, InterruptedException { + return getList(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /observability/metrics/ingest}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|POST|/observability/metrics/ingest") + public @Nullable T ingest(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Observability.POST_OBSERVABILITY_METRICS_INGEST, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /observability/metrics/ingest} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T ingest(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Observability.POST_OBSERVABILITY_METRICS_INGEST, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /observability/metrics/ingest} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T ingest(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return ingest(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /observability/metrics/ingest} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T ingest(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return ingest(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/ObservabilityTracesClient.java b/services/src/main/java/dev/frontal/sdk/resources/ObservabilityTracesClient.java new file mode 100644 index 0000000..823d2b7 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/ObservabilityTracesClient.java @@ -0,0 +1,175 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for observability/traces. Generated by scripts/generate_endpoints.py. */ +public final class ObservabilityTracesClient extends ServiceClient { + ObservabilityTracesClient(ApiClient client) { + super(ApiService.OBSERVABILITY, client); + } + + /** + * Calls the contract route {@code GET /observability/traces}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|GET|/observability/traces") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Observability.GET_OBSERVABILITY_TRACES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /observability/traces} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Observability.GET_OBSERVABILITY_TRACES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /observability/traces} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /observability/traces} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /observability/traces/{param}}. + * @param decoded response type + * @param traceId traceId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|GET|/observability/traces/{param}") + public @Nullable T get(String traceId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.GET_OBSERVABILITY_TRACES_PARAM, List.of(traceId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /observability/traces/{param}} using a generic response type. + * @param decoded response type + * @param traceId traceId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String traceId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Observability.GET_OBSERVABILITY_TRACES_PARAM, List.of(traceId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /observability/traces/{param}} without query parameters. + * @param decoded response type + * @param traceId traceId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String traceId, Class responseType) throws IOException, InterruptedException { + return get(traceId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /observability/traces/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param traceId traceId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String traceId, TypeReference responseType) throws IOException, InterruptedException { + return get(traceId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /observability/traces/query}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("observability|POST|/observability/traces/query") + public @Nullable T query(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Observability.POST_OBSERVABILITY_TRACES_QUERY, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /observability/traces/query} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T query(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Observability.POST_OBSERVABILITY_TRACES_QUERY, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /observability/traces/query} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T query(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return query(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /observability/traces/query} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T query(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return query(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyClient.java new file mode 100644 index 0000000..aa6c70f --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyClient.java @@ -0,0 +1,99 @@ +package dev.frontal.sdk; + +/** Contract operations for ontology. Generated by scripts/generate_endpoints.py. */ +public final class OntologyClient extends ServiceClient { + OntologyClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** Returns the client for the nested resource. + * @return the engine resource client + */ + public OntologyEngineClient engine() { + return new OntologyEngineClient(client()); + } + + /** Returns the client for the nested resource. + * @return the events resource client + */ + public OntologyEventsClient events() { + return new OntologyEventsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the extract resource client + */ + public OntologyExtractClient extract() { + return new OntologyExtractClient(client()); + } + + /** Returns the client for the nested resource. + * @return the graph resource client + */ + public OntologyGraphClient graph() { + return new OntologyGraphClient(client()); + } + + /** Returns the client for the nested resource. + * @return the objects resource client + */ + public OntologyObjectsClient objects() { + return new OntologyObjectsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the reasoning resource client + */ + public OntologyReasoningClient reasoning() { + return new OntologyReasoningClient(client()); + } + + /** Returns the client for the nested resource. + * @return the relationships resource client + */ + public OntologyRelationshipsClient relationships() { + return new OntologyRelationshipsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the rollouts resource client + */ + public OntologyRolloutsClient rollouts() { + return new OntologyRolloutsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the rollups resource client + */ + public OntologyRollupsClient rollups() { + return new OntologyRollupsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the schemas resource client + */ + public OntologySchemasClient schemas() { + return new OntologySchemasClient(client()); + } + + /** Returns the client for the nested resource. + * @return the transformations resource client + */ + public OntologyTransformationsClient transformations() { + return new OntologyTransformationsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the validation resource client + */ + public OntologyValidationClient validation() { + return new OntologyValidationClient(client()); + } + + /** Returns the client for the nested resource. + * @return the versions resource client + */ + public OntologyVersionsClient versions() { + return new OntologyVersionsClient(client()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyEngineCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyEngineCapabilitiesClient.java new file mode 100644 index 0000000..b7f647e --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyEngineCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/engine/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class OntologyEngineCapabilitiesClient extends ServiceClient { + OntologyEngineCapabilitiesClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/engine/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/engine/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ENGINE_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/engine/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ENGINE_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/engine/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/engine/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyEngineClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyEngineClient.java new file mode 100644 index 0000000..48df359 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyEngineClient.java @@ -0,0 +1,132 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/engine. Generated by scripts/generate_endpoints.py. */ +public final class OntologyEngineClient extends ServiceClient { + OntologyEngineClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public OntologyEngineCapabilitiesClient capabilities() { + return new OntologyEngineCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the ontologies resource client + */ + public OntologyEngineOntologiesClient ontologies() { + return new OntologyEngineOntologiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public OntologyEngineRunsClient runs() { + return new OntologyEngineRunsClient(client()); + } + + /** + * Calls the contract route {@code GET /ontology/engine/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/engine/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ENGINE_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/engine/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ENGINE_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/engine/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/engine/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/engine/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/engine/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ENGINE_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/engine/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ENGINE_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/engine/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/engine/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyEngineOntologiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyEngineOntologiesClient.java new file mode 100644 index 0000000..cfdc299 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyEngineOntologiesClient.java @@ -0,0 +1,265 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/engine/ontologies. Generated by scripts/generate_endpoints.py. */ +public final class OntologyEngineOntologiesClient extends ServiceClient { + OntologyEngineOntologiesClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** Returns the client for the nested resource. + * @return the compare-versions resource client + */ + public OntologyEngineOntologiesCompareVersionsClient compareVersions() { + return new OntologyEngineOntologiesCompareVersionsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the infer-classes resource client + */ + public OntologyEngineOntologiesInferClassesClient inferClasses() { + return new OntologyEngineOntologiesInferClassesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the infer-properties resource client + */ + public OntologyEngineOntologiesInferPropertiesClient inferProperties() { + return new OntologyEngineOntologiesInferPropertiesClient(client()); + } + + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/export}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/engine/ontologies/export") + public @Nullable T export(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_ENGINE_ONTOLOGIES_EXPORT, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/export} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T export(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_ENGINE_ONTOLOGIES_EXPORT, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/export} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T export(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return export(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/export} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T export(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return export(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/export-shacl}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/engine/ontologies/export-shacl") + public @Nullable T createExportShacl(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_ENGINE_ONTOLOGIES_EXPORT_SHACL, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/export-shacl} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createExportShacl(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_ENGINE_ONTOLOGIES_EXPORT_SHACL, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/export-shacl} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createExportShacl(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createExportShacl(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/export-shacl} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createExportShacl(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createExportShacl(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/generate}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/engine/ontologies/generate") + public @Nullable T generate(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_ENGINE_ONTOLOGIES_GENERATE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/generate} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T generate(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_ENGINE_ONTOLOGIES_GENERATE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/generate} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T generate(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return generate(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/generate} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T generate(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return generate(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/validate}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/engine/ontologies/validate") + public @Nullable T validate(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_ENGINE_ONTOLOGIES_VALIDATE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/validate} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T validate(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_ENGINE_ONTOLOGIES_VALIDATE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/validate} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T validate(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return validate(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/validate} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T validate(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return validate(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyEngineOntologiesCompareVersionsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyEngineOntologiesCompareVersionsClient.java new file mode 100644 index 0000000..7337636 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyEngineOntologiesCompareVersionsClient.java @@ -0,0 +1,80 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/engine/ontologies/compare-versions. Generated by scripts/generate_endpoints.py. */ +public final class OntologyEngineOntologiesCompareVersionsClient extends ServiceClient { + OntologyEngineOntologiesCompareVersionsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/compare-versions}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/engine/ontologies/compare-versions") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_ENGINE_ONTOLOGIES_COMPARE_VERSIONS, + List.of(), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/compare-versions} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_ENGINE_ONTOLOGIES_COMPARE_VERSIONS, + List.of(), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/compare-versions} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/compare-versions} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyEngineOntologiesInferClassesClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyEngineOntologiesInferClassesClient.java new file mode 100644 index 0000000..1f8f0ce --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyEngineOntologiesInferClassesClient.java @@ -0,0 +1,72 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/engine/ontologies/infer-classes. Generated by scripts/generate_endpoints.py. */ +public final class OntologyEngineOntologiesInferClassesClient extends ServiceClient { + OntologyEngineOntologiesInferClassesClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/infer-classes}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/engine/ontologies/infer-classes") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_ENGINE_ONTOLOGIES_INFER_CLASSES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/infer-classes} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_ENGINE_ONTOLOGIES_INFER_CLASSES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/infer-classes} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/infer-classes} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyEngineOntologiesInferPropertiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyEngineOntologiesInferPropertiesClient.java new file mode 100644 index 0000000..25e9694 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyEngineOntologiesInferPropertiesClient.java @@ -0,0 +1,80 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/engine/ontologies/infer-properties. Generated by scripts/generate_endpoints.py. */ +public final class OntologyEngineOntologiesInferPropertiesClient extends ServiceClient { + OntologyEngineOntologiesInferPropertiesClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/infer-properties}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/engine/ontologies/infer-properties") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_ENGINE_ONTOLOGIES_INFER_PROPERTIES, + List.of(), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/infer-properties} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_ENGINE_ONTOLOGIES_INFER_PROPERTIES, + List.of(), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/infer-properties} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/engine/ontologies/infer-properties} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyEngineRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyEngineRunsClient.java new file mode 100644 index 0000000..f03e870 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyEngineRunsClient.java @@ -0,0 +1,173 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/engine/runs. Generated by scripts/generate_endpoints.py. */ +public final class OntologyEngineRunsClient extends ServiceClient { + OntologyEngineRunsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/engine/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/engine/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ENGINE_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/engine/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ENGINE_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/engine/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/engine/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/engine/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/engine/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ENGINE_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/engine/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ENGINE_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/engine/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/engine/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /ontology/engine/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/engine/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_ENGINE_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/engine/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_ENGINE_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/engine/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/engine/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyEventsCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyEventsCapabilitiesClient.java new file mode 100644 index 0000000..02a53a2 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyEventsCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/events/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class OntologyEventsCapabilitiesClient extends ServiceClient { + OntologyEventsCapabilitiesClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/events/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/events/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_EVENTS_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/events/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_EVENTS_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/events/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/events/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyEventsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyEventsClient.java new file mode 100644 index 0000000..d47a4db --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyEventsClient.java @@ -0,0 +1,132 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/events. Generated by scripts/generate_endpoints.py. */ +public final class OntologyEventsClient extends ServiceClient { + OntologyEventsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public OntologyEventsCapabilitiesClient capabilities() { + return new OntologyEventsCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the events resource client + */ + public OntologyEventsEventsClient events() { + return new OntologyEventsEventsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public OntologyEventsRunsClient runs() { + return new OntologyEventsRunsClient(client()); + } + + /** + * Calls the contract route {@code GET /ontology/events/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/events/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_EVENTS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/events/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_EVENTS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/events/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/events/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/events/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/events/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_EVENTS_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/events/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_EVENTS_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/events/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/events/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyEventsEventsCheckpointsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyEventsEventsCheckpointsClient.java new file mode 100644 index 0000000..58f13a8 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyEventsEventsCheckpointsClient.java @@ -0,0 +1,137 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/events/events/checkpoints. Generated by scripts/generate_endpoints.py. */ +public final class OntologyEventsEventsCheckpointsClient extends ServiceClient { + OntologyEventsEventsCheckpointsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/events/events/checkpoints/{param}}. + * @param decoded response type + * @param consumer consumer supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/events/events/checkpoints/{param}") + public @Nullable T get(String consumer, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_EVENTS_EVENTS_CHECKPOINTS_PARAM, + List.of(consumer), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /ontology/events/events/checkpoints/{param}} using a generic response type. + * @param decoded response type + * @param consumer consumer supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String consumer, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_EVENTS_EVENTS_CHECKPOINTS_PARAM, + List.of(consumer), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /ontology/events/events/checkpoints/{param}} without query parameters. + * @param decoded response type + * @param consumer consumer supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String consumer, Class responseType) throws IOException, InterruptedException { + return get(consumer, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/events/events/checkpoints/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param consumer consumer supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String consumer, TypeReference responseType) + throws IOException, InterruptedException { + return get(consumer, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /ontology/events/events/checkpoints}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/events/events/checkpoints") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_EVENTS_EVENTS_CHECKPOINTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/events/events/checkpoints} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_EVENTS_EVENTS_CHECKPOINTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/events/events/checkpoints} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/events/events/checkpoints} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyEventsEventsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyEventsEventsClient.java new file mode 100644 index 0000000..1f397ef --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyEventsEventsClient.java @@ -0,0 +1,189 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/events/events. Generated by scripts/generate_endpoints.py. */ +public final class OntologyEventsEventsClient extends ServiceClient { + OntologyEventsEventsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** Returns the client for the nested resource. + * @return the checkpoints resource client + */ + public OntologyEventsEventsCheckpointsClient checkpoints() { + return new OntologyEventsEventsCheckpointsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the leases resource client + */ + public OntologyEventsEventsLeasesClient leases() { + return new OntologyEventsEventsLeasesClient(client()); + } + + /** + * Calls the contract route {@code GET /ontology/events/events}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/events/events") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_EVENTS_EVENTS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/events/events} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_EVENTS_EVENTS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/events/events} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/events/events} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/events/events/{param}}. + * @param decoded response type + * @param eventId eventId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/events/events/{param}") + public @Nullable T get(String eventId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_EVENTS_EVENTS_PARAM, List.of(eventId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/events/events/{param}} using a generic response type. + * @param decoded response type + * @param eventId eventId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String eventId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_EVENTS_EVENTS_PARAM, List.of(eventId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/events/events/{param}} without query parameters. + * @param decoded response type + * @param eventId eventId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String eventId, Class responseType) throws IOException, InterruptedException { + return get(eventId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/events/events/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param eventId eventId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String eventId, TypeReference responseType) throws IOException, InterruptedException { + return get(eventId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /ontology/events/events}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/events/events") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_EVENTS_EVENTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/events/events} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_EVENTS_EVENTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/events/events} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/events/events} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyEventsEventsLeasesClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyEventsEventsLeasesClient.java new file mode 100644 index 0000000..6e0e6cf --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyEventsEventsLeasesClient.java @@ -0,0 +1,138 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/events/events/leases. Generated by scripts/generate_endpoints.py. */ +public final class OntologyEventsEventsLeasesClient extends ServiceClient { + OntologyEventsEventsLeasesClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code POST /ontology/events/events/leases/acknowledge}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/events/events/leases/acknowledge") + public @Nullable T acknowledge(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_EVENTS_EVENTS_LEASES_ACKNOWLEDGE, + List.of(), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /ontology/events/events/leases/acknowledge} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T acknowledge(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_EVENTS_EVENTS_LEASES_ACKNOWLEDGE, + List.of(), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /ontology/events/events/leases/acknowledge} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T acknowledge(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return acknowledge(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/events/events/leases/acknowledge} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T acknowledge(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return acknowledge(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /ontology/events/events/leases/acquire}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/events/events/leases/acquire") + public @Nullable T acquire(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_EVENTS_EVENTS_LEASES_ACQUIRE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/events/events/leases/acquire} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T acquire(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_EVENTS_EVENTS_LEASES_ACQUIRE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/events/events/leases/acquire} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T acquire(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return acquire(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/events/events/leases/acquire} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T acquire(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return acquire(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyEventsRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyEventsRunsClient.java new file mode 100644 index 0000000..544e9fe --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyEventsRunsClient.java @@ -0,0 +1,173 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/events/runs. Generated by scripts/generate_endpoints.py. */ +public final class OntologyEventsRunsClient extends ServiceClient { + OntologyEventsRunsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/events/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/events/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_EVENTS_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/events/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_EVENTS_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/events/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/events/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/events/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/events/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_EVENTS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/events/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_EVENTS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/events/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/events/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /ontology/events/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/events/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_EVENTS_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/events/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_EVENTS_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/events/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/events/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractCapabilitiesClient.java new file mode 100644 index 0000000..1449d90 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/extract/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class OntologyExtractCapabilitiesClient extends ServiceClient { + OntologyExtractCapabilitiesClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/extract/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/extract/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_EXTRACT_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/extract/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_EXTRACT_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/extract/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/extract/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractClient.java new file mode 100644 index 0000000..0970501 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractClient.java @@ -0,0 +1,132 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/extract. Generated by scripts/generate_endpoints.py. */ +public final class OntologyExtractClient extends ServiceClient { + OntologyExtractClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public OntologyExtractCapabilitiesClient capabilities() { + return new OntologyExtractCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the extract resource client + */ + public OntologyExtractExtractClient extract() { + return new OntologyExtractExtractClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public OntologyExtractRunsClient runs() { + return new OntologyExtractRunsClient(client()); + } + + /** + * Calls the contract route {@code GET /ontology/extract/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/extract/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_EXTRACT_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/extract/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_EXTRACT_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/extract/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/extract/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/extract/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/extract/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_EXTRACT_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/extract/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_EXTRACT_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/extract/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/extract/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractExtractClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractExtractClient.java new file mode 100644 index 0000000..af22e61 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractExtractClient.java @@ -0,0 +1,163 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/extract/extract. Generated by scripts/generate_endpoints.py. */ +public final class OntologyExtractExtractClient extends ServiceClient { + OntologyExtractExtractClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** Returns the client for the nested resource. + * @return the coreferences resource client + */ + public OntologyExtractExtractCoreferencesClient coreferences() { + return new OntologyExtractExtractCoreferencesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the entities resource client + */ + public OntologyExtractExtractEntitiesClient entities() { + return new OntologyExtractExtractEntitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the events resource client + */ + public OntologyExtractExtractEventsClient events() { + return new OntologyExtractExtractEventsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the relations resource client + */ + public OntologyExtractExtractRelationsClient relations() { + return new OntologyExtractExtractRelationsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the triplets resource client + */ + public OntologyExtractExtractTripletsClient triplets() { + return new OntologyExtractExtractTripletsClient(client()); + } + + /** + * Calls the contract route {@code POST /ontology/extract/extract/analyze}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/extract/extract/analyze") + public @Nullable T analyze(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_EXTRACT_EXTRACT_ANALYZE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/extract/extract/analyze} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T analyze(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_EXTRACT_EXTRACT_ANALYZE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/extract/extract/analyze} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T analyze(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return analyze(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/extract/extract/analyze} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T analyze(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return analyze(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /ontology/extract/extract/architecture}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/extract/extract/architecture") + public @Nullable T createArchitecture(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_EXTRACT_EXTRACT_ARCHITECTURE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/extract/extract/architecture} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createArchitecture(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_EXTRACT_EXTRACT_ARCHITECTURE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/extract/extract/architecture} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createArchitecture(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createArchitecture(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/extract/extract/architecture} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createArchitecture(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createArchitecture(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractExtractCoreferencesClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractExtractCoreferencesClient.java new file mode 100644 index 0000000..aec97ce --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractExtractCoreferencesClient.java @@ -0,0 +1,72 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/extract/extract/coreferences. Generated by scripts/generate_endpoints.py. */ +public final class OntologyExtractExtractCoreferencesClient extends ServiceClient { + OntologyExtractExtractCoreferencesClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code POST /ontology/extract/extract/coreferences}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/extract/extract/coreferences") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_EXTRACT_EXTRACT_COREFERENCES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/extract/extract/coreferences} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_EXTRACT_EXTRACT_COREFERENCES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/extract/extract/coreferences} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/extract/extract/coreferences} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractExtractEntitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractExtractEntitiesClient.java new file mode 100644 index 0000000..b2a31bf --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractExtractEntitiesClient.java @@ -0,0 +1,70 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/extract/extract/entities. Generated by scripts/generate_endpoints.py. */ +public final class OntologyExtractExtractEntitiesClient extends ServiceClient { + OntologyExtractExtractEntitiesClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code POST /ontology/extract/extract/entities}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/extract/extract/entities") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_EXTRACT_EXTRACT_ENTITIES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/extract/extract/entities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_EXTRACT_EXTRACT_ENTITIES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/extract/extract/entities} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/extract/extract/entities} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractExtractEventsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractExtractEventsClient.java new file mode 100644 index 0000000..6160f7d --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractExtractEventsClient.java @@ -0,0 +1,70 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/extract/extract/events. Generated by scripts/generate_endpoints.py. */ +public final class OntologyExtractExtractEventsClient extends ServiceClient { + OntologyExtractExtractEventsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code POST /ontology/extract/extract/events}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/extract/extract/events") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_EXTRACT_EXTRACT_EVENTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/extract/extract/events} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_EXTRACT_EXTRACT_EVENTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/extract/extract/events} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/extract/extract/events} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractExtractRelationsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractExtractRelationsClient.java new file mode 100644 index 0000000..578bbfb --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractExtractRelationsClient.java @@ -0,0 +1,72 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/extract/extract/relations. Generated by scripts/generate_endpoints.py. */ +public final class OntologyExtractExtractRelationsClient extends ServiceClient { + OntologyExtractExtractRelationsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code POST /ontology/extract/extract/relations}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/extract/extract/relations") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_EXTRACT_EXTRACT_RELATIONS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/extract/extract/relations} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_EXTRACT_EXTRACT_RELATIONS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/extract/extract/relations} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/extract/extract/relations} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractExtractTripletsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractExtractTripletsClient.java new file mode 100644 index 0000000..b7355ac --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractExtractTripletsClient.java @@ -0,0 +1,70 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/extract/extract/triplets. Generated by scripts/generate_endpoints.py. */ +public final class OntologyExtractExtractTripletsClient extends ServiceClient { + OntologyExtractExtractTripletsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code POST /ontology/extract/extract/triplets}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/extract/extract/triplets") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_EXTRACT_EXTRACT_TRIPLETS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/extract/extract/triplets} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_EXTRACT_EXTRACT_TRIPLETS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/extract/extract/triplets} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/extract/extract/triplets} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractRunsClient.java new file mode 100644 index 0000000..a51ad15 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyExtractRunsClient.java @@ -0,0 +1,173 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/extract/runs. Generated by scripts/generate_endpoints.py. */ +public final class OntologyExtractRunsClient extends ServiceClient { + OntologyExtractRunsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/extract/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/extract/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_EXTRACT_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/extract/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_EXTRACT_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/extract/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/extract/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/extract/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/extract/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_EXTRACT_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/extract/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_EXTRACT_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/extract/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/extract/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /ontology/extract/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/extract/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_EXTRACT_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/extract/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_EXTRACT_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/extract/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/extract/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyGraphCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyGraphCapabilitiesClient.java new file mode 100644 index 0000000..65c3146 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyGraphCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/graph/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class OntologyGraphCapabilitiesClient extends ServiceClient { + OntologyGraphCapabilitiesClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/graph/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/graph/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_GRAPH_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/graph/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_GRAPH_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/graph/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/graph/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyGraphClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyGraphClient.java new file mode 100644 index 0000000..cefb6d0 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyGraphClient.java @@ -0,0 +1,146 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/graph. Generated by scripts/generate_endpoints.py. */ +public final class OntologyGraphClient extends ServiceClient { + OntologyGraphClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public OntologyGraphCapabilitiesClient capabilities() { + return new OntologyGraphCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the entities resource client + */ + public OntologyGraphEntitiesClient entities() { + return new OntologyGraphEntitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the graph resource client + */ + public OntologyGraphGraphClient graph() { + return new OntologyGraphGraphClient(client()); + } + + /** Returns the client for the nested resource. + * @return the relationships resource client + */ + public OntologyGraphRelationshipsClient relationships() { + return new OntologyGraphRelationshipsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public OntologyGraphRunsClient runs() { + return new OntologyGraphRunsClient(client()); + } + + /** + * Calls the contract route {@code GET /ontology/graph/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/graph/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_GRAPH_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/graph/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_GRAPH_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/graph/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/graph/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/graph/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/graph/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_GRAPH_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/graph/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_GRAPH_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/graph/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/graph/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyGraphEntitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyGraphEntitiesClient.java new file mode 100644 index 0000000..61f66b3 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyGraphEntitiesClient.java @@ -0,0 +1,200 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/graph/entities. Generated by scripts/generate_endpoints.py. */ +public final class OntologyGraphEntitiesClient extends ServiceClient { + OntologyGraphEntitiesClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/graph/entities/{param}}. + * @param decoded response type + * @param entityId entityId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/graph/entities/{param}") + public @Nullable T get(String entityId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_GRAPH_ENTITIES_PARAM, List.of(entityId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/graph/entities/{param}} using a generic response type. + * @param decoded response type + * @param entityId entityId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String entityId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_GRAPH_ENTITIES_PARAM, List.of(entityId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/graph/entities/{param}} without query parameters. + * @param decoded response type + * @param entityId entityId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String entityId, Class responseType) throws IOException, InterruptedException { + return get(entityId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/graph/entities/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param entityId entityId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String entityId, TypeReference responseType) + throws IOException, InterruptedException { + return get(entityId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/graph/entities/{param}/provenance}. + * @param decoded response type + * @param entityId entityId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/graph/entities/{param}/provenance") + public @Nullable T getProvenance(String entityId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_GRAPH_ENTITIES_PARAM_PROVENANCE, + List.of(entityId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /ontology/graph/entities/{param}/provenance} using a generic response type. + * @param decoded response type + * @param entityId entityId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getProvenance(String entityId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_GRAPH_ENTITIES_PARAM_PROVENANCE, + List.of(entityId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /ontology/graph/entities/{param}/provenance} without query parameters. + * @param decoded response type + * @param entityId entityId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getProvenance(String entityId, Class responseType) + throws IOException, InterruptedException { + return getProvenance(entityId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/graph/entities/{param}/provenance} without query parameters using a generic response type. + * @param decoded response type + * @param entityId entityId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getProvenance(String entityId, TypeReference responseType) + throws IOException, InterruptedException { + return getProvenance(entityId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code PUT /ontology/graph/entities/{param}}. + * @param decoded response type + * @param entityId entityId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|PUT|/ontology/graph/entities/{param}") + public @Nullable T update(String entityId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.PUT_ONTOLOGY_GRAPH_ENTITIES_PARAM, List.of(entityId), query, body, responseType); + } + /** + * Calls the contract route {@code PUT /ontology/graph/entities/{param}} using a generic response type. + * @param decoded response type + * @param entityId entityId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update( + String entityId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.PUT_ONTOLOGY_GRAPH_ENTITIES_PARAM, List.of(entityId), query, body, responseType); + } + /** + * Calls the contract route {@code PUT /ontology/graph/entities/{param}} without query parameters. + * @param decoded response type + * @param entityId entityId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String entityId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return update(entityId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code PUT /ontology/graph/entities/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param entityId entityId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String entityId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return update(entityId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyGraphGraphClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyGraphGraphClient.java new file mode 100644 index 0000000..5a0ca4e --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyGraphGraphClient.java @@ -0,0 +1,350 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/graph/graph. Generated by scripts/generate_endpoints.py. */ +public final class OntologyGraphGraphClient extends ServiceClient { + OntologyGraphGraphClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code POST /ontology/graph/graph/analyze}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/graph/graph/analyze") + public @Nullable T analyze(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_GRAPH_GRAPH_ANALYZE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/graph/graph/analyze} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T analyze(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_GRAPH_GRAPH_ANALYZE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/graph/graph/analyze} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T analyze(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return analyze(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/graph/graph/analyze} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T analyze(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return analyze(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /ontology/graph/graph/build}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/graph/graph/build") + public @Nullable T createBuild(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_GRAPH_GRAPH_BUILD, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/graph/graph/build} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createBuild(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_GRAPH_GRAPH_BUILD, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/graph/graph/build} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createBuild(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createBuild(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/graph/graph/build} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createBuild(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createBuild(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /ontology/graph/graph/bulk-read}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/graph/graph/bulk-read") + public @Nullable T createBulkRead(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_GRAPH_GRAPH_BULK_READ, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/graph/graph/bulk-read} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createBulkRead(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_GRAPH_GRAPH_BULK_READ, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/graph/graph/bulk-read} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createBulkRead(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createBulkRead(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/graph/graph/bulk-read} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createBulkRead(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createBulkRead(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /ontology/graph/graph/neighborhood}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/graph/graph/neighborhood") + public @Nullable T createNeighborhood(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_GRAPH_GRAPH_NEIGHBORHOOD, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/graph/graph/neighborhood} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createNeighborhood(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_GRAPH_GRAPH_NEIGHBORHOOD, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/graph/graph/neighborhood} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createNeighborhood(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createNeighborhood(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/graph/graph/neighborhood} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createNeighborhood(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createNeighborhood(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /ontology/graph/graph/path}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/graph/graph/path") + public @Nullable T createPath(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_GRAPH_GRAPH_PATH, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/graph/graph/path} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createPath(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_GRAPH_GRAPH_PATH, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/graph/graph/path} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createPath(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createPath(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/graph/graph/path} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createPath(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createPath(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /ontology/graph/graph/query}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/graph/graph/query") + public @Nullable T query(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_GRAPH_GRAPH_QUERY, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/graph/graph/query} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T query(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_GRAPH_GRAPH_QUERY, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/graph/graph/query} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T query(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return query(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/graph/graph/query} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T query(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return query(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyGraphRelationshipsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyGraphRelationshipsClient.java new file mode 100644 index 0000000..10a5676 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyGraphRelationshipsClient.java @@ -0,0 +1,151 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/graph/relationships. Generated by scripts/generate_endpoints.py. */ +public final class OntologyGraphRelationshipsClient extends ServiceClient { + OntologyGraphRelationshipsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/graph/relationships/{param}}. + * @param decoded response type + * @param relationshipId relationshipId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/graph/relationships/{param}") + public @Nullable T get(String relationshipId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_GRAPH_RELATIONSHIPS_PARAM, + List.of(relationshipId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /ontology/graph/relationships/{param}} using a generic response type. + * @param decoded response type + * @param relationshipId relationshipId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String relationshipId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_GRAPH_RELATIONSHIPS_PARAM, + List.of(relationshipId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /ontology/graph/relationships/{param}} without query parameters. + * @param decoded response type + * @param relationshipId relationshipId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String relationshipId, Class responseType) throws IOException, InterruptedException { + return get(relationshipId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/graph/relationships/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param relationshipId relationshipId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String relationshipId, TypeReference responseType) + throws IOException, InterruptedException { + return get(relationshipId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code PUT /ontology/graph/relationships/{param}}. + * @param decoded response type + * @param relationshipId relationshipId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|PUT|/ontology/graph/relationships/{param}") + public @Nullable T update( + String relationshipId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.PUT_ONTOLOGY_GRAPH_RELATIONSHIPS_PARAM, + List.of(relationshipId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code PUT /ontology/graph/relationships/{param}} using a generic response type. + * @param decoded response type + * @param relationshipId relationshipId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update( + String relationshipId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.PUT_ONTOLOGY_GRAPH_RELATIONSHIPS_PARAM, + List.of(relationshipId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code PUT /ontology/graph/relationships/{param}} without query parameters. + * @param decoded response type + * @param relationshipId relationshipId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String relationshipId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return update(relationshipId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code PUT /ontology/graph/relationships/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param relationshipId relationshipId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String relationshipId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return update(relationshipId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyGraphRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyGraphRunsClient.java new file mode 100644 index 0000000..07eab79 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyGraphRunsClient.java @@ -0,0 +1,173 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/graph/runs. Generated by scripts/generate_endpoints.py. */ +public final class OntologyGraphRunsClient extends ServiceClient { + OntologyGraphRunsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/graph/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/graph/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_GRAPH_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/graph/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_GRAPH_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/graph/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/graph/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/graph/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/graph/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_GRAPH_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/graph/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_GRAPH_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/graph/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/graph/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /ontology/graph/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/graph/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_GRAPH_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/graph/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_GRAPH_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/graph/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/graph/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyObjectsCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyObjectsCapabilitiesClient.java new file mode 100644 index 0000000..b16d764 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyObjectsCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/objects/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class OntologyObjectsCapabilitiesClient extends ServiceClient { + OntologyObjectsCapabilitiesClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/objects/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/objects/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_OBJECTS_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_OBJECTS_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyObjectsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyObjectsClient.java new file mode 100644 index 0000000..67dcdb2 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyObjectsClient.java @@ -0,0 +1,139 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/objects. Generated by scripts/generate_endpoints.py. */ +public final class OntologyObjectsClient extends ServiceClient { + OntologyObjectsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public OntologyObjectsCapabilitiesClient capabilities() { + return new OntologyObjectsCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the object-types resource client + */ + public OntologyObjectsObjectTypesClient objectTypes() { + return new OntologyObjectsObjectTypesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the objects resource client + */ + public OntologyObjectsObjectsClient objects() { + return new OntologyObjectsObjectsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public OntologyObjectsRunsClient runs() { + return new OntologyObjectsRunsClient(client()); + } + + /** + * Calls the contract route {@code GET /ontology/objects/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/objects/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_OBJECTS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_OBJECTS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/objects/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/objects/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_OBJECTS_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_OBJECTS_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyObjectsObjectTypesClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyObjectsObjectTypesClient.java new file mode 100644 index 0000000..56f555c --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyObjectsObjectTypesClient.java @@ -0,0 +1,265 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/objects/object-types. Generated by scripts/generate_endpoints.py. */ +public final class OntologyObjectsObjectTypesClient extends ServiceClient { + OntologyObjectsObjectTypesClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code DELETE /ontology/objects/object-types/{param}}. + * @param decoded response type + * @param objectTypeId objectTypeId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|DELETE|/ontology/objects/object-types/{param}") + public @Nullable T delete(String objectTypeId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.DELETE_ONTOLOGY_OBJECTS_OBJECT_TYPES_PARAM, + List.of(objectTypeId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/objects/object-types/{param}} using a generic response type. + * @param decoded response type + * @param objectTypeId objectTypeId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String objectTypeId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.DELETE_ONTOLOGY_OBJECTS_OBJECT_TYPES_PARAM, + List.of(objectTypeId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/objects/object-types/{param}} without query parameters. + * @param decoded response type + * @param objectTypeId objectTypeId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String objectTypeId, Class responseType) throws IOException, InterruptedException { + return delete(objectTypeId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/objects/object-types/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param objectTypeId objectTypeId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String objectTypeId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(objectTypeId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/objects/object-types}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/objects/object-types") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_OBJECTS_OBJECT_TYPES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/object-types} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_OBJECTS_OBJECT_TYPES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/object-types} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/object-types} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/objects/object-types/{param}}. + * @param decoded response type + * @param objectTypeId objectTypeId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/objects/object-types/{param}") + public @Nullable T get(String objectTypeId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_OBJECTS_OBJECT_TYPES_PARAM, + List.of(objectTypeId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/object-types/{param}} using a generic response type. + * @param decoded response type + * @param objectTypeId objectTypeId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String objectTypeId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_OBJECTS_OBJECT_TYPES_PARAM, + List.of(objectTypeId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/object-types/{param}} without query parameters. + * @param decoded response type + * @param objectTypeId objectTypeId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String objectTypeId, Class responseType) throws IOException, InterruptedException { + return get(objectTypeId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/object-types/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param objectTypeId objectTypeId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String objectTypeId, TypeReference responseType) + throws IOException, InterruptedException { + return get(objectTypeId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code PUT /ontology/objects/object-types/{param}}. + * @param decoded response type + * @param objectTypeId objectTypeId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|PUT|/ontology/objects/object-types/{param}") + public @Nullable T update( + String objectTypeId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.PUT_ONTOLOGY_OBJECTS_OBJECT_TYPES_PARAM, + List.of(objectTypeId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code PUT /ontology/objects/object-types/{param}} using a generic response type. + * @param decoded response type + * @param objectTypeId objectTypeId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update( + String objectTypeId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.PUT_ONTOLOGY_OBJECTS_OBJECT_TYPES_PARAM, + List.of(objectTypeId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code PUT /ontology/objects/object-types/{param}} without query parameters. + * @param decoded response type + * @param objectTypeId objectTypeId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String objectTypeId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return update(objectTypeId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code PUT /ontology/objects/object-types/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param objectTypeId objectTypeId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String objectTypeId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return update(objectTypeId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyObjectsObjectsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyObjectsObjectsClient.java new file mode 100644 index 0000000..df307af --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyObjectsObjectsClient.java @@ -0,0 +1,240 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/objects/objects. Generated by scripts/generate_endpoints.py. */ +public final class OntologyObjectsObjectsClient extends ServiceClient { + OntologyObjectsObjectsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code DELETE /ontology/objects/objects/{param}}. + * @param decoded response type + * @param objectId objectId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|DELETE|/ontology/objects/objects/{param}") + public @Nullable T delete(String objectId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.DELETE_ONTOLOGY_OBJECTS_OBJECTS_PARAM, List.of(objectId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/objects/objects/{param}} using a generic response type. + * @param decoded response type + * @param objectId objectId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String objectId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.DELETE_ONTOLOGY_OBJECTS_OBJECTS_PARAM, List.of(objectId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/objects/objects/{param}} without query parameters. + * @param decoded response type + * @param objectId objectId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String objectId, Class responseType) throws IOException, InterruptedException { + return delete(objectId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/objects/objects/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param objectId objectId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String objectId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(objectId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/objects/objects}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/objects/objects") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_OBJECTS_OBJECTS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/objects} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_OBJECTS_OBJECTS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/objects} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/objects} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/objects/objects/{param}}. + * @param decoded response type + * @param objectId objectId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/objects/objects/{param}") + public @Nullable T get(String objectId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_OBJECTS_OBJECTS_PARAM, List.of(objectId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/objects/{param}} using a generic response type. + * @param decoded response type + * @param objectId objectId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String objectId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_OBJECTS_OBJECTS_PARAM, List.of(objectId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/objects/{param}} without query parameters. + * @param decoded response type + * @param objectId objectId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String objectId, Class responseType) throws IOException, InterruptedException { + return get(objectId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/objects/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param objectId objectId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String objectId, TypeReference responseType) + throws IOException, InterruptedException { + return get(objectId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code PUT /ontology/objects/objects/{param}}. + * @param decoded response type + * @param objectId objectId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|PUT|/ontology/objects/objects/{param}") + public @Nullable T update(String objectId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.PUT_ONTOLOGY_OBJECTS_OBJECTS_PARAM, List.of(objectId), query, body, responseType); + } + /** + * Calls the contract route {@code PUT /ontology/objects/objects/{param}} using a generic response type. + * @param decoded response type + * @param objectId objectId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update( + String objectId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.PUT_ONTOLOGY_OBJECTS_OBJECTS_PARAM, List.of(objectId), query, body, responseType); + } + /** + * Calls the contract route {@code PUT /ontology/objects/objects/{param}} without query parameters. + * @param decoded response type + * @param objectId objectId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String objectId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return update(objectId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code PUT /ontology/objects/objects/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param objectId objectId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String objectId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return update(objectId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyObjectsRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyObjectsRunsClient.java new file mode 100644 index 0000000..94e4f5a --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyObjectsRunsClient.java @@ -0,0 +1,173 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/objects/runs. Generated by scripts/generate_endpoints.py. */ +public final class OntologyObjectsRunsClient extends ServiceClient { + OntologyObjectsRunsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/objects/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/objects/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_OBJECTS_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_OBJECTS_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/objects/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/objects/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_OBJECTS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_OBJECTS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/objects/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /ontology/objects/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/objects/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_OBJECTS_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/objects/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_OBJECTS_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/objects/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/objects/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyReasoningCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyReasoningCapabilitiesClient.java new file mode 100644 index 0000000..d17c1c2 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyReasoningCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/reasoning/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class OntologyReasoningCapabilitiesClient extends ServiceClient { + OntologyReasoningCapabilitiesClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/reasoning/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/reasoning/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_REASONING_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/reasoning/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_REASONING_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/reasoning/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/reasoning/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyReasoningClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyReasoningClient.java new file mode 100644 index 0000000..a999742 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyReasoningClient.java @@ -0,0 +1,203 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/reasoning. Generated by scripts/generate_endpoints.py. */ +public final class OntologyReasoningClient extends ServiceClient { + OntologyReasoningClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public OntologyReasoningCapabilitiesClient capabilities() { + return new OntologyReasoningCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the facts resource client + */ + public OntologyReasoningFactsClient facts() { + return new OntologyReasoningFactsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the reason resource client + */ + public OntologyReasoningReasonClient reason() { + return new OntologyReasoningReasonClient(client()); + } + + /** Returns the client for the nested resource. + * @return the rules resource client + */ + public OntologyReasoningRulesClient rules() { + return new OntologyReasoningRulesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public OntologyReasoningRunsClient runs() { + return new OntologyReasoningRunsClient(client()); + } + + /** + * Calls the contract route {@code GET /ontology/reasoning/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/reasoning/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_REASONING_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/reasoning/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_REASONING_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/reasoning/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/reasoning/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/reasoning/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/reasoning/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_REASONING_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/reasoning/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_REASONING_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/reasoning/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/reasoning/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /ontology/reasoning/explain}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/reasoning/explain") + public @Nullable T createExplain(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_REASONING_EXPLAIN, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/reasoning/explain} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createExplain(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_REASONING_EXPLAIN, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/reasoning/explain} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createExplain(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createExplain(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/reasoning/explain} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createExplain(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createExplain(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyReasoningFactsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyReasoningFactsClient.java new file mode 100644 index 0000000..47950a6 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyReasoningFactsClient.java @@ -0,0 +1,128 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/reasoning/facts. Generated by scripts/generate_endpoints.py. */ +public final class OntologyReasoningFactsClient extends ServiceClient { + OntologyReasoningFactsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code POST /ontology/reasoning/facts}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/reasoning/facts") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_REASONING_FACTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/reasoning/facts} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_REASONING_FACTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/reasoning/facts} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/reasoning/facts} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /ontology/reasoning/facts/load-graph}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/reasoning/facts/load-graph") + public @Nullable T createLoadGraph(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_REASONING_FACTS_LOAD_GRAPH, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/reasoning/facts/load-graph} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createLoadGraph(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_REASONING_FACTS_LOAD_GRAPH, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/reasoning/facts/load-graph} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createLoadGraph(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createLoadGraph(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/reasoning/facts/load-graph} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createLoadGraph(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createLoadGraph(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyReasoningReasonClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyReasoningReasonClient.java new file mode 100644 index 0000000..25ce8bf --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyReasoningReasonClient.java @@ -0,0 +1,128 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/reasoning/reason. Generated by scripts/generate_endpoints.py. */ +public final class OntologyReasoningReasonClient extends ServiceClient { + OntologyReasoningReasonClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code POST /ontology/reasoning/reason/backward}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/reasoning/reason/backward") + public @Nullable T createBackward(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_REASONING_REASON_BACKWARD, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/reasoning/reason/backward} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createBackward(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_REASONING_REASON_BACKWARD, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/reasoning/reason/backward} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createBackward(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createBackward(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/reasoning/reason/backward} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createBackward(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createBackward(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /ontology/reasoning/reason/forward}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/reasoning/reason/forward") + public @Nullable T createForward(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_REASONING_REASON_FORWARD, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/reasoning/reason/forward} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createForward(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_REASONING_REASON_FORWARD, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/reasoning/reason/forward} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createForward(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createForward(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/reasoning/reason/forward} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createForward(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createForward(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyReasoningRulesClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyReasoningRulesClient.java new file mode 100644 index 0000000..dd316f6 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyReasoningRulesClient.java @@ -0,0 +1,239 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/reasoning/rules. Generated by scripts/generate_endpoints.py. */ +public final class OntologyReasoningRulesClient extends ServiceClient { + OntologyReasoningRulesClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code DELETE /ontology/reasoning/rules/{param}}. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|DELETE|/ontology/reasoning/rules/{param}") + public @Nullable T delete(String ruleId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.DELETE_ONTOLOGY_REASONING_RULES_PARAM, List.of(ruleId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/reasoning/rules/{param}} using a generic response type. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String ruleId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.DELETE_ONTOLOGY_REASONING_RULES_PARAM, List.of(ruleId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/reasoning/rules/{param}} without query parameters. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String ruleId, Class responseType) throws IOException, InterruptedException { + return delete(ruleId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/reasoning/rules/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String ruleId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(ruleId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/reasoning/rules}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/reasoning/rules") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_REASONING_RULES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/reasoning/rules} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_REASONING_RULES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/reasoning/rules} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/reasoning/rules} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /ontology/reasoning/rules}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/reasoning/rules") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_REASONING_RULES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/reasoning/rules} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_REASONING_RULES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/reasoning/rules} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/reasoning/rules} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code PUT /ontology/reasoning/rules/{param}}. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|PUT|/ontology/reasoning/rules/{param}") + public @Nullable T update(String ruleId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.PUT_ONTOLOGY_REASONING_RULES_PARAM, List.of(ruleId), query, body, responseType); + } + /** + * Calls the contract route {@code PUT /ontology/reasoning/rules/{param}} using a generic response type. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update( + String ruleId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.PUT_ONTOLOGY_REASONING_RULES_PARAM, List.of(ruleId), query, body, responseType); + } + /** + * Calls the contract route {@code PUT /ontology/reasoning/rules/{param}} without query parameters. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String ruleId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return update(ruleId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code PUT /ontology/reasoning/rules/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String ruleId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return update(ruleId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyReasoningRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyReasoningRunsClient.java new file mode 100644 index 0000000..dd9aa16 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyReasoningRunsClient.java @@ -0,0 +1,173 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/reasoning/runs. Generated by scripts/generate_endpoints.py. */ +public final class OntologyReasoningRunsClient extends ServiceClient { + OntologyReasoningRunsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/reasoning/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/reasoning/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_REASONING_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/reasoning/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_REASONING_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/reasoning/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/reasoning/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/reasoning/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/reasoning/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_REASONING_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/reasoning/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_REASONING_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/reasoning/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/reasoning/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /ontology/reasoning/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/reasoning/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_REASONING_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/reasoning/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_REASONING_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/reasoning/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/reasoning/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyRelationshipsCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyRelationshipsCapabilitiesClient.java new file mode 100644 index 0000000..e1043c4 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyRelationshipsCapabilitiesClient.java @@ -0,0 +1,64 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/relationships/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class OntologyRelationshipsCapabilitiesClient extends ServiceClient { + OntologyRelationshipsCapabilitiesClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/relationships/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/relationships/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_RELATIONSHIPS_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/relationships/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_RELATIONSHIPS_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/relationships/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/relationships/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyRelationshipsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyRelationshipsClient.java new file mode 100644 index 0000000..a9c1d7f --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyRelationshipsClient.java @@ -0,0 +1,139 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/relationships. Generated by scripts/generate_endpoints.py. */ +public final class OntologyRelationshipsClient extends ServiceClient { + OntologyRelationshipsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public OntologyRelationshipsCapabilitiesClient capabilities() { + return new OntologyRelationshipsCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the relationship-types resource client + */ + public OntologyRelationshipsRelationshipTypesClient relationshipTypes() { + return new OntologyRelationshipsRelationshipTypesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the relationships resource client + */ + public OntologyRelationshipsRelationshipsClient relationships() { + return new OntologyRelationshipsRelationshipsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public OntologyRelationshipsRunsClient runs() { + return new OntologyRelationshipsRunsClient(client()); + } + + /** + * Calls the contract route {@code GET /ontology/relationships/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/relationships/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_RELATIONSHIPS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/relationships/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_RELATIONSHIPS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/relationships/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/relationships/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/relationships/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/relationships/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_RELATIONSHIPS_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/relationships/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_RELATIONSHIPS_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/relationships/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/relationships/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyRelationshipsRelationshipTypesClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyRelationshipsRelationshipTypesClient.java new file mode 100644 index 0000000..a0e7a22 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyRelationshipsRelationshipTypesClient.java @@ -0,0 +1,130 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/relationships/relationship-types. Generated by scripts/generate_endpoints.py. */ +public final class OntologyRelationshipsRelationshipTypesClient extends ServiceClient { + OntologyRelationshipsRelationshipTypesClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code DELETE /ontology/relationships/relationship-types/{param}}. + * @param decoded response type + * @param relationshipTypeId relationshipTypeId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|DELETE|/ontology/relationships/relationship-types/{param}") + public @Nullable T delete(String relationshipTypeId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.DELETE_ONTOLOGY_RELATIONSHIPS_RELATIONSHIP_TYPES_PARAM, + List.of(relationshipTypeId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/relationships/relationship-types/{param}} using a generic response type. + * @param decoded response type + * @param relationshipTypeId relationshipTypeId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String relationshipTypeId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.DELETE_ONTOLOGY_RELATIONSHIPS_RELATIONSHIP_TYPES_PARAM, + List.of(relationshipTypeId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/relationships/relationship-types/{param}} without query parameters. + * @param decoded response type + * @param relationshipTypeId relationshipTypeId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String relationshipTypeId, Class responseType) + throws IOException, InterruptedException { + return delete(relationshipTypeId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/relationships/relationship-types/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param relationshipTypeId relationshipTypeId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String relationshipTypeId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(relationshipTypeId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/relationships/relationship-types}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/relationships/relationship-types") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_RELATIONSHIPS_RELATIONSHIP_TYPES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/relationships/relationship-types} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_RELATIONSHIPS_RELATIONSHIP_TYPES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/relationships/relationship-types} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/relationships/relationship-types} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyRelationshipsRelationshipsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyRelationshipsRelationshipsClient.java new file mode 100644 index 0000000..6e92ba3 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyRelationshipsRelationshipsClient.java @@ -0,0 +1,268 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/relationships/relationships. Generated by scripts/generate_endpoints.py. */ +public final class OntologyRelationshipsRelationshipsClient extends ServiceClient { + OntologyRelationshipsRelationshipsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code DELETE /ontology/relationships/relationships/{param}}. + * @param decoded response type + * @param relationshipId relationshipId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|DELETE|/ontology/relationships/relationships/{param}") + public @Nullable T delete(String relationshipId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.DELETE_ONTOLOGY_RELATIONSHIPS_RELATIONSHIPS_PARAM, + List.of(relationshipId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/relationships/relationships/{param}} using a generic response type. + * @param decoded response type + * @param relationshipId relationshipId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String relationshipId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.DELETE_ONTOLOGY_RELATIONSHIPS_RELATIONSHIPS_PARAM, + List.of(relationshipId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/relationships/relationships/{param}} without query parameters. + * @param decoded response type + * @param relationshipId relationshipId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String relationshipId, Class responseType) + throws IOException, InterruptedException { + return delete(relationshipId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/relationships/relationships/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param relationshipId relationshipId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String relationshipId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(relationshipId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/relationships/relationships}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/relationships/relationships") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_RELATIONSHIPS_RELATIONSHIPS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/relationships/relationships} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_RELATIONSHIPS_RELATIONSHIPS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/relationships/relationships} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/relationships/relationships} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/relationships/relationships/{param}}. + * @param decoded response type + * @param relationshipId relationshipId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/relationships/relationships/{param}") + public @Nullable T get(String relationshipId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_RELATIONSHIPS_RELATIONSHIPS_PARAM, + List.of(relationshipId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /ontology/relationships/relationships/{param}} using a generic response type. + * @param decoded response type + * @param relationshipId relationshipId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String relationshipId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_RELATIONSHIPS_RELATIONSHIPS_PARAM, + List.of(relationshipId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /ontology/relationships/relationships/{param}} without query parameters. + * @param decoded response type + * @param relationshipId relationshipId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String relationshipId, Class responseType) throws IOException, InterruptedException { + return get(relationshipId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/relationships/relationships/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param relationshipId relationshipId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String relationshipId, TypeReference responseType) + throws IOException, InterruptedException { + return get(relationshipId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code PUT /ontology/relationships/relationships/{param}}. + * @param decoded response type + * @param relationshipId relationshipId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|PUT|/ontology/relationships/relationships/{param}") + public @Nullable T update( + String relationshipId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.PUT_ONTOLOGY_RELATIONSHIPS_RELATIONSHIPS_PARAM, + List.of(relationshipId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code PUT /ontology/relationships/relationships/{param}} using a generic response type. + * @param decoded response type + * @param relationshipId relationshipId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update( + String relationshipId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.PUT_ONTOLOGY_RELATIONSHIPS_RELATIONSHIPS_PARAM, + List.of(relationshipId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code PUT /ontology/relationships/relationships/{param}} without query parameters. + * @param decoded response type + * @param relationshipId relationshipId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String relationshipId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return update(relationshipId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code PUT /ontology/relationships/relationships/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param relationshipId relationshipId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String relationshipId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return update(relationshipId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyRelationshipsRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyRelationshipsRunsClient.java new file mode 100644 index 0000000..f02803f --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyRelationshipsRunsClient.java @@ -0,0 +1,175 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/relationships/runs. Generated by scripts/generate_endpoints.py. */ +public final class OntologyRelationshipsRunsClient extends ServiceClient { + OntologyRelationshipsRunsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/relationships/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/relationships/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_RELATIONSHIPS_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/relationships/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_RELATIONSHIPS_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/relationships/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/relationships/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/relationships/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/relationships/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_RELATIONSHIPS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/relationships/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_RELATIONSHIPS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/relationships/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/relationships/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /ontology/relationships/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/relationships/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_RELATIONSHIPS_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/relationships/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_RELATIONSHIPS_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/relationships/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/relationships/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyRolloutsCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyRolloutsCapabilitiesClient.java new file mode 100644 index 0000000..bbee0dd --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyRolloutsCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/rollouts/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class OntologyRolloutsCapabilitiesClient extends ServiceClient { + OntologyRolloutsCapabilitiesClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/rollouts/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/rollouts/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ROLLOUTS_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollouts/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ROLLOUTS_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollouts/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollouts/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyRolloutsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyRolloutsClient.java new file mode 100644 index 0000000..0f48466 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyRolloutsClient.java @@ -0,0 +1,132 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/rollouts. Generated by scripts/generate_endpoints.py. */ +public final class OntologyRolloutsClient extends ServiceClient { + OntologyRolloutsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public OntologyRolloutsCapabilitiesClient capabilities() { + return new OntologyRolloutsCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the rollouts resource client + */ + public OntologyRolloutsRolloutsClient rollouts() { + return new OntologyRolloutsRolloutsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public OntologyRolloutsRunsClient runs() { + return new OntologyRolloutsRunsClient(client()); + } + + /** + * Calls the contract route {@code GET /ontology/rollouts/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/rollouts/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ROLLOUTS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollouts/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ROLLOUTS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollouts/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollouts/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/rollouts/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/rollouts/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ROLLOUTS_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollouts/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ROLLOUTS_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollouts/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollouts/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyRolloutsRolloutsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyRolloutsRolloutsClient.java new file mode 100644 index 0000000..398d337 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyRolloutsRolloutsClient.java @@ -0,0 +1,654 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/rollouts/rollouts. Generated by scripts/generate_endpoints.py. */ +public final class OntologyRolloutsRolloutsClient extends ServiceClient { + OntologyRolloutsRolloutsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code DELETE /ontology/rollouts/rollouts/{param}}. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|DELETE|/ontology/rollouts/rollouts/{param}") + public @Nullable T delete(String rolloutId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.DELETE_ONTOLOGY_ROLLOUTS_ROLLOUTS_PARAM, + List.of(rolloutId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/rollouts/rollouts/{param}} using a generic response type. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String rolloutId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.DELETE_ONTOLOGY_ROLLOUTS_ROLLOUTS_PARAM, + List.of(rolloutId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/rollouts/rollouts/{param}} without query parameters. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String rolloutId, Class responseType) throws IOException, InterruptedException { + return delete(rolloutId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/rollouts/rollouts/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String rolloutId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(rolloutId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/rollouts/rollouts}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/rollouts/rollouts") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ROLLOUTS_ROLLOUTS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollouts/rollouts} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ROLLOUTS_ROLLOUTS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollouts/rollouts} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollouts/rollouts} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/rollouts/rollouts/{param}}. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/rollouts/rollouts/{param}") + public @Nullable T get(String rolloutId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_ROLLOUTS_ROLLOUTS_PARAM, List.of(rolloutId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollouts/rollouts/{param}} using a generic response type. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String rolloutId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_ROLLOUTS_ROLLOUTS_PARAM, List.of(rolloutId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollouts/rollouts/{param}} without query parameters. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String rolloutId, Class responseType) throws IOException, InterruptedException { + return get(rolloutId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollouts/rollouts/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String rolloutId, TypeReference responseType) + throws IOException, InterruptedException { + return get(rolloutId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/rollouts/rollouts/{param}/status}. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/rollouts/rollouts/{param}/status") + public @Nullable T status(String rolloutId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_ROLLOUTS_ROLLOUTS_PARAM_STATUS, + List.of(rolloutId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollouts/rollouts/{param}/status} using a generic response type. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T status(String rolloutId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_ROLLOUTS_ROLLOUTS_PARAM_STATUS, + List.of(rolloutId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollouts/rollouts/{param}/status} without query parameters. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T status(String rolloutId, Class responseType) throws IOException, InterruptedException { + return status(rolloutId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollouts/rollouts/{param}/status} without query parameters using a generic response type. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T status(String rolloutId, TypeReference responseType) + throws IOException, InterruptedException { + return status(rolloutId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /ontology/rollouts/rollouts}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/rollouts/rollouts") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_ROLLOUTS_ROLLOUTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollouts/rollouts} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_ROLLOUTS_ROLLOUTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollouts/rollouts} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollouts/rollouts} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /ontology/rollouts/rollouts/{param}/pause}. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/rollouts/rollouts/{param}/pause") + public @Nullable T pause(String rolloutId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_ROLLOUTS_ROLLOUTS_PARAM_PAUSE, + List.of(rolloutId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollouts/rollouts/{param}/pause} using a generic response type. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T pause( + String rolloutId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_ROLLOUTS_ROLLOUTS_PARAM_PAUSE, + List.of(rolloutId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollouts/rollouts/{param}/pause} without query parameters. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T pause(String rolloutId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return pause(rolloutId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollouts/rollouts/{param}/pause} without query parameters using a generic response type. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T pause(String rolloutId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return pause(rolloutId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /ontology/rollouts/rollouts/{param}/resume}. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/rollouts/rollouts/{param}/resume") + public @Nullable T resume(String rolloutId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_ROLLOUTS_ROLLOUTS_PARAM_RESUME, + List.of(rolloutId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollouts/rollouts/{param}/resume} using a generic response type. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T resume( + String rolloutId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_ROLLOUTS_ROLLOUTS_PARAM_RESUME, + List.of(rolloutId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollouts/rollouts/{param}/resume} without query parameters. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T resume(String rolloutId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return resume(rolloutId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollouts/rollouts/{param}/resume} without query parameters using a generic response type. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T resume(String rolloutId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return resume(rolloutId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /ontology/rollouts/rollouts/{param}/rollback}. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/rollouts/rollouts/{param}/rollback") + public @Nullable T rollback(String rolloutId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_ROLLOUTS_ROLLOUTS_PARAM_ROLLBACK, + List.of(rolloutId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollouts/rollouts/{param}/rollback} using a generic response type. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T rollback( + String rolloutId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_ROLLOUTS_ROLLOUTS_PARAM_ROLLBACK, + List.of(rolloutId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollouts/rollouts/{param}/rollback} without query parameters. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T rollback(String rolloutId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return rollback(rolloutId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollouts/rollouts/{param}/rollback} without query parameters using a generic response type. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T rollback(String rolloutId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return rollback(rolloutId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /ontology/rollouts/rollouts/{param}/start}. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/rollouts/rollouts/{param}/start") + public @Nullable T createStart( + String rolloutId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_ROLLOUTS_ROLLOUTS_PARAM_START, + List.of(rolloutId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollouts/rollouts/{param}/start} using a generic response type. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createStart( + String rolloutId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_ROLLOUTS_ROLLOUTS_PARAM_START, + List.of(rolloutId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollouts/rollouts/{param}/start} without query parameters. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createStart(String rolloutId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createStart(rolloutId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollouts/rollouts/{param}/start} without query parameters using a generic response type. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createStart(String rolloutId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createStart(rolloutId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code PUT /ontology/rollouts/rollouts/{param}}. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|PUT|/ontology/rollouts/rollouts/{param}") + public @Nullable T update(String rolloutId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.PUT_ONTOLOGY_ROLLOUTS_ROLLOUTS_PARAM, List.of(rolloutId), query, body, responseType); + } + /** + * Calls the contract route {@code PUT /ontology/rollouts/rollouts/{param}} using a generic response type. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update( + String rolloutId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.PUT_ONTOLOGY_ROLLOUTS_ROLLOUTS_PARAM, List.of(rolloutId), query, body, responseType); + } + /** + * Calls the contract route {@code PUT /ontology/rollouts/rollouts/{param}} without query parameters. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String rolloutId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return update(rolloutId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code PUT /ontology/rollouts/rollouts/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param rolloutId rolloutId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String rolloutId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return update(rolloutId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyRolloutsRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyRolloutsRunsClient.java new file mode 100644 index 0000000..8f71bfc --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyRolloutsRunsClient.java @@ -0,0 +1,173 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/rollouts/runs. Generated by scripts/generate_endpoints.py. */ +public final class OntologyRolloutsRunsClient extends ServiceClient { + OntologyRolloutsRunsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/rollouts/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/rollouts/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ROLLOUTS_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollouts/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ROLLOUTS_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollouts/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollouts/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/rollouts/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/rollouts/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ROLLOUTS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollouts/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ROLLOUTS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollouts/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollouts/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /ontology/rollouts/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/rollouts/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_ROLLOUTS_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollouts/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_ROLLOUTS_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollouts/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollouts/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyRollupsCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyRollupsCapabilitiesClient.java new file mode 100644 index 0000000..7b4eb02 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyRollupsCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/rollups/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class OntologyRollupsCapabilitiesClient extends ServiceClient { + OntologyRollupsCapabilitiesClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/rollups/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/rollups/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ROLLUPS_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ROLLUPS_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyRollupsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyRollupsClient.java new file mode 100644 index 0000000..f5b6b2e --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyRollupsClient.java @@ -0,0 +1,139 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/rollups. Generated by scripts/generate_endpoints.py. */ +public final class OntologyRollupsClient extends ServiceClient { + OntologyRollupsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public OntologyRollupsCapabilitiesClient capabilities() { + return new OntologyRollupsCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the rollup-results resource client + */ + public OntologyRollupsRollupResultsClient rollupResults() { + return new OntologyRollupsRollupResultsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the rollups resource client + */ + public OntologyRollupsRollupsClient rollups() { + return new OntologyRollupsRollupsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public OntologyRollupsRunsClient runs() { + return new OntologyRollupsRunsClient(client()); + } + + /** + * Calls the contract route {@code GET /ontology/rollups/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/rollups/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ROLLUPS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ROLLUPS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/rollups/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/rollups/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ROLLUPS_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ROLLUPS_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyRollupsRollupResultsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyRollupsRollupResultsClient.java new file mode 100644 index 0000000..f45d0cc --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyRollupsRollupResultsClient.java @@ -0,0 +1,78 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/rollups/rollup-results. Generated by scripts/generate_endpoints.py. */ +public final class OntologyRollupsRollupResultsClient extends ServiceClient { + OntologyRollupsRollupResultsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/rollups/rollup-results/{param}}. + * @param decoded response type + * @param executionId executionId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/rollups/rollup-results/{param}") + public @Nullable T get(String executionId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_ROLLUPS_ROLLUP_RESULTS_PARAM, + List.of(executionId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/rollup-results/{param}} using a generic response type. + * @param decoded response type + * @param executionId executionId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String executionId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_ROLLUPS_ROLLUP_RESULTS_PARAM, + List.of(executionId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/rollup-results/{param}} without query parameters. + * @param decoded response type + * @param executionId executionId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String executionId, Class responseType) throws IOException, InterruptedException { + return get(executionId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/rollup-results/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param executionId executionId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String executionId, TypeReference responseType) + throws IOException, InterruptedException { + return get(executionId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyRollupsRollupsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyRollupsRollupsClient.java new file mode 100644 index 0000000..372053d --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyRollupsRollupsClient.java @@ -0,0 +1,503 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/rollups/rollups. Generated by scripts/generate_endpoints.py. */ +public final class OntologyRollupsRollupsClient extends ServiceClient { + OntologyRollupsRollupsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code DELETE /ontology/rollups/rollups/{param}}. + * @param decoded response type + * @param rollupId rollupId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|DELETE|/ontology/rollups/rollups/{param}") + public @Nullable T delete(String rollupId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.DELETE_ONTOLOGY_ROLLUPS_ROLLUPS_PARAM, List.of(rollupId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/rollups/rollups/{param}} using a generic response type. + * @param decoded response type + * @param rollupId rollupId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String rollupId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.DELETE_ONTOLOGY_ROLLUPS_ROLLUPS_PARAM, List.of(rollupId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/rollups/rollups/{param}} without query parameters. + * @param decoded response type + * @param rollupId rollupId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String rollupId, Class responseType) throws IOException, InterruptedException { + return delete(rollupId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/rollups/rollups/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param rollupId rollupId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String rollupId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(rollupId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/rollups/rollups}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/rollups/rollups") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ROLLUPS_ROLLUPS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/rollups} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ROLLUPS_ROLLUPS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/rollups} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/rollups} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/rollups/rollups/{param}}. + * @param decoded response type + * @param rollupId rollupId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/rollups/rollups/{param}") + public @Nullable T get(String rollupId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_ROLLUPS_ROLLUPS_PARAM, List.of(rollupId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/rollups/{param}} using a generic response type. + * @param decoded response type + * @param rollupId rollupId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String rollupId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_ROLLUPS_ROLLUPS_PARAM, List.of(rollupId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/rollups/{param}} without query parameters. + * @param decoded response type + * @param rollupId rollupId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String rollupId, Class responseType) throws IOException, InterruptedException { + return get(rollupId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/rollups/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param rollupId rollupId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String rollupId, TypeReference responseType) + throws IOException, InterruptedException { + return get(rollupId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/rollups/rollups/{param}/result}. + * @param decoded response type + * @param rollupId rollupId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/rollups/rollups/{param}/result") + public @Nullable T getResult(String rollupId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_ROLLUPS_ROLLUPS_PARAM_RESULT, + List.of(rollupId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/rollups/{param}/result} using a generic response type. + * @param decoded response type + * @param rollupId rollupId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getResult(String rollupId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_ROLLUPS_ROLLUPS_PARAM_RESULT, + List.of(rollupId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/rollups/{param}/result} without query parameters. + * @param decoded response type + * @param rollupId rollupId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getResult(String rollupId, Class responseType) throws IOException, InterruptedException { + return getResult(rollupId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/rollups/{param}/result} without query parameters using a generic response type. + * @param decoded response type + * @param rollupId rollupId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getResult(String rollupId, TypeReference responseType) + throws IOException, InterruptedException { + return getResult(rollupId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /ontology/rollups/rollups}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/rollups/rollups") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_ROLLUPS_ROLLUPS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollups/rollups} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_ROLLUPS_ROLLUPS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollups/rollups} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollups/rollups} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /ontology/rollups/rollups/{param}/execute}. + * @param decoded response type + * @param rollupId rollupId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/rollups/rollups/{param}/execute") + public @Nullable T execute(String rollupId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_ROLLUPS_ROLLUPS_PARAM_EXECUTE, + List.of(rollupId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollups/rollups/{param}/execute} using a generic response type. + * @param decoded response type + * @param rollupId rollupId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T execute( + String rollupId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_ROLLUPS_ROLLUPS_PARAM_EXECUTE, + List.of(rollupId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollups/rollups/{param}/execute} without query parameters. + * @param decoded response type + * @param rollupId rollupId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T execute(String rollupId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return execute(rollupId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollups/rollups/{param}/execute} without query parameters using a generic response type. + * @param decoded response type + * @param rollupId rollupId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T execute(String rollupId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return execute(rollupId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /ontology/rollups/rollups/{param}/preview}. + * @param decoded response type + * @param rollupId rollupId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/rollups/rollups/{param}/preview") + public @Nullable T preview(String rollupId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_ROLLUPS_ROLLUPS_PARAM_PREVIEW, + List.of(rollupId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollups/rollups/{param}/preview} using a generic response type. + * @param decoded response type + * @param rollupId rollupId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T preview( + String rollupId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_ROLLUPS_ROLLUPS_PARAM_PREVIEW, + List.of(rollupId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollups/rollups/{param}/preview} without query parameters. + * @param decoded response type + * @param rollupId rollupId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T preview(String rollupId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return preview(rollupId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollups/rollups/{param}/preview} without query parameters using a generic response type. + * @param decoded response type + * @param rollupId rollupId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T preview(String rollupId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return preview(rollupId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code PUT /ontology/rollups/rollups/{param}}. + * @param decoded response type + * @param rollupId rollupId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|PUT|/ontology/rollups/rollups/{param}") + public @Nullable T update(String rollupId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.PUT_ONTOLOGY_ROLLUPS_ROLLUPS_PARAM, List.of(rollupId), query, body, responseType); + } + /** + * Calls the contract route {@code PUT /ontology/rollups/rollups/{param}} using a generic response type. + * @param decoded response type + * @param rollupId rollupId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update( + String rollupId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.PUT_ONTOLOGY_ROLLUPS_ROLLUPS_PARAM, List.of(rollupId), query, body, responseType); + } + /** + * Calls the contract route {@code PUT /ontology/rollups/rollups/{param}} without query parameters. + * @param decoded response type + * @param rollupId rollupId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String rollupId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return update(rollupId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code PUT /ontology/rollups/rollups/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param rollupId rollupId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String rollupId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return update(rollupId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyRollupsRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyRollupsRunsClient.java new file mode 100644 index 0000000..a2146a3 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyRollupsRunsClient.java @@ -0,0 +1,173 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/rollups/runs. Generated by scripts/generate_endpoints.py. */ +public final class OntologyRollupsRunsClient extends ServiceClient { + OntologyRollupsRunsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/rollups/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/rollups/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ROLLUPS_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ROLLUPS_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/rollups/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/rollups/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ROLLUPS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_ROLLUPS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/rollups/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /ontology/rollups/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/rollups/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_ROLLUPS_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollups/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_ROLLUPS_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollups/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/rollups/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologySchemasCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologySchemasCapabilitiesClient.java new file mode 100644 index 0000000..311ad77 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologySchemasCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/schemas/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class OntologySchemasCapabilitiesClient extends ServiceClient { + OntologySchemasCapabilitiesClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/schemas/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/schemas/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_SCHEMAS_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/schemas/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_SCHEMAS_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/schemas/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/schemas/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologySchemasClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologySchemasClient.java new file mode 100644 index 0000000..43627d4 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologySchemasClient.java @@ -0,0 +1,132 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/schemas. Generated by scripts/generate_endpoints.py. */ +public final class OntologySchemasClient extends ServiceClient { + OntologySchemasClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public OntologySchemasCapabilitiesClient capabilities() { + return new OntologySchemasCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public OntologySchemasRunsClient runs() { + return new OntologySchemasRunsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the schemas resource client + */ + public OntologySchemasSchemasClient schemas() { + return new OntologySchemasSchemasClient(client()); + } + + /** + * Calls the contract route {@code GET /ontology/schemas/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/schemas/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_SCHEMAS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/schemas/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_SCHEMAS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/schemas/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/schemas/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/schemas/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/schemas/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_SCHEMAS_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/schemas/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_SCHEMAS_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/schemas/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/schemas/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologySchemasRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologySchemasRunsClient.java new file mode 100644 index 0000000..09d170a --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologySchemasRunsClient.java @@ -0,0 +1,173 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/schemas/runs. Generated by scripts/generate_endpoints.py. */ +public final class OntologySchemasRunsClient extends ServiceClient { + OntologySchemasRunsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/schemas/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/schemas/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_SCHEMAS_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/schemas/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_SCHEMAS_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/schemas/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/schemas/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/schemas/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/schemas/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_SCHEMAS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/schemas/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_SCHEMAS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/schemas/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/schemas/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /ontology/schemas/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/schemas/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_SCHEMAS_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/schemas/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_SCHEMAS_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/schemas/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/schemas/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologySchemasSchemasClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologySchemasSchemasClient.java new file mode 100644 index 0000000..4ab53e0 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologySchemasSchemasClient.java @@ -0,0 +1,289 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/schemas/schemas. Generated by scripts/generate_endpoints.py. */ +public final class OntologySchemasSchemasClient extends ServiceClient { + OntologySchemasSchemasClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code DELETE /ontology/schemas/schemas/{param}}. + * @param decoded response type + * @param schemaId schemaId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|DELETE|/ontology/schemas/schemas/{param}") + public @Nullable T delete(String schemaId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.DELETE_ONTOLOGY_SCHEMAS_SCHEMAS_PARAM, List.of(schemaId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/schemas/schemas/{param}} using a generic response type. + * @param decoded response type + * @param schemaId schemaId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String schemaId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.DELETE_ONTOLOGY_SCHEMAS_SCHEMAS_PARAM, List.of(schemaId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/schemas/schemas/{param}} without query parameters. + * @param decoded response type + * @param schemaId schemaId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String schemaId, Class responseType) throws IOException, InterruptedException { + return delete(schemaId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/schemas/schemas/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param schemaId schemaId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String schemaId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(schemaId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/schemas/schemas}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/schemas/schemas") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_SCHEMAS_SCHEMAS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/schemas/schemas} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_SCHEMAS_SCHEMAS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/schemas/schemas} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/schemas/schemas} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/schemas/schemas/{param}}. + * @param decoded response type + * @param schemaId schemaId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/schemas/schemas/{param}") + public @Nullable T get(String schemaId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_SCHEMAS_SCHEMAS_PARAM, List.of(schemaId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/schemas/schemas/{param}} using a generic response type. + * @param decoded response type + * @param schemaId schemaId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String schemaId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_SCHEMAS_SCHEMAS_PARAM, List.of(schemaId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/schemas/schemas/{param}} without query parameters. + * @param decoded response type + * @param schemaId schemaId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String schemaId, Class responseType) throws IOException, InterruptedException { + return get(schemaId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/schemas/schemas/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param schemaId schemaId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String schemaId, TypeReference responseType) + throws IOException, InterruptedException { + return get(schemaId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /ontology/schemas/schemas}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/schemas/schemas") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_SCHEMAS_SCHEMAS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/schemas/schemas} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_SCHEMAS_SCHEMAS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/schemas/schemas} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/schemas/schemas} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /ontology/schemas/schemas/validate}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/schemas/schemas/validate") + public @Nullable T validate(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_SCHEMAS_SCHEMAS_VALIDATE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/schemas/schemas/validate} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T validate(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_SCHEMAS_SCHEMAS_VALIDATE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/schemas/schemas/validate} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T validate(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return validate(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/schemas/schemas/validate} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T validate(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return validate(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyTransformationsCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyTransformationsCapabilitiesClient.java new file mode 100644 index 0000000..f74e3c7 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyTransformationsCapabilitiesClient.java @@ -0,0 +1,64 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/transformations/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class OntologyTransformationsCapabilitiesClient extends ServiceClient { + OntologyTransformationsCapabilitiesClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/transformations/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/transformations/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_TRANSFORMATIONS_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/transformations/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_TRANSFORMATIONS_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/transformations/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/transformations/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyTransformationsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyTransformationsClient.java new file mode 100644 index 0000000..41419cd --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyTransformationsClient.java @@ -0,0 +1,132 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/transformations. Generated by scripts/generate_endpoints.py. */ +public final class OntologyTransformationsClient extends ServiceClient { + OntologyTransformationsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public OntologyTransformationsCapabilitiesClient capabilities() { + return new OntologyTransformationsCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public OntologyTransformationsRunsClient runs() { + return new OntologyTransformationsRunsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the transformations resource client + */ + public OntologyTransformationsTransformationsClient transformations() { + return new OntologyTransformationsTransformationsClient(client()); + } + + /** + * Calls the contract route {@code GET /ontology/transformations/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/transformations/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_TRANSFORMATIONS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/transformations/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_TRANSFORMATIONS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/transformations/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/transformations/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/transformations/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/transformations/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_TRANSFORMATIONS_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/transformations/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_TRANSFORMATIONS_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/transformations/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/transformations/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyTransformationsRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyTransformationsRunsClient.java new file mode 100644 index 0000000..db7bace --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyTransformationsRunsClient.java @@ -0,0 +1,175 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/transformations/runs. Generated by scripts/generate_endpoints.py. */ +public final class OntologyTransformationsRunsClient extends ServiceClient { + OntologyTransformationsRunsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/transformations/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/transformations/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_TRANSFORMATIONS_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/transformations/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_TRANSFORMATIONS_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/transformations/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/transformations/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/transformations/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/transformations/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_TRANSFORMATIONS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/transformations/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_TRANSFORMATIONS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/transformations/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/transformations/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /ontology/transformations/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/transformations/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_TRANSFORMATIONS_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/transformations/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_TRANSFORMATIONS_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/transformations/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/transformations/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyTransformationsTransformationsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyTransformationsTransformationsClient.java new file mode 100644 index 0000000..d22fe9f --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyTransformationsTransformationsClient.java @@ -0,0 +1,72 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/transformations/transformations. Generated by scripts/generate_endpoints.py. */ +public final class OntologyTransformationsTransformationsClient extends ServiceClient { + OntologyTransformationsTransformationsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code POST /ontology/transformations/transformations}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/transformations/transformations") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_TRANSFORMATIONS_TRANSFORMATIONS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/transformations/transformations} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_TRANSFORMATIONS_TRANSFORMATIONS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/transformations/transformations} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/transformations/transformations} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyValidationCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyValidationCapabilitiesClient.java new file mode 100644 index 0000000..a3c8c32 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyValidationCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/validation/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class OntologyValidationCapabilitiesClient extends ServiceClient { + OntologyValidationCapabilitiesClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/validation/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/validation/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_VALIDATION_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/validation/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_VALIDATION_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/validation/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/validation/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyValidationClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyValidationClient.java new file mode 100644 index 0000000..9ad211e --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyValidationClient.java @@ -0,0 +1,139 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/validation. Generated by scripts/generate_endpoints.py. */ +public final class OntologyValidationClient extends ServiceClient { + OntologyValidationClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public OntologyValidationCapabilitiesClient capabilities() { + return new OntologyValidationCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the payloads resource client + */ + public OntologyValidationPayloadsClient payloads() { + return new OntologyValidationPayloadsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the rules resource client + */ + public OntologyValidationRulesClient rules() { + return new OntologyValidationRulesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public OntologyValidationRunsClient runs() { + return new OntologyValidationRunsClient(client()); + } + + /** + * Calls the contract route {@code GET /ontology/validation/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/validation/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_VALIDATION_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/validation/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_VALIDATION_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/validation/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/validation/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/validation/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/validation/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_VALIDATION_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/validation/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_VALIDATION_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/validation/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/validation/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyValidationPayloadsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyValidationPayloadsClient.java new file mode 100644 index 0000000..50cece9 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyValidationPayloadsClient.java @@ -0,0 +1,72 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/validation/payloads. Generated by scripts/generate_endpoints.py. */ +public final class OntologyValidationPayloadsClient extends ServiceClient { + OntologyValidationPayloadsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code POST /ontology/validation/payloads/validate}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/validation/payloads/validate") + public @Nullable T validate(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_VALIDATION_PAYLOADS_VALIDATE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/validation/payloads/validate} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T validate(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_VALIDATION_PAYLOADS_VALIDATE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/validation/payloads/validate} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T validate(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return validate(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/validation/payloads/validate} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T validate(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return validate(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyValidationRulesClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyValidationRulesClient.java new file mode 100644 index 0000000..5a0c2aa --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyValidationRulesClient.java @@ -0,0 +1,232 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/validation/rules. Generated by scripts/generate_endpoints.py. */ +public final class OntologyValidationRulesClient extends ServiceClient { + OntologyValidationRulesClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code DELETE /ontology/validation/rules/{param}}. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|DELETE|/ontology/validation/rules/{param}") + public @Nullable T delete(String ruleId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.DELETE_ONTOLOGY_VALIDATION_RULES_PARAM, List.of(ruleId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/validation/rules/{param}} using a generic response type. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String ruleId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.DELETE_ONTOLOGY_VALIDATION_RULES_PARAM, List.of(ruleId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/validation/rules/{param}} without query parameters. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String ruleId, Class responseType) throws IOException, InterruptedException { + return delete(ruleId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/validation/rules/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String ruleId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(ruleId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/validation/rules}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/validation/rules") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_VALIDATION_RULES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/validation/rules} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_VALIDATION_RULES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/validation/rules} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/validation/rules} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/validation/rules/{param}}. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/validation/rules/{param}") + public @Nullable T get(String ruleId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_VALIDATION_RULES_PARAM, List.of(ruleId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/validation/rules/{param}} using a generic response type. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String ruleId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_VALIDATION_RULES_PARAM, List.of(ruleId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/validation/rules/{param}} without query parameters. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String ruleId, Class responseType) throws IOException, InterruptedException { + return get(ruleId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/validation/rules/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param ruleId ruleId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String ruleId, TypeReference responseType) throws IOException, InterruptedException { + return get(ruleId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /ontology/validation/rules}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/validation/rules") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_VALIDATION_RULES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/validation/rules} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_VALIDATION_RULES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/validation/rules} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/validation/rules} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyValidationRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyValidationRunsClient.java new file mode 100644 index 0000000..1337b87 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyValidationRunsClient.java @@ -0,0 +1,175 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/validation/runs. Generated by scripts/generate_endpoints.py. */ +public final class OntologyValidationRunsClient extends ServiceClient { + OntologyValidationRunsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/validation/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/validation/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_VALIDATION_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/validation/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_VALIDATION_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/validation/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/validation/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/validation/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/validation/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_VALIDATION_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/validation/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_VALIDATION_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/validation/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/validation/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /ontology/validation/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/validation/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_VALIDATION_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/validation/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_VALIDATION_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/validation/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/validation/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyVersionsAuditClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyVersionsAuditClient.java new file mode 100644 index 0000000..3849e90 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyVersionsAuditClient.java @@ -0,0 +1,70 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/versions/audit. Generated by scripts/generate_endpoints.py. */ +public final class OntologyVersionsAuditClient extends ServiceClient { + OntologyVersionsAuditClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code POST /ontology/versions/audit/verify}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/versions/audit/verify") + public @Nullable T verify(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_VERSIONS_AUDIT_VERIFY, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/versions/audit/verify} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T verify(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_VERSIONS_AUDIT_VERIFY, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/versions/audit/verify} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T verify(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return verify(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/versions/audit/verify} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T verify(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return verify(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyVersionsCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyVersionsCapabilitiesClient.java new file mode 100644 index 0000000..9dd11fc --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyVersionsCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/versions/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class OntologyVersionsCapabilitiesClient extends ServiceClient { + OntologyVersionsCapabilitiesClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/versions/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/versions/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_VERSIONS_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/versions/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_VERSIONS_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/versions/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/versions/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyVersionsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyVersionsClient.java new file mode 100644 index 0000000..6871b89 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyVersionsClient.java @@ -0,0 +1,146 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/versions. Generated by scripts/generate_endpoints.py. */ +public final class OntologyVersionsClient extends ServiceClient { + OntologyVersionsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** Returns the client for the nested resource. + * @return the audit resource client + */ + public OntologyVersionsAuditClient audit() { + return new OntologyVersionsAuditClient(client()); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public OntologyVersionsCapabilitiesClient capabilities() { + return new OntologyVersionsCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the release-bundles resource client + */ + public OntologyVersionsReleaseBundlesClient releaseBundles() { + return new OntologyVersionsReleaseBundlesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public OntologyVersionsRunsClient runs() { + return new OntologyVersionsRunsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the versions resource client + */ + public OntologyVersionsVersionsClient versions() { + return new OntologyVersionsVersionsClient(client()); + } + + /** + * Calls the contract route {@code GET /ontology/versions/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/versions/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_VERSIONS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/versions/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_VERSIONS_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/versions/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/versions/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/versions/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/versions/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_VERSIONS_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/versions/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_VERSIONS_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/versions/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/versions/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyVersionsReleaseBundlesClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyVersionsReleaseBundlesClient.java new file mode 100644 index 0000000..d9656bf --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyVersionsReleaseBundlesClient.java @@ -0,0 +1,184 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/versions/release-bundles. Generated by scripts/generate_endpoints.py. */ +public final class OntologyVersionsReleaseBundlesClient extends ServiceClient { + OntologyVersionsReleaseBundlesClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/versions/release-bundles}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/versions/release-bundles") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_VERSIONS_RELEASE_BUNDLES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/versions/release-bundles} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_VERSIONS_RELEASE_BUNDLES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/versions/release-bundles} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/versions/release-bundles} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/versions/release-bundles/{param}}. + * @param decoded response type + * @param bundleId bundleId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/versions/release-bundles/{param}") + public @Nullable T get(String bundleId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_VERSIONS_RELEASE_BUNDLES_PARAM, + List.of(bundleId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /ontology/versions/release-bundles/{param}} using a generic response type. + * @param decoded response type + * @param bundleId bundleId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String bundleId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_VERSIONS_RELEASE_BUNDLES_PARAM, + List.of(bundleId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /ontology/versions/release-bundles/{param}} without query parameters. + * @param decoded response type + * @param bundleId bundleId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String bundleId, Class responseType) throws IOException, InterruptedException { + return get(bundleId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/versions/release-bundles/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param bundleId bundleId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String bundleId, TypeReference responseType) + throws IOException, InterruptedException { + return get(bundleId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /ontology/versions/release-bundles}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/versions/release-bundles") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_VERSIONS_RELEASE_BUNDLES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/versions/release-bundles} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_VERSIONS_RELEASE_BUNDLES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/versions/release-bundles} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/versions/release-bundles} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyVersionsRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyVersionsRunsClient.java new file mode 100644 index 0000000..b50bdf4 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyVersionsRunsClient.java @@ -0,0 +1,173 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/versions/runs. Generated by scripts/generate_endpoints.py. */ +public final class OntologyVersionsRunsClient extends ServiceClient { + OntologyVersionsRunsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code GET /ontology/versions/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/versions/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_VERSIONS_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/versions/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_VERSIONS_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/versions/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/versions/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/versions/runs/{param}}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/versions/runs/{param}") + public @Nullable T get(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_VERSIONS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/versions/runs/{param}} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.GET_ONTOLOGY_VERSIONS_RUNS_PARAM, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/versions/runs/{param}} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, Class responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/versions/runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String runId, TypeReference responseType) throws IOException, InterruptedException { + return get(runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /ontology/versions/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/versions/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_VERSIONS_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/versions/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_VERSIONS_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/versions/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/versions/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/OntologyVersionsVersionsClient.java b/services/src/main/java/dev/frontal/sdk/resources/OntologyVersionsVersionsClient.java new file mode 100644 index 0000000..078ecf0 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/OntologyVersionsVersionsClient.java @@ -0,0 +1,250 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for ontology/versions/versions. Generated by scripts/generate_endpoints.py. */ +public final class OntologyVersionsVersionsClient extends ServiceClient { + OntologyVersionsVersionsClient(ApiClient client) { + super(ApiService.ONTOLOGY, client); + } + + /** + * Calls the contract route {@code DELETE /ontology/versions/versions/{param}}. + * @param decoded response type + * @param versionId versionId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|DELETE|/ontology/versions/versions/{param}") + public @Nullable T delete(String versionId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.DELETE_ONTOLOGY_VERSIONS_VERSIONS_PARAM, + List.of(versionId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/versions/versions/{param}} using a generic response type. + * @param decoded response type + * @param versionId versionId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String versionId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.DELETE_ONTOLOGY_VERSIONS_VERSIONS_PARAM, + List.of(versionId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/versions/versions/{param}} without query parameters. + * @param decoded response type + * @param versionId versionId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String versionId, Class responseType) throws IOException, InterruptedException { + return delete(versionId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /ontology/versions/versions/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param versionId versionId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String versionId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(versionId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /ontology/versions/versions/{param}}. + * @param decoded response type + * @param versionId versionId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|GET|/ontology/versions/versions/{param}") + public @Nullable T get(String versionId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_VERSIONS_VERSIONS_PARAM, List.of(versionId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/versions/versions/{param}} using a generic response type. + * @param decoded response type + * @param versionId versionId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String versionId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.GET_ONTOLOGY_VERSIONS_VERSIONS_PARAM, List.of(versionId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /ontology/versions/versions/{param}} without query parameters. + * @param decoded response type + * @param versionId versionId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String versionId, Class responseType) throws IOException, InterruptedException { + return get(versionId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /ontology/versions/versions/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param versionId versionId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String versionId, TypeReference responseType) + throws IOException, InterruptedException { + return get(versionId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /ontology/versions/versions}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/versions/versions") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_VERSIONS_VERSIONS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/versions/versions} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Ontology.POST_ONTOLOGY_VERSIONS_VERSIONS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/versions/versions} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/versions/versions} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /ontology/versions/versions/compare}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("ontology|POST|/ontology/versions/versions/compare") + public @Nullable T compare(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_VERSIONS_VERSIONS_COMPARE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/versions/versions/compare} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T compare(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Ontology.POST_ONTOLOGY_VERSIONS_VERSIONS_COMPARE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/versions/versions/compare} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T compare(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return compare(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /ontology/versions/versions/compare} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T compare(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return compare(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/PipelinesClient.java b/services/src/main/java/dev/frontal/sdk/resources/PipelinesClient.java new file mode 100644 index 0000000..c582197 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/PipelinesClient.java @@ -0,0 +1,15 @@ +package dev.frontal.sdk; + +/** Contract operations for pipelines. Generated by scripts/generate_endpoints.py. */ +public final class PipelinesClient extends ServiceClient { + PipelinesClient(ApiClient client) { + super(ApiService.PIPELINES, client); + } + + /** Returns the client for the nested resource. + * @return the data resource client + */ + public PipelinesDataClient data() { + return new PipelinesDataClient(client()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/PipelinesDataClient.java b/services/src/main/java/dev/frontal/sdk/resources/PipelinesDataClient.java new file mode 100644 index 0000000..ac8895b --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/PipelinesDataClient.java @@ -0,0 +1,15 @@ +package dev.frontal.sdk; + +/** Contract operations for pipelines/data. Generated by scripts/generate_endpoints.py. */ +public final class PipelinesDataClient extends ServiceClient { + PipelinesDataClient(ApiClient client) { + super(ApiService.PIPELINES, client); + } + + /** Returns the client for the nested resource. + * @return the pipelines resource client + */ + public PipelinesDataPipelinesClient pipelines() { + return new PipelinesDataPipelinesClient(client()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/PipelinesDataPipelinesCapabilitiesClient.java b/services/src/main/java/dev/frontal/sdk/resources/PipelinesDataPipelinesCapabilitiesClient.java new file mode 100644 index 0000000..b19b777 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/PipelinesDataPipelinesCapabilitiesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for pipelines/data/pipelines/capabilities. Generated by scripts/generate_endpoints.py. */ +public final class PipelinesDataPipelinesCapabilitiesClient extends ServiceClient { + PipelinesDataPipelinesCapabilitiesClient(ApiClient client) { + super(ApiService.PIPELINES, client); + } + + /** + * Calls the contract route {@code GET /data/pipelines/capabilities}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("pipelines|GET|/data/pipelines/capabilities") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Pipelines.GET_DATA_PIPELINES_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/capabilities} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Pipelines.GET_DATA_PIPELINES_CAPABILITIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/capabilities} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/capabilities} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/PipelinesDataPipelinesClient.java b/services/src/main/java/dev/frontal/sdk/resources/PipelinesDataPipelinesClient.java new file mode 100644 index 0000000..5b2a326 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/PipelinesDataPipelinesClient.java @@ -0,0 +1,139 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for pipelines/data/pipelines. Generated by scripts/generate_endpoints.py. */ +public final class PipelinesDataPipelinesClient extends ServiceClient { + PipelinesDataPipelinesClient(ApiClient client) { + super(ApiService.PIPELINES, client); + } + + /** Returns the client for the nested resource. + * @return the capabilities resource client + */ + public PipelinesDataPipelinesCapabilitiesClient capabilities() { + return new PipelinesDataPipelinesCapabilitiesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the pipeline-runs resource client + */ + public PipelinesDataPipelinesPipelineRunsClient pipelineRuns() { + return new PipelinesDataPipelinesPipelineRunsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the pipelines resource client + */ + public PipelinesDataPipelinesPipelinesClient pipelines() { + return new PipelinesDataPipelinesPipelinesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public PipelinesDataPipelinesRunsClient runs() { + return new PipelinesDataPipelinesRunsClient(client()); + } + + /** + * Calls the contract route {@code GET /data/pipelines/health}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("pipelines|GET|/data/pipelines/health") + public @Nullable T health(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Pipelines.GET_DATA_PIPELINES_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/health} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Pipelines.GET_DATA_PIPELINES_HEALTH, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/health} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(Class responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/health} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T health(TypeReference responseType) throws IOException, InterruptedException { + return health(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/pipelines/info}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("pipelines|GET|/data/pipelines/info") + public @Nullable T getInfo(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Pipelines.GET_DATA_PIPELINES_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/info} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Pipelines.GET_DATA_PIPELINES_INFO, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/info} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(Class responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/info} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T getInfo(TypeReference responseType) throws IOException, InterruptedException { + return getInfo(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/PipelinesDataPipelinesPipelineRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/PipelinesDataPipelinesPipelineRunsClient.java new file mode 100644 index 0000000..b5634ed --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/PipelinesDataPipelinesPipelineRunsClient.java @@ -0,0 +1,171 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.Flow; +import org.jspecify.annotations.Nullable; + +/** Contract operations for pipelines/data/pipelines/pipeline-runs. Generated by scripts/generate_endpoints.py. */ +public final class PipelinesDataPipelinesPipelineRunsClient extends ServiceClient { + PipelinesDataPipelinesPipelineRunsClient(ApiClient client) { + super(ApiService.PIPELINES, client); + } + + /** + * Calls the contract route {@code GET /data/pipelines/pipeline-runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("pipelines|GET|/data/pipelines/pipeline-runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Pipelines.GET_DATA_PIPELINES_PIPELINE_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/pipeline-runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Pipelines.GET_DATA_PIPELINES_PIPELINE_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/pipeline-runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/pipeline-runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/pipelines/pipeline-runs/{param}}. + * @param decoded response type + * @param pipelineRunId pipelineRunId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("pipelines|GET|/data/pipelines/pipeline-runs/{param}") + public @Nullable T get(String pipelineRunId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Pipelines.GET_DATA_PIPELINES_PIPELINE_RUNS_PARAM, + List.of(pipelineRunId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/pipeline-runs/{param}} using a generic response type. + * @param decoded response type + * @param pipelineRunId pipelineRunId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String pipelineRunId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Pipelines.GET_DATA_PIPELINES_PIPELINE_RUNS_PARAM, + List.of(pipelineRunId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/pipeline-runs/{param}} without query parameters. + * @param decoded response type + * @param pipelineRunId pipelineRunId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String pipelineRunId, Class responseType) throws IOException, InterruptedException { + return get(pipelineRunId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/pipeline-runs/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param pipelineRunId pipelineRunId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String pipelineRunId, TypeReference responseType) + throws IOException, InterruptedException { + return get(pipelineRunId, QueryParams.empty(), responseType); + } + + /** + * Opens the event stream for {@code STREAM /data/pipelines/pipeline-runs/{param}}. + * @param pipelineRunId pipelineRunId supplied to the operation + * @param query query supplied to the operation + * @return a publisher that emits event data + */ + @SdkOperation("pipelines|STREAM|/data/pipelines/pipeline-runs/{param}") + public Flow.Publisher get2(String pipelineRunId, QueryParams query) { + return streamPublisher( + Endpoints.Pipelines.STREAM_DATA_PIPELINES_PIPELINE_RUNS_PARAM, List.of(pipelineRunId), query); + } + /** + * Opens a blocking event stream for {@code STREAM /data/pipelines/pipeline-runs/{param}}. + * @param pipelineRunId pipelineRunId supplied to the operation + * @param query query supplied to the operation + * @return an iterator that must be closed + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public SseEventIterator get2Blocking(String pipelineRunId, QueryParams query) + throws IOException, InterruptedException { + return streamEvents( + Endpoints.Pipelines.STREAM_DATA_PIPELINES_PIPELINE_RUNS_PARAM, List.of(pipelineRunId), query); + } + /** + * Opens the event stream for {@code STREAM /data/pipelines/pipeline-runs/{param}} with no query parameters. + * @param pipelineRunId pipelineRunId supplied to the operation + * @return a publisher that emits event data + */ + public Flow.Publisher get2(String pipelineRunId) { + return get2(pipelineRunId, QueryParams.empty()); + } + /** + * Opens a blocking event stream for {@code STREAM /data/pipelines/pipeline-runs/{param}} with no query parameters. + * @param pipelineRunId pipelineRunId supplied to the operation + * @return an iterator that must be closed + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public SseEventIterator get2Blocking(String pipelineRunId) throws IOException, InterruptedException { + return get2Blocking(pipelineRunId, QueryParams.empty()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/PipelinesDataPipelinesPipelinesClient.java b/services/src/main/java/dev/frontal/sdk/resources/PipelinesDataPipelinesPipelinesClient.java new file mode 100644 index 0000000..1854040 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/PipelinesDataPipelinesPipelinesClient.java @@ -0,0 +1,176 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for pipelines/data/pipelines/pipelines. Generated by scripts/generate_endpoints.py. */ +public final class PipelinesDataPipelinesPipelinesClient extends ServiceClient { + PipelinesDataPipelinesPipelinesClient(ApiClient client) { + super(ApiService.PIPELINES, client); + } + + /** + * Calls the contract route {@code GET /data/pipelines/pipelines}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("pipelines|GET|/data/pipelines/pipelines") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Pipelines.GET_DATA_PIPELINES_PIPELINES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/pipelines} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Pipelines.GET_DATA_PIPELINES_PIPELINES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/pipelines} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/pipelines} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /data/pipelines/pipelines/{param}}. + * @param decoded response type + * @param pipelineId pipelineId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("pipelines|GET|/data/pipelines/pipelines/{param}") + public @Nullable T get(String pipelineId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Pipelines.GET_DATA_PIPELINES_PIPELINES_PARAM, List.of(pipelineId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/pipelines/{param}} using a generic response type. + * @param decoded response type + * @param pipelineId pipelineId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String pipelineId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Pipelines.GET_DATA_PIPELINES_PIPELINES_PARAM, List.of(pipelineId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/pipelines/{param}} without query parameters. + * @param decoded response type + * @param pipelineId pipelineId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String pipelineId, Class responseType) throws IOException, InterruptedException { + return get(pipelineId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/pipelines/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param pipelineId pipelineId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String pipelineId, TypeReference responseType) + throws IOException, InterruptedException { + return get(pipelineId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/pipelines/pipelines}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("pipelines|POST|/data/pipelines/pipelines") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Pipelines.POST_DATA_PIPELINES_PIPELINES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/pipelines/pipelines} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Pipelines.POST_DATA_PIPELINES_PIPELINES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/pipelines/pipelines} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/pipelines/pipelines} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/PipelinesDataPipelinesRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/PipelinesDataPipelinesRunsClient.java new file mode 100644 index 0000000..ea0f59c --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/PipelinesDataPipelinesRunsClient.java @@ -0,0 +1,119 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for pipelines/data/pipelines/runs. Generated by scripts/generate_endpoints.py. */ +public final class PipelinesDataPipelinesRunsClient extends ServiceClient { + PipelinesDataPipelinesRunsClient(ApiClient client) { + super(ApiService.PIPELINES, client); + } + + /** + * Calls the contract route {@code GET /data/pipelines/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("pipelines|GET|/data/pipelines/runs") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Pipelines.GET_DATA_PIPELINES_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Pipelines.GET_DATA_PIPELINES_RUNS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/runs} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /data/pipelines/runs} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /data/pipelines/runs}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("pipelines|POST|/data/pipelines/runs") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Pipelines.POST_DATA_PIPELINES_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/pipelines/runs} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Pipelines.POST_DATA_PIPELINES_RUNS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /data/pipelines/runs} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /data/pipelines/runs} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/ProvidersClient.java b/services/src/main/java/dev/frontal/sdk/resources/ProvidersClient.java new file mode 100644 index 0000000..bb4b412 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/ProvidersClient.java @@ -0,0 +1,68 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for providers. Generated by scripts/generate_endpoints.py. */ +public final class ProvidersClient extends ServiceClient { + ProvidersClient(ApiClient client) { + super(ApiService.PROVIDERS, client); + } + + /** + * Calls the contract route {@code GET /providers/{param}}. + * @param decoded response type + * @param providerSlug providerSlug supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("providers|GET|/providers/{param}") + public @Nullable T get(String providerSlug, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Providers.GET_PROVIDERS_PARAM, List.of(providerSlug), query, null, responseType); + } + /** + * Calls the contract route {@code GET /providers/{param}} using a generic response type. + * @param decoded response type + * @param providerSlug providerSlug supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String providerSlug, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Providers.GET_PROVIDERS_PARAM, List.of(providerSlug), query, null, responseType); + } + /** + * Calls the contract route {@code GET /providers/{param}} without query parameters. + * @param decoded response type + * @param providerSlug providerSlug supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String providerSlug, Class responseType) throws IOException, InterruptedException { + return get(providerSlug, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /providers/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param providerSlug providerSlug supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String providerSlug, TypeReference responseType) + throws IOException, InterruptedException { + return get(providerSlug, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/ReactClient.java b/services/src/main/java/dev/frontal/sdk/resources/ReactClient.java new file mode 100644 index 0000000..0069187 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/ReactClient.java @@ -0,0 +1,8 @@ +package dev.frontal.sdk; + +/** Contract operations for react. Generated by scripts/generate_endpoints.py. */ +public final class ReactClient extends ServiceClient { + ReactClient(ApiClient client) { + super(ApiService.REACT, client); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/SandboxClient.java b/services/src/main/java/dev/frontal/sdk/resources/SandboxClient.java new file mode 100644 index 0000000..7fe0e44 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/SandboxClient.java @@ -0,0 +1,133 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for sandbox. Generated by scripts/generate_endpoints.py. */ +public final class SandboxClient extends ServiceClient { + SandboxClient(ApiClient client) { + super(ApiService.SANDBOX, client); + } + + /** Returns the client for the nested resource. + * @return the languages resource client + */ + public SandboxLanguagesClient languages() { + return new SandboxLanguagesClient(client()); + } + + /** + * Calls the contract route {@code POST /sandbox/self-test}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("sandbox|POST|/sandbox/self-test") + public @Nullable T createSelfTest(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Sandbox.POST_SANDBOX_SELF_TEST, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /sandbox/self-test} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createSelfTest(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Sandbox.POST_SANDBOX_SELF_TEST, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /sandbox/self-test} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createSelfTest(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return createSelfTest(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /sandbox/self-test} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T createSelfTest(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return createSelfTest(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /sandbox/submit}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("sandbox|POST|/sandbox/submit") + public @Nullable T submit(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Sandbox.POST_SANDBOX_SUBMIT, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /sandbox/submit} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T submit(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Sandbox.POST_SANDBOX_SUBMIT, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /sandbox/submit} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T submit(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return submit(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /sandbox/submit} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T submit(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return submit(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/SandboxLanguagesClient.java b/services/src/main/java/dev/frontal/sdk/resources/SandboxLanguagesClient.java new file mode 100644 index 0000000..1b64b1e --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/SandboxLanguagesClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for sandbox/languages. Generated by scripts/generate_endpoints.py. */ +public final class SandboxLanguagesClient extends ServiceClient { + SandboxLanguagesClient(ApiClient client) { + super(ApiService.SANDBOX, client); + } + + /** + * Calls the contract route {@code GET /sandbox/languages}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("sandbox|GET|/sandbox/languages") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Sandbox.GET_SANDBOX_LANGUAGES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /sandbox/languages} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Sandbox.GET_SANDBOX_LANGUAGES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /sandbox/languages} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /sandbox/languages} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/SchedulesClient.java b/services/src/main/java/dev/frontal/sdk/resources/SchedulesClient.java new file mode 100644 index 0000000..3783b22 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/SchedulesClient.java @@ -0,0 +1,15 @@ +package dev.frontal.sdk; + +/** Contract operations for schedules. Generated by scripts/generate_endpoints.py. */ +public final class SchedulesClient extends ServiceClient { + SchedulesClient(ApiClient client) { + super(ApiService.SCHEDULES, client); + } + + /** Returns the client for the nested resource. + * @return the workflows resource client + */ + public SchedulesWorkflowsClient workflows() { + return new SchedulesWorkflowsClient(client()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/SchedulesWorkflowsClient.java b/services/src/main/java/dev/frontal/sdk/resources/SchedulesWorkflowsClient.java new file mode 100644 index 0000000..fe03918 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/SchedulesWorkflowsClient.java @@ -0,0 +1,22 @@ +package dev.frontal.sdk; + +/** Contract operations for schedules/workflows. Generated by scripts/generate_endpoints.py. */ +public final class SchedulesWorkflowsClient extends ServiceClient { + SchedulesWorkflowsClient(ApiClient client) { + super(ApiService.SCHEDULES, client); + } + + /** Returns the client for the nested resource. + * @return the cron resource client + */ + public SchedulesWorkflowsCronClient cron() { + return new SchedulesWorkflowsCronClient(client()); + } + + /** Returns the client for the nested resource. + * @return the schedules resource client + */ + public SchedulesWorkflowsSchedulesClient schedules() { + return new SchedulesWorkflowsSchedulesClient(client()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/SchedulesWorkflowsCronClient.java b/services/src/main/java/dev/frontal/sdk/resources/SchedulesWorkflowsCronClient.java new file mode 100644 index 0000000..d5a2334 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/SchedulesWorkflowsCronClient.java @@ -0,0 +1,126 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for schedules/workflows/cron. Generated by scripts/generate_endpoints.py. */ +public final class SchedulesWorkflowsCronClient extends ServiceClient { + SchedulesWorkflowsCronClient(ApiClient client) { + super(ApiService.SCHEDULES, client); + } + + /** + * Calls the contract route {@code POST /workflows/cron/parse}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("schedules|POST|/workflows/cron/parse") + public @Nullable T parse(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Schedules.POST_WORKFLOWS_CRON_PARSE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/cron/parse} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T parse(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Schedules.POST_WORKFLOWS_CRON_PARSE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/cron/parse} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T parse(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return parse(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/cron/parse} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T parse(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return parse(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /workflows/cron/validate}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("schedules|POST|/workflows/cron/validate") + public @Nullable T validate(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Schedules.POST_WORKFLOWS_CRON_VALIDATE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/cron/validate} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T validate(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Schedules.POST_WORKFLOWS_CRON_VALIDATE, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/cron/validate} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T validate(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return validate(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/cron/validate} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T validate(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return validate(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/SchedulesWorkflowsSchedulesClient.java b/services/src/main/java/dev/frontal/sdk/resources/SchedulesWorkflowsSchedulesClient.java new file mode 100644 index 0000000..ddeb89f --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/SchedulesWorkflowsSchedulesClient.java @@ -0,0 +1,509 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for schedules/workflows/schedules. Generated by scripts/generate_endpoints.py. */ +public final class SchedulesWorkflowsSchedulesClient extends ServiceClient { + SchedulesWorkflowsSchedulesClient(ApiClient client) { + super(ApiService.SCHEDULES, client); + } + + /** + * Calls the contract route {@code DELETE /workflows/schedules/{param}}. + * @param decoded response type + * @param scheduleId scheduleId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("schedules|DELETE|/workflows/schedules/{param}") + public @Nullable T delete(String scheduleId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Schedules.DELETE_WORKFLOWS_SCHEDULES_PARAM, List.of(scheduleId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /workflows/schedules/{param}} using a generic response type. + * @param decoded response type + * @param scheduleId scheduleId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String scheduleId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Schedules.DELETE_WORKFLOWS_SCHEDULES_PARAM, List.of(scheduleId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /workflows/schedules/{param}} without query parameters. + * @param decoded response type + * @param scheduleId scheduleId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String scheduleId, Class responseType) throws IOException, InterruptedException { + return delete(scheduleId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /workflows/schedules/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param scheduleId scheduleId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String scheduleId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(scheduleId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /workflows/schedules}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("schedules|GET|/workflows/schedules") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Schedules.GET_WORKFLOWS_SCHEDULES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /workflows/schedules} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Schedules.GET_WORKFLOWS_SCHEDULES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /workflows/schedules} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /workflows/schedules} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /workflows/schedules/{param}}. + * @param decoded response type + * @param scheduleId scheduleId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("schedules|GET|/workflows/schedules/{param}") + public @Nullable T get(String scheduleId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Schedules.GET_WORKFLOWS_SCHEDULES_PARAM, List.of(scheduleId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /workflows/schedules/{param}} using a generic response type. + * @param decoded response type + * @param scheduleId scheduleId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String scheduleId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Schedules.GET_WORKFLOWS_SCHEDULES_PARAM, List.of(scheduleId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /workflows/schedules/{param}} without query parameters. + * @param decoded response type + * @param scheduleId scheduleId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String scheduleId, Class responseType) throws IOException, InterruptedException { + return get(scheduleId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /workflows/schedules/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param scheduleId scheduleId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String scheduleId, TypeReference responseType) + throws IOException, InterruptedException { + return get(scheduleId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code PATCH /workflows/schedules/{param}}. + * @param decoded response type + * @param scheduleId scheduleId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("schedules|PATCH|/workflows/schedules/{param}") + public @Nullable T update(String scheduleId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Schedules.PATCH_WORKFLOWS_SCHEDULES_PARAM, List.of(scheduleId), query, body, responseType); + } + /** + * Calls the contract route {@code PATCH /workflows/schedules/{param}} using a generic response type. + * @param decoded response type + * @param scheduleId scheduleId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update( + String scheduleId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Schedules.PATCH_WORKFLOWS_SCHEDULES_PARAM, List.of(scheduleId), query, body, responseType); + } + /** + * Calls the contract route {@code PATCH /workflows/schedules/{param}} without query parameters. + * @param decoded response type + * @param scheduleId scheduleId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String scheduleId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return update(scheduleId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code PATCH /workflows/schedules/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param scheduleId scheduleId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String scheduleId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return update(scheduleId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /workflows/schedules}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("schedules|POST|/workflows/schedules") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Schedules.POST_WORKFLOWS_SCHEDULES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/schedules} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Schedules.POST_WORKFLOWS_SCHEDULES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/schedules} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/schedules} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /workflows/schedules/{param}/pause}. + * @param decoded response type + * @param scheduleId scheduleId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("schedules|POST|/workflows/schedules/{param}/pause") + public @Nullable T pause(String scheduleId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Schedules.POST_WORKFLOWS_SCHEDULES_PARAM_PAUSE, + List.of(scheduleId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /workflows/schedules/{param}/pause} using a generic response type. + * @param decoded response type + * @param scheduleId scheduleId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T pause( + String scheduleId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Schedules.POST_WORKFLOWS_SCHEDULES_PARAM_PAUSE, + List.of(scheduleId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /workflows/schedules/{param}/pause} without query parameters. + * @param decoded response type + * @param scheduleId scheduleId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T pause(String scheduleId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return pause(scheduleId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/schedules/{param}/pause} without query parameters using a generic response type. + * @param decoded response type + * @param scheduleId scheduleId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T pause(String scheduleId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return pause(scheduleId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /workflows/schedules/{param}/resume}. + * @param decoded response type + * @param scheduleId scheduleId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("schedules|POST|/workflows/schedules/{param}/resume") + public @Nullable T resume(String scheduleId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Schedules.POST_WORKFLOWS_SCHEDULES_PARAM_RESUME, + List.of(scheduleId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /workflows/schedules/{param}/resume} using a generic response type. + * @param decoded response type + * @param scheduleId scheduleId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T resume( + String scheduleId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Schedules.POST_WORKFLOWS_SCHEDULES_PARAM_RESUME, + List.of(scheduleId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /workflows/schedules/{param}/resume} without query parameters. + * @param decoded response type + * @param scheduleId scheduleId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T resume(String scheduleId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return resume(scheduleId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/schedules/{param}/resume} without query parameters using a generic response type. + * @param decoded response type + * @param scheduleId scheduleId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T resume(String scheduleId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return resume(scheduleId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /workflows/schedules/{param}/trigger}. + * @param decoded response type + * @param scheduleId scheduleId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("schedules|POST|/workflows/schedules/{param}/trigger") + public @Nullable T trigger(String scheduleId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Schedules.POST_WORKFLOWS_SCHEDULES_PARAM_TRIGGER, + List.of(scheduleId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /workflows/schedules/{param}/trigger} using a generic response type. + * @param decoded response type + * @param scheduleId scheduleId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T trigger( + String scheduleId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Schedules.POST_WORKFLOWS_SCHEDULES_PARAM_TRIGGER, + List.of(scheduleId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /workflows/schedules/{param}/trigger} without query parameters. + * @param decoded response type + * @param scheduleId scheduleId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T trigger(String scheduleId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return trigger(scheduleId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/schedules/{param}/trigger} without query parameters using a generic response type. + * @param decoded response type + * @param scheduleId scheduleId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T trigger(String scheduleId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return trigger(scheduleId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/SdkOperation.java b/services/src/main/java/dev/frontal/sdk/resources/SdkOperation.java new file mode 100644 index 0000000..04b5f8c --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/SdkOperation.java @@ -0,0 +1,12 @@ +package dev.frontal.sdk; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.METHOD) +@interface SdkOperation { + String value(); +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/ServiceClient.java b/services/src/main/java/dev/frontal/sdk/resources/ServiceClient.java index efff509..4013757 100644 --- a/services/src/main/java/dev/frontal/sdk/resources/ServiceClient.java +++ b/services/src/main/java/dev/frontal/sdk/resources/ServiceClient.java @@ -1,6 +1,7 @@ package dev.frontal.sdk; import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; import java.io.IOException; import java.io.InputStream; import java.nio.file.Path; @@ -29,19 +30,19 @@ protected ApiClient client() { } public @Nullable T request(Endpoint endpoint, Class responseType) throws IOException, InterruptedException { - return request(endpoint, List.of(), Map.of(), null, responseType); + return request(endpoint, List.of(), QueryParams.empty(), null, responseType); } public @Nullable T request(Endpoint endpoint, List pathParams, Class responseType) throws IOException, InterruptedException { - return request(endpoint, pathParams, Map.of(), null, responseType); + return request(endpoint, pathParams, QueryParams.empty(), null, responseType); } public @Nullable T request( Endpoint endpoint, List pathParams, - Map query, - @Nullable Object body, + QueryParams query, + @Nullable JsonNode body, Class responseType) throws IOException, InterruptedException { verify(endpoint); @@ -51,30 +52,63 @@ protected ApiClient client() { public @Nullable T request( Endpoint endpoint, List pathParams, - Map query, - @Nullable Object body, + QueryParams query, + @Nullable JsonNode body, TypeReference responseType) throws IOException, InterruptedException { verify(endpoint); return client.request(endpoint, pathParams, query, body, responseType); } - public byte[] requestBytes(Endpoint endpoint, List pathParams, Map query, @Nullable Object body) + public byte[] requestBytes(Endpoint endpoint, List pathParams, QueryParams query, @Nullable JsonNode body) throws IOException, InterruptedException { verify(endpoint); return client.requestBytes(endpoint, pathParams, query, body); } - public ApiResponse execute(Endpoint endpoint, List pathParams, Map query, @Nullable Object body) + /** Opens a successful response body without buffering it. The caller must close the result. */ + public ApiStream streamBody(Endpoint endpoint, List pathParams, QueryParams query, @Nullable JsonNode body) + throws IOException, InterruptedException { + verify(endpoint); + return client.streamBody(endpoint, pathParams, query, body); + } + + public ApiResponse execute(Endpoint endpoint, List pathParams, QueryParams query, @Nullable JsonNode body) throws IOException, InterruptedException { verify(endpoint); return client.execute(endpoint, pathParams, query, body); } + public ApiResponse executeRaw(Endpoint endpoint, List pathParams, QueryParams query, byte[] body) + throws IOException, InterruptedException { + verify(endpoint); + return client.executeRaw(endpoint, pathParams, query, body); + } + + public @Nullable T requestRaw( + Endpoint endpoint, List pathParams, QueryParams query, byte[] body, Class responseType) + throws IOException, InterruptedException { + verify(endpoint); + return client.requestRaw(endpoint, pathParams, query, body, responseType); + } + + public @Nullable T requestRaw( + Endpoint endpoint, List pathParams, QueryParams query, byte[] body, TypeReference responseType) + throws IOException, InterruptedException { + verify(endpoint); + return client.requestRaw(endpoint, pathParams, query, body, responseType); + } + + public byte[] requestRawBytes(Endpoint endpoint, List pathParams, QueryParams query, byte[] body) + throws IOException, InterruptedException { + verify(endpoint); + return client.requestRawBytes(endpoint, pathParams, query, body); + } + public @Nullable T requestForm( Endpoint endpoint, List pathParams, - Map query, + QueryParams query, Map fields, Map files, Class responseType) @@ -86,7 +120,7 @@ public ApiResponse execute(Endpoint endpoint, List pathParams, Map @Nullable T requestForm( Endpoint endpoint, List pathParams, - Map query, + QueryParams query, Map fields, Map files, TypeReference responseType) @@ -98,7 +132,7 @@ public ApiResponse execute(Endpoint endpoint, List pathParams, Map pathParams, - Map query, + QueryParams query, Map fields, Map files) throws IOException, InterruptedException { @@ -106,26 +140,26 @@ public ApiResponse executeForm( return client.executeForm(endpoint, pathParams, query, fields, files); } - public InputStream stream(Endpoint endpoint, List pathParams, Map query) + public InputStream stream(Endpoint endpoint, List pathParams, QueryParams query) throws IOException, InterruptedException { verify(endpoint); return client.stream(endpoint, pathParams, query); } - public ApiStream streamResponse(Endpoint endpoint, List pathParams, Map query) + public ApiStream streamResponse(Endpoint endpoint, List pathParams, QueryParams query) throws IOException, InterruptedException { verify(endpoint); return client.streamResponse(endpoint, pathParams, query); } /** Opens a reactive stream of event payloads from a {@code STREAM} endpoint. */ - public Flow.Publisher streamPublisher(Endpoint endpoint, List pathParams, Map query) { + public Flow.Publisher streamPublisher(Endpoint endpoint, List pathParams, QueryParams query) { verify(endpoint); return client.streamPublisher(endpoint, pathParams, query); } /** Opens a blocking iterator of event payloads; close it to release the HTTP connection. */ - public SseEventIterator streamEvents(Endpoint endpoint, List pathParams, Map query) + public SseEventIterator streamEvents(Endpoint endpoint, List pathParams, QueryParams query) throws IOException, InterruptedException { verify(endpoint); return client.streamEvents(endpoint, pathParams, query); diff --git a/services/src/main/java/dev/frontal/sdk/resources/WebhookEndpointsClient.java b/services/src/main/java/dev/frontal/sdk/resources/WebhookEndpointsClient.java new file mode 100644 index 0000000..5811920 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/WebhookEndpointsClient.java @@ -0,0 +1,369 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for webhook-endpoints. Generated by scripts/generate_endpoints.py. */ +public final class WebhookEndpointsClient extends ServiceClient { + WebhookEndpointsClient(ApiClient client) { + super(ApiService.WEBHOOK_ENDPOINTS, client); + } + + /** Returns the client for the nested resource. + * @return the deliveries resource client + */ + public WebhookEndpointsDeliveriesClient deliveries() { + return new WebhookEndpointsDeliveriesClient(client()); + } + + /** + * Calls the contract route {@code DELETE /webhook-endpoints/{param}}. + * @param decoded response type + * @param id id supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("webhook-endpoints|DELETE|/webhook-endpoints/{param}") + public @Nullable T delete(String id, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.WebhookEndpoints.DELETE_WEBHOOK_ENDPOINTS_PARAM, List.of(id), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /webhook-endpoints/{param}} using a generic response type. + * @param decoded response type + * @param id id supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String id, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.WebhookEndpoints.DELETE_WEBHOOK_ENDPOINTS_PARAM, List.of(id), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /webhook-endpoints/{param}} without query parameters. + * @param decoded response type + * @param id id supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String id, Class responseType) throws IOException, InterruptedException { + return delete(id, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /webhook-endpoints/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param id id supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String id, TypeReference responseType) throws IOException, InterruptedException { + return delete(id, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /webhook-endpoints}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("webhook-endpoints|GET|/webhook-endpoints") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.WebhookEndpoints.GET_WEBHOOK_ENDPOINTS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /webhook-endpoints} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.WebhookEndpoints.GET_WEBHOOK_ENDPOINTS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /webhook-endpoints} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /webhook-endpoints} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /webhook-endpoints/{param}}. + * @param decoded response type + * @param id id supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("webhook-endpoints|GET|/webhook-endpoints/{param}") + public @Nullable T get(String id, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.WebhookEndpoints.GET_WEBHOOK_ENDPOINTS_PARAM, List.of(id), query, null, responseType); + } + /** + * Calls the contract route {@code GET /webhook-endpoints/{param}} using a generic response type. + * @param decoded response type + * @param id id supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String id, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.WebhookEndpoints.GET_WEBHOOK_ENDPOINTS_PARAM, List.of(id), query, null, responseType); + } + /** + * Calls the contract route {@code GET /webhook-endpoints/{param}} without query parameters. + * @param decoded response type + * @param id id supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String id, Class responseType) throws IOException, InterruptedException { + return get(id, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /webhook-endpoints/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param id id supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String id, TypeReference responseType) throws IOException, InterruptedException { + return get(id, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code PATCH /webhook-endpoints/{param}}. + * @param decoded response type + * @param id id supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("webhook-endpoints|PATCH|/webhook-endpoints/{param}") + public @Nullable T update(String id, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.WebhookEndpoints.PATCH_WEBHOOK_ENDPOINTS_PARAM, List.of(id), query, body, responseType); + } + /** + * Calls the contract route {@code PATCH /webhook-endpoints/{param}} using a generic response type. + * @param decoded response type + * @param id id supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String id, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.WebhookEndpoints.PATCH_WEBHOOK_ENDPOINTS_PARAM, List.of(id), query, body, responseType); + } + /** + * Calls the contract route {@code PATCH /webhook-endpoints/{param}} without query parameters. + * @param decoded response type + * @param id id supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String id, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return update(id, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code PATCH /webhook-endpoints/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param id id supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String id, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return update(id, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /webhook-endpoints}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("webhook-endpoints|POST|/webhook-endpoints") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.WebhookEndpoints.POST_WEBHOOK_ENDPOINTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /webhook-endpoints} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.WebhookEndpoints.POST_WEBHOOK_ENDPOINTS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /webhook-endpoints} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /webhook-endpoints} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /webhook-endpoints/{param}/rotate-secret}. + * @param decoded response type + * @param id id supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("webhook-endpoints|POST|/webhook-endpoints/{param}/rotate-secret") + public @Nullable T rotateSecret(String id, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.WebhookEndpoints.POST_WEBHOOK_ENDPOINTS_PARAM_ROTATE_SECRET, + List.of(id), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /webhook-endpoints/{param}/rotate-secret} using a generic response type. + * @param decoded response type + * @param id id supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T rotateSecret( + String id, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.WebhookEndpoints.POST_WEBHOOK_ENDPOINTS_PARAM_ROTATE_SECRET, + List.of(id), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /webhook-endpoints/{param}/rotate-secret} without query parameters. + * @param decoded response type + * @param id id supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T rotateSecret(String id, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return rotateSecret(id, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /webhook-endpoints/{param}/rotate-secret} without query parameters using a generic response type. + * @param decoded response type + * @param id id supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T rotateSecret(String id, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return rotateSecret(id, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/WebhookEndpointsDeliveriesClient.java b/services/src/main/java/dev/frontal/sdk/resources/WebhookEndpointsDeliveriesClient.java new file mode 100644 index 0000000..8cf2d0f --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/WebhookEndpointsDeliveriesClient.java @@ -0,0 +1,77 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for webhook-endpoints/deliveries. Generated by scripts/generate_endpoints.py. */ +public final class WebhookEndpointsDeliveriesClient extends ServiceClient { + WebhookEndpointsDeliveriesClient(ApiClient client) { + super(ApiService.WEBHOOK_ENDPOINTS, client); + } + + /** + * Calls the contract route {@code GET /webhook-endpoints/{param}/deliveries}. + * @param decoded response type + * @param id id supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("webhook-endpoints|GET|/webhook-endpoints/{param}/deliveries") + public @Nullable T list(String id, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.WebhookEndpoints.GET_WEBHOOK_ENDPOINTS_PARAM_DELIVERIES, + List.of(id), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /webhook-endpoints/{param}/deliveries} using a generic response type. + * @param decoded response type + * @param id id supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String id, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.WebhookEndpoints.GET_WEBHOOK_ENDPOINTS_PARAM_DELIVERIES, + List.of(id), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /webhook-endpoints/{param}/deliveries} without query parameters. + * @param decoded response type + * @param id id supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String id, Class responseType) throws IOException, InterruptedException { + return list(id, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /webhook-endpoints/{param}/deliveries} without query parameters using a generic response type. + * @param decoded response type + * @param id id supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String id, TypeReference responseType) throws IOException, InterruptedException { + return list(id, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/WebhooksClient.java b/services/src/main/java/dev/frontal/sdk/resources/WebhooksClient.java new file mode 100644 index 0000000..4fbc732 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/WebhooksClient.java @@ -0,0 +1,368 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for webhooks. Generated by scripts/generate_endpoints.py. */ +public final class WebhooksClient extends ServiceClient { + WebhooksClient(ApiClient client) { + super(ApiService.WEBHOOKS, client); + } + + /** Returns the client for the nested resource. + * @return the deliveries resource client + */ + public WebhooksDeliveriesClient deliveries() { + return new WebhooksDeliveriesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the stats resource client + */ + public WebhooksStatsClient stats() { + return new WebhooksStatsClient(client()); + } + + /** + * Calls the contract route {@code DELETE /webhooks/{param}}. + * @param decoded response type + * @param webhookId webhookId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("webhooks|DELETE|/webhooks/{param}") + public @Nullable T delete(String webhookId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Webhooks.DELETE_WEBHOOKS_PARAM, List.of(webhookId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /webhooks/{param}} using a generic response type. + * @param decoded response type + * @param webhookId webhookId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String webhookId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Webhooks.DELETE_WEBHOOKS_PARAM, List.of(webhookId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /webhooks/{param}} without query parameters. + * @param decoded response type + * @param webhookId webhookId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String webhookId, Class responseType) throws IOException, InterruptedException { + return delete(webhookId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /webhooks/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param webhookId webhookId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String webhookId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(webhookId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /webhooks}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("webhooks|GET|/webhooks") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Webhooks.GET_WEBHOOKS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /webhooks} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Webhooks.GET_WEBHOOKS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /webhooks} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /webhooks} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /webhooks/{param}}. + * @param decoded response type + * @param webhookId webhookId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("webhooks|GET|/webhooks/{param}") + public @Nullable T get(String webhookId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Webhooks.GET_WEBHOOKS_PARAM, List.of(webhookId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /webhooks/{param}} using a generic response type. + * @param decoded response type + * @param webhookId webhookId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String webhookId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Webhooks.GET_WEBHOOKS_PARAM, List.of(webhookId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /webhooks/{param}} without query parameters. + * @param decoded response type + * @param webhookId webhookId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String webhookId, Class responseType) throws IOException, InterruptedException { + return get(webhookId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /webhooks/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param webhookId webhookId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String webhookId, TypeReference responseType) + throws IOException, InterruptedException { + return get(webhookId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /webhooks}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("webhooks|POST|/webhooks") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Webhooks.POST_WEBHOOKS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /webhooks} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Webhooks.POST_WEBHOOKS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /webhooks} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /webhooks} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /webhooks/{param}/rotate-secret}. + * @param decoded response type + * @param webhookId webhookId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("webhooks|POST|/webhooks/{param}/rotate-secret") + public @Nullable T rotateSecret( + String webhookId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Webhooks.POST_WEBHOOKS_PARAM_ROTATE_SECRET, List.of(webhookId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /webhooks/{param}/rotate-secret} using a generic response type. + * @param decoded response type + * @param webhookId webhookId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T rotateSecret( + String webhookId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Webhooks.POST_WEBHOOKS_PARAM_ROTATE_SECRET, List.of(webhookId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /webhooks/{param}/rotate-secret} without query parameters. + * @param decoded response type + * @param webhookId webhookId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T rotateSecret(String webhookId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return rotateSecret(webhookId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /webhooks/{param}/rotate-secret} without query parameters using a generic response type. + * @param decoded response type + * @param webhookId webhookId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T rotateSecret(String webhookId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return rotateSecret(webhookId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code PUT /webhooks/{param}}. + * @param decoded response type + * @param webhookId webhookId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("webhooks|PUT|/webhooks/{param}") + public @Nullable T update(String webhookId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Webhooks.PUT_WEBHOOKS_PARAM, List.of(webhookId), query, body, responseType); + } + /** + * Calls the contract route {@code PUT /webhooks/{param}} using a generic response type. + * @param decoded response type + * @param webhookId webhookId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update( + String webhookId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Webhooks.PUT_WEBHOOKS_PARAM, List.of(webhookId), query, body, responseType); + } + /** + * Calls the contract route {@code PUT /webhooks/{param}} without query parameters. + * @param decoded response type + * @param webhookId webhookId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String webhookId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return update(webhookId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code PUT /webhooks/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param webhookId webhookId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String webhookId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return update(webhookId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/WebhooksDeliveriesClient.java b/services/src/main/java/dev/frontal/sdk/resources/WebhooksDeliveriesClient.java new file mode 100644 index 0000000..b47323e --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/WebhooksDeliveriesClient.java @@ -0,0 +1,191 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for webhooks/deliveries. Generated by scripts/generate_endpoints.py. */ +public final class WebhooksDeliveriesClient extends ServiceClient { + WebhooksDeliveriesClient(ApiClient client) { + super(ApiService.WEBHOOKS, client); + } + + /** + * Calls the contract route {@code GET /webhooks/deliveries}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("webhooks|GET|/webhooks/deliveries") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Webhooks.GET_WEBHOOKS_DELIVERIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /webhooks/deliveries} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Webhooks.GET_WEBHOOKS_DELIVERIES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /webhooks/deliveries} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /webhooks/deliveries} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /webhooks/deliveries/{param}}. + * @param decoded response type + * @param deliveryId deliveryId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("webhooks|GET|/webhooks/deliveries/{param}") + public @Nullable T get(String deliveryId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Webhooks.GET_WEBHOOKS_DELIVERIES_PARAM, List.of(deliveryId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /webhooks/deliveries/{param}} using a generic response type. + * @param decoded response type + * @param deliveryId deliveryId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String deliveryId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Webhooks.GET_WEBHOOKS_DELIVERIES_PARAM, List.of(deliveryId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /webhooks/deliveries/{param}} without query parameters. + * @param decoded response type + * @param deliveryId deliveryId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String deliveryId, Class responseType) throws IOException, InterruptedException { + return get(deliveryId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /webhooks/deliveries/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param deliveryId deliveryId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String deliveryId, TypeReference responseType) + throws IOException, InterruptedException { + return get(deliveryId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /webhooks/deliveries/{param}/retry}. + * @param decoded response type + * @param deliveryId deliveryId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("webhooks|POST|/webhooks/deliveries/{param}/retry") + public @Nullable T retry(String deliveryId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Webhooks.POST_WEBHOOKS_DELIVERIES_PARAM_RETRY, + List.of(deliveryId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /webhooks/deliveries/{param}/retry} using a generic response type. + * @param decoded response type + * @param deliveryId deliveryId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T retry( + String deliveryId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Webhooks.POST_WEBHOOKS_DELIVERIES_PARAM_RETRY, + List.of(deliveryId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /webhooks/deliveries/{param}/retry} without query parameters. + * @param decoded response type + * @param deliveryId deliveryId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T retry(String deliveryId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return retry(deliveryId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /webhooks/deliveries/{param}/retry} without query parameters using a generic response type. + * @param decoded response type + * @param deliveryId deliveryId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T retry(String deliveryId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return retry(deliveryId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/WebhooksStatsClient.java b/services/src/main/java/dev/frontal/sdk/resources/WebhooksStatsClient.java new file mode 100644 index 0000000..04a9002 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/WebhooksStatsClient.java @@ -0,0 +1,62 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for webhooks/stats. Generated by scripts/generate_endpoints.py. */ +public final class WebhooksStatsClient extends ServiceClient { + WebhooksStatsClient(ApiClient client) { + super(ApiService.WEBHOOKS, client); + } + + /** + * Calls the contract route {@code GET /webhooks/stats}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("webhooks|GET|/webhooks/stats") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Webhooks.GET_WEBHOOKS_STATS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /webhooks/stats} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Webhooks.GET_WEBHOOKS_STATS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /webhooks/stats} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /webhooks/stats} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/WorkflowsApprovalsClient.java b/services/src/main/java/dev/frontal/sdk/resources/WorkflowsApprovalsClient.java new file mode 100644 index 0000000..811e19d --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/WorkflowsApprovalsClient.java @@ -0,0 +1,262 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for workflows/approvals. Generated by scripts/generate_endpoints.py. */ +public final class WorkflowsApprovalsClient extends ServiceClient { + WorkflowsApprovalsClient(ApiClient client) { + super(ApiService.WORKFLOWS, client); + } + + /** + * Calls the contract route {@code GET /workflows/approvals}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|GET|/workflows/approvals") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Workflows.GET_WORKFLOWS_APPROVALS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /workflows/approvals} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Workflows.GET_WORKFLOWS_APPROVALS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /workflows/approvals} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /workflows/approvals} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /workflows/approvals/{param}}. + * @param decoded response type + * @param approvalId approvalId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|GET|/workflows/approvals/{param}") + public @Nullable T get(String approvalId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.GET_WORKFLOWS_APPROVALS_PARAM, List.of(approvalId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /workflows/approvals/{param}} using a generic response type. + * @param decoded response type + * @param approvalId approvalId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String approvalId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.GET_WORKFLOWS_APPROVALS_PARAM, List.of(approvalId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /workflows/approvals/{param}} without query parameters. + * @param decoded response type + * @param approvalId approvalId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String approvalId, Class responseType) throws IOException, InterruptedException { + return get(approvalId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /workflows/approvals/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param approvalId approvalId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String approvalId, TypeReference responseType) + throws IOException, InterruptedException { + return get(approvalId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /workflows/approvals/{param}/approve}. + * @param decoded response type + * @param approvalId approvalId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|POST|/workflows/approvals/{param}/approve") + public @Nullable T approve(String approvalId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.POST_WORKFLOWS_APPROVALS_PARAM_APPROVE, + List.of(approvalId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /workflows/approvals/{param}/approve} using a generic response type. + * @param decoded response type + * @param approvalId approvalId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T approve( + String approvalId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.POST_WORKFLOWS_APPROVALS_PARAM_APPROVE, + List.of(approvalId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /workflows/approvals/{param}/approve} without query parameters. + * @param decoded response type + * @param approvalId approvalId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T approve(String approvalId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return approve(approvalId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/approvals/{param}/approve} without query parameters using a generic response type. + * @param decoded response type + * @param approvalId approvalId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T approve(String approvalId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return approve(approvalId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /workflows/approvals/{param}/reject}. + * @param decoded response type + * @param approvalId approvalId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|POST|/workflows/approvals/{param}/reject") + public @Nullable T reject(String approvalId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.POST_WORKFLOWS_APPROVALS_PARAM_REJECT, + List.of(approvalId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /workflows/approvals/{param}/reject} using a generic response type. + * @param decoded response type + * @param approvalId approvalId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T reject( + String approvalId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.POST_WORKFLOWS_APPROVALS_PARAM_REJECT, + List.of(approvalId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /workflows/approvals/{param}/reject} without query parameters. + * @param decoded response type + * @param approvalId approvalId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T reject(String approvalId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return reject(approvalId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/approvals/{param}/reject} without query parameters using a generic response type. + * @param decoded response type + * @param approvalId approvalId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T reject(String approvalId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return reject(approvalId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/WorkflowsClient.java b/services/src/main/java/dev/frontal/sdk/resources/WorkflowsClient.java index 829a666..c366e5d 100644 --- a/services/src/main/java/dev/frontal/sdk/resources/WorkflowsClient.java +++ b/services/src/main/java/dev/frontal/sdk/resources/WorkflowsClient.java @@ -4,52 +4,27 @@ import java.io.IOException; import java.time.Duration; import java.util.ArrayList; -import java.util.LinkedHashMap; import java.util.List; -import java.util.Map; import java.util.Objects; -import org.jspecify.annotations.Nullable; +import java.util.concurrent.TimeoutException; /** Workflow definitions, executions, tasks, templates, and approvals. */ -public final class WorkflowsClient extends ServiceClient { +public final class WorkflowsClient extends WorkflowsServiceClient { WorkflowsClient(ApiClient client) { - super(ApiService.WORKFLOWS, client); + super(client); } - public PageResult list(Map query, Class itemType) throws IOException, InterruptedException { - return fetchPage(query, itemType); + /** Fetches the first page of workflows and exposes lazy page traversal. */ + public PageResult listPages(QueryParams query, Class itemType) throws IOException, InterruptedException { + return fetchPage(Objects.requireNonNull(query, "query"), Objects.requireNonNull(itemType, "itemType")); } - public @Nullable T get(String workflowId, Class responseType) throws IOException, InterruptedException { - return request(Endpoints.Workflows.GET_WORKFLOWS_PARAM, List.of(workflowId), responseType); - } - - public @Nullable T create(Object definition, Class responseType) throws IOException, InterruptedException { - return request(Endpoints.Workflows.POST_WORKFLOWS, List.of(), Map.of(), definition, responseType); - } - - public @Nullable T update(String workflowId, Object update, Class responseType) - throws IOException, InterruptedException { - return request(Endpoints.Workflows.PATCH_WORKFLOWS_PARAM, List.of(workflowId), Map.of(), update, responseType); - } - - public void delete(String workflowId) throws IOException, InterruptedException { - requestBytes(Endpoints.Workflows.DELETE_WORKFLOWS_PARAM, List.of(workflowId), Map.of(), null); - } - - public @Nullable T createExecution(Object input, Class responseType) - throws IOException, InterruptedException { - return request(Endpoints.Workflows.POST_WORKFLOWS_EXECUTIONS, List.of(), Map.of(), input, responseType); - } - - public @Nullable T execution(String executionId, Class responseType) - throws IOException, InterruptedException { - return request(Endpoints.Workflows.GET_WORKFLOWS_EXECUTIONS_PARAM, List.of(executionId), responseType); - } - - public JsonNode waitForCompletion(String executionId, Duration interval, Duration timeout) throws Exception { + /** Waits until an execution reaches a terminal status or the timeout expires. */ + public JsonNode waitForCompletion(String executionId, Duration interval, Duration timeout) + throws IOException, InterruptedException, TimeoutException { return Poller.pollUntil( - () -> Objects.requireNonNull(execution(executionId, JsonNode.class), "Workflow response was empty"), + () -> Objects.requireNonNull( + executions().get(executionId, JsonNode.class), "Workflow response was empty"), result -> { String status = result.path("status").asText("").toLowerCase(java.util.Locale.ROOT); return List.of("completed", "succeeded", "failed", "cancelled", "rejected") @@ -59,32 +34,8 @@ public JsonNode waitForCompletion(String executionId, Duration interval, Duratio timeout); } - public @Nullable T approve(String approvalId, Object decision, Class responseType) - throws IOException, InterruptedException { - return request( - Endpoints.Workflows.POST_WORKFLOWS_APPROVALS_PARAM_APPROVE, - List.of(approvalId), - Map.of(), - decision, - responseType); - } - - public @Nullable T reject(String approvalId, Object decision, Class responseType) - throws IOException, InterruptedException { - return request( - Endpoints.Workflows.POST_WORKFLOWS_APPROVALS_PARAM_REJECT, - List.of(approvalId), - Map.of(), - decision, - responseType); - } - - private PageResult fetchPage(Map options, Class itemType) - throws IOException, InterruptedException { - Map query = options == null ? Map.of() : Map.copyOf(options); - JsonNode response = Objects.requireNonNull( - request(Endpoints.Workflows.GET_WORKFLOWS, List.of(), query, null, JsonNode.class), - "Workflow list response was empty"); + private PageResult fetchPage(QueryParams query, Class itemType) throws IOException, InterruptedException { + JsonNode response = Objects.requireNonNull(list(query, JsonNode.class), "Workflow list response was empty"); JsonNode items = response.path("data"); if (!items.isArray()) { items = response.path("workflows"); @@ -102,10 +53,9 @@ private PageResult fetchPage(Map options, Class itemType) metadata.path("hasMore").asBoolean(metadata.path("has_more").asBoolean(!cursor.isBlank())); Long total = metadata.has("total") ? metadata.path("total").asLong() : null; return new PageResult<>(data, new Pagination(cursor, more, total), next -> { - Map nextQuery = new LinkedHashMap<>(); - query.forEach(nextQuery::put); - nextQuery.put("cursor", next); - return fetchPage(nextQuery, itemType); + QueryParams.Builder nextQuery = QueryParams.builder(); + query.values().forEach((name, values) -> values.forEach(value -> nextQuery.add(name, value))); + return fetchPage(nextQuery.add("cursor", next).build(), itemType); }); } } diff --git a/services/src/main/java/dev/frontal/sdk/resources/WorkflowsExecutionsClient.java b/services/src/main/java/dev/frontal/sdk/resources/WorkflowsExecutionsClient.java new file mode 100644 index 0000000..42de9e8 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/WorkflowsExecutionsClient.java @@ -0,0 +1,183 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for workflows/executions. Generated by scripts/generate_endpoints.py. */ +public final class WorkflowsExecutionsClient extends ServiceClient { + WorkflowsExecutionsClient(ApiClient client) { + super(ApiService.WORKFLOWS, client); + } + + /** Returns the client for the nested resource. + * @return the tasks resource client + */ + public WorkflowsExecutionsTasksClient tasks() { + return new WorkflowsExecutionsTasksClient(client()); + } + + /** + * Calls the contract route {@code GET /workflows/executions}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|GET|/workflows/executions") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Workflows.GET_WORKFLOWS_EXECUTIONS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /workflows/executions} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Workflows.GET_WORKFLOWS_EXECUTIONS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /workflows/executions} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /workflows/executions} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /workflows/executions/{param}}. + * @param decoded response type + * @param executionId executionId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|GET|/workflows/executions/{param}") + public @Nullable T get(String executionId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.GET_WORKFLOWS_EXECUTIONS_PARAM, List.of(executionId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /workflows/executions/{param}} using a generic response type. + * @param decoded response type + * @param executionId executionId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String executionId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.GET_WORKFLOWS_EXECUTIONS_PARAM, List.of(executionId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /workflows/executions/{param}} without query parameters. + * @param decoded response type + * @param executionId executionId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String executionId, Class responseType) throws IOException, InterruptedException { + return get(executionId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /workflows/executions/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param executionId executionId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String executionId, TypeReference responseType) + throws IOException, InterruptedException { + return get(executionId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /workflows/executions}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|POST|/workflows/executions") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Workflows.POST_WORKFLOWS_EXECUTIONS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/executions} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Workflows.POST_WORKFLOWS_EXECUTIONS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/executions} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/executions} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/WorkflowsExecutionsTasksClient.java b/services/src/main/java/dev/frontal/sdk/resources/WorkflowsExecutionsTasksClient.java new file mode 100644 index 0000000..8bc998a --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/WorkflowsExecutionsTasksClient.java @@ -0,0 +1,78 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for workflows/executions/tasks. Generated by scripts/generate_endpoints.py. */ +public final class WorkflowsExecutionsTasksClient extends ServiceClient { + WorkflowsExecutionsTasksClient(ApiClient client) { + super(ApiService.WORKFLOWS, client); + } + + /** + * Calls the contract route {@code GET /workflows/executions/{param}/tasks}. + * @param decoded response type + * @param executionId executionId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|GET|/workflows/executions/{param}/tasks") + public @Nullable T list(String executionId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.GET_WORKFLOWS_EXECUTIONS_PARAM_TASKS, + List.of(executionId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /workflows/executions/{param}/tasks} using a generic response type. + * @param decoded response type + * @param executionId executionId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String executionId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.GET_WORKFLOWS_EXECUTIONS_PARAM_TASKS, + List.of(executionId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /workflows/executions/{param}/tasks} without query parameters. + * @param decoded response type + * @param executionId executionId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String executionId, Class responseType) throws IOException, InterruptedException { + return list(executionId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /workflows/executions/{param}/tasks} without query parameters using a generic response type. + * @param decoded response type + * @param executionId executionId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String executionId, TypeReference responseType) + throws IOException, InterruptedException { + return list(executionId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/WorkflowsRunsClient.java b/services/src/main/java/dev/frontal/sdk/resources/WorkflowsRunsClient.java new file mode 100644 index 0000000..357d44b --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/WorkflowsRunsClient.java @@ -0,0 +1,15 @@ +package dev.frontal.sdk; + +/** Contract operations for workflows/runs. Generated by scripts/generate_endpoints.py. */ +public final class WorkflowsRunsClient extends ServiceClient { + WorkflowsRunsClient(ApiClient client) { + super(ApiService.WORKFLOWS, client); + } + + /** Returns the client for the nested resource. + * @return the steps resource client + */ + public WorkflowsRunsStepsClient steps() { + return new WorkflowsRunsStepsClient(client()); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/WorkflowsRunsStepsClient.java b/services/src/main/java/dev/frontal/sdk/resources/WorkflowsRunsStepsClient.java new file mode 100644 index 0000000..8ae6aa2 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/WorkflowsRunsStepsClient.java @@ -0,0 +1,67 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for workflows/runs/steps. Generated by scripts/generate_endpoints.py. */ +public final class WorkflowsRunsStepsClient extends ServiceClient { + WorkflowsRunsStepsClient(ApiClient client) { + super(ApiService.WORKFLOWS, client); + } + + /** + * Calls the contract route {@code GET /workflows/runs/{param}/steps}. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|GET|/workflows/runs/{param}/steps") + public @Nullable T list(String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Workflows.GET_WORKFLOWS_RUNS_PARAM_STEPS, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /workflows/runs/{param}/steps} using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Workflows.GET_WORKFLOWS_RUNS_PARAM_STEPS, List.of(runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /workflows/runs/{param}/steps} without query parameters. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String runId, Class responseType) throws IOException, InterruptedException { + return list(runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /workflows/runs/{param}/steps} without query parameters using a generic response type. + * @param decoded response type + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(String runId, TypeReference responseType) throws IOException, InterruptedException { + return list(runId, QueryParams.empty(), responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/WorkflowsServiceClient.java b/services/src/main/java/dev/frontal/sdk/resources/WorkflowsServiceClient.java new file mode 100644 index 0000000..b529ba9 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/WorkflowsServiceClient.java @@ -0,0 +1,835 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for workflows. Generated by scripts/generate_endpoints.py. */ +public class WorkflowsServiceClient extends ServiceClient { + WorkflowsServiceClient(ApiClient client) { + super(ApiService.WORKFLOWS, client); + } + + /** Returns the client for the nested resource. + * @return the approvals resource client + */ + public WorkflowsApprovalsClient approvals() { + return new WorkflowsApprovalsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the executions resource client + */ + public WorkflowsExecutionsClient executions() { + return new WorkflowsExecutionsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the runs resource client + */ + public WorkflowsRunsClient runs() { + return new WorkflowsRunsClient(client()); + } + + /** Returns the client for the nested resource. + * @return the tasks resource client + */ + public WorkflowsTasksClient tasks() { + return new WorkflowsTasksClient(client()); + } + + /** Returns the client for the nested resource. + * @return the templates resource client + */ + public WorkflowsTemplatesClient templates() { + return new WorkflowsTemplatesClient(client()); + } + + /** Returns the client for the nested resource. + * @return the versions resource client + */ + public WorkflowsVersionsClient versions() { + return new WorkflowsVersionsClient(client()); + } + + /** + * Calls the contract route {@code DELETE /workflows/{param}}. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|DELETE|/workflows/{param}") + public @Nullable T delete(String workflowId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Workflows.DELETE_WORKFLOWS_PARAM, List.of(workflowId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /workflows/{param}} using a generic response type. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String workflowId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Workflows.DELETE_WORKFLOWS_PARAM, List.of(workflowId), query, null, responseType); + } + /** + * Calls the contract route {@code DELETE /workflows/{param}} without query parameters. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String workflowId, Class responseType) throws IOException, InterruptedException { + return delete(workflowId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code DELETE /workflows/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T delete(String workflowId, TypeReference responseType) + throws IOException, InterruptedException { + return delete(workflowId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /workflows}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|GET|/workflows") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Workflows.GET_WORKFLOWS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /workflows} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Workflows.GET_WORKFLOWS, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /workflows} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /workflows} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /workflows/{param}}. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|GET|/workflows/{param}") + public @Nullable T get(String workflowId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Workflows.GET_WORKFLOWS_PARAM, List.of(workflowId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /workflows/{param}} using a generic response type. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String workflowId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Workflows.GET_WORKFLOWS_PARAM, List.of(workflowId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /workflows/{param}} without query parameters. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String workflowId, Class responseType) throws IOException, InterruptedException { + return get(workflowId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /workflows/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String workflowId, TypeReference responseType) + throws IOException, InterruptedException { + return get(workflowId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /workflows/{param}/{param}}. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|GET|/workflows/{param}/{param}") + public @Nullable T get2(String workflowId, String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.GET_WORKFLOWS_PARAM_PARAM, List.of(workflowId, runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /workflows/{param}/{param}} using a generic response type. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get2(String workflowId, String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.GET_WORKFLOWS_PARAM_PARAM, List.of(workflowId, runId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /workflows/{param}/{param}} without query parameters. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get2(String workflowId, String runId, Class responseType) + throws IOException, InterruptedException { + return get2(workflowId, runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /workflows/{param}/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get2(String workflowId, String runId, TypeReference responseType) + throws IOException, InterruptedException { + return get2(workflowId, runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /workflows/{param}/{param}/summary}. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|GET|/workflows/{param}/{param}/summary") + public @Nullable T summary(String workflowId, String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.GET_WORKFLOWS_PARAM_PARAM_SUMMARY, + List.of(workflowId, runId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /workflows/{param}/{param}/summary} using a generic response type. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T summary(String workflowId, String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.GET_WORKFLOWS_PARAM_PARAM_SUMMARY, + List.of(workflowId, runId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /workflows/{param}/{param}/summary} without query parameters. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T summary(String workflowId, String runId, Class responseType) + throws IOException, InterruptedException { + return summary(workflowId, runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /workflows/{param}/{param}/summary} without query parameters using a generic response type. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T summary(String workflowId, String runId, TypeReference responseType) + throws IOException, InterruptedException { + return summary(workflowId, runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /workflows/{param}/{param}/timeline}. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|GET|/workflows/{param}/{param}/timeline") + public @Nullable T timeline(String workflowId, String runId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.GET_WORKFLOWS_PARAM_PARAM_TIMELINE, + List.of(workflowId, runId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /workflows/{param}/{param}/timeline} using a generic response type. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param runId runId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T timeline(String workflowId, String runId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.GET_WORKFLOWS_PARAM_PARAM_TIMELINE, + List.of(workflowId, runId), + query, + null, + responseType); + } + /** + * Calls the contract route {@code GET /workflows/{param}/{param}/timeline} without query parameters. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T timeline(String workflowId, String runId, Class responseType) + throws IOException, InterruptedException { + return timeline(workflowId, runId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /workflows/{param}/{param}/timeline} without query parameters using a generic response type. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param runId runId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T timeline(String workflowId, String runId, TypeReference responseType) + throws IOException, InterruptedException { + return timeline(workflowId, runId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code PATCH /workflows/{param}}. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|PATCH|/workflows/{param}") + public @Nullable T update(String workflowId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Workflows.PATCH_WORKFLOWS_PARAM, List.of(workflowId), query, body, responseType); + } + /** + * Calls the contract route {@code PATCH /workflows/{param}} using a generic response type. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update( + String workflowId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Workflows.PATCH_WORKFLOWS_PARAM, List.of(workflowId), query, body, responseType); + } + /** + * Calls the contract route {@code PATCH /workflows/{param}} without query parameters. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String workflowId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return update(workflowId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code PATCH /workflows/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T update(String workflowId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return update(workflowId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /workflows}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|POST|/workflows") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Workflows.POST_WORKFLOWS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Workflows.POST_WORKFLOWS, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /workflows} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /workflows/batch}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|POST|/workflows/batch") + public @Nullable T batch(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Workflows.POST_WORKFLOWS_BATCH, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/batch} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T batch(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Workflows.POST_WORKFLOWS_BATCH, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/batch} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T batch(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return batch(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/batch} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T batch(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return batch(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /workflows/search}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|POST|/workflows/search") + public @Nullable T search(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Workflows.POST_WORKFLOWS_SEARCH, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/search} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T search(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Workflows.POST_WORKFLOWS_SEARCH, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/search} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T search(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return search(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/search} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T search(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return search(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /workflows/{param}/archive}. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|POST|/workflows/{param}/archive") + public @Nullable T archive(String workflowId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.POST_WORKFLOWS_PARAM_ARCHIVE, List.of(workflowId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/{param}/archive} using a generic response type. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T archive( + String workflowId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.POST_WORKFLOWS_PARAM_ARCHIVE, List.of(workflowId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/{param}/archive} without query parameters. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T archive(String workflowId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return archive(workflowId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/{param}/archive} without query parameters using a generic response type. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T archive(String workflowId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return archive(workflowId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /workflows/{param}/publish}. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|POST|/workflows/{param}/publish") + public @Nullable T publish(String workflowId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.POST_WORKFLOWS_PARAM_PUBLISH, List.of(workflowId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/{param}/publish} using a generic response type. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T publish( + String workflowId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.POST_WORKFLOWS_PARAM_PUBLISH, List.of(workflowId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/{param}/publish} without query parameters. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T publish(String workflowId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return publish(workflowId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/{param}/publish} without query parameters using a generic response type. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T publish(String workflowId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return publish(workflowId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /workflows/{param}/restore}. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|POST|/workflows/{param}/restore") + public @Nullable T restore(String workflowId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.POST_WORKFLOWS_PARAM_RESTORE, List.of(workflowId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/{param}/restore} using a generic response type. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T restore( + String workflowId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.POST_WORKFLOWS_PARAM_RESTORE, List.of(workflowId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/{param}/restore} without query parameters. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T restore(String workflowId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return restore(workflowId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/{param}/restore} without query parameters using a generic response type. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T restore(String workflowId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return restore(workflowId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/WorkflowsTasksClient.java b/services/src/main/java/dev/frontal/sdk/resources/WorkflowsTasksClient.java new file mode 100644 index 0000000..d76fd3f --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/WorkflowsTasksClient.java @@ -0,0 +1,194 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for workflows/tasks. Generated by scripts/generate_endpoints.py. */ +public final class WorkflowsTasksClient extends ServiceClient { + WorkflowsTasksClient(ApiClient client) { + super(ApiService.WORKFLOWS, client); + } + + /** + * Calls the contract route {@code GET /workflows/tasks/{param}}. + * @param decoded response type + * @param taskId taskId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|GET|/workflows/tasks/{param}") + public @Nullable T get(String taskId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Workflows.GET_WORKFLOWS_TASKS_PARAM, List.of(taskId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /workflows/tasks/{param}} using a generic response type. + * @param decoded response type + * @param taskId taskId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String taskId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Workflows.GET_WORKFLOWS_TASKS_PARAM, List.of(taskId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /workflows/tasks/{param}} without query parameters. + * @param decoded response type + * @param taskId taskId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String taskId, Class responseType) throws IOException, InterruptedException { + return get(taskId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /workflows/tasks/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param taskId taskId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String taskId, TypeReference responseType) throws IOException, InterruptedException { + return get(taskId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /workflows/tasks/{param}/cancel}. + * @param decoded response type + * @param taskId taskId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|POST|/workflows/tasks/{param}/cancel") + public @Nullable T cancel(String taskId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.POST_WORKFLOWS_TASKS_PARAM_CANCEL, List.of(taskId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/tasks/{param}/cancel} using a generic response type. + * @param decoded response type + * @param taskId taskId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T cancel( + String taskId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.POST_WORKFLOWS_TASKS_PARAM_CANCEL, List.of(taskId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/tasks/{param}/cancel} without query parameters. + * @param decoded response type + * @param taskId taskId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T cancel(String taskId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return cancel(taskId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/tasks/{param}/cancel} without query parameters using a generic response type. + * @param decoded response type + * @param taskId taskId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T cancel(String taskId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return cancel(taskId, QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /workflows/tasks/{param}/retry}. + * @param decoded response type + * @param taskId taskId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|POST|/workflows/tasks/{param}/retry") + public @Nullable T retry(String taskId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.POST_WORKFLOWS_TASKS_PARAM_RETRY, List.of(taskId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/tasks/{param}/retry} using a generic response type. + * @param decoded response type + * @param taskId taskId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T retry( + String taskId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.POST_WORKFLOWS_TASKS_PARAM_RETRY, List.of(taskId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/tasks/{param}/retry} without query parameters. + * @param decoded response type + * @param taskId taskId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T retry(String taskId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return retry(taskId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/tasks/{param}/retry} without query parameters using a generic response type. + * @param decoded response type + * @param taskId taskId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T retry(String taskId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return retry(taskId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/WorkflowsTemplatesClient.java b/services/src/main/java/dev/frontal/sdk/resources/WorkflowsTemplatesClient.java new file mode 100644 index 0000000..12bab74 --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/WorkflowsTemplatesClient.java @@ -0,0 +1,248 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for workflows/templates. Generated by scripts/generate_endpoints.py. */ +public final class WorkflowsTemplatesClient extends ServiceClient { + WorkflowsTemplatesClient(ApiClient client) { + super(ApiService.WORKFLOWS, client); + } + + /** + * Calls the contract route {@code GET /workflows/templates}. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|GET|/workflows/templates") + public @Nullable T list(QueryParams query, Class responseType) throws IOException, InterruptedException { + return request(Endpoints.Workflows.GET_WORKFLOWS_TEMPLATES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /workflows/templates} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Workflows.GET_WORKFLOWS_TEMPLATES, List.of(), query, null, responseType); + } + /** + * Calls the contract route {@code GET /workflows/templates} without query parameters. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(Class responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /workflows/templates} without query parameters using a generic response type. + * @param decoded response type + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T list(TypeReference responseType) throws IOException, InterruptedException { + return list(QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code GET /workflows/templates/{param}}. + * @param decoded response type + * @param templateId templateId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|GET|/workflows/templates/{param}") + public @Nullable T get(String templateId, QueryParams query, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.GET_WORKFLOWS_TEMPLATES_PARAM, List.of(templateId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /workflows/templates/{param}} using a generic response type. + * @param decoded response type + * @param templateId templateId supplied to the operation + * @param query query supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String templateId, QueryParams query, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.GET_WORKFLOWS_TEMPLATES_PARAM, List.of(templateId), query, null, responseType); + } + /** + * Calls the contract route {@code GET /workflows/templates/{param}} without query parameters. + * @param decoded response type + * @param templateId templateId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String templateId, Class responseType) throws IOException, InterruptedException { + return get(templateId, QueryParams.empty(), responseType); + } + /** + * Calls the contract route {@code GET /workflows/templates/{param}} without query parameters using a generic response type. + * @param decoded response type + * @param templateId templateId supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T get(String templateId, TypeReference responseType) + throws IOException, InterruptedException { + return get(templateId, QueryParams.empty(), responseType); + } + + /** + * Calls the contract route {@code POST /workflows/templates}. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|POST|/workflows/templates") + public @Nullable T create(QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request(Endpoints.Workflows.POST_WORKFLOWS_TEMPLATES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/templates} using a generic response type. + * @param decoded response type + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request(Endpoints.Workflows.POST_WORKFLOWS_TEMPLATES, List.of(), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/templates} without query parameters. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/templates} without query parameters using a generic response type. + * @param decoded response type + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(@Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(QueryParams.empty(), body, responseType); + } + + /** + * Calls the contract route {@code POST /workflows/templates/{param}/instantiate}. + * @param decoded response type + * @param templateId templateId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|POST|/workflows/templates/{param}/instantiate") + public @Nullable T instantiate( + String templateId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.POST_WORKFLOWS_TEMPLATES_PARAM_INSTANTIATE, + List.of(templateId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /workflows/templates/{param}/instantiate} using a generic response type. + * @param decoded response type + * @param templateId templateId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T instantiate( + String templateId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.POST_WORKFLOWS_TEMPLATES_PARAM_INSTANTIATE, + List.of(templateId), + query, + body, + responseType); + } + /** + * Calls the contract route {@code POST /workflows/templates/{param}/instantiate} without query parameters. + * @param decoded response type + * @param templateId templateId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T instantiate(String templateId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return instantiate(templateId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/templates/{param}/instantiate} without query parameters using a generic response type. + * @param decoded response type + * @param templateId templateId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T instantiate(String templateId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return instantiate(templateId, QueryParams.empty(), body, responseType); + } +} diff --git a/services/src/main/java/dev/frontal/sdk/resources/WorkflowsVersionsClient.java b/services/src/main/java/dev/frontal/sdk/resources/WorkflowsVersionsClient.java new file mode 100644 index 0000000..49d4c9d --- /dev/null +++ b/services/src/main/java/dev/frontal/sdk/resources/WorkflowsVersionsClient.java @@ -0,0 +1,77 @@ +package dev.frontal.sdk; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import java.io.IOException; +import java.util.List; +import org.jspecify.annotations.Nullable; + +/** Contract operations for workflows/versions. Generated by scripts/generate_endpoints.py. */ +public final class WorkflowsVersionsClient extends ServiceClient { + WorkflowsVersionsClient(ApiClient client) { + super(ApiService.WORKFLOWS, client); + } + + /** + * Calls the contract route {@code POST /workflows/{param}/versions}. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + @SdkOperation("workflows|POST|/workflows/{param}/versions") + public @Nullable T create(String workflowId, QueryParams query, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.POST_WORKFLOWS_PARAM_VERSIONS, List.of(workflowId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/{param}/versions} using a generic response type. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param query query supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create( + String workflowId, QueryParams query, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return request( + Endpoints.Workflows.POST_WORKFLOWS_PARAM_VERSIONS, List.of(workflowId), query, body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/{param}/versions} without query parameters. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(String workflowId, @Nullable JsonNode body, Class responseType) + throws IOException, InterruptedException { + return create(workflowId, QueryParams.empty(), body, responseType); + } + /** + * Calls the contract route {@code POST /workflows/{param}/versions} without query parameters using a generic response type. + * @param decoded response type + * @param workflowId workflowId supplied to the operation + * @param body body supplied to the operation + * @param responseType responseType supplied to the operation + * @return the decoded response, or null when the response body is empty + * @throws IOException if the operation fails + * @throws InterruptedException if the operation fails + */ + public @Nullable T create(String workflowId, @Nullable JsonNode body, TypeReference responseType) + throws IOException, InterruptedException { + return create(workflowId, QueryParams.empty(), body, responseType); + } +} diff --git a/skills/frontal-sdk/SKILL.md b/skills/frontal-sdk/SKILL.md index 7dd9b08..2d26166 100644 --- a/skills/frontal-sdk/SKILL.md +++ b/skills/frontal-sdk/SKILL.md @@ -23,7 +23,7 @@ Do not guess operation methods or payload schemas. Use `JsonNode` for a response ## Configuration and lifecycle -Builder options include `baseUrl`, `aiBaseUrl`, `env`, `debug`, `timeout`, `connectTimeout`, `maxRetries`, and custom headers. `fromEnvironment()` reads `FRONTAL_API_KEY`, `FRONTAL_API_URL`, `FRONTAL_AI_URL`, `FRONTAL_ENV`, and `FRONTAL_DEBUG` (the implementation may also support `FRONTAL_TIMEOUT`). Java does not load `.env` files. Close `Frontal` when its lifecycle ends; use try-with-resources in applications and tests. Never log keys or include them in URLs or exception messages. +Builder options include `apiBaseUrl`, `aiBaseUrl`, `environment`, `debug`, `requestTimeout`, `connectTimeout`, `maxRetries`, and custom headers. `fromEnvironment()` reads `FRONTAL_API_KEY`, `FRONTAL_API_URL`, `FRONTAL_AI_URL`, `FRONTAL_ENV`, and `FRONTAL_DEBUG` (the implementation may also support `FRONTAL_TIMEOUT`). Java does not load `.env` files. Close `Frontal` when its lifecycle ends; use try-with-resources in applications and tests. Never log keys or include them in URLs or exception messages. ## Runtime patterns diff --git a/skills/java-mockwebserver-tests/SKILL.md b/skills/java-mockwebserver-tests/SKILL.md index 69d48b2..4c633ff 100644 --- a/skills/java-mockwebserver-tests/SKILL.md +++ b/skills/java-mockwebserver-tests/SKILL.md @@ -8,7 +8,7 @@ description: Write deterministic JUnit and MockWebServer tests for the Frontal J Use this skill when testing Java client transport, service, error, pagination, or streaming behavior. - Use JUnit 5 and OkHttp `MockWebServer`; do not call a live Frontal backend or require a real key. -- Point `Frontal.builder().baseUrl(...)` at the server URL. Close both `Frontal` and `MockWebServer` in structured cleanup. +- Point `Frontal.builder().apiBaseUrl(...)` at the server URL. Close both `Frontal` and `MockWebServer` in structured cleanup. - Assert the recorded HTTP method, encoded path/query, auth and environment headers, and serialized request body, then exercise the actual SDK response parser. - Cover typed API/network exceptions, request IDs, pagination continuation, and SSE publisher/iterator completion or cleanup where applicable. - Prefer focused behavior assertions over internal call-count assertions. Keep tests in the owning module's `src/test/java` and use the same Java package only when package access is needed. diff --git a/templates/README.md b/templates/README.md index 0165267..435efb5 100644 --- a/templates/README.md +++ b/templates/README.md @@ -1,6 +1,6 @@ # Java application templates -Each directory is a standalone Java 17 Maven application that uses `dev.frontal:frontal-sdk:1.0.0`. To build a template against this checkout, publish the SDK modules to your local Maven repository from the repository root: +Each directory is a standalone Java 17 Maven application that uses `dev.frontal:frontal-sdk:2.0.0`. To build a template against this checkout, publish the SDK modules to your local Maven repository from the repository root: ```bash ./gradlew :core:publishToMavenLocal :services:publishToMavenLocal :sdk:publishToMavenLocal diff --git a/templates/agent-approval/pom.xml b/templates/agent-approval/pom.xml index 7dadcbf..e717e5a 100644 --- a/templates/agent-approval/pom.xml +++ b/templates/agent-approval/pom.xml @@ -6,7 +6,7 @@ 17 UTF-8 - 1.0.0 + 2.0.0 2.18.2 diff --git a/templates/agent-approval/src/main/java/dev/frontal/examples/agentapproval/Main.java b/templates/agent-approval/src/main/java/dev/frontal/examples/agentapproval/Main.java index 407bbe0..ff70e8b 100644 --- a/templates/agent-approval/src/main/java/dev/frontal/examples/agentapproval/Main.java +++ b/templates/agent-approval/src/main/java/dev/frontal/examples/agentapproval/Main.java @@ -7,7 +7,6 @@ import java.io.IOException; import java.io.InputStreamReader; import java.nio.charset.StandardCharsets; -import java.util.Map; import java.util.Objects; /** Lists pending workflow approvals and submits only an operator-confirmed approval. */ @@ -57,7 +56,7 @@ private static void run() throws IOException, InterruptedException { } JsonNode result = Objects.requireNonNull( - client.workflows().approve(approvalId, Map.of(), JsonNode.class), + client.workflows().approve(approvalId, client.apiClient().objectMapper().createObjectNode(), JsonNode.class), "Workflow approval response was empty"); LOGGER.log(System.Logger.Level.INFO, "Workflow approval submitted"); System.out.println( diff --git a/templates/cron-export/pom.xml b/templates/cron-export/pom.xml index 955ed2c..5541216 100644 --- a/templates/cron-export/pom.xml +++ b/templates/cron-export/pom.xml @@ -6,7 +6,7 @@ 17 UTF-8 - 1.0.0 + 2.0.0 2.18.2 diff --git a/templates/cron-export/src/main/java/dev/frontal/examples/cronexport/Main.java b/templates/cron-export/src/main/java/dev/frontal/examples/cronexport/Main.java index 74fdb06..22911fd 100644 --- a/templates/cron-export/src/main/java/dev/frontal/examples/cronexport/Main.java +++ b/templates/cron-export/src/main/java/dev/frontal/examples/cronexport/Main.java @@ -11,7 +11,6 @@ import java.time.ZoneOffset; import java.time.format.DateTimeFormatter; import java.util.List; -import java.util.Map; /** Exports the current agent collection as a timestamped JSON snapshot. */ public final class Main { @@ -47,7 +46,7 @@ private static void run(String[] args) throws IOException, InterruptedException throw new IllegalArgumentException("Output file must not be blank"); } try (Frontal client = Frontal.fromEnvironment()) { - List agents = client.agents().list(Map.of(), JsonNode.class).all(); + List agents = client.agents().listPages(QueryParams.empty(), JsonNode.class).all(); Path absoluteOutput = output.toAbsolutePath().normalize(); if (absoluteOutput.getFileName() == null) { diff --git a/templates/pipeline-monitor/pom.xml b/templates/pipeline-monitor/pom.xml index 7c21da1..3e45308 100644 --- a/templates/pipeline-monitor/pom.xml +++ b/templates/pipeline-monitor/pom.xml @@ -6,7 +6,7 @@ 17 UTF-8 - 1.0.0 + 2.0.0 2.18.2 diff --git a/templates/pipeline-monitor/src/main/java/dev/frontal/examples/pipelinemonitor/Main.java b/templates/pipeline-monitor/src/main/java/dev/frontal/examples/pipelinemonitor/Main.java index 25d5486..2e1a5bd 100644 --- a/templates/pipeline-monitor/src/main/java/dev/frontal/examples/pipelinemonitor/Main.java +++ b/templates/pipeline-monitor/src/main/java/dev/frontal/examples/pipelinemonitor/Main.java @@ -9,7 +9,6 @@ import java.io.UncheckedIOException; import java.time.Duration; import java.util.List; -import java.util.Map; /** Prints events from a Frontal pipeline run stream until the server closes it. */ public final class Main { @@ -72,7 +71,7 @@ private static void readEvents(Frontal client, String runId) .streamEvents( Endpoints.Pipelines.STREAM_DATA_PIPELINES_PIPELINE_RUNS_PARAM, List.of(runId), - Map.of())) { + QueryParams.empty())) { LOGGER.log(System.Logger.Level.INFO, "Connected to pipeline event stream"); try { while (events.hasNext()) {