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 @@
v2.43.0
v2.46.0
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,10 +321,10 @@ Class | Method | HTTP request | Description
- [FunctionLocalVariableResponse](docs/FunctionLocalVariableResponse.md)
- [FunctionMapping](docs/FunctionMapping.md)
- [FunctionMappingFull](docs/FunctionMappingFull.md)
- [FunctionMatchingBatchResponse](docs/FunctionMatchingBatchResponse.md)
- [FunctionMatch](docs/FunctionMatch.md)
- [FunctionMatchingFilters](docs/FunctionMatchingFilters.md)
- [FunctionMatchingRequest](docs/FunctionMatchingRequest.md)
- [FunctionMatchingResultWithBestMatch](docs/FunctionMatchingResultWithBestMatch.md)
- [FunctionMatchingResponse](docs/FunctionMatchingResponse.md)
- [FunctionNameHistory](docs/FunctionNameHistory.md)
- [FunctionParamResponse](docs/FunctionParamResponse.md)
- [FunctionRename](docs/FunctionRename.md)
Expand Down
31 changes: 31 additions & 0 deletions docs/FunctionMatch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# FunctionMatch


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**function_id** | **int** | Unique identifier of the function |
**matched_functions** | [**List[MatchedFunction]**](MatchedFunction.md) | |
**confidences** | [**List[NameConfidence]**](NameConfidence.md) | | [optional]

## Example

```python
from revengai.models.function_match import FunctionMatch

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

# convert the object into a dict
function_match_dict = function_match_instance.to_dict()
# create an instance of FunctionMatch from a dict
function_match_from_dict = FunctionMatch.from_dict(function_match_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)


Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# FunctionMatchingBatchResponse
# FunctionMatchingResponse


## Properties
Expand All @@ -11,24 +11,27 @@ Name | Type | Description | Notes
**error_message** | **str** | | [optional]
**current_page** | **int** | | [optional]
**total_pages** | **int** | | [optional]
**matches** | [**List[FunctionMatchingResultWithBestMatch]**](FunctionMatchingResultWithBestMatch.md) | | [optional]
**matches** | [**List[FunctionMatch]**](FunctionMatch.md) | | [optional]
**num_matches** | **int** | | [optional]
**num_debug_matches** | **int** | | [optional]
**updated_at** | **str** | | [optional]

## Example

```python
from revengai.models.function_matching_batch_response import FunctionMatchingBatchResponse
from revengai.models.function_matching_response import FunctionMatchingResponse

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

# convert the object into a dict
function_matching_batch_response_dict = function_matching_batch_response_instance.to_dict()
# create an instance of FunctionMatchingBatchResponse from a dict
function_matching_batch_response_from_dict = FunctionMatchingBatchResponse.from_dict(function_matching_batch_response_dict)
function_matching_response_dict = function_matching_response_instance.to_dict()
# create an instance of FunctionMatchingResponse from a dict
function_matching_response_from_dict = FunctionMatchingResponse.from_dict(function_matching_response_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)

Expand Down
31 changes: 0 additions & 31 deletions docs/FunctionMatchingResultWithBestMatch.md

This file was deleted.

12 changes: 6 additions & 6 deletions docs/FunctionsCoreApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ 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)

# **analysis_function_matching**
> FunctionMatchingBatchResponse analysis_function_matching(analysis_id, analysis_function_matching_request)
> FunctionMatchingResponse analysis_function_matching(analysis_id, analysis_function_matching_request)

Perform matching for the functions of an analysis

Expand All @@ -115,7 +115,7 @@ Takes in an analysis id and settings and matches the nearest functions to the on
```python
import revengai
from revengai.models.analysis_function_matching_request import AnalysisFunctionMatchingRequest
from revengai.models.function_matching_batch_response import FunctionMatchingBatchResponse
from revengai.models.function_matching_response import FunctionMatchingResponse
from revengai.rest import ApiException
from pprint import pprint

Expand Down Expand Up @@ -164,7 +164,7 @@ Name | Type | Description | Notes

### Return type

[**FunctionMatchingBatchResponse**](FunctionMatchingBatchResponse.md)
[**FunctionMatchingResponse**](FunctionMatchingResponse.md)

### Authorization

Expand Down Expand Up @@ -268,7 +268,7 @@ 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)

# **batch_function_matching**
> FunctionMatchingBatchResponse batch_function_matching(function_matching_request)
> FunctionMatchingResponse batch_function_matching(function_matching_request)

Perform function matching for an arbitrary batch of functions, binaries or collections

Expand All @@ -280,8 +280,8 @@ Takes in an input of functions ID's and settings and finds the nearest functions

```python
import revengai
from revengai.models.function_matching_batch_response import FunctionMatchingBatchResponse
from revengai.models.function_matching_request import FunctionMatchingRequest
from revengai.models.function_matching_response import FunctionMatchingResponse
from revengai.rest import ApiException
from pprint import pprint

Expand Down Expand Up @@ -328,7 +328,7 @@ Name | Type | Description | Notes

### Return type

[**FunctionMatchingBatchResponse**](FunctionMatchingBatchResponse.md)
[**FunctionMatchingResponse**](FunctionMatchingResponse.md)

### Authorization

Expand Down
2 changes: 1 addition & 1 deletion docs/LoginRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**username** | **str** | User's username |
**username** | **str** | User's username or email |
**password** | **str** | User's password |

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


__version__ = "v2.43.0"
__version__ = "v2.46.0"

# Define package exports
__all__ = [
Expand Down Expand Up @@ -217,10 +217,10 @@
"FunctionLocalVariableResponse",
"FunctionMapping",
"FunctionMappingFull",
"FunctionMatchingBatchResponse",
"FunctionMatch",
"FunctionMatchingFilters",
"FunctionMatchingRequest",
"FunctionMatchingResultWithBestMatch",
"FunctionMatchingResponse",
"FunctionNameHistory",
"FunctionParamResponse",
"FunctionRename",
Expand Down Expand Up @@ -531,10 +531,10 @@
from revengai.models.function_local_variable_response import FunctionLocalVariableResponse as FunctionLocalVariableResponse
from revengai.models.function_mapping import FunctionMapping as FunctionMapping
from revengai.models.function_mapping_full import FunctionMappingFull as FunctionMappingFull
from revengai.models.function_matching_batch_response import FunctionMatchingBatchResponse as FunctionMatchingBatchResponse
from revengai.models.function_match import FunctionMatch as FunctionMatch
from revengai.models.function_matching_filters import FunctionMatchingFilters as FunctionMatchingFilters
from revengai.models.function_matching_request import FunctionMatchingRequest as FunctionMatchingRequest
from revengai.models.function_matching_result_with_best_match import FunctionMatchingResultWithBestMatch as FunctionMatchingResultWithBestMatch
from revengai.models.function_matching_response import FunctionMatchingResponse as FunctionMatchingResponse
from revengai.models.function_name_history import FunctionNameHistory as FunctionNameHistory
from revengai.models.function_param_response import FunctionParamResponse as FunctionParamResponse
from revengai.models.function_rename import FunctionRename as FunctionRename
Expand Down
22 changes: 11 additions & 11 deletions revengai/api/functions_core_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
from revengai.models.base_response_function_capability_response import BaseResponseFunctionCapabilityResponse
from revengai.models.base_response_function_strings_response import BaseResponseFunctionStringsResponse
from revengai.models.base_response_functions_detail_response import BaseResponseFunctionsDetailResponse
from revengai.models.function_matching_batch_response import FunctionMatchingBatchResponse
from revengai.models.function_matching_request import FunctionMatchingRequest
from revengai.models.function_matching_response import FunctionMatchingResponse

from revengai.api_client import ApiClient, RequestSerialized
from revengai.api_response import ApiResponse
Expand Down Expand Up @@ -358,7 +358,7 @@ def analysis_function_matching(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> FunctionMatchingBatchResponse:
) -> FunctionMatchingResponse:
"""Perform matching for the functions of an analysis

Takes in an analysis id and settings and matches the nearest functions to the ones associated with it. Results can optionally be filtered by collection, binary, debug type or (other) function ids
Expand Down Expand Up @@ -399,7 +399,7 @@ def analysis_function_matching(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "FunctionMatchingBatchResponse",
'200': "FunctionMatchingResponse",
'422': "BaseResponse",
}
response_data = self.api_client.call_api(
Expand Down Expand Up @@ -430,7 +430,7 @@ def analysis_function_matching_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[FunctionMatchingBatchResponse]:
) -> ApiResponse[FunctionMatchingResponse]:
"""Perform matching for the functions of an analysis

Takes in an analysis id and settings and matches the nearest functions to the ones associated with it. Results can optionally be filtered by collection, binary, debug type or (other) function ids
Expand Down Expand Up @@ -471,7 +471,7 @@ def analysis_function_matching_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "FunctionMatchingBatchResponse",
'200': "FunctionMatchingResponse",
'422': "BaseResponse",
}
response_data = self.api_client.call_api(
Expand Down Expand Up @@ -543,7 +543,7 @@ def analysis_function_matching_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "FunctionMatchingBatchResponse",
'200': "FunctionMatchingResponse",
'422': "BaseResponse",
}
response_data = self.api_client.call_api(
Expand Down Expand Up @@ -941,7 +941,7 @@ def batch_function_matching(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> FunctionMatchingBatchResponse:
) -> FunctionMatchingResponse:
"""Perform function matching for an arbitrary batch of functions, binaries or collections

Takes in an input of functions ID's and settings and finds the nearest functions for each function that's within the system
Expand Down Expand Up @@ -979,7 +979,7 @@ def batch_function_matching(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "FunctionMatchingBatchResponse",
'200': "FunctionMatchingResponse",
'422': "BaseResponse",
}
response_data = self.api_client.call_api(
Expand Down Expand Up @@ -1009,7 +1009,7 @@ def batch_function_matching_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[FunctionMatchingBatchResponse]:
) -> ApiResponse[FunctionMatchingResponse]:
"""Perform function matching for an arbitrary batch of functions, binaries or collections

Takes in an input of functions ID's and settings and finds the nearest functions for each function that's within the system
Expand Down Expand Up @@ -1047,7 +1047,7 @@ def batch_function_matching_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "FunctionMatchingBatchResponse",
'200': "FunctionMatchingResponse",
'422': "BaseResponse",
}
response_data = self.api_client.call_api(
Expand Down Expand Up @@ -1115,7 +1115,7 @@ def batch_function_matching_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "FunctionMatchingBatchResponse",
'200': "FunctionMatchingResponse",
'422': "BaseResponse",
}
response_data = self.api_client.call_api(
Expand Down
2 changes: 1 addition & 1 deletion revengai/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/v2.43.0/python'
self.user_agent = 'OpenAPI-Generator/v2.46.0/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
4 changes: 2 additions & 2 deletions revengai/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,8 @@ def to_debug_report(self) -> str:
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: v2.43.0\n"\
"SDK Package Version: v2.43.0".\
"Version of the API: v2.46.0\n"\
"SDK Package Version: v2.46.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self) -> List[HostSetting]:
Expand Down
4 changes: 2 additions & 2 deletions revengai/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@
from revengai.models.function_local_variable_response import FunctionLocalVariableResponse
from revengai.models.function_mapping import FunctionMapping
from revengai.models.function_mapping_full import FunctionMappingFull
from revengai.models.function_matching_batch_response import FunctionMatchingBatchResponse
from revengai.models.function_match import FunctionMatch
from revengai.models.function_matching_filters import FunctionMatchingFilters
from revengai.models.function_matching_request import FunctionMatchingRequest
from revengai.models.function_matching_result_with_best_match import FunctionMatchingResultWithBestMatch
from revengai.models.function_matching_response import FunctionMatchingResponse
from revengai.models.function_name_history import FunctionNameHistory
from revengai.models.function_param_response import FunctionParamResponse
from revengai.models.function_rename import FunctionRename
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
from typing import Optional, Set
from typing_extensions import Self

class FunctionMatchingResultWithBestMatch(BaseModel):
class FunctionMatch(BaseModel):
"""
FunctionMatchingResultWithBestMatch
FunctionMatch
""" # noqa: E501
function_id: StrictInt = Field(description="Unique identifier of the function")
matched_functions: List[MatchedFunction]
Expand All @@ -50,7 +50,7 @@ def to_json(self) -> str:

@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
"""Create an instance of FunctionMatchingResultWithBestMatch from a JSON string"""
"""Create an instance of FunctionMatch from a JSON string"""
return cls.from_dict(json.loads(json_str))

def to_dict(self) -> Dict[str, Any]:
Expand Down Expand Up @@ -94,7 +94,7 @@ def to_dict(self) -> Dict[str, Any]:

@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"""Create an instance of FunctionMatchingResultWithBestMatch from a dict"""
"""Create an instance of FunctionMatch from a dict"""
if obj is None:
return None

Expand Down
Loading