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.55.2
v3.56.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>3.55.2</version>
<version>3.56.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:3.55.2"
implementation "ai.reveng:sdk:3.56.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 = '3.55.2'
version = '3.56.0'



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

coordinates("ai.reveng", "sdk", "3.55.2")
coordinates("ai.reveng", "sdk", "3.56.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 := "3.55.2",
version := "3.56.0",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
4 changes: 2 additions & 2 deletions docs/AnalysisCreateRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**filename** | **String** | The name of the file | |
|**sha256Hash** | **String** | The name of the file | |
|**tags** | [**List&lt;Tag&gt;**](Tag.md) | List of community tags to assign to an analysis | [optional] |
|**sha256Hash** | **String** | The sha256 hash of the file | |
|**tags** | [**List&lt;Tag&gt;**](Tag.md) | List of tags to assign to an analysis | [optional] |
|**analysisScope** | **AnalysisScope** | The scope of the analysis determines who can access it | [optional] |
|**symbols** | [**Symbols**](Symbols.md) | | [optional] |
|**debugHash** | **String** | | [optional] |
Expand Down
2 changes: 0 additions & 2 deletions docs/AppApiRestV2FunctionsTypesFunction.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
|**functionVaddr** | **Long** | Function virtual address | |
|**functionSize** | **Integer** | Function size | |
|**debug** | **Boolean** | Whether the function is debug | |
|**embedding3d** | **List&lt;BigDecimal&gt;** | | [optional] |
|**embedding1d** | **List&lt;BigDecimal&gt;** | | [optional] |



2 changes: 0 additions & 2 deletions docs/FunctionsDetailResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
|**sha256Hash** | **String** | | |
|**debugHash** | **String** | | |
|**debug** | **Boolean** | | |
|**embedding3d** | **List&lt;BigDecimal&gt;** | | [optional] |
|**embedding1d** | **List&lt;BigDecimal&gt;** | | [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>3.55.2</version>
<version>3.56.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/3.55.2/java");
setUserAgent("OpenAPI-Generator/3.56.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 = "3.55.2";
public static final String VERSION = "3.56.0";

private static final AtomicReference<ApiClient> defaultApiClient = new AtomicReference<>();
private static volatile Supplier<ApiClient> apiClientFactory = ApiClient::new;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/ai/reveng/model/AnalysisCreateRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public AnalysisCreateRequest sha256Hash(@javax.annotation.Nonnull String sha256H
}

/**
* The name of the file
* The sha256 hash of the file
* @return sha256Hash
*/
@javax.annotation.Nonnull
Expand All @@ -160,7 +160,7 @@ public AnalysisCreateRequest addTagsItem(Tag tagsItem) {
}

/**
* List of community tags to assign to an analysis
* List of tags to assign to an analysis
* @return tags
*/
@javax.annotation.Nullable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.openapitools.jackson.nullable.JsonNullable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
Expand Down Expand Up @@ -85,16 +81,6 @@ public class AppApiRestV2FunctionsTypesFunction {
@javax.annotation.Nonnull
private Boolean debug;

public static final String SERIALIZED_NAME_EMBEDDING3D = "embedding_3d";
@SerializedName(SERIALIZED_NAME_EMBEDDING3D)
@javax.annotation.Nullable
private List<BigDecimal> embedding3d;

public static final String SERIALIZED_NAME_EMBEDDING1D = "embedding_1d";
@SerializedName(SERIALIZED_NAME_EMBEDDING1D)
@javax.annotation.Nullable
private List<BigDecimal> embedding1d;

public AppApiRestV2FunctionsTypesFunction() {
}

Expand Down Expand Up @@ -211,60 +197,6 @@ public void setDebug(@javax.annotation.Nonnull Boolean debug) {
this.debug = debug;
}


public AppApiRestV2FunctionsTypesFunction embedding3d(@javax.annotation.Nullable List<BigDecimal> embedding3d) {
this.embedding3d = embedding3d;
return this;
}

public AppApiRestV2FunctionsTypesFunction addEmbedding3dItem(BigDecimal embedding3dItem) {
if (this.embedding3d == null) {
this.embedding3d = new ArrayList<>();
}
this.embedding3d.add(embedding3dItem);
return this;
}

/**
* Get embedding3d
* @return embedding3d
*/
@javax.annotation.Nullable
public List<BigDecimal> getEmbedding3d() {
return embedding3d;
}

public void setEmbedding3d(@javax.annotation.Nullable List<BigDecimal> embedding3d) {
this.embedding3d = embedding3d;
}


public AppApiRestV2FunctionsTypesFunction embedding1d(@javax.annotation.Nullable List<BigDecimal> embedding1d) {
this.embedding1d = embedding1d;
return this;
}

public AppApiRestV2FunctionsTypesFunction addEmbedding1dItem(BigDecimal embedding1dItem) {
if (this.embedding1d == null) {
this.embedding1d = new ArrayList<>();
}
this.embedding1d.add(embedding1dItem);
return this;
}

/**
* Get embedding1d
* @return embedding1d
*/
@javax.annotation.Nullable
public List<BigDecimal> getEmbedding1d() {
return embedding1d;
}

public void setEmbedding1d(@javax.annotation.Nullable List<BigDecimal> embedding1d) {
this.embedding1d = embedding1d;
}

/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
Expand Down Expand Up @@ -325,26 +257,13 @@ public boolean equals(Object o) {
Objects.equals(this.functionMangledName, appApiRestV2FunctionsTypesFunction.functionMangledName) &&
Objects.equals(this.functionVaddr, appApiRestV2FunctionsTypesFunction.functionVaddr) &&
Objects.equals(this.functionSize, appApiRestV2FunctionsTypesFunction.functionSize) &&
Objects.equals(this.debug, appApiRestV2FunctionsTypesFunction.debug) &&
Objects.equals(this.embedding3d, appApiRestV2FunctionsTypesFunction.embedding3d) &&
Objects.equals(this.embedding1d, appApiRestV2FunctionsTypesFunction.embedding1d)&&
Objects.equals(this.debug, appApiRestV2FunctionsTypesFunction.debug)&&
Objects.equals(this.additionalProperties, appApiRestV2FunctionsTypesFunction.additionalProperties);
}

private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
}

@Override
public int hashCode() {
return Objects.hash(functionId, functionName, functionMangledName, functionVaddr, functionSize, debug, embedding3d, embedding1d, additionalProperties);
}

private static <T> int hashCodeNullable(JsonNullable<T> a) {
if (a == null) {
return 1;
}
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
return Objects.hash(functionId, functionName, functionMangledName, functionVaddr, functionSize, debug, additionalProperties);
}

@Override
Expand All @@ -357,8 +276,6 @@ public String toString() {
sb.append(" functionVaddr: ").append(toIndentedString(functionVaddr)).append("\n");
sb.append(" functionSize: ").append(toIndentedString(functionSize)).append("\n");
sb.append(" debug: ").append(toIndentedString(debug)).append("\n");
sb.append(" embedding3d: ").append(toIndentedString(embedding3d)).append("\n");
sb.append(" embedding1d: ").append(toIndentedString(embedding1d)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
Expand All @@ -381,7 +298,7 @@ private String toIndentedString(Object o) {

static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet<String>(Arrays.asList("function_id", "function_name", "function_mangled_name", "function_vaddr", "function_size", "debug", "embedding_3d", "embedding_1d"));
openapiFields = new HashSet<String>(Arrays.asList("function_id", "function_name", "function_mangled_name", "function_vaddr", "function_size", "debug"));

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>(Arrays.asList("function_id", "function_name", "function_mangled_name", "function_vaddr", "function_size", "debug"));
Expand Down Expand Up @@ -413,14 +330,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
if (!jsonObj.get("function_mangled_name").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `function_mangled_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("function_mangled_name").toString()));
}
// ensure the optional json data is an array if present
if (jsonObj.get("embedding_3d") != null && !jsonObj.get("embedding_3d").isJsonNull() && !jsonObj.get("embedding_3d").isJsonArray()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `embedding_3d` to be an array in the JSON string but got `%s`", jsonObj.get("embedding_3d").toString()));
}
// ensure the optional json data is an array if present
if (jsonObj.get("embedding_1d") != null && !jsonObj.get("embedding_1d").isJsonNull() && !jsonObj.get("embedding_1d").isJsonArray()) {
throw new IllegalArgumentException(String.format(Locale.ROOT, "Expected the field `embedding_1d` to be an array in the JSON string but got `%s`", jsonObj.get("embedding_1d").toString()));
}
}

public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
Expand Down
Loading