Skip to content

Commit d88242e

Browse files
authored
Merge pull request #17 from RevEngAI/sdk-update-v1.89.2
🤖 Update SDK to version v1.89.2
2 parents f2984be + 7987e9e commit d88242e

22 files changed

Lines changed: 182 additions & 153 deletions

.sdk-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.88.0
1+
v1.89.2

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,10 +358,10 @@ Class | Method | HTTP request | Description
358358
- [FunctionLocalVariableResponse](docs/FunctionLocalVariableResponse.md)
359359
- [FunctionMapping](docs/FunctionMapping.md)
360360
- [FunctionMappingFull](docs/FunctionMappingFull.md)
361-
- [FunctionMatchingBatchRequest](docs/FunctionMatchingBatchRequest.md)
362361
- [FunctionMatchingBatchResponse](docs/FunctionMatchingBatchResponse.md)
362+
- [FunctionMatchingFilters](docs/FunctionMatchingFilters.md)
363+
- [FunctionMatchingRequest](docs/FunctionMatchingRequest.md)
363364
- [FunctionMatchingResultWithBestMatch](docs/FunctionMatchingResultWithBestMatch.md)
364-
- [FunctionMatchingScopeRequest](docs/FunctionMatchingScopeRequest.md)
365365
- [FunctionNameConfidenceBody](docs/FunctionNameConfidenceBody.md)
366366
- [FunctionNameHistory](docs/FunctionNameHistory.md)
367367
- [FunctionNameInput](docs/FunctionNameInput.md)

docs/AnalysisFunctionMatchingRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**min_similarity** | **float** | Minimum similarity expected for a match, default is 0.9 | [optional] [default to 0.9]
9+
**filters** | [**FunctionMatchingFilters**](FunctionMatchingFilters.md) | | [optional]
910

1011
## Example
1112

docs/FunctionMatchingBatchRequest.md

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# FunctionMatchingScopeRequest
1+
# FunctionMatchingFilters
22

33

44
## Properties
@@ -8,25 +8,24 @@ Name | Type | Description | Notes
88
**binary_ids** | **List[int]** | ID's of binaries to limit the search to, if empty, search all scoped binaries | [optional] [default to []]
99
**collection_ids** | **List[int]** | ID's of collections to limit the search to, if empty, search all scoped collections | [optional] [default to []]
1010
**function_ids** | **List[int]** | ID's of functions to limit the search to, if empty, search all scoped functions | [optional] [default to []]
11-
**min_similarity** | **float** | Minimum similarity expected for a match, default is 0.9 | [optional] [default to 0.9]
1211
**debug_types** | **List[str]** | Limit the search to specific debug types, if empty, search all scoped debug & non-debug functions | [optional] [default to []]
1312

1413
## Example
1514

1615
```python
17-
from revengai.models.function_matching_scope_request import FunctionMatchingScopeRequest
16+
from revengai.models.function_matching_filters import FunctionMatchingFilters
1817

1918
# TODO update the JSON string below
2019
json = "{}"
21-
# create an instance of FunctionMatchingScopeRequest from a JSON string
22-
function_matching_scope_request_instance = FunctionMatchingScopeRequest.from_json(json)
20+
# create an instance of FunctionMatchingFilters from a JSON string
21+
function_matching_filters_instance = FunctionMatchingFilters.from_json(json)
2322
# print the JSON string representation of the object
24-
print(FunctionMatchingScopeRequest.to_json())
23+
print(FunctionMatchingFilters.to_json())
2524

2625
# convert the object into a dict
27-
function_matching_scope_request_dict = function_matching_scope_request_instance.to_dict()
28-
# create an instance of FunctionMatchingScopeRequest from a dict
29-
function_matching_scope_request_from_dict = FunctionMatchingScopeRequest.from_dict(function_matching_scope_request_dict)
26+
function_matching_filters_dict = function_matching_filters_instance.to_dict()
27+
# create an instance of FunctionMatchingFilters from a dict
28+
function_matching_filters_from_dict = FunctionMatchingFilters.from_dict(function_matching_filters_dict)
3029
```
3130
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
3231

docs/FunctionMatchingRequest.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# FunctionMatchingRequest
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**model_id** | **int** | ID of the model used for function matching, used to determine the embedding model |
9+
**function_ids** | **List[int]** | ID's of functions to find matches for, must be at least one function ID |
10+
**min_similarity** | **float** | Minimum similarity expected for a match, default is 0.9 | [optional] [default to 0.9]
11+
**filters** | [**FunctionMatchingFilters**](FunctionMatchingFilters.md) | | [optional]
12+
13+
## Example
14+
15+
```python
16+
from revengai.models.function_matching_request import FunctionMatchingRequest
17+
18+
# TODO update the JSON string below
19+
json = "{}"
20+
# create an instance of FunctionMatchingRequest from a JSON string
21+
function_matching_request_instance = FunctionMatchingRequest.from_json(json)
22+
# print the JSON string representation of the object
23+
print(FunctionMatchingRequest.to_json())
24+
25+
# convert the object into a dict
26+
function_matching_request_dict = function_matching_request_instance.to_dict()
27+
# create an instance of FunctionMatchingRequest from a dict
28+
function_matching_request_from_dict = FunctionMatchingRequest.from_dict(function_matching_request_dict)
29+
```
30+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
31+
32+

docs/FunctionMatchingResultWithBestMatch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**function_id** | **int** | |
9-
**similarity** | **float** | |
109
**matched_function** | [**MatchedFunction**](MatchedFunction.md) | |
1110
**suggested_name** | **str** | | [optional]
11+
**suggested_name_confidence** | **float** | | [optional]
1212

1313
## Example
1414

docs/FunctionsCoreApi.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Name | Type | Description | Notes
109109
110110
Perform matching for the functions of an analysis
111111

112-
Takes in an analysis id and settings and finds the nearest functions for each function that's within the system
112+
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
113113

114114
### Example
115115

@@ -275,7 +275,7 @@ Name | Type | Description | Notes
275275
[[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)
276276

277277
# **batch_function_matching**
278-
> FunctionMatchingBatchResponse batch_function_matching(function_matching_batch_request, authorization=authorization)
278+
> FunctionMatchingBatchResponse batch_function_matching(function_matching_request, authorization=authorization)
279279
280280
Perform function matching for an arbitrary batch of functions, binaries or collections
281281

@@ -287,8 +287,8 @@ Takes in an input of functions ID's and settings and finds the nearest functions
287287

288288
```python
289289
import revengai
290-
from revengai.models.function_matching_batch_request import FunctionMatchingBatchRequest
291290
from revengai.models.function_matching_batch_response import FunctionMatchingBatchResponse
291+
from revengai.models.function_matching_request import FunctionMatchingRequest
292292
from revengai.rest import ApiException
293293
from pprint import pprint
294294

@@ -313,12 +313,12 @@ configuration.api_key['APIKey'] = os.environ["API_KEY"]
313313
with revengai.ApiClient(configuration) as api_client:
314314
# Create an instance of the API class
315315
api_instance = revengai.FunctionsCoreApi(api_client)
316-
function_matching_batch_request = revengai.FunctionMatchingBatchRequest() # FunctionMatchingBatchRequest |
316+
function_matching_request = revengai.FunctionMatchingRequest() # FunctionMatchingRequest |
317317
authorization = 'authorization_example' # str | API Key bearer token (optional)
318318

319319
try:
320320
# Perform function matching for an arbitrary batch of functions, binaries or collections
321-
api_response = api_instance.batch_function_matching(function_matching_batch_request, authorization=authorization)
321+
api_response = api_instance.batch_function_matching(function_matching_request, authorization=authorization)
322322
print("The response of FunctionsCoreApi->batch_function_matching:\n")
323323
pprint(api_response)
324324
except Exception as e:
@@ -332,7 +332,7 @@ with revengai.ApiClient(configuration) as api_client:
332332

333333
Name | Type | Description | Notes
334334
------------- | ------------- | ------------- | -------------
335-
**function_matching_batch_request** | [**FunctionMatchingBatchRequest**](FunctionMatchingBatchRequest.md)| |
335+
**function_matching_request** | [**FunctionMatchingRequest**](FunctionMatchingRequest.md)| |
336336
**authorization** | **str**| API Key bearer token | [optional]
337337

338338
### Return type

revengai/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
""" # noqa: E501
1414

1515

16-
__version__ = "v1.88.0"
16+
__version__ = "v1.89.2"
1717

1818
# Define package exports
1919
__all__ = [
@@ -242,10 +242,10 @@
242242
"FunctionLocalVariableResponse",
243243
"FunctionMapping",
244244
"FunctionMappingFull",
245-
"FunctionMatchingBatchRequest",
246245
"FunctionMatchingBatchResponse",
246+
"FunctionMatchingFilters",
247+
"FunctionMatchingRequest",
247248
"FunctionMatchingResultWithBestMatch",
248-
"FunctionMatchingScopeRequest",
249249
"FunctionNameConfidenceBody",
250250
"FunctionNameHistory",
251251
"FunctionNameInput",
@@ -590,10 +590,10 @@
590590
from revengai.models.function_local_variable_response import FunctionLocalVariableResponse as FunctionLocalVariableResponse
591591
from revengai.models.function_mapping import FunctionMapping as FunctionMapping
592592
from revengai.models.function_mapping_full import FunctionMappingFull as FunctionMappingFull
593-
from revengai.models.function_matching_batch_request import FunctionMatchingBatchRequest as FunctionMatchingBatchRequest
594593
from revengai.models.function_matching_batch_response import FunctionMatchingBatchResponse as FunctionMatchingBatchResponse
594+
from revengai.models.function_matching_filters import FunctionMatchingFilters as FunctionMatchingFilters
595+
from revengai.models.function_matching_request import FunctionMatchingRequest as FunctionMatchingRequest
595596
from revengai.models.function_matching_result_with_best_match import FunctionMatchingResultWithBestMatch as FunctionMatchingResultWithBestMatch
596-
from revengai.models.function_matching_scope_request import FunctionMatchingScopeRequest as FunctionMatchingScopeRequest
597597
from revengai.models.function_name_confidence_body import FunctionNameConfidenceBody as FunctionNameConfidenceBody
598598
from revengai.models.function_name_history import FunctionNameHistory as FunctionNameHistory
599599
from revengai.models.function_name_input import FunctionNameInput as FunctionNameInput

revengai/api/functions_core_api.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
from revengai.models.base_response_function_strings_response import BaseResponseFunctionStringsResponse
3030
from revengai.models.base_response_functions_detail_response import BaseResponseFunctionsDetailResponse
3131
from revengai.models.base_response_list_similar_functions_response import BaseResponseListSimilarFunctionsResponse
32-
from revengai.models.function_matching_batch_request import FunctionMatchingBatchRequest
3332
from revengai.models.function_matching_batch_response import FunctionMatchingBatchResponse
33+
from revengai.models.function_matching_request import FunctionMatchingRequest
3434

3535
from revengai.api_client import ApiClient, RequestSerialized
3636
from revengai.api_response import ApiResponse
@@ -378,7 +378,7 @@ def analysis_function_matching(
378378
) -> FunctionMatchingBatchResponse:
379379
"""Perform matching for the functions of an analysis
380380
381-
Takes in an analysis id and settings and finds the nearest functions for each function that's within the system
381+
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
382382
383383
:param analysis_id: (required)
384384
:type analysis_id: int
@@ -454,7 +454,7 @@ def analysis_function_matching_with_http_info(
454454
) -> ApiResponse[FunctionMatchingBatchResponse]:
455455
"""Perform matching for the functions of an analysis
456456
457-
Takes in an analysis id and settings and finds the nearest functions for each function that's within the system
457+
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
458458
459459
:param analysis_id: (required)
460460
:type analysis_id: int
@@ -530,7 +530,7 @@ def analysis_function_matching_without_preload_content(
530530
) -> RESTResponseType:
531531
"""Perform matching for the functions of an analysis
532532
533-
Takes in an analysis id and settings and finds the nearest functions for each function that's within the system
533+
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
534534
535535
:param analysis_id: (required)
536536
:type analysis_id: int
@@ -974,7 +974,7 @@ def _auto_unstrip_serialize(
974974
@validate_call
975975
def batch_function_matching(
976976
self,
977-
function_matching_batch_request: FunctionMatchingBatchRequest,
977+
function_matching_request: FunctionMatchingRequest,
978978
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
979979
_request_timeout: Union[
980980
None,
@@ -993,8 +993,8 @@ def batch_function_matching(
993993
994994
Takes in an input of functions ID's and settings and finds the nearest functions for each function that's within the system
995995
996-
:param function_matching_batch_request: (required)
997-
:type function_matching_batch_request: FunctionMatchingBatchRequest
996+
:param function_matching_request: (required)
997+
:type function_matching_request: FunctionMatchingRequest
998998
:param authorization: API Key bearer token
999999
:type authorization: str
10001000
:param _request_timeout: timeout setting for this request. If one
@@ -1020,7 +1020,7 @@ def batch_function_matching(
10201020
""" # noqa: E501
10211021

10221022
_param = self._batch_function_matching_serialize(
1023-
function_matching_batch_request=function_matching_batch_request,
1023+
function_matching_request=function_matching_request,
10241024
authorization=authorization,
10251025
_request_auth=_request_auth,
10261026
_content_type=_content_type,
@@ -1046,7 +1046,7 @@ def batch_function_matching(
10461046
@validate_call
10471047
def batch_function_matching_with_http_info(
10481048
self,
1049-
function_matching_batch_request: FunctionMatchingBatchRequest,
1049+
function_matching_request: FunctionMatchingRequest,
10501050
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
10511051
_request_timeout: Union[
10521052
None,
@@ -1065,8 +1065,8 @@ def batch_function_matching_with_http_info(
10651065
10661066
Takes in an input of functions ID's and settings and finds the nearest functions for each function that's within the system
10671067
1068-
:param function_matching_batch_request: (required)
1069-
:type function_matching_batch_request: FunctionMatchingBatchRequest
1068+
:param function_matching_request: (required)
1069+
:type function_matching_request: FunctionMatchingRequest
10701070
:param authorization: API Key bearer token
10711071
:type authorization: str
10721072
:param _request_timeout: timeout setting for this request. If one
@@ -1092,7 +1092,7 @@ def batch_function_matching_with_http_info(
10921092
""" # noqa: E501
10931093

10941094
_param = self._batch_function_matching_serialize(
1095-
function_matching_batch_request=function_matching_batch_request,
1095+
function_matching_request=function_matching_request,
10961096
authorization=authorization,
10971097
_request_auth=_request_auth,
10981098
_content_type=_content_type,
@@ -1118,7 +1118,7 @@ def batch_function_matching_with_http_info(
11181118
@validate_call
11191119
def batch_function_matching_without_preload_content(
11201120
self,
1121-
function_matching_batch_request: FunctionMatchingBatchRequest,
1121+
function_matching_request: FunctionMatchingRequest,
11221122
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
11231123
_request_timeout: Union[
11241124
None,
@@ -1137,8 +1137,8 @@ def batch_function_matching_without_preload_content(
11371137
11381138
Takes in an input of functions ID's and settings and finds the nearest functions for each function that's within the system
11391139
1140-
:param function_matching_batch_request: (required)
1141-
:type function_matching_batch_request: FunctionMatchingBatchRequest
1140+
:param function_matching_request: (required)
1141+
:type function_matching_request: FunctionMatchingRequest
11421142
:param authorization: API Key bearer token
11431143
:type authorization: str
11441144
:param _request_timeout: timeout setting for this request. If one
@@ -1164,7 +1164,7 @@ def batch_function_matching_without_preload_content(
11641164
""" # noqa: E501
11651165

11661166
_param = self._batch_function_matching_serialize(
1167-
function_matching_batch_request=function_matching_batch_request,
1167+
function_matching_request=function_matching_request,
11681168
authorization=authorization,
11691169
_request_auth=_request_auth,
11701170
_content_type=_content_type,
@@ -1185,7 +1185,7 @@ def batch_function_matching_without_preload_content(
11851185

11861186
def _batch_function_matching_serialize(
11871187
self,
1188-
function_matching_batch_request,
1188+
function_matching_request,
11891189
authorization,
11901190
_request_auth,
11911191
_content_type,
@@ -1214,8 +1214,8 @@ def _batch_function_matching_serialize(
12141214
_header_params['authorization'] = authorization
12151215
# process the form parameters
12161216
# process the body parameter
1217-
if function_matching_batch_request is not None:
1218-
_body_params = function_matching_batch_request
1217+
if function_matching_request is not None:
1218+
_body_params = function_matching_request
12191219

12201220

12211221
# set the HTTP header `Accept`

0 commit comments

Comments
 (0)