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.118.0
v3.123.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.118.0</version>
<version>3.123.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -31,7 +31,7 @@ repositories {
}

dependencies {
implementation "ai.reveng:sdk:3.118.0"
implementation "ai.reveng:sdk:3.123.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.118.0'
version = '3.123.0'



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

coordinates("ai.reveng", "sdk", "3.118.0")
coordinates("ai.reveng", "sdk", "3.123.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.118.0",
version := "3.123.0",
scalaVersion := "2.11.12",
scalacOptions ++= Seq("-feature"),
compile / javacOptions ++= Seq("-Xlint:deprecation"),
Expand Down
2 changes: 2 additions & 0 deletions docs/AnalysisFunctionEntry.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
|**functionSize** | **Long** | | |
|**functionVaddr** | **Long** | | |
|**mangledName** | **String** | Search is applied to string value | [optional] |
|**sourceAnalysisId** | **Long** | ID of the analysis the source function belongs to, if any | [optional] |
|**sourceBinaryId** | **Long** | | [optional] |
|**sourceFunctionId** | **Long** | ID of the source function this name was transferred from, if any | [optional] |
|**sourceType** | **String** | | |


Expand Down
2 changes: 0 additions & 2 deletions docs/AppApiRestV2CollectionsEnumsOrderBy.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

* `COLLECTION` (value: `"collection"`)

* `MODEL` (value: `"model"`)

* `OWNER` (value: `"owner"`)

* `COLLECTION_SIZE` (value: `"collection_size"`)
Expand Down
1 change: 0 additions & 1 deletion docs/CollectionCreateRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
|**collectionScope** | **CollectionScope** | | [optional] |
|**tags** | **List&lt;String&gt;** | | [optional] |
|**binaries** | **List&lt;Integer&gt;** | | [optional] |
|**modelId** | **Integer** | | |



1 change: 0 additions & 1 deletion docs/CollectionListItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
|**collectionSize** | **Integer** | The size of the collection | |
|**collectionId** | **Integer** | The ID of the collection | |
|**creation** | **OffsetDateTime** | The datetime of when the collection was created | |
|**modelName** | **String** | The model being used for the collection | |
|**teamId** | **Integer** | The team ID for the collection | [optional] |


Expand Down
2 changes: 1 addition & 1 deletion docs/CollectionListItemBody.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
|**collectionTags** | **List&lt;String&gt;** | | |
|**creation** | **OffsetDateTime** | | |
|**description** | **String** | | |
|**modelName** | **String** | | |
|**officialCollection** | **Boolean** | | |
|**teamId** | **Long** | | |
|**updatedAt** | **OffsetDateTime** | | |



1 change: 0 additions & 1 deletion docs/CollectionResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
|**collectionId** | **Integer** | Collection ID | |
|**collectionName** | **String** | Collection name | |
|**description** | **String** | Collection description | |
|**modelId** | **Integer** | Collection model ID | |
|**userId** | **Integer** | Collection user ID | |
|**teamId** | **Integer** | Collection team ID | [optional] |
|**collectionScope** | **CollectionScope** | Collection public status | |
Expand Down
2 changes: 0 additions & 2 deletions docs/CollectionSearchResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
|**scope** | **String** | The scope of the collection | |
|**lastUpdatedAt** | **OffsetDateTime** | The last update date of the collection | |
|**createdAt** | **OffsetDateTime** | The creation date of the collection | |
|**modelId** | **Integer** | The model ID of the binary | |
|**modelName** | **String** | The name of the model | |
|**ownedBy** | **String** | The owner of the collection | |
|**tags** | **List&lt;String&gt;** | The tags of the collection | [optional] |
|**size** | **Integer** | The number of binaries in the collection | [optional] |
Expand Down
4 changes: 2 additions & 2 deletions docs/CollectionsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ public class Example {
| **filters** | [**List&lt;Filters&gt;**](Filters.md)| | [optional] |
| **limit** | **Integer**| | [optional] [default to 20] |
| **offset** | **Integer**| | [optional] [default to 0] |
| **orderBy** | [**AppApiRestV2CollectionsEnumsOrderBy**](.md)| | [optional] [default to collection] [enum: created, collection, model, owner, collection_size, updated] |
| **orderBy** | [**AppApiRestV2CollectionsEnumsOrderBy**](.md)| | [optional] [default to collection] [enum: created, collection, owner, collection_size, updated] |
| **order** | [**Order**](.md)| | [optional] [default to ASC] [enum: ASC, DESC] |

### Return type
Expand Down Expand Up @@ -865,7 +865,7 @@ public class Example {
| **filters** | [**List&lt;String&gt;**](String.md)| | [optional] [enum: official_only, user_only, team_only, public_only, hide_empty] |
| **limit** | **Long**| | [optional] [default to 20] |
| **offset** | **Long**| | [optional] [default to 0] |
| **orderBy** | **String**| | [optional] [default to collection] [enum: created, collection, model, collection_size, updated] |
| **orderBy** | **String**| | [optional] [default to collection] [enum: created, collection, collection_size, updated, owner] |
| **order** | **String**| | [optional] [default to ASC] [enum: ASC, DESC] |

### Return type
Expand Down
1 change: 0 additions & 1 deletion docs/CreateCollectionInputBody.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
|**collectionName** | **String** | Collection name. | |
|**collectionScope** | [**CollectionScopeEnum**](#CollectionScopeEnum) | Visibility scope. | |
|**description** | **String** | Collection description. | |
|**modelId** | **Long** | Model ID the collection is associated with. | |
|**tags** | **List&lt;String&gt;** | Optional tags to attach to the collection. | [optional] |


Expand Down
1 change: 0 additions & 1 deletion docs/CreateCollectionOutputBody.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
|**collectionScope** | **String** | | |
|**createdAt** | **OffsetDateTime** | | |
|**description** | **String** | | |
|**modelId** | **Long** | | |
|**tags** | **List&lt;String&gt;** | | [optional] |
|**teamId** | **Long** | | |
|**updatedAt** | **OffsetDateTime** | | |
Expand Down
2 changes: 2 additions & 0 deletions docs/ErrorBody.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
| INVALID_INVITE_CODE | &quot;INVALID_INVITE_CODE&quot; |
| INVALID_RESET_CODE | &quot;INVALID_RESET_CODE&quot; |
| LAST_ORG_OWNER | &quot;LAST_ORG_OWNER&quot; |
| LAST_TEAM_ADMIN | &quot;LAST_TEAM_ADMIN&quot; |
| LAST_TEAM_MEMBER | &quot;LAST_TEAM_MEMBER&quot; |
| LINKED_TO_ORG | &quot;LINKED_TO_ORG&quot; |
| METHOD_NOT_ALLOWED | &quot;METHOD_NOT_ALLOWED&quot; |
| NOT_ACCEPTABLE | &quot;NOT_ACCEPTABLE&quot; |
Expand Down
1 change: 0 additions & 1 deletion docs/GetCollectionOutputBody.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
|**createdAt** | **OffsetDateTime** | | |
|**description** | **String** | | |
|**hasNextPage** | **Boolean** | | [optional] |
|**modelId** | **Long** | | |
|**pageNumber** | **Long** | | [optional] |
|**pageSize** | **Long** | | [optional] |
|**tags** | **List&lt;String&gt;** | | [optional] |
Expand Down
2 changes: 2 additions & 0 deletions docs/HistoryEntry.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
|**historyId** | **Long** | History record ID | |
|**isDebug** | **Boolean** | Whether the function had debug info | |
|**mangledName** | **String** | Mangled function name | [optional] |
|**sourceAnalysisId** | **Long** | ID of the analysis the source function belongs to, if any | [optional] |
|**sourceFunctionId** | **Long** | ID of the source function this name was transferred from, if any | [optional] |
|**sourceType** | **String** | Source of the rename (USER, SYSTEM, AI_UNSTRIP, etc.) | |


Expand Down
27 changes: 27 additions & 0 deletions docs/MatchFilters.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,38 @@

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**arch** | [**ArchEnum**](#ArchEnum) | Restrict matches to this architecture (multi-platform models only; matches all architectures if omitted). Rejected for single-architecture models. | [optional] |
|**binaryIds** | **List&lt;Long&gt;** | Restrict the candidate pool to these binary IDs. | [optional] |
|**bits** | **Long** | Restrict matches to this word size (multi-platform models only). Rejected for single-architecture models. | [optional] |
|**collectionIds** | **List&lt;Long&gt;** | Restrict the candidate pool to binaries in these collection IDs. | [optional] |
|**debugTypes** | **List&lt;String&gt;** | Restrict matches to candidates with these debug source types. Accepted: SYSTEM, USER. | [optional] |
|**functionIds** | **List&lt;Long&gt;** | Restrict the candidate pool to these function IDs. | [optional] |
|**platform** | [**PlatformEnum**](#PlatformEnum) | Restrict matches to this platform (multi-platform models only; matches all platforms if omitted). Rejected for single-architecture models. | [optional] |
|**userIds** | **List&lt;Long&gt;** | Restrict the candidate pool to functions owned by these user IDs. | [optional] |



## Enum: ArchEnum

| Name | Value |
|---- | -----|
| X86 | &quot;x86&quot; |
| ARM | &quot;arm&quot; |
| UNKNOWN | &quot;unknown&quot; |
| UNKNOWN_DEFAULT_OPEN_API | &quot;unknown_default_open_api&quot; |



## Enum: PlatformEnum

| Name | Value |
|---- | -----|
| LINUX | &quot;linux&quot; |
| WINDOWS | &quot;windows&quot; |
| ANDROID | &quot;android&quot; |
| MACOS | &quot;macos&quot; |
| UNKNOWN | &quot;unknown&quot; |
| UNKNOWN_DEFAULT_OPEN_API | &quot;unknown_default_open_api&quot; |



1 change: 0 additions & 1 deletion docs/PatchCollectionOutputBody.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
|**collectionScope** | **String** | | |
|**createdAt** | **OffsetDateTime** | | |
|**description** | **String** | | |
|**modelId** | **Long** | | |
|**teamId** | **Long** | | |
|**updatedAt** | **OffsetDateTime** | | |
|**userId** | **Long** | | |
Expand Down
11 changes: 4 additions & 7 deletions docs/SearchApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public class Example {

<a id="searchCollections"></a>
# **searchCollections**
> BaseResponseCollectionSearchResponse searchCollections(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, modelName, filters, orderBy, orderByDirection)
> BaseResponseCollectionSearchResponse searchCollections(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, filters, orderBy, orderByDirection)

Collections search

Expand Down Expand Up @@ -138,12 +138,11 @@ public class Example {
String partialBinaryName = "partialBinaryName_example"; // String | The partial or full name of the binary belonging to the collection
String partialBinarySha256 = "partialBinarySha256_example"; // String | The partial or full sha256 of the binary belonging to the collection
List<String> tags = Arrays.asList(); // List<String> | The tags to be searched for
String modelName = "modelName_example"; // String | The name of the model used to analyze the binary the function belongs to
List<Filters> filters = Arrays.asList(); // List<Filters> | The filters to be used for the search
AppApiRestV2CollectionsEnumsOrderBy orderBy = AppApiRestV2CollectionsEnumsOrderBy.fromValue("created"); // AppApiRestV2CollectionsEnumsOrderBy | The field to sort the order by in the results
Order orderByDirection = Order.fromValue("ASC"); // Order | The order direction in which to return results
try {
BaseResponseCollectionSearchResponse result = apiInstance.searchCollections(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, modelName, filters, orderBy, orderByDirection);
BaseResponseCollectionSearchResponse result = apiInstance.searchCollections(page, pageSize, partialCollectionName, partialBinaryName, partialBinarySha256, tags, filters, orderBy, orderByDirection);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SearchApi#searchCollections");
Expand All @@ -166,9 +165,8 @@ public class Example {
| **partialBinaryName** | **String**| The partial or full name of the binary belonging to the collection | [optional] |
| **partialBinarySha256** | **String**| The partial or full sha256 of the binary belonging to the collection | [optional] |
| **tags** | [**List&lt;String&gt;**](String.md)| The tags to be searched for | [optional] |
| **modelName** | **String**| The name of the model used to analyze the binary the function belongs to | [optional] |
| **filters** | [**List&lt;Filters&gt;**](Filters.md)| The filters to be used for the search | [optional] |
| **orderBy** | [**AppApiRestV2CollectionsEnumsOrderBy**](.md)| The field to sort the order by in the results | [optional] [default to created] [enum: created, collection, model, owner, collection_size, updated] |
| **orderBy** | [**AppApiRestV2CollectionsEnumsOrderBy**](.md)| The field to sort the order by in the results | [optional] [default to created] [enum: created, collection, owner, collection_size, updated] |
| **orderByDirection** | [**Order**](.md)| The order direction in which to return results | [optional] [default to DESC] [enum: ASC, DESC] |

### Return type
Expand All @@ -188,8 +186,7 @@ public class Example {
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Successful Response | - |
| **422** | You must provide at least one of the filters; partial_collection_name, partial_binary_name, partial_binary_sha256, tags or model_name to search | - |
| **404** | The model name provided does not exist | - |
| **422** | You must provide at least one of the filters; partial_collection_name, partial_binary_name, partial_binary_sha256 or tags to search | - |

<a id="searchFunctions"></a>
# **searchFunctions**
Expand Down
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.118.0</version>
<version>3.123.0</version>
<url>https://github.com/RevEngAI/sdk-java</url>
<description>Java SDK for the RevEng.AI API</description>
<scm>
Expand Down
Loading