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.91.1
v3.92.0
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ Class | Method | HTTP request | Description
*CollectionsApi* | [**v3_create_collection**](docs/CollectionsApi.md#v3_create_collection) | **POST** /v3/collections | Create a collection.
*CollectionsApi* | [**v3_get_collection**](docs/CollectionsApi.md#v3_get_collection) | **GET** /v3/collections/{collection_id} | Get a collection.
*CollectionsApi* | [**v3_list_collections**](docs/CollectionsApi.md#v3_list_collections) | **GET** /v3/collections | List collections.
*CollectionsApi* | [**v3_patch_collection_binaries**](docs/CollectionsApi.md#v3_patch_collection_binaries) | **PATCH** /v3/collections/{collection_id}/binaries | Replace the binaries in a collection.
*CollectionsApi* | [**v3_patch_collection_tags**](docs/CollectionsApi.md#v3_patch_collection_tags) | **PATCH** /v3/collections/{collection_id}/tags | Replace the tags on a collection.
*ConfigApi* | [**get_config**](docs/ConfigApi.md#get_config) | **GET** /v2/config | Get Config
*ConversationsApi* | [**cancel_run**](docs/ConversationsApi.md#cancel_run) | **POST** /v2/conversations/{id}/cancel | Cancel an active run
*ConversationsApi* | [**confirm_tool**](docs/ConversationsApi.md#confirm_tool) | **POST** /v2/conversations/{id}/confirm | Approve or reject a pending tool confirmation
Expand Down Expand Up @@ -498,6 +500,10 @@ Class | Method | HTTP request | Description
- [PEModel](docs/PEModel.md)
- [PaginationModel](docs/PaginationModel.md)
- [Params](docs/Params.md)
- [PatchCollectionBinariesInputBody](docs/PatchCollectionBinariesInputBody.md)
- [PatchCollectionBinariesOutputBody](docs/PatchCollectionBinariesOutputBody.md)
- [PatchCollectionTagsInputBody](docs/PatchCollectionTagsInputBody.md)
- [PatchCollectionTagsOutputBody](docs/PatchCollectionTagsOutputBody.md)
- [PatchCommentBody](docs/PatchCommentBody.md)
- [Platform](docs/Platform.md)
- [PriceOutput](docs/PriceOutput.md)
Expand Down
183 changes: 183 additions & 0 deletions docs/CollectionsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Method | HTTP request | Description
[**v3_create_collection**](CollectionsApi.md#v3_create_collection) | **POST** /v3/collections | Create a collection.
[**v3_get_collection**](CollectionsApi.md#v3_get_collection) | **GET** /v3/collections/{collection_id} | Get a collection.
[**v3_list_collections**](CollectionsApi.md#v3_list_collections) | **GET** /v3/collections | List collections.
[**v3_patch_collection_binaries**](CollectionsApi.md#v3_patch_collection_binaries) | **PATCH** /v3/collections/{collection_id}/binaries | Replace the binaries in a collection.
[**v3_patch_collection_tags**](CollectionsApi.md#v3_patch_collection_tags) | **PATCH** /v3/collections/{collection_id}/tags | Replace the tags on a collection.


# **create_collection**
Expand Down Expand Up @@ -885,3 +887,184 @@ Name | Type | Description | Notes

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **v3_patch_collection_binaries**
> PatchCollectionBinariesOutputBody v3_patch_collection_binaries(collection_id, patch_collection_binaries_input_body)

Replace the binaries in a collection.

Replaces the binaries linked to a collection with the supplied list. Binaries not present in the request are removed. All supplied binary IDs must belong to the same model as the collection.

**Error codes:**
- `404` [`NOT_FOUND`](/errors/NOT_FOUND) β€” Not Found
- `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) β€” Access Denied
- `422` [`VALIDATION_FAILED`](/errors/VALIDATION_FAILED) β€” Validation Failed

### Example

* Api Key Authentication (APIKey):

```python
import revengai
from revengai.models.patch_collection_binaries_input_body import PatchCollectionBinariesInputBody
from revengai.models.patch_collection_binaries_output_body import PatchCollectionBinariesOutputBody
from revengai.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.reveng.ai
# See configuration.py for a list of all supported configuration parameters.
configuration = revengai.Configuration(
host = "https://api.reveng.ai"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: APIKey
configuration.api_key['APIKey'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIKey'] = 'Bearer'

# Enter a context with an instance of the API client
with revengai.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = revengai.CollectionsApi(api_client)
collection_id = 56 # int |
patch_collection_binaries_input_body = revengai.PatchCollectionBinariesInputBody() # PatchCollectionBinariesInputBody |

try:
# Replace the binaries in a collection.
api_response = api_instance.v3_patch_collection_binaries(collection_id, patch_collection_binaries_input_body)
print("The response of CollectionsApi->v3_patch_collection_binaries:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling CollectionsApi->v3_patch_collection_binaries: %s\n" % e)
```



### Parameters


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**collection_id** | **int**| |
**patch_collection_binaries_input_body** | [**PatchCollectionBinariesInputBody**](PatchCollectionBinariesInputBody.md)| |

### Return type

[**PatchCollectionBinariesOutputBody**](PatchCollectionBinariesOutputBody.md)

### Authorization

[APIKey](../README.md#APIKey)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | OK | - |
**403** | Forbidden | - |
**404** | Not Found | - |
**422** | Unprocessable Entity | - |
**500** | Internal Server Error | - |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **v3_patch_collection_tags**
> PatchCollectionTagsOutputBody v3_patch_collection_tags(collection_id, patch_collection_tags_input_body)

Replace the tags on a collection.

Replaces the tags on a collection with the supplied list. Tags not present in the request are removed. Empty or whitespace-only tags are filtered; duplicates are deduplicated.

**Error codes:**
- `404` [`NOT_FOUND`](/errors/NOT_FOUND) β€” Not Found
- `403` [`ACCESS_DENIED`](/errors/ACCESS_DENIED) β€” Access Denied

### Example

* Api Key Authentication (APIKey):

```python
import revengai
from revengai.models.patch_collection_tags_input_body import PatchCollectionTagsInputBody
from revengai.models.patch_collection_tags_output_body import PatchCollectionTagsOutputBody
from revengai.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.reveng.ai
# See configuration.py for a list of all supported configuration parameters.
configuration = revengai.Configuration(
host = "https://api.reveng.ai"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: APIKey
configuration.api_key['APIKey'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIKey'] = 'Bearer'

# Enter a context with an instance of the API client
with revengai.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = revengai.CollectionsApi(api_client)
collection_id = 56 # int |
patch_collection_tags_input_body = revengai.PatchCollectionTagsInputBody() # PatchCollectionTagsInputBody |

try:
# Replace the tags on a collection.
api_response = api_instance.v3_patch_collection_tags(collection_id, patch_collection_tags_input_body)
print("The response of CollectionsApi->v3_patch_collection_tags:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling CollectionsApi->v3_patch_collection_tags: %s\n" % e)
```



### Parameters


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**collection_id** | **int**| |
**patch_collection_tags_input_body** | [**PatchCollectionTagsInputBody**](PatchCollectionTagsInputBody.md)| |

### Return type

[**PatchCollectionTagsOutputBody**](PatchCollectionTagsOutputBody.md)

### Authorization

[APIKey](../README.md#APIKey)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | OK | - |
**403** | Forbidden | - |
**404** | Not Found | - |
**422** | Unprocessable Entity | - |
**500** | Internal Server Error | - |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

29 changes: 29 additions & 0 deletions docs/PatchCollectionBinariesInputBody.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# PatchCollectionBinariesInputBody


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**binaries** | **List[int]** | Binary IDs to set on the collection. The collection's binaries are fully replaced with this list. |

## Example

```python
from revengai.models.patch_collection_binaries_input_body import PatchCollectionBinariesInputBody

# TODO update the JSON string below
json = "{}"
# create an instance of PatchCollectionBinariesInputBody from a JSON string
patch_collection_binaries_input_body_instance = PatchCollectionBinariesInputBody.from_json(json)
# print the JSON string representation of the object
print(PatchCollectionBinariesInputBody.to_json())

# convert the object into a dict
patch_collection_binaries_input_body_dict = patch_collection_binaries_input_body_instance.to_dict()
# create an instance of PatchCollectionBinariesInputBody from a dict
patch_collection_binaries_input_body_from_dict = PatchCollectionBinariesInputBody.from_dict(patch_collection_binaries_input_body_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


29 changes: 29 additions & 0 deletions docs/PatchCollectionBinariesOutputBody.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# PatchCollectionBinariesOutputBody


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**binaries** | [**List[Binary]**](Binary.md) | |

## Example

```python
from revengai.models.patch_collection_binaries_output_body import PatchCollectionBinariesOutputBody

# TODO update the JSON string below
json = "{}"
# create an instance of PatchCollectionBinariesOutputBody from a JSON string
patch_collection_binaries_output_body_instance = PatchCollectionBinariesOutputBody.from_json(json)
# print the JSON string representation of the object
print(PatchCollectionBinariesOutputBody.to_json())

# convert the object into a dict
patch_collection_binaries_output_body_dict = patch_collection_binaries_output_body_instance.to_dict()
# create an instance of PatchCollectionBinariesOutputBody from a dict
patch_collection_binaries_output_body_from_dict = PatchCollectionBinariesOutputBody.from_dict(patch_collection_binaries_output_body_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


29 changes: 29 additions & 0 deletions docs/PatchCollectionTagsInputBody.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# PatchCollectionTagsInputBody


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**tags** | **List[str]** | Tags to set on the collection. The collection's tags are fully replaced with this list. |

## Example

```python
from revengai.models.patch_collection_tags_input_body import PatchCollectionTagsInputBody

# TODO update the JSON string below
json = "{}"
# create an instance of PatchCollectionTagsInputBody from a JSON string
patch_collection_tags_input_body_instance = PatchCollectionTagsInputBody.from_json(json)
# print the JSON string representation of the object
print(PatchCollectionTagsInputBody.to_json())

# convert the object into a dict
patch_collection_tags_input_body_dict = patch_collection_tags_input_body_instance.to_dict()
# create an instance of PatchCollectionTagsInputBody from a dict
patch_collection_tags_input_body_from_dict = PatchCollectionTagsInputBody.from_dict(patch_collection_tags_input_body_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


29 changes: 29 additions & 0 deletions docs/PatchCollectionTagsOutputBody.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# PatchCollectionTagsOutputBody


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**tags** | **List[str]** | |

## Example

```python
from revengai.models.patch_collection_tags_output_body import PatchCollectionTagsOutputBody

# TODO update the JSON string below
json = "{}"
# create an instance of PatchCollectionTagsOutputBody from a JSON string
patch_collection_tags_output_body_instance = PatchCollectionTagsOutputBody.from_json(json)
# print the JSON string representation of the object
print(PatchCollectionTagsOutputBody.to_json())

# convert the object into a dict
patch_collection_tags_output_body_dict = patch_collection_tags_output_body_instance.to_dict()
# create an instance of PatchCollectionTagsOutputBody from a dict
patch_collection_tags_output_body_from_dict = PatchCollectionTagsOutputBody.from_dict(patch_collection_tags_output_body_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


6 changes: 4 additions & 2 deletions docs/SearchApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Method | HTTP request | Description


# **search_binaries**
> BaseResponseBinarySearchResponse search_binaries(page=page, page_size=page_size, partial_name=partial_name, partial_sha256=partial_sha256, tags=tags, model_name=model_name, user_files_only=user_files_only)
> BaseResponseBinarySearchResponse search_binaries(page=page, page_size=page_size, partial_name=partial_name, partial_sha256=partial_sha256, tags=tags, model_name=model_name, user_files_only=user_files_only, exclude_binary_id=exclude_binary_id)

Binaries search

Expand Down Expand Up @@ -55,10 +55,11 @@ with revengai.ApiClient(configuration) as api_client:
tags = ['tags_example'] # List[str] | The tags to be searched for (optional)
model_name = 'model_name_example' # str | The name of the model used to analyze the binary the function belongs to (optional)
user_files_only = False # bool | Whether to only search user's uploaded files (optional) (default to False)
exclude_binary_id = 56 # int | A binary ID to exclude from the results (optional)

try:
# Binaries search
api_response = api_instance.search_binaries(page=page, page_size=page_size, partial_name=partial_name, partial_sha256=partial_sha256, tags=tags, model_name=model_name, user_files_only=user_files_only)
api_response = api_instance.search_binaries(page=page, page_size=page_size, partial_name=partial_name, partial_sha256=partial_sha256, tags=tags, model_name=model_name, user_files_only=user_files_only, exclude_binary_id=exclude_binary_id)
print("The response of SearchApi->search_binaries:\n")
pprint(api_response)
except Exception as e:
Expand All @@ -79,6 +80,7 @@ Name | Type | Description | Notes
**tags** | [**List[str]**](str.md)| The tags to be searched for | [optional]
**model_name** | **str**| The name of the model used to analyze the binary the function belongs to | [optional]
**user_files_only** | **bool**| Whether to only search user's uploaded files | [optional] [default to False]
**exclude_binary_id** | **int**| A binary ID to exclude from the results | [optional]

### Return type

Expand Down
10 changes: 9 additions & 1 deletion revengai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
""" # noqa: E501


__version__ = "v3.91.1"
__version__ = "v3.92.0"

# Define package exports
__all__ = [
Expand Down Expand Up @@ -359,6 +359,10 @@
"PEModel",
"PaginationModel",
"Params",
"PatchCollectionBinariesInputBody",
"PatchCollectionBinariesOutputBody",
"PatchCollectionTagsInputBody",
"PatchCollectionTagsOutputBody",
"PatchCommentBody",
"Platform",
"PriceOutput",
Expand Down Expand Up @@ -815,6 +819,10 @@
from revengai.models.pe_model import PEModel as PEModel
from revengai.models.pagination_model import PaginationModel as PaginationModel
from revengai.models.params import Params as Params
from revengai.models.patch_collection_binaries_input_body import PatchCollectionBinariesInputBody as PatchCollectionBinariesInputBody
from revengai.models.patch_collection_binaries_output_body import PatchCollectionBinariesOutputBody as PatchCollectionBinariesOutputBody
from revengai.models.patch_collection_tags_input_body import PatchCollectionTagsInputBody as PatchCollectionTagsInputBody
from revengai.models.patch_collection_tags_output_body import PatchCollectionTagsOutputBody as PatchCollectionTagsOutputBody
from revengai.models.patch_comment_body import PatchCommentBody as PatchCommentBody
from revengai.models.platform import Platform as Platform
from revengai.models.price_output import PriceOutput as PriceOutput
Expand Down
Loading