Skip to content

Commit 00136a6

Browse files
authored
Merge pull request #31 from RevEngAI/sdk-update-v2.13.0
🤖 Update SDK to version v2.13.0
2 parents 91ecd1f + 37f560e commit 00136a6

13 files changed

Lines changed: 194 additions & 19 deletions

.sdk-version

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

README.md

Lines changed: 3 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.12.1</version>
19+
<version>2.13.0</version>
2020
<scope>compile</scope>
2121
</dependency>
2222
```
@@ -31,7 +31,7 @@ repositories {
3131
}
3232
3333
dependencies {
34-
implementation "ai.reveng:sdk:2.12.1"
34+
implementation "ai.reveng:sdk:2.13.0"
3535
}
3636
```
3737

@@ -381,6 +381,7 @@ Class | Method | HTTP request | Description
381381
- [FunctionRenameMap](docs/FunctionRenameMap.md)
382382
- [FunctionSearchResponse](docs/FunctionSearchResponse.md)
383383
- [FunctionSearchResult](docs/FunctionSearchResult.md)
384+
- [FunctionSourceType](docs/FunctionSourceType.md)
384385
- [FunctionString](docs/FunctionString.md)
385386
- [FunctionStringsResponse](docs/FunctionStringsResponse.md)
386387
- [FunctionTaskResponse](docs/FunctionTaskResponse.md)

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.12.1'
22+
version = '2.13.0'
2323

2424

2525

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

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

docs/FunctionNameHistory.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
|**historyId** | **Integer** | The ID of the history record | |
1111
|**changeMadeBy** | **String** | The user who made the change | |
1212
|**functionName** | **String** | The name of the function | |
13+
|**mangledName** | **String** | The mangled name of the function | |
1314
|**isDebug** | **Boolean** | Whether the function is debugged | |
14-
|**sourceType** | **String** | The source type of the function | |
15+
|**sourceType** | **FunctionSourceType** | The source type of the function | |
1516
|**createdAt** | **String** | The timestamp when the function name was created | |
1617

1718

docs/FunctionSourceType.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
3+
# FunctionSourceType
4+
5+
## Enum
6+
7+
8+
* `SYSTEM` (value: `"SYSTEM"`)
9+
10+
* `USER` (value: `"USER"`)
11+
12+
* `EXTERNAL` (value: `"EXTERNAL"`)
13+
14+
* `AUTO_UNSTRIP` (value: `"AUTO_UNSTRIP"`)
15+
16+
* `AI_UNSTRIP` (value: `"AI_UNSTRIP"`)
17+
18+
19+

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.12.1</version>
8+
<version>2.13.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.12.1/java");
149+
setUserAgent("OpenAPI-Generator/2.13.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.12.1";
21+
public static final String VERSION = "2.13.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/FunctionNameHistory.java

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
import java.util.Objects;
1616
import java.util.Locale;
17+
import ai.reveng.model.FunctionSourceType;
1718
import com.google.gson.TypeAdapter;
1819
import com.google.gson.annotations.JsonAdapter;
1920
import com.google.gson.annotations.SerializedName;
@@ -66,6 +67,11 @@ public class FunctionNameHistory {
6667
@javax.annotation.Nonnull
6768
private String functionName;
6869

70+
public static final String SERIALIZED_NAME_MANGLED_NAME = "mangled_name";
71+
@SerializedName(SERIALIZED_NAME_MANGLED_NAME)
72+
@javax.annotation.Nonnull
73+
private String mangledName;
74+
6975
public static final String SERIALIZED_NAME_IS_DEBUG = "is_debug";
7076
@SerializedName(SERIALIZED_NAME_IS_DEBUG)
7177
@javax.annotation.Nonnull
@@ -74,7 +80,7 @@ public class FunctionNameHistory {
7480
public static final String SERIALIZED_NAME_SOURCE_TYPE = "source_type";
7581
@SerializedName(SERIALIZED_NAME_SOURCE_TYPE)
7682
@javax.annotation.Nonnull
77-
private String sourceType;
83+
private FunctionSourceType sourceType;
7884

7985
public static final String SERIALIZED_NAME_CREATED_AT = "created_at";
8086
@SerializedName(SERIALIZED_NAME_CREATED_AT)
@@ -141,6 +147,25 @@ public void setFunctionName(@javax.annotation.Nonnull String functionName) {
141147
}
142148

143149

150+
public FunctionNameHistory mangledName(@javax.annotation.Nonnull String mangledName) {
151+
this.mangledName = mangledName;
152+
return this;
153+
}
154+
155+
/**
156+
* The mangled name of the function
157+
* @return mangledName
158+
*/
159+
@javax.annotation.Nonnull
160+
public String getMangledName() {
161+
return mangledName;
162+
}
163+
164+
public void setMangledName(@javax.annotation.Nonnull String mangledName) {
165+
this.mangledName = mangledName;
166+
}
167+
168+
144169
public FunctionNameHistory isDebug(@javax.annotation.Nonnull Boolean isDebug) {
145170
this.isDebug = isDebug;
146171
return this;
@@ -160,7 +185,7 @@ public void setIsDebug(@javax.annotation.Nonnull Boolean isDebug) {
160185
}
161186

162187

163-
public FunctionNameHistory sourceType(@javax.annotation.Nonnull String sourceType) {
188+
public FunctionNameHistory sourceType(@javax.annotation.Nonnull FunctionSourceType sourceType) {
164189
this.sourceType = sourceType;
165190
return this;
166191
}
@@ -170,11 +195,11 @@ public FunctionNameHistory sourceType(@javax.annotation.Nonnull String sourceTyp
170195
* @return sourceType
171196
*/
172197
@javax.annotation.Nonnull
173-
public String getSourceType() {
198+
public FunctionSourceType getSourceType() {
174199
return sourceType;
175200
}
176201

177-
public void setSourceType(@javax.annotation.Nonnull String sourceType) {
202+
public void setSourceType(@javax.annotation.Nonnull FunctionSourceType sourceType) {
178203
this.sourceType = sourceType;
179204
}
180205

@@ -255,6 +280,7 @@ public boolean equals(Object o) {
255280
return Objects.equals(this.historyId, functionNameHistory.historyId) &&
256281
Objects.equals(this.changeMadeBy, functionNameHistory.changeMadeBy) &&
257282
Objects.equals(this.functionName, functionNameHistory.functionName) &&
283+
Objects.equals(this.mangledName, functionNameHistory.mangledName) &&
258284
Objects.equals(this.isDebug, functionNameHistory.isDebug) &&
259285
Objects.equals(this.sourceType, functionNameHistory.sourceType) &&
260286
Objects.equals(this.createdAt, functionNameHistory.createdAt)&&
@@ -263,7 +289,7 @@ public boolean equals(Object o) {
263289

264290
@Override
265291
public int hashCode() {
266-
return Objects.hash(historyId, changeMadeBy, functionName, isDebug, sourceType, createdAt, additionalProperties);
292+
return Objects.hash(historyId, changeMadeBy, functionName, mangledName, isDebug, sourceType, createdAt, additionalProperties);
267293
}
268294

269295
@Override
@@ -273,6 +299,7 @@ public String toString() {
273299
sb.append(" historyId: ").append(toIndentedString(historyId)).append("\n");
274300
sb.append(" changeMadeBy: ").append(toIndentedString(changeMadeBy)).append("\n");
275301
sb.append(" functionName: ").append(toIndentedString(functionName)).append("\n");
302+
sb.append(" mangledName: ").append(toIndentedString(mangledName)).append("\n");
276303
sb.append(" isDebug: ").append(toIndentedString(isDebug)).append("\n");
277304
sb.append(" sourceType: ").append(toIndentedString(sourceType)).append("\n");
278305
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
@@ -298,10 +325,10 @@ private String toIndentedString(Object o) {
298325

299326
static {
300327
// a set of all properties/fields (JSON key names)
301-
openapiFields = new HashSet<String>(Arrays.asList("history_id", "change_made_by", "function_name", "is_debug", "source_type", "created_at"));
328+
openapiFields = new HashSet<String>(Arrays.asList("history_id", "change_made_by", "function_name", "mangled_name", "is_debug", "source_type", "created_at"));
302329

303330
// a set of required properties/fields (JSON key names)
304-
openapiRequiredFields = new HashSet<String>(Arrays.asList("history_id", "change_made_by", "function_name", "is_debug", "source_type", "created_at"));
331+
openapiRequiredFields = new HashSet<String>(Arrays.asList("history_id", "change_made_by", "function_name", "mangled_name", "is_debug", "source_type", "created_at"));
305332
}
306333

307334
/**
@@ -330,9 +357,11 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
330357
if (!jsonObj.get("function_name").isJsonPrimitive()) {
331358
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `function_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("function_name").toString()));
332359
}
333-
if (!jsonObj.get("source_type").isJsonPrimitive()) {
334-
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `source_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source_type").toString()));
360+
if (!jsonObj.get("mangled_name").isJsonPrimitive()) {
361+
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()));
335362
}
363+
// validate the required field `source_type`
364+
FunctionSourceType.validateJsonElement(jsonObj.get("source_type"));
336365
if (!jsonObj.get("created_at").isJsonPrimitive()) {
337366
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `created_at` to be a primitive type in the JSON string but got `%s`", jsonObj.get("created_at").toString()));
338367
}

0 commit comments

Comments
 (0)