diff --git a/.sdk-version b/.sdk-version
index 9b8a6e4..bf35851 100644
--- a/.sdk-version
+++ b/.sdk-version
@@ -1 +1 @@
-v2.37.4
+v2.41.1
diff --git a/README.md b/README.md
index 174fb25..f0e1437 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@ Add this dependency to your project's POM:
ai.reveng
sdk
- 2.37.4
+ 2.41.1
compile
```
@@ -31,7 +31,7 @@ repositories {
}
dependencies {
- implementation "ai.reveng:sdk:2.37.4"
+ implementation "ai.reveng:sdk:2.41.1"
}
```
diff --git a/build.gradle b/build.gradle
index 0ac2f5f..3bb6c23 100644
--- a/build.gradle
+++ b/build.gradle
@@ -19,7 +19,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'
group = 'ai.reveng'
-version = '2.37.4'
+version = '2.41.1'
@@ -171,7 +171,7 @@ mavenPublishing {
publishToMavenCentral(true)
signAllPublications()
- coordinates("ai.reveng", "sdk", "2.37.4")
+ coordinates("ai.reveng", "sdk", "2.41.1")
pom {
name = "sdk"
diff --git a/build.sbt b/build.sbt
index 0d96faa..1c9b6fc 100644
--- a/build.sbt
+++ b/build.sbt
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "ai.reveng",
name := "sdk",
- version := "2.37.4",
+ version := "2.41.1",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
diff --git a/docs/AnalysesCoreApi.md b/docs/AnalysesCoreApi.md
index 0bccbb9..4e81657 100644
--- a/docs/AnalysesCoreApi.md
+++ b/docs/AnalysesCoreApi.md
@@ -581,8 +581,8 @@ public class Example {
| **sha256Hash** | **String**| | [optional] |
| **limit** | **Integer**| | [optional] [default to 20] |
| **offset** | **Integer**| | [optional] [default to 0] |
-| **orderBy** | [**AppApiRestV2AnalysesEnumsOrderBy**](.md)| | [optional] [enum: created, name, size] |
-| **order** | [**Order**](.md)| | [optional] [enum: ASC, DESC] |
+| **orderBy** | [**AppApiRestV2AnalysesEnumsOrderBy**](.md)| | [optional] [default to created] [enum: created, name, size] |
+| **order** | [**Order**](.md)| | [optional] [default to DESC] [enum: ASC, DESC] |
### Return type
diff --git a/docs/CollectionsApi.md b/docs/CollectionsApi.md
index cd85303..5e1d1d5 100644
--- a/docs/CollectionsApi.md
+++ b/docs/CollectionsApi.md
@@ -285,8 +285,8 @@ public class Example {
| **filters** | [**List<Filters>**](Filters.md)| | [optional] |
| **limit** | **Integer**| | [optional] [default to 20] |
| **offset** | **Integer**| | [optional] [default to 0] |
-| **orderBy** | [**AppApiRestV2CollectionsEnumsOrderBy**](.md)| | [optional] [enum: created, collection, model, owner, collection_size, updated] |
-| **order** | [**Order**](.md)| | [optional] [enum: ASC, DESC] |
+| **orderBy** | [**AppApiRestV2CollectionsEnumsOrderBy**](.md)| | [optional] [default to collection] [enum: created, collection, model, owner, collection_size, updated] |
+| **order** | [**Order**](.md)| | [optional] [default to ASC] [enum: ASC, DESC] |
### Return type
diff --git a/docs/SearchApi.md b/docs/SearchApi.md
index 5554745..01eacc5 100644
--- a/docs/SearchApi.md
+++ b/docs/SearchApi.md
@@ -158,8 +158,8 @@ public class Example {
| **tags** | [**List<String>**](String.md)| The tags to be searched for | [optional] |
| **modelName** | **String**| The name of the model used to analyze the binary the function belongs to | [optional] |
| **filters** | [**List<Filters>**](Filters.md)| The filters to be used for the search | [optional] |
-| **orderBy** | [**AppApiRestV2CollectionsEnumsOrderBy**](.md)| The field to sort the order by in the results | [optional] [enum: created, collection, model, owner, collection_size, updated] |
-| **orderByDirection** | [**Order**](.md)| The order direction in which to return results | [optional] [enum: ASC, DESC] |
+| **orderBy** | [**AppApiRestV2CollectionsEnumsOrderBy**](.md)| The field to sort the order by in the results | [optional] [default to created] [enum: created, collection, model, owner, collection_size, updated] |
+| **orderByDirection** | [**Order**](.md)| The order direction in which to return results | [optional] [default to DESC] [enum: ASC, DESC] |
### Return type
diff --git a/pom.xml b/pom.xml
index 0813d3c..81395ae 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
sdk
jar
sdk
- 2.37.4
+ 2.41.1
https://github.com/RevEngAI/sdk-java
Java SDK for the RevEng.AI API
diff --git a/src/main/java/ai/reveng/api/AnalysesCoreApi.java b/src/main/java/ai/reveng/api/AnalysesCoreApi.java
index c060c30..4d2b966 100644
--- a/src/main/java/ai/reveng/api/AnalysesCoreApi.java
+++ b/src/main/java/ai/reveng/api/AnalysesCoreApi.java
@@ -1039,8 +1039,8 @@ public okhttp3.Call getAnalysisStatusAsync(@javax.annotation.Nonnull Integer ana
* @param sha256Hash (optional)
* @param limit (optional, default to 20)
* @param offset (optional, default to 0)
- * @param orderBy (optional)
- * @param order (optional)
+ * @param orderBy (optional, default to created)
+ * @param order (optional, default to DESC)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
@@ -1158,8 +1158,8 @@ private okhttp3.Call listAnalysesValidateBeforeCall(@javax.annotation.Nullable S
* @param sha256Hash (optional)
* @param limit (optional, default to 20)
* @param offset (optional, default to 0)
- * @param orderBy (optional)
- * @param order (optional)
+ * @param orderBy (optional, default to created)
+ * @param order (optional, default to DESC)
* @return BaseResponseRecent
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -1187,8 +1187,8 @@ public BaseResponseRecent listAnalyses(@javax.annotation.Nullable String searchT
* @param sha256Hash (optional)
* @param limit (optional, default to 20)
* @param offset (optional, default to 0)
- * @param orderBy (optional)
- * @param order (optional)
+ * @param orderBy (optional, default to created)
+ * @param order (optional, default to DESC)
* @return ApiResponse<BaseResponseRecent>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -1217,8 +1217,8 @@ public ApiResponse listAnalysesWithHttpInfo(@javax.annotatio
* @param sha256Hash (optional)
* @param limit (optional, default to 20)
* @param offset (optional, default to 0)
- * @param orderBy (optional)
- * @param order (optional)
+ * @param orderBy (optional, default to created)
+ * @param order (optional, default to DESC)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
diff --git a/src/main/java/ai/reveng/api/CollectionsApi.java b/src/main/java/ai/reveng/api/CollectionsApi.java
index 0fceb40..21037af 100644
--- a/src/main/java/ai/reveng/api/CollectionsApi.java
+++ b/src/main/java/ai/reveng/api/CollectionsApi.java
@@ -498,8 +498,8 @@ public okhttp3.Call getCollectionAsync(@javax.annotation.Nonnull Integer collect
* @param filters (optional)
* @param limit (optional, default to 20)
* @param offset (optional, default to 0)
- * @param orderBy (optional)
- * @param order (optional)
+ * @param orderBy (optional, default to collection)
+ * @param order (optional, default to ASC)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
@@ -592,8 +592,8 @@ private okhttp3.Call listCollectionsValidateBeforeCall(@javax.annotation.Nullabl
* @param filters (optional)
* @param limit (optional, default to 20)
* @param offset (optional, default to 0)
- * @param orderBy (optional)
- * @param order (optional)
+ * @param orderBy (optional, default to collection)
+ * @param order (optional, default to ASC)
* @return BaseResponseListCollectionResults
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -616,8 +616,8 @@ public BaseResponseListCollectionResults listCollections(@javax.annotation.Nulla
* @param filters (optional)
* @param limit (optional, default to 20)
* @param offset (optional, default to 0)
- * @param orderBy (optional)
- * @param order (optional)
+ * @param orderBy (optional, default to collection)
+ * @param order (optional, default to ASC)
* @return ApiResponse<BaseResponseListCollectionResults>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -641,8 +641,8 @@ public ApiResponse listCollectionsWithHttpInf
* @param filters (optional)
* @param limit (optional, default to 20)
* @param offset (optional, default to 0)
- * @param orderBy (optional)
- * @param order (optional)
+ * @param orderBy (optional, default to collection)
+ * @param order (optional, default to ASC)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
diff --git a/src/main/java/ai/reveng/api/SearchApi.java b/src/main/java/ai/reveng/api/SearchApi.java
index a8a3cbc..e74bf66 100644
--- a/src/main/java/ai/reveng/api/SearchApi.java
+++ b/src/main/java/ai/reveng/api/SearchApi.java
@@ -265,8 +265,8 @@ public okhttp3.Call searchBinariesAsync(@javax.annotation.Nullable Integer page,
* @param tags The tags to be searched for (optional)
* @param modelName The name of the model used to analyze the binary the function belongs to (optional)
* @param filters The filters to be used for the search (optional)
- * @param orderBy The field to sort the order by in the results (optional)
- * @param orderByDirection The order direction in which to return results (optional)
+ * @param orderBy The field to sort the order by in the results (optional, default to created)
+ * @param orderByDirection The order direction in which to return results (optional, default to DESC)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
@@ -380,8 +380,8 @@ private okhttp3.Call searchCollectionsValidateBeforeCall(@javax.annotation.Nulla
* @param tags The tags to be searched for (optional)
* @param modelName The name of the model used to analyze the binary the function belongs to (optional)
* @param filters The filters to be used for the search (optional)
- * @param orderBy The field to sort the order by in the results (optional)
- * @param orderByDirection The order direction in which to return results (optional)
+ * @param orderBy The field to sort the order by in the results (optional, default to created)
+ * @param orderByDirection The order direction in which to return results (optional, default to DESC)
* @return BaseResponseCollectionSearchResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -409,8 +409,8 @@ public BaseResponseCollectionSearchResponse searchCollections(@javax.annotation.
* @param tags The tags to be searched for (optional)
* @param modelName The name of the model used to analyze the binary the function belongs to (optional)
* @param filters The filters to be used for the search (optional)
- * @param orderBy The field to sort the order by in the results (optional)
- * @param orderByDirection The order direction in which to return results (optional)
+ * @param orderBy The field to sort the order by in the results (optional, default to created)
+ * @param orderByDirection The order direction in which to return results (optional, default to DESC)
* @return ApiResponse<BaseResponseCollectionSearchResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
@@ -439,8 +439,8 @@ public ApiResponse searchCollectionsWithHt
* @param tags The tags to be searched for (optional)
* @param modelName The name of the model used to analyze the binary the function belongs to (optional)
* @param filters The filters to be used for the search (optional)
- * @param orderBy The field to sort the order by in the results (optional)
- * @param orderByDirection The order direction in which to return results (optional)
+ * @param orderBy The field to sort the order by in the results (optional, default to created)
+ * @param orderByDirection The order direction in which to return results (optional, default to DESC)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
diff --git a/src/main/java/ai/reveng/invoker/ApiClient.java b/src/main/java/ai/reveng/invoker/ApiClient.java
index a025e06..36cfbe9 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/2.37.4/java");
+ setUserAgent("OpenAPI-Generator/2.41.1/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 32753c0..25cd999 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 = "2.37.4";
+ public static final String VERSION = "2.41.1";
private static final AtomicReference defaultApiClient = new AtomicReference<>();
private static volatile Supplier apiClientFactory = ApiClient::new;
diff --git a/src/main/java/ai/reveng/model/AnalysisConfig.java b/src/main/java/ai/reveng/model/AnalysisConfig.java
index d89bdf3..307a3d9 100644
--- a/src/main/java/ai/reveng/model/AnalysisConfig.java
+++ b/src/main/java/ai/reveng/model/AnalysisConfig.java
@@ -56,7 +56,7 @@ public class AnalysisConfig {
public static final String SERIALIZED_NAME_SCRAPE_THIRD_PARTY_CONFIG = "scrape_third_party_config";
@SerializedName(SERIALIZED_NAME_SCRAPE_THIRD_PARTY_CONFIG)
@javax.annotation.Nullable
- private ScrapeThirdPartyConfig scrapeThirdPartyConfig;
+ private ScrapeThirdPartyConfig scrapeThirdPartyConfig = {enabled=false};
public static final String SERIALIZED_NAME_GENERATE_CVES = "generate_cves";
@SerializedName(SERIALIZED_NAME_GENERATE_CVES)
@@ -86,7 +86,7 @@ public class AnalysisConfig {
public static final String SERIALIZED_NAME_SANDBOX_CONFIG = "sandbox_config";
@SerializedName(SERIALIZED_NAME_SANDBOX_CONFIG)
@javax.annotation.Nullable
- private SandboxOptions sandboxConfig;
+ private SandboxOptions sandboxConfig = {enabled=false, command_line_args=};
public AnalysisConfig() {
}
diff --git a/src/main/java/ai/reveng/model/AnalysisCreateRequest.java b/src/main/java/ai/reveng/model/AnalysisCreateRequest.java
index 378d186..d6b3307 100644
--- a/src/main/java/ai/reveng/model/AnalysisCreateRequest.java
+++ b/src/main/java/ai/reveng/model/AnalysisCreateRequest.java
@@ -77,7 +77,7 @@ public class AnalysisCreateRequest {
public static final String SERIALIZED_NAME_ANALYSIS_SCOPE = "analysis_scope";
@SerializedName(SERIALIZED_NAME_ANALYSIS_SCOPE)
@javax.annotation.Nullable
- private AnalysisScope analysisScope;
+ private AnalysisScope analysisScope = AnalysisScope.PRIVATE;
public static final String SERIALIZED_NAME_SYMBOLS = "symbols";
@SerializedName(SERIALIZED_NAME_SYMBOLS)
@@ -92,12 +92,12 @@ public class AnalysisCreateRequest {
public static final String SERIALIZED_NAME_ANALYSIS_CONFIG = "analysis_config";
@SerializedName(SERIALIZED_NAME_ANALYSIS_CONFIG)
@javax.annotation.Nullable
- private AnalysisConfig analysisConfig;
+ private AnalysisConfig analysisConfig = {scrape_third_party_config={enabled=false}, generate_cves=false, generate_sbom=false, generate_capabilities=false, no_cache=false, advanced_analysis=false, sandbox_config={command_line_args=, enabled=false}};
public static final String SERIALIZED_NAME_BINARY_CONFIG = "binary_config";
@SerializedName(SERIALIZED_NAME_BINARY_CONFIG)
@javax.annotation.Nullable
- private BinaryConfig binaryConfig;
+ private BinaryConfig binaryConfig = {};
public AnalysisCreateRequest() {
}
diff --git a/src/main/java/ai/reveng/model/AutoUnstripRequest.java b/src/main/java/ai/reveng/model/AutoUnstripRequest.java
index 3cfd671..008e73f 100644
--- a/src/main/java/ai/reveng/model/AutoUnstripRequest.java
+++ b/src/main/java/ai/reveng/model/AutoUnstripRequest.java
@@ -53,31 +53,37 @@
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AutoUnstripRequest {
public static final String SERIALIZED_NAME_MIN_SIMILARITY = "min_similarity";
+ @Deprecated
@SerializedName(SERIALIZED_NAME_MIN_SIMILARITY)
@javax.annotation.Nullable
private BigDecimal minSimilarity = new BigDecimal("90.0");
public static final String SERIALIZED_NAME_APPLY = "apply";
+ @Deprecated
@SerializedName(SERIALIZED_NAME_APPLY)
@javax.annotation.Nullable
private Boolean apply = false;
public static final String SERIALIZED_NAME_CONFIDENCE_THRESHOLD = "confidence_threshold";
+ @Deprecated
@SerializedName(SERIALIZED_NAME_CONFIDENCE_THRESHOLD)
@javax.annotation.Nullable
private BigDecimal confidenceThreshold = new BigDecimal("90.0");
public static final String SERIALIZED_NAME_MIN_GROUP_SIZE = "min_group_size";
+ @Deprecated
@SerializedName(SERIALIZED_NAME_MIN_GROUP_SIZE)
@javax.annotation.Nullable
private Integer minGroupSize = 10;
public static final String SERIALIZED_NAME_STATUS_ONLY = "status_only";
+ @Deprecated
@SerializedName(SERIALIZED_NAME_STATUS_ONLY)
@javax.annotation.Nullable
private Boolean statusOnly = false;
public static final String SERIALIZED_NAME_NO_CACHE = "no_cache";
+ @Deprecated
@SerializedName(SERIALIZED_NAME_NO_CACHE)
@javax.annotation.Nullable
private Boolean noCache = false;
@@ -85,6 +91,7 @@ public class AutoUnstripRequest {
public AutoUnstripRequest() {
}
+ @Deprecated
public AutoUnstripRequest minSimilarity(@javax.annotation.Nullable BigDecimal minSimilarity) {
this.minSimilarity = minSimilarity;
return this;
@@ -95,17 +102,21 @@ public AutoUnstripRequest minSimilarity(@javax.annotation.Nullable BigDecimal mi
* minimum: 0.0
* maximum: 100.0
* @return minSimilarity
+ * @deprecated
*/
+ @Deprecated
@javax.annotation.Nullable
public BigDecimal getMinSimilarity() {
return minSimilarity;
}
+ @Deprecated
public void setMinSimilarity(@javax.annotation.Nullable BigDecimal minSimilarity) {
this.minSimilarity = minSimilarity;
}
+ @Deprecated
public AutoUnstripRequest apply(@javax.annotation.Nullable Boolean apply) {
this.apply = apply;
return this;
@@ -114,17 +125,21 @@ public AutoUnstripRequest apply(@javax.annotation.Nullable Boolean apply) {
/**
* Whether to apply the matched function names to the target binary, default is False
* @return apply
+ * @deprecated
*/
+ @Deprecated
@javax.annotation.Nullable
public Boolean getApply() {
return apply;
}
+ @Deprecated
public void setApply(@javax.annotation.Nullable Boolean apply) {
this.apply = apply;
}
+ @Deprecated
public AutoUnstripRequest confidenceThreshold(@javax.annotation.Nullable BigDecimal confidenceThreshold) {
this.confidenceThreshold = confidenceThreshold;
return this;
@@ -135,17 +150,21 @@ public AutoUnstripRequest confidenceThreshold(@javax.annotation.Nullable BigDeci
* minimum: 0.0
* maximum: 100.0
* @return confidenceThreshold
+ * @deprecated
*/
+ @Deprecated
@javax.annotation.Nullable
public BigDecimal getConfidenceThreshold() {
return confidenceThreshold;
}
+ @Deprecated
public void setConfidenceThreshold(@javax.annotation.Nullable BigDecimal confidenceThreshold) {
this.confidenceThreshold = confidenceThreshold;
}
+ @Deprecated
public AutoUnstripRequest minGroupSize(@javax.annotation.Nullable Integer minGroupSize) {
this.minGroupSize = minGroupSize;
return this;
@@ -156,17 +175,21 @@ public AutoUnstripRequest minGroupSize(@javax.annotation.Nullable Integer minGro
* minimum: 1
* maximum: 20
* @return minGroupSize
+ * @deprecated
*/
+ @Deprecated
@javax.annotation.Nullable
public Integer getMinGroupSize() {
return minGroupSize;
}
+ @Deprecated
public void setMinGroupSize(@javax.annotation.Nullable Integer minGroupSize) {
this.minGroupSize = minGroupSize;
}
+ @Deprecated
public AutoUnstripRequest statusOnly(@javax.annotation.Nullable Boolean statusOnly) {
this.statusOnly = statusOnly;
return this;
@@ -175,17 +198,21 @@ public AutoUnstripRequest statusOnly(@javax.annotation.Nullable Boolean statusOn
/**
* If set to true, only returns the status of the auto-unstrip operation without the actual results
* @return statusOnly
+ * @deprecated
*/
+ @Deprecated
@javax.annotation.Nullable
public Boolean getStatusOnly() {
return statusOnly;
}
+ @Deprecated
public void setStatusOnly(@javax.annotation.Nullable Boolean statusOnly) {
this.statusOnly = statusOnly;
}
+ @Deprecated
public AutoUnstripRequest noCache(@javax.annotation.Nullable Boolean noCache) {
this.noCache = noCache;
return this;
@@ -194,12 +221,15 @@ public AutoUnstripRequest noCache(@javax.annotation.Nullable Boolean noCache) {
/**
* If set to true, forces the system to bypass any cached results and perform a fresh computation
* @return noCache
+ * @deprecated
*/
+ @Deprecated
@javax.annotation.Nullable
public Boolean getNoCache() {
return noCache;
}
+ @Deprecated
public void setNoCache(@javax.annotation.Nullable Boolean noCache) {
this.noCache = noCache;
}
diff --git a/src/main/java/ai/reveng/model/AutoUnstripResponse.java b/src/main/java/ai/reveng/model/AutoUnstripResponse.java
index 7ad4a15..1965924 100644
--- a/src/main/java/ai/reveng/model/AutoUnstripResponse.java
+++ b/src/main/java/ai/reveng/model/AutoUnstripResponse.java
@@ -56,6 +56,7 @@
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AutoUnstripResponse {
public static final String SERIALIZED_NAME_PROGRESS = "progress";
+ @Deprecated
@SerializedName(SERIALIZED_NAME_PROGRESS)
@javax.annotation.Nullable
private Integer progress = 0;
@@ -88,6 +89,7 @@ public class AutoUnstripResponse {
public AutoUnstripResponse() {
}
+ @Deprecated
public AutoUnstripResponse progress(@javax.annotation.Nullable Integer progress) {
this.progress = progress;
return this;
@@ -96,12 +98,15 @@ public AutoUnstripResponse progress(@javax.annotation.Nullable Integer progress)
/**
* Progress of the auto-unstrip operation, represented as a percentage
* @return progress
+ * @deprecated
*/
+ @Deprecated
@javax.annotation.Nullable
public Integer getProgress() {
return progress;
}
+ @Deprecated
public void setProgress(@javax.annotation.Nullable Integer progress) {
this.progress = progress;
}
diff --git a/src/main/java/ai/reveng/model/CollectionCreateRequest.java b/src/main/java/ai/reveng/model/CollectionCreateRequest.java
index 767b14a..4b1f715 100644
--- a/src/main/java/ai/reveng/model/CollectionCreateRequest.java
+++ b/src/main/java/ai/reveng/model/CollectionCreateRequest.java
@@ -68,7 +68,7 @@ public class CollectionCreateRequest {
public static final String SERIALIZED_NAME_COLLECTION_SCOPE = "collection_scope";
@SerializedName(SERIALIZED_NAME_COLLECTION_SCOPE)
@javax.annotation.Nullable
- private CollectionScope collectionScope;
+ private CollectionScope collectionScope = CollectionScope.PRIVATE;
public static final String SERIALIZED_NAME_TAGS = "tags";
@SerializedName(SERIALIZED_NAME_TAGS)
diff --git a/src/main/java/ai/reveng/model/FunctionTaskResponse.java b/src/main/java/ai/reveng/model/FunctionTaskResponse.java
index d675a53..c186f06 100644
--- a/src/main/java/ai/reveng/model/FunctionTaskResponse.java
+++ b/src/main/java/ai/reveng/model/FunctionTaskResponse.java
@@ -56,7 +56,7 @@ public class FunctionTaskResponse {
public static final String SERIALIZED_NAME_STATUS = "status";
@SerializedName(SERIALIZED_NAME_STATUS)
@javax.annotation.Nullable
- private FunctionTaskStatus status;
+ private FunctionTaskStatus status = FunctionTaskStatus.UNINITIALISED;
public static final String SERIALIZED_NAME_ERROR_MESSAGE = "error_message";
@SerializedName(SERIALIZED_NAME_ERROR_MESSAGE)
diff --git a/src/main/java/ai/reveng/model/TaskResponse.java b/src/main/java/ai/reveng/model/TaskResponse.java
index 8171025..e48dd36 100644
--- a/src/main/java/ai/reveng/model/TaskResponse.java
+++ b/src/main/java/ai/reveng/model/TaskResponse.java
@@ -56,7 +56,7 @@ public class TaskResponse {
public static final String SERIALIZED_NAME_STATUS = "status";
@SerializedName(SERIALIZED_NAME_STATUS)
@javax.annotation.Nullable
- private TaskStatus status;
+ private TaskStatus status = TaskStatus.UNINITIALISED;
public static final String SERIALIZED_NAME_ERROR_MESSAGE = "error_message";
@SerializedName(SERIALIZED_NAME_ERROR_MESSAGE)