Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .sdk-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.0.0
v3.1.1
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>ai.reveng</groupId>
<artifactId>sdk</artifactId>
<version>3.0.0</version>
<version>3.1.1</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:3.0.0"
implementation "ai.reveng:sdk:3.1.1"
}
```

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'

group = 'ai.reveng'
version = '3.0.0'
version = '3.1.1'



Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
1 change: 1 addition & 0 deletions docs/ConfigResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -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&lt;String&gt;** | List of programming languages that are not supported for AI decompilation | |
|**aiDecompilerSupportedModels** | **List&lt;String&gt;** | List of models that support AI decompilation | |



2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>sdk</artifactId>
<packaging>jar</packaging>
<name>sdk</name>
<version>3.0.0</version>
<version>3.1.1</version>
<url>https://github.com/RevEngAI/sdk-java</url>
<description>Java SDK for the RevEng.AI API</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ai/reveng/invoker/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Authentication>();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ai/reveng/invoker/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<ApiClient> defaultApiClient = new AtomicReference<>();
private static volatile Supplier<ApiClient> apiClientFactory = ApiClient::new;
Expand Down
48 changes: 44 additions & 4 deletions src/main/java/ai/reveng/model/ConfigResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ public class ConfigResponse {
@javax.annotation.Nonnull
private List<String> 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<String> aiDecompilerSupportedModels = new ArrayList<>();

public ConfigResponse() {
}

Expand Down Expand Up @@ -135,6 +140,33 @@ public void setAiDecompilerUnsupportedLanguages(@javax.annotation.Nonnull List<S
this.aiDecompilerUnsupportedLanguages = aiDecompilerUnsupportedLanguages;
}


public ConfigResponse aiDecompilerSupportedModels(@javax.annotation.Nonnull List<String> 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<String> getAiDecompilerSupportedModels() {
return aiDecompilerSupportedModels;
}

public void setAiDecompilerSupportedModels(@javax.annotation.Nonnull List<String> aiDecompilerSupportedModels) {
this.aiDecompilerSupportedModels = aiDecompilerSupportedModels;
}

/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
Expand Down Expand Up @@ -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
Expand All @@ -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();
Expand All @@ -230,10 +264,10 @@ private String toIndentedString(Object o) {

static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet<String>(Arrays.asList("dashboard_url", "max_file_size_bytes", "ai_decompiler_unsupported_languages"));
openapiFields = new HashSet<String>(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<String>(Arrays.asList("max_file_size_bytes", "ai_decompiler_unsupported_languages"));
openapiRequiredFields = new HashSet<String>(Arrays.asList("max_file_size_bytes", "ai_decompiler_unsupported_languages", "ai_decompiler_supported_models"));
}

/**
Expand Down Expand Up @@ -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 {
Expand Down
8 changes: 8 additions & 0 deletions src/test/java/ai/reveng/model/ConfigResponseTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,12 @@ public void aiDecompilerUnsupportedLanguagesTest() {
// TODO: test aiDecompilerUnsupportedLanguages
}

/**
* Test the property 'aiDecompilerSupportedModels'
*/
@Test
public void aiDecompilerSupportedModelsTest() {
// TODO: test aiDecompilerSupportedModels
}

}