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 @@
v2.49.0
v2.51.0
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>2.49.0</version>
<version>2.51.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:2.49.0"
implementation "ai.reveng:sdk:2.51.0"
}
```

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 = '2.49.0'
version = '2.51.0'



Expand Down Expand Up @@ -171,7 +171,7 @@ mavenPublishing {
publishToMavenCentral(true)
signAllPublications()

coordinates("ai.reveng", "sdk", "2.49.0")
coordinates("ai.reveng", "sdk", "2.51.0")

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 := "2.49.0",
version := "2.51.0",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
1 change: 1 addition & 0 deletions docs/GetAiDecompilationTask.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
|**summary** | **String** | | [optional] |
|**aiSummary** | **String** | | [optional] |
|**rawAiSummary** | **String** | | [optional] |
|**predictedFunctionName** | **String** | | [optional] |



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>2.49.0</version>
<version>2.51.0</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/2.49.0/java");
setUserAgent("OpenAPI-Generator/2.51.0/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 = "2.49.0";
public static final String VERSION = "2.51.0";

private static final AtomicReference<ApiClient> defaultApiClient = new AtomicReference<>();
private static volatile Supplier<ApiClient> apiClientFactory = ApiClient::new;
Expand Down
35 changes: 32 additions & 3 deletions src/main/java/ai/reveng/model/GetAiDecompilationTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ public class GetAiDecompilationTask {
@javax.annotation.Nullable
private String rawAiSummary;

public static final String SERIALIZED_NAME_PREDICTED_FUNCTION_NAME = "predicted_function_name";
@SerializedName(SERIALIZED_NAME_PREDICTED_FUNCTION_NAME)
@javax.annotation.Nullable
private String predictedFunctionName;

public GetAiDecompilationTask() {
}

Expand Down Expand Up @@ -258,6 +263,25 @@ public void setRawAiSummary(@javax.annotation.Nullable String rawAiSummary) {
this.rawAiSummary = rawAiSummary;
}


public GetAiDecompilationTask predictedFunctionName(@javax.annotation.Nullable String predictedFunctionName) {
this.predictedFunctionName = predictedFunctionName;
return this;
}

/**
* Get predictedFunctionName
* @return predictedFunctionName
*/
@javax.annotation.Nullable
public String getPredictedFunctionName() {
return predictedFunctionName;
}

public void setPredictedFunctionName(@javax.annotation.Nullable String predictedFunctionName) {
this.predictedFunctionName = predictedFunctionName;
}

/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
Expand Down Expand Up @@ -320,7 +344,8 @@ public boolean equals(Object o) {
Objects.equals(this.functionMappingFull, getAiDecompilationTask.functionMappingFull) &&
Objects.equals(this.summary, getAiDecompilationTask.summary) &&
Objects.equals(this.aiSummary, getAiDecompilationTask.aiSummary) &&
Objects.equals(this.rawAiSummary, getAiDecompilationTask.rawAiSummary)&&
Objects.equals(this.rawAiSummary, getAiDecompilationTask.rawAiSummary) &&
Objects.equals(this.predictedFunctionName, getAiDecompilationTask.predictedFunctionName)&&
Objects.equals(this.additionalProperties, getAiDecompilationTask.additionalProperties);
}

Expand All @@ -330,7 +355,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)

@Override
public int hashCode() {
return Objects.hash(status, decompilation, rawDecompilation, functionMapping, functionMappingFull, summary, aiSummary, rawAiSummary, additionalProperties);
return Objects.hash(status, decompilation, rawDecompilation, functionMapping, functionMappingFull, summary, aiSummary, rawAiSummary, predictedFunctionName, additionalProperties);
}

private static <T> int hashCodeNullable(JsonNullable<T> a) {
Expand All @@ -352,6 +377,7 @@ public String toString() {
sb.append(" summary: ").append(toIndentedString(summary)).append("\n");
sb.append(" aiSummary: ").append(toIndentedString(aiSummary)).append("\n");
sb.append(" rawAiSummary: ").append(toIndentedString(rawAiSummary)).append("\n");
sb.append(" predictedFunctionName: ").append(toIndentedString(predictedFunctionName)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
Expand All @@ -374,7 +400,7 @@ private String toIndentedString(Object o) {

static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet<String>(Arrays.asList("status", "decompilation", "raw_decompilation", "function_mapping", "function_mapping_full", "summary", "ai_summary", "raw_ai_summary"));
openapiFields = new HashSet<String>(Arrays.asList("status", "decompilation", "raw_decompilation", "function_mapping", "function_mapping_full", "summary", "ai_summary", "raw_ai_summary", "predicted_function_name"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(Arrays.asList("status", "decompilation", "raw_decompilation", "function_mapping", "function_mapping_full"));
Expand Down Expand Up @@ -420,6 +446,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if ((jsonObj.get("raw_ai_summary") != null && !jsonObj.get("raw_ai_summary").isJsonNull()) && !jsonObj.get("raw_ai_summary").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `raw_ai_summary` to be a primitive type in the JSON string but got `%s`", jsonObj.get("raw_ai_summary").toString()));
}
if ((jsonObj.get("predicted_function_name") != null && !jsonObj.get("predicted_function_name").isJsonNull()) && !jsonObj.get("predicted_function_name").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `predicted_function_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("predicted_function_name").toString()));
}
}

public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,12 @@ public void rawAiSummaryTest() {
// TODO: test rawAiSummary
}

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

}