diff --git a/.sdk-version b/.sdk-version
index ad55eb8..903cd9f 100644
--- a/.sdk-version
+++ b/.sdk-version
@@ -1 +1 @@
-v3.0.0
+v3.1.1
diff --git a/README.md b/README.md
index 604da4a..1727994 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@ Add this dependency to your project's POM:
ai.reveng
sdk
- 3.0.0
+ 3.1.1
compile
```
@@ -31,7 +31,7 @@ repositories {
}
dependencies {
- implementation "ai.reveng:sdk:3.0.0"
+ implementation "ai.reveng:sdk:3.1.1"
}
```
diff --git a/build.gradle b/build.gradle
index 34c5392..ba915cc 100644
--- a/build.gradle
+++ b/build.gradle
@@ -19,7 +19,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'
group = 'ai.reveng'
-version = '3.0.0'
+version = '3.1.1'
@@ -171,7 +171,7 @@ mavenPublishing {
publishToMavenCentral(true)
signAllPublications()
- coordinates("ai.reveng", "sdk", "3.0.0")
+ coordinates("ai.reveng", "sdk", "3.1.1")
pom {
name = "sdk"
diff --git a/build.sbt b/build.sbt
index 407dd80..764ab69 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.0.0",
+ version := "3.1.1",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
diff --git a/docs/ConfigResponse.md b/docs/ConfigResponse.md
index 9d42a97..04f9cb3 100644
--- a/docs/ConfigResponse.md
+++ b/docs/ConfigResponse.md
@@ -10,6 +10,7 @@
|**dashboardUrl** | **String** | The domain of the RevEng.AI platform you are connected to | [optional] |
|**maxFileSizeBytes** | **Integer** | Maximum file size (in bytes) that can be uploaded for analysis | |
|**aiDecompilerUnsupportedLanguages** | **List<String>** | List of programming languages that are not supported for AI decompilation | |
+|**aiDecompilerSupportedModels** | **List<String>** | List of models that support AI decompilation | |
diff --git a/pom.xml b/pom.xml
index ca2cacd..20792f8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
sdk
jar
sdk
- 3.0.0
+ 3.1.1
https://github.com/RevEngAI/sdk-java
Java SDK for the RevEng.AI API
diff --git a/src/main/java/ai/reveng/invoker/ApiClient.java b/src/main/java/ai/reveng/invoker/ApiClient.java
index 82c9cd6..e6a2027 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.0.0/java");
+ setUserAgent("OpenAPI-Generator/3.1.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 5c61aff..4aea86d 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.0.0";
+ public static final String VERSION = "3.1.1";
private static final AtomicReference defaultApiClient = new AtomicReference<>();
private static volatile Supplier apiClientFactory = ApiClient::new;
diff --git a/src/main/java/ai/reveng/model/ConfigResponse.java b/src/main/java/ai/reveng/model/ConfigResponse.java
index 2bd9c8b..d7e23a8 100644
--- a/src/main/java/ai/reveng/model/ConfigResponse.java
+++ b/src/main/java/ai/reveng/model/ConfigResponse.java
@@ -68,6 +68,11 @@ public class ConfigResponse {
@javax.annotation.Nonnull
private List aiDecompilerUnsupportedLanguages = new ArrayList<>();
+ public static final String SERIALIZED_NAME_AI_DECOMPILER_SUPPORTED_MODELS = "ai_decompiler_supported_models";
+ @SerializedName(SERIALIZED_NAME_AI_DECOMPILER_SUPPORTED_MODELS)
+ @javax.annotation.Nonnull
+ private List aiDecompilerSupportedModels = new ArrayList<>();
+
public ConfigResponse() {
}
@@ -135,6 +140,33 @@ public void setAiDecompilerUnsupportedLanguages(@javax.annotation.Nonnull List aiDecompilerSupportedModels) {
+ this.aiDecompilerSupportedModels = aiDecompilerSupportedModels;
+ return this;
+ }
+
+ public ConfigResponse addAiDecompilerSupportedModelsItem(String aiDecompilerSupportedModelsItem) {
+ if (this.aiDecompilerSupportedModels == null) {
+ this.aiDecompilerSupportedModels = new ArrayList<>();
+ }
+ this.aiDecompilerSupportedModels.add(aiDecompilerSupportedModelsItem);
+ return this;
+ }
+
+ /**
+ * List of models that support AI decompilation
+ * @return aiDecompilerSupportedModels
+ */
+ @javax.annotation.Nonnull
+ public List getAiDecompilerSupportedModels() {
+ return aiDecompilerSupportedModels;
+ }
+
+ public void setAiDecompilerSupportedModels(@javax.annotation.Nonnull List aiDecompilerSupportedModels) {
+ this.aiDecompilerSupportedModels = aiDecompilerSupportedModels;
+ }
+
/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
@@ -192,13 +224,14 @@ public boolean equals(Object o) {
ConfigResponse configResponse = (ConfigResponse) o;
return Objects.equals(this.dashboardUrl, configResponse.dashboardUrl) &&
Objects.equals(this.maxFileSizeBytes, configResponse.maxFileSizeBytes) &&
- Objects.equals(this.aiDecompilerUnsupportedLanguages, configResponse.aiDecompilerUnsupportedLanguages)&&
+ Objects.equals(this.aiDecompilerUnsupportedLanguages, configResponse.aiDecompilerUnsupportedLanguages) &&
+ Objects.equals(this.aiDecompilerSupportedModels, configResponse.aiDecompilerSupportedModels)&&
Objects.equals(this.additionalProperties, configResponse.additionalProperties);
}
@Override
public int hashCode() {
- return Objects.hash(dashboardUrl, maxFileSizeBytes, aiDecompilerUnsupportedLanguages, additionalProperties);
+ return Objects.hash(dashboardUrl, maxFileSizeBytes, aiDecompilerUnsupportedLanguages, aiDecompilerSupportedModels, additionalProperties);
}
@Override
@@ -208,6 +241,7 @@ public String toString() {
sb.append(" dashboardUrl: ").append(toIndentedString(dashboardUrl)).append("\n");
sb.append(" maxFileSizeBytes: ").append(toIndentedString(maxFileSizeBytes)).append("\n");
sb.append(" aiDecompilerUnsupportedLanguages: ").append(toIndentedString(aiDecompilerUnsupportedLanguages)).append("\n");
+ sb.append(" aiDecompilerSupportedModels: ").append(toIndentedString(aiDecompilerSupportedModels)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
@@ -230,10 +264,10 @@ private String toIndentedString(Object o) {
static {
// a set of all properties/fields (JSON key names)
- openapiFields = new HashSet(Arrays.asList("dashboard_url", "max_file_size_bytes", "ai_decompiler_unsupported_languages"));
+ openapiFields = new HashSet(Arrays.asList("dashboard_url", "max_file_size_bytes", "ai_decompiler_unsupported_languages", "ai_decompiler_supported_models"));
// a set of required properties/fields (JSON key names)
- openapiRequiredFields = new HashSet(Arrays.asList("max_file_size_bytes", "ai_decompiler_unsupported_languages"));
+ openapiRequiredFields = new HashSet(Arrays.asList("max_file_size_bytes", "ai_decompiler_unsupported_languages", "ai_decompiler_supported_models"));
}
/**
@@ -265,6 +299,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
} else if (!jsonObj.get("ai_decompiler_unsupported_languages").isJsonArray()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ai_decompiler_unsupported_languages` to be an array in the JSON string but got `%s`", jsonObj.get("ai_decompiler_unsupported_languages").toString()));
}
+ // ensure the required json array is present
+ if (jsonObj.get("ai_decompiler_supported_models") == null) {
+ throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`");
+ } else if (!jsonObj.get("ai_decompiler_supported_models").isJsonArray()) {
+ throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `ai_decompiler_supported_models` to be an array in the JSON string but got `%s`", jsonObj.get("ai_decompiler_supported_models").toString()));
+ }
}
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
diff --git a/src/test/java/ai/reveng/model/ConfigResponseTest.java b/src/test/java/ai/reveng/model/ConfigResponseTest.java
index 3a58500..fda2d72 100644
--- a/src/test/java/ai/reveng/model/ConfigResponseTest.java
+++ b/src/test/java/ai/reveng/model/ConfigResponseTest.java
@@ -62,4 +62,12 @@ public void aiDecompilerUnsupportedLanguagesTest() {
// TODO: test aiDecompilerUnsupportedLanguages
}
+ /**
+ * Test the property 'aiDecompilerSupportedModels'
+ */
+ @Test
+ public void aiDecompilerSupportedModelsTest() {
+ // TODO: test aiDecompilerSupportedModels
+ }
+
}