Skip to content

Commit e23c27c

Browse files
Update SDK to version v2.75.0
- Generated from OpenAPI spec version v2.75.0 - Auto-generated by GitHub Actions
1 parent 5f324ef commit e23c27c

11 files changed

Lines changed: 131 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.74.0
1+
v2.75.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.74.0</version>
19+
<version>2.75.0</version>
2020
<scope>compile</scope>
2121
</dependency>
2222
```
@@ -31,7 +31,7 @@ repositories {
3131
}
3232
3333
dependencies {
34-
implementation "ai.reveng:sdk:2.74.0"
34+
implementation "ai.reveng:sdk:2.75.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.74.0'
22+
version = '2.75.0'
2323

2424

2525

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

174-
coordinates("ai.reveng", "sdk", "2.74.0")
174+
coordinates("ai.reveng", "sdk", "2.75.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.74.0",
5+
version := "2.75.0",
66
scalaVersion := "2.11.12",
77
scalacOptions ++= Seq("-feature"),
88
compile / javacOptions ++= Seq("-Xlint:deprecation"),

‎docs/FunctionListItem.md‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,23 @@
99
|------------ | ------------- | ------------- | -------------|
1010
|**id** | **Long** | Function id | |
1111
|**name** | **String** | Name of the function | |
12+
|**nameSourceType** | [**NameSourceTypeEnum**](#NameSourceTypeEnum) | The source (process) the function name came from | |
1213
|**mangledName** | **String** | Mangled name of the function | |
1314
|**vaddr** | **Long** | Function virtual address | |
1415
|**size** | **Integer** | Function size in bytes | |
1516
|**debug** | **Boolean** | Whether the function has debug information | |
1617

1718

1819

20+
## Enum: NameSourceTypeEnum
21+
22+
| Name | Value |
23+
|---- | -----|
24+
| SYSTEM | &quot;SYSTEM&quot; |
25+
| USER | &quot;USER&quot; |
26+
| AUTO_UNSTRIP | &quot;AUTO_UNSTRIP&quot; |
27+
| EXTERNAL | &quot;EXTERNAL&quot; |
28+
| AI_UNSTRIP | &quot;AI_UNSTRIP&quot; |
29+
30+
31+

‎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.74.0</version>
8+
<version>2.75.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/api/AnalysesResultsMetadataApi.java‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,9 @@ public okhttp3.Call getCommunitiesAsync(@javax.annotation.Nonnull Integer analys
511511
<tr><td> 200 </td><td> Successful Response </td><td> - </td></tr>
512512
<tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
513513
</table>
514+
* @deprecated
514515
*/
516+
@Deprecated
515517
public okhttp3.Call getFunctionsListCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable Integer minVAddr, @javax.annotation.Nullable Integer maxVAddr, final ApiCallback _callback) throws ApiException {
516518
String basePath = null;
517519
// Operation Servers
@@ -569,6 +571,7 @@ public okhttp3.Call getFunctionsListCall(@javax.annotation.Nonnull Integer analy
569571
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
570572
}
571573

574+
@Deprecated
572575
@SuppressWarnings("rawtypes")
573576
private okhttp3.Call getFunctionsListValidateBeforeCall(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable Integer minVAddr, @javax.annotation.Nullable Integer maxVAddr, final ApiCallback _callback) throws ApiException {
574577
// verify the required parameter 'analysisId' is set
@@ -596,7 +599,9 @@ private okhttp3.Call getFunctionsListValidateBeforeCall(@javax.annotation.Nonnul
596599
<tr><td> 200 </td><td> Successful Response </td><td> - </td></tr>
597600
<tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
598601
</table>
602+
* @deprecated
599603
*/
604+
@Deprecated
600605
public BaseResponseAnalysisFunctions getFunctionsList(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable Integer minVAddr, @javax.annotation.Nullable Integer maxVAddr) throws ApiException {
601606
ApiResponse<BaseResponseAnalysisFunctions> localVarResp = getFunctionsListWithHttpInfo(analysisId, searchTerm, minVAddr, maxVAddr);
602607
return localVarResp.getData();
@@ -618,7 +623,9 @@ public BaseResponseAnalysisFunctions getFunctionsList(@javax.annotation.Nonnull
618623
<tr><td> 200 </td><td> Successful Response </td><td> - </td></tr>
619624
<tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
620625
</table>
626+
* @deprecated
621627
*/
628+
@Deprecated
622629
public ApiResponse<BaseResponseAnalysisFunctions> getFunctionsListWithHttpInfo(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable Integer minVAddr, @javax.annotation.Nullable Integer maxVAddr) throws ApiException {
623630
okhttp3.Call localVarCall = getFunctionsListValidateBeforeCall(analysisId, searchTerm, minVAddr, maxVAddr, null);
624631
Type localVarReturnType = new TypeToken<BaseResponseAnalysisFunctions>(){}.getType();
@@ -642,7 +649,9 @@ public ApiResponse<BaseResponseAnalysisFunctions> getFunctionsListWithHttpInfo(@
642649
<tr><td> 200 </td><td> Successful Response </td><td> - </td></tr>
643650
<tr><td> 422 </td><td> Invalid request parameters </td><td> - </td></tr>
644651
</table>
652+
* @deprecated
645653
*/
654+
@Deprecated
646655
public okhttp3.Call getFunctionsListAsync(@javax.annotation.Nonnull Integer analysisId, @javax.annotation.Nullable String searchTerm, @javax.annotation.Nullable Integer minVAddr, @javax.annotation.Nullable Integer maxVAddr, final ApiCallback<BaseResponseAnalysisFunctions> _callback) throws ApiException {
647656

648657
okhttp3.Call localVarCall = getFunctionsListValidateBeforeCall(analysisId, searchTerm, minVAddr, maxVAddr, _callback);

‎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.74.0/java");
149+
setUserAgent("OpenAPI-Generator/2.75.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.74.0";
21+
public static final String VERSION = "2.75.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/FunctionListItem.java‎

Lines changed: 92 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,69 @@ public class FunctionListItem {
6161
@javax.annotation.Nonnull
6262
private String name;
6363

64+
/**
65+
* The source (process) the function name came from
66+
*/
67+
@JsonAdapter(NameSourceTypeEnum.Adapter.class)
68+
public enum NameSourceTypeEnum {
69+
SYSTEM("SYSTEM"),
70+
71+
USER("USER"),
72+
73+
AUTO_UNSTRIP("AUTO_UNSTRIP"),
74+
75+
EXTERNAL("EXTERNAL"),
76+
77+
AI_UNSTRIP("AI_UNSTRIP");
78+
79+
private String value;
80+
81+
NameSourceTypeEnum(String value) {
82+
this.value = value;
83+
}
84+
85+
public String getValue() {
86+
return value;
87+
}
88+
89+
@Override
90+
public String toString() {
91+
return String.valueOf(value);
92+
}
93+
94+
public static NameSourceTypeEnum fromValue(String value) {
95+
for (NameSourceTypeEnum b : NameSourceTypeEnum.values()) {
96+
if (b.value.equals(value)) {
97+
return b;
98+
}
99+
}
100+
throw new IllegalArgumentException("Unexpected value '" + value + "'");
101+
}
102+
103+
public static class Adapter extends TypeAdapter<NameSourceTypeEnum> {
104+
@Override
105+
public void write(final JsonWriter jsonWriter, final NameSourceTypeEnum enumeration) throws IOException {
106+
jsonWriter.value(enumeration.getValue());
107+
}
108+
109+
@Override
110+
public NameSourceTypeEnum read(final JsonReader jsonReader) throws IOException {
111+
String value = jsonReader.nextString();
112+
return NameSourceTypeEnum.fromValue(value);
113+
}
114+
}
115+
116+
public static void validateJsonElement(JsonElement jsonElement) throws IOException {
117+
String value = jsonElement.getAsString();
118+
NameSourceTypeEnum.fromValue(value);
119+
}
120+
}
121+
122+
public static final String SERIALIZED_NAME_NAME_SOURCE_TYPE = "name_source_type";
123+
@SerializedName(SERIALIZED_NAME_NAME_SOURCE_TYPE)
124+
@javax.annotation.Nonnull
125+
private NameSourceTypeEnum nameSourceType;
126+
64127
public static final String SERIALIZED_NAME_MANGLED_NAME = "mangled_name";
65128
@SerializedName(SERIALIZED_NAME_MANGLED_NAME)
66129
@javax.annotation.Nonnull
@@ -122,6 +185,25 @@ public void setName(@javax.annotation.Nonnull String name) {
122185
}
123186

124187

188+
public FunctionListItem nameSourceType(@javax.annotation.Nonnull NameSourceTypeEnum nameSourceType) {
189+
this.nameSourceType = nameSourceType;
190+
return this;
191+
}
192+
193+
/**
194+
* The source (process) the function name came from
195+
* @return nameSourceType
196+
*/
197+
@javax.annotation.Nonnull
198+
public NameSourceTypeEnum getNameSourceType() {
199+
return nameSourceType;
200+
}
201+
202+
public void setNameSourceType(@javax.annotation.Nonnull NameSourceTypeEnum nameSourceType) {
203+
this.nameSourceType = nameSourceType;
204+
}
205+
206+
125207
public FunctionListItem mangledName(@javax.annotation.Nonnull String mangledName) {
126208
this.mangledName = mangledName;
127209
return this;
@@ -254,6 +336,7 @@ public boolean equals(Object o) {
254336
FunctionListItem functionListItem = (FunctionListItem) o;
255337
return Objects.equals(this.id, functionListItem.id) &&
256338
Objects.equals(this.name, functionListItem.name) &&
339+
Objects.equals(this.nameSourceType, functionListItem.nameSourceType) &&
257340
Objects.equals(this.mangledName, functionListItem.mangledName) &&
258341
Objects.equals(this.vaddr, functionListItem.vaddr) &&
259342
Objects.equals(this.size, functionListItem.size) &&
@@ -263,7 +346,7 @@ public boolean equals(Object o) {
263346

264347
@Override
265348
public int hashCode() {
266-
return Objects.hash(id, name, mangledName, vaddr, size, debug, additionalProperties);
349+
return Objects.hash(id, name, nameSourceType, mangledName, vaddr, size, debug, additionalProperties);
267350
}
268351

269352
@Override
@@ -272,6 +355,7 @@ public String toString() {
272355
sb.append("class FunctionListItem {\n");
273356
sb.append(" id: ").append(toIndentedString(id)).append("\n");
274357
sb.append(" name: ").append(toIndentedString(name)).append("\n");
358+
sb.append(" nameSourceType: ").append(toIndentedString(nameSourceType)).append("\n");
275359
sb.append(" mangledName: ").append(toIndentedString(mangledName)).append("\n");
276360
sb.append(" vaddr: ").append(toIndentedString(vaddr)).append("\n");
277361
sb.append(" size: ").append(toIndentedString(size)).append("\n");
@@ -298,10 +382,10 @@ private String toIndentedString(Object o) {
298382

299383
static {
300384
// a set of all properties/fields (JSON key names)
301-
openapiFields = new HashSet<String>(Arrays.asList("id", "name", "mangled_name", "vaddr", "size", "debug"));
385+
openapiFields = new HashSet<String>(Arrays.asList("id", "name", "name_source_type", "mangled_name", "vaddr", "size", "debug"));
302386

303387
// a set of required properties/fields (JSON key names)
304-
openapiRequiredFields = new HashSet<String>(Arrays.asList("id", "name", "mangled_name", "vaddr", "size", "debug"));
388+
openapiRequiredFields = new HashSet<String>(Arrays.asList("id", "name", "name_source_type", "mangled_name", "vaddr", "size", "debug"));
305389
}
306390

307391
/**
@@ -327,6 +411,11 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
327411
if (!jsonObj.get("name").isJsonPrimitive()) {
328412
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString()));
329413
}
414+
if (!jsonObj.get("name_source_type").isJsonPrimitive()) {
415+
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `name_source_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name_source_type").toString()));
416+
}
417+
// validate the required field `name_source_type`
418+
NameSourceTypeEnum.validateJsonElement(jsonObj.get("name_source_type"));
330419
if (!jsonObj.get("mangled_name").isJsonPrimitive()) {
331420
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `mangled_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("mangled_name").toString()));
332421
}

0 commit comments

Comments
 (0)