diff --git a/.sdk-version b/.sdk-version
index 3bef2586..f9627dba 100644
--- a/.sdk-version
+++ b/.sdk-version
@@ -1 +1 @@
-v3.82.1
+v3.82.2
diff --git a/README.md b/README.md
index f0f3ec63..f0005509 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@ Add this dependency to your project's POM:
ai.reveng
sdk
- 3.82.1
+ 3.82.2
compile
```
@@ -31,7 +31,7 @@ repositories {
}
dependencies {
- implementation "ai.reveng:sdk:3.82.1"
+ implementation "ai.reveng:sdk:3.82.2"
}
```
diff --git a/build.gradle b/build.gradle
index 2d3ac0dd..67f4ac40 100644
--- a/build.gradle
+++ b/build.gradle
@@ -19,7 +19,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'
group = 'ai.reveng'
-version = '3.82.1'
+version = '3.82.2'
@@ -171,7 +171,7 @@ mavenPublishing {
publishToMavenCentral(true)
signAllPublications()
- coordinates("ai.reveng", "sdk", "3.82.1")
+ coordinates("ai.reveng", "sdk", "3.82.2")
pom {
name = "sdk"
diff --git a/build.sbt b/build.sbt
index c41dab5b..00486175 100644
--- a/build.sbt
+++ b/build.sbt
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "ai.reveng",
name := "sdk",
- version := "3.82.1",
+ version := "3.82.2",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
diff --git a/docs/ErrorBody.md b/docs/ErrorBody.md
index 07386d07..a8b010c2 100644
--- a/docs/ErrorBody.md
+++ b/docs/ErrorBody.md
@@ -32,6 +32,7 @@
| EXTERNAL_USER | "EXTERNAL_USER" |
| FORBIDDEN | "FORBIDDEN" |
| GATEWAY_TIMEOUT | "GATEWAY_TIMEOUT" |
+| GROUP_HAS_MEMBERS | "GROUP_HAS_MEMBERS" |
| INSUFFICIENT_CREDITS | "INSUFFICIENT_CREDITS" |
| INTERNAL_ERROR | "INTERNAL_ERROR" |
| INTERNAL_ISSUER | "INTERNAL_ISSUER" |
diff --git a/docs/ReportsApi.md b/docs/ReportsApi.md
index debe194d..e9ed99c0 100644
--- a/docs/ReportsApi.md
+++ b/docs/ReportsApi.md
@@ -15,7 +15,7 @@ All URIs are relative to *https://api.reveng.ai*
Start PDF report generation
-Starts an asynchronous PDF report generation workflow for the given analysis. Returns a deterministic task_id used to poll status and download the resulting PDF. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `409` [`ANALYSIS_NOT_READY`](/errors/ANALYSIS_NOT_READY) — Analysis Not Ready
+Starts an asynchronous PDF report generation workflow for the given analysis. Returns a deterministic task_id used to poll status and download the resulting PDF. Idempotent: if a workflow is already running for this analysis and user, the same task_id is returned with `already_running: true` so the caller can rejoin the in-flight workflow. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found
### Example
```java
@@ -79,7 +79,6 @@ public class Example {
| **202** | Accepted | - |
| **403** | Forbidden | - |
| **404** | Not Found | - |
-| **409** | Conflict | - |
| **422** | Unprocessable Entity | - |
| **500** | Internal Server Error | - |
diff --git a/pom.xml b/pom.xml
index 62b34e23..6d2998f1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
sdk
jar
sdk
- 3.82.1
+ 3.82.2
https://github.com/RevEngAI/sdk-java
Java SDK for the RevEng.AI API
diff --git a/src/main/java/ai/reveng/api/ReportsApi.java b/src/main/java/ai/reveng/api/ReportsApi.java
index 3adb9411..cff22bed 100644
--- a/src/main/java/ai/reveng/api/ReportsApi.java
+++ b/src/main/java/ai/reveng/api/ReportsApi.java
@@ -86,7 +86,6 @@ public void setCustomBaseUrl(String customBaseUrl) {
| 202 | Accepted | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
- | 409 | Conflict | - |
| 422 | Unprocessable Entity | - |
| 500 | Internal Server Error | - |
@@ -149,7 +148,7 @@ private okhttp3.Call createPdfReportValidateBeforeCall(@javax.annotation.Nonnull
/**
* Start PDF report generation
- * Starts an asynchronous PDF report generation workflow for the given analysis. Returns a deterministic task_id used to poll status and download the resulting PDF. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `409` [`ANALYSIS_NOT_READY`](/errors/ANALYSIS_NOT_READY) — Analysis Not Ready
+ * Starts an asynchronous PDF report generation workflow for the given analysis. Returns a deterministic task_id used to poll status and download the resulting PDF. Idempotent: if a workflow is already running for this analysis and user, the same task_id is returned with `already_running: true` so the caller can rejoin the in-flight workflow. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found
* @param analysisId Analysis ID (required)
* @return GeneratePDFOutputBody
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
@@ -160,7 +159,6 @@ private okhttp3.Call createPdfReportValidateBeforeCall(@javax.annotation.Nonnull
| 202 | Accepted | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
- | 409 | Conflict | - |
| 422 | Unprocessable Entity | - |
| 500 | Internal Server Error | - |
@@ -172,7 +170,7 @@ public GeneratePDFOutputBody createPdfReport(@javax.annotation.Nonnull Long anal
/**
* Start PDF report generation
- * Starts an asynchronous PDF report generation workflow for the given analysis. Returns a deterministic task_id used to poll status and download the resulting PDF. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `409` [`ANALYSIS_NOT_READY`](/errors/ANALYSIS_NOT_READY) — Analysis Not Ready
+ * Starts an asynchronous PDF report generation workflow for the given analysis. Returns a deterministic task_id used to poll status and download the resulting PDF. Idempotent: if a workflow is already running for this analysis and user, the same task_id is returned with `already_running: true` so the caller can rejoin the in-flight workflow. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found
* @param analysisId Analysis ID (required)
* @return ApiResponse<GeneratePDFOutputBody>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
@@ -183,7 +181,6 @@ public GeneratePDFOutputBody createPdfReport(@javax.annotation.Nonnull Long anal
| 202 | Accepted | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
- | 409 | Conflict | - |
| 422 | Unprocessable Entity | - |
| 500 | Internal Server Error | - |
@@ -196,7 +193,7 @@ public ApiResponse createPdfReportWithHttpInfo(@javax.ann
/**
* Start PDF report generation (asynchronously)
- * Starts an asynchronous PDF report generation workflow for the given analysis. Returns a deterministic task_id used to poll status and download the resulting PDF. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found - `409` [`ANALYSIS_NOT_READY`](/errors/ANALYSIS_NOT_READY) — Analysis Not Ready
+ * Starts an asynchronous PDF report generation workflow for the given analysis. Returns a deterministic task_id used to poll status and download the resulting PDF. Idempotent: if a workflow is already running for this analysis and user, the same task_id is returned with `already_running: true` so the caller can rejoin the in-flight workflow. **Error codes:** - `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) — Access Denied - `404` [`NOT_FOUND`](/errors/NOT_FOUND) — Not Found
* @param analysisId Analysis ID (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
@@ -208,7 +205,6 @@ public ApiResponse createPdfReportWithHttpInfo(@javax.ann
| 202 | Accepted | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
- | 409 | Conflict | - |
| 422 | Unprocessable Entity | - |
| 500 | Internal Server Error | - |
diff --git a/src/main/java/ai/reveng/invoker/ApiClient.java b/src/main/java/ai/reveng/invoker/ApiClient.java
index bd75f2ed..6ff7bd51 100644
--- a/src/main/java/ai/reveng/invoker/ApiClient.java
+++ b/src/main/java/ai/reveng/invoker/ApiClient.java
@@ -146,7 +146,7 @@ protected void init() {
json = new JSON();
// Set default User-Agent.
- setUserAgent("OpenAPI-Generator/3.82.1/java");
+ setUserAgent("OpenAPI-Generator/3.82.2/java");
authentications = new HashMap();
}
diff --git a/src/main/java/ai/reveng/invoker/Configuration.java b/src/main/java/ai/reveng/invoker/Configuration.java
index 47bb3052..893603d6 100644
--- a/src/main/java/ai/reveng/invoker/Configuration.java
+++ b/src/main/java/ai/reveng/invoker/Configuration.java
@@ -18,7 +18,7 @@
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Configuration {
- public static final String VERSION = "3.82.1";
+ public static final String VERSION = "3.82.2";
private static final AtomicReference defaultApiClient = new AtomicReference<>();
private static volatile Supplier apiClientFactory = ApiClient::new;
diff --git a/src/main/java/ai/reveng/model/ErrorBody.java b/src/main/java/ai/reveng/model/ErrorBody.java
index a1fde67d..a6641ddc 100644
--- a/src/main/java/ai/reveng/model/ErrorBody.java
+++ b/src/main/java/ai/reveng/model/ErrorBody.java
@@ -82,6 +82,8 @@ public enum CodeEnum {
GATEWAY_TIMEOUT("GATEWAY_TIMEOUT"),
+ GROUP_HAS_MEMBERS("GROUP_HAS_MEMBERS"),
+
INSUFFICIENT_CREDITS("INSUFFICIENT_CREDITS"),
INTERNAL_ERROR("INTERNAL_ERROR"),