Skip to content

Commit d12646e

Browse files
authored
Merge pull request #54 from RevEngAI/sdk-update-v2.51.0
🤖 Update SDK to version v2.51.0
2 parents c04d0ff + 6c91a9b commit d12646e

10 files changed

Lines changed: 50 additions & 12 deletions

File tree

.sdk-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2.49.0
1+
v2.51.0

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Add this dependency to your project's POM:
1616
<dependency>
1717
<groupId>ai.reveng</groupId>
1818
<artifactId>sdk</artifactId>
19-
<version>2.49.0</version>
19+
<version>2.51.0</version>
2020
<scope>compile</scope>
2121
</dependency>
2222
```
@@ -31,7 +31,7 @@ repositories {
3131
}
3232
3333
dependencies {
34-
implementation "ai.reveng:sdk:2.49.0"
34+
implementation "ai.reveng:sdk:2.51.0"
3535
}
3636
```
3737

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ apply plugin: 'java'
1919
apply plugin: 'com.diffplug.spotless'
2020

2121
group = 'ai.reveng'
22-
version = '2.49.0'
22+
version = '2.51.0'
2323

2424

2525

@@ -171,7 +171,7 @@ mavenPublishing {
171171
publishToMavenCentral(true)
172172
signAllPublications()
173173

174-
coordinates("ai.reveng", "sdk", "2.49.0")
174+
coordinates("ai.reveng", "sdk", "2.51.0")
175175

176176
pom {
177177
name = "sdk"

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "ai.reveng",
44
name := "sdk",
5-
version := "2.49.0",
5+
version := "2.51.0",
66
scalaVersion := "2.11.12",
77
scalacOptions ++= Seq("-feature"),
88
compile / javacOptions ++= Seq("-Xlint:deprecation"),

docs/GetAiDecompilationTask.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
|**summary** | **String** | | [optional] |
1616
|**aiSummary** | **String** | | [optional] |
1717
|**rawAiSummary** | **String** | | [optional] |
18+
|**predictedFunctionName** | **String** | | [optional] |
1819

1920

2021

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>sdk</artifactId>
66
<packaging>jar</packaging>
77
<name>sdk</name>
8-
<version>2.49.0</version>
8+
<version>2.51.0</version>
99
<url>https://github.com/RevEngAI/sdk-java</url>
1010
<description>Java SDK for the RevEng.AI API</description>
1111
<scm>

src/main/java/ai/reveng/invoker/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ protected void init() {
146146
json = new JSON();
147147

148148
// Set default User-Agent.
149-
setUserAgent("OpenAPI-Generator/2.49.0/java");
149+
setUserAgent("OpenAPI-Generator/2.51.0/java");
150150

151151
authentications = new HashMap<String, Authentication>();
152152
}

src/main/java/ai/reveng/invoker/Configuration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
2020
public class Configuration {
21-
public static final String VERSION = "2.49.0";
21+
public static final String VERSION = "2.51.0";
2222

2323
private static final AtomicReference<ApiClient> defaultApiClient = new AtomicReference<>();
2424
private static volatile Supplier<ApiClient> apiClientFactory = ApiClient::new;

src/main/java/ai/reveng/model/GetAiDecompilationTask.java

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ public class GetAiDecompilationTask {
9696
@javax.annotation.Nullable
9797
private String rawAiSummary;
9898

99+
public static final String SERIALIZED_NAME_PREDICTED_FUNCTION_NAME = "predicted_function_name";
100+
@SerializedName(SERIALIZED_NAME_PREDICTED_FUNCTION_NAME)
101+
@javax.annotation.Nullable
102+
private String predictedFunctionName;
103+
99104
public GetAiDecompilationTask() {
100105
}
101106

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

266+
267+
public GetAiDecompilationTask predictedFunctionName(@javax.annotation.Nullable String predictedFunctionName) {
268+
this.predictedFunctionName = predictedFunctionName;
269+
return this;
270+
}
271+
272+
/**
273+
* Get predictedFunctionName
274+
* @return predictedFunctionName
275+
*/
276+
@javax.annotation.Nullable
277+
public String getPredictedFunctionName() {
278+
return predictedFunctionName;
279+
}
280+
281+
public void setPredictedFunctionName(@javax.annotation.Nullable String predictedFunctionName) {
282+
this.predictedFunctionName = predictedFunctionName;
283+
}
284+
261285
/**
262286
* A container for additional, undeclared properties.
263287
* This is a holder for any undeclared properties as specified with
@@ -320,7 +344,8 @@ public boolean equals(Object o) {
320344
Objects.equals(this.functionMappingFull, getAiDecompilationTask.functionMappingFull) &&
321345
Objects.equals(this.summary, getAiDecompilationTask.summary) &&
322346
Objects.equals(this.aiSummary, getAiDecompilationTask.aiSummary) &&
323-
Objects.equals(this.rawAiSummary, getAiDecompilationTask.rawAiSummary)&&
347+
Objects.equals(this.rawAiSummary, getAiDecompilationTask.rawAiSummary) &&
348+
Objects.equals(this.predictedFunctionName, getAiDecompilationTask.predictedFunctionName)&&
324349
Objects.equals(this.additionalProperties, getAiDecompilationTask.additionalProperties);
325350
}
326351

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

331356
@Override
332357
public int hashCode() {
333-
return Objects.hash(status, decompilation, rawDecompilation, functionMapping, functionMappingFull, summary, aiSummary, rawAiSummary, additionalProperties);
358+
return Objects.hash(status, decompilation, rawDecompilation, functionMapping, functionMappingFull, summary, aiSummary, rawAiSummary, predictedFunctionName, additionalProperties);
334359
}
335360

336361
private static <T> int hashCodeNullable(JsonNullable<T> a) {
@@ -352,6 +377,7 @@ public String toString() {
352377
sb.append(" summary: ").append(toIndentedString(summary)).append("\n");
353378
sb.append(" aiSummary: ").append(toIndentedString(aiSummary)).append("\n");
354379
sb.append(" rawAiSummary: ").append(toIndentedString(rawAiSummary)).append("\n");
380+
sb.append(" predictedFunctionName: ").append(toIndentedString(predictedFunctionName)).append("\n");
355381
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
356382
sb.append("}");
357383
return sb.toString();
@@ -374,7 +400,7 @@ private String toIndentedString(Object o) {
374400

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

379405
// a set of required properties/fields (JSON key names)
380406
openapiRequiredFields = new HashSet<String>(Arrays.asList("status", "decompilation", "raw_decompilation", "function_mapping", "function_mapping_full"));
@@ -420,6 +446,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
420446
if ((jsonObj.get("raw_ai_summary") != null && !jsonObj.get("raw_ai_summary").isJsonNull()) && !jsonObj.get("raw_ai_summary").isJsonPrimitive()) {
421447
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()));
422448
}
449+
if ((jsonObj.get("predicted_function_name") != null && !jsonObj.get("predicted_function_name").isJsonNull()) && !jsonObj.get("predicted_function_name").isJsonPrimitive()) {
450+
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()));
451+
}
423452
}
424453

425454
public static class CustomTypeAdapterFactory implements TypeAdapterFactory {

src/test/java/ai/reveng/model/GetAiDecompilationTaskTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,12 @@ public void rawAiSummaryTest() {
105105
// TODO: test rawAiSummary
106106
}
107107

108+
/**
109+
* Test the property 'predictedFunctionName'
110+
*/
111+
@Test
112+
public void predictedFunctionNameTest() {
113+
// TODO: test predictedFunctionName
114+
}
115+
108116
}

0 commit comments

Comments
 (0)