Skip to content

Commit 6744c2f

Browse files
authored
Merge pull request #58 from RevEngAI/sdk-update-v2.46.0
🤖 Update SDK to version v2.46.0
2 parents e2b9928 + 9ca26b4 commit 6744c2f

17 files changed

Lines changed: 135 additions & 108 deletions

.sdk-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2.43.0
1+
v2.46.0

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,10 @@ Class | Method | HTTP request | Description
321321
- [FunctionLocalVariableResponse](docs/FunctionLocalVariableResponse.md)
322322
- [FunctionMapping](docs/FunctionMapping.md)
323323
- [FunctionMappingFull](docs/FunctionMappingFull.md)
324-
- [FunctionMatchingBatchResponse](docs/FunctionMatchingBatchResponse.md)
324+
- [FunctionMatch](docs/FunctionMatch.md)
325325
- [FunctionMatchingFilters](docs/FunctionMatchingFilters.md)
326326
- [FunctionMatchingRequest](docs/FunctionMatchingRequest.md)
327-
- [FunctionMatchingResultWithBestMatch](docs/FunctionMatchingResultWithBestMatch.md)
327+
- [FunctionMatchingResponse](docs/FunctionMatchingResponse.md)
328328
- [FunctionNameHistory](docs/FunctionNameHistory.md)
329329
- [FunctionParamResponse](docs/FunctionParamResponse.md)
330330
- [FunctionRename](docs/FunctionRename.md)

docs/FunctionMatch.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# FunctionMatch
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**function_id** | **int** | Unique identifier of the function |
9+
**matched_functions** | [**List[MatchedFunction]**](MatchedFunction.md) | |
10+
**confidences** | [**List[NameConfidence]**](NameConfidence.md) | | [optional]
11+
12+
## Example
13+
14+
```python
15+
from revengai.models.function_match import FunctionMatch
16+
17+
# TODO update the JSON string below
18+
json = "{}"
19+
# create an instance of FunctionMatch from a JSON string
20+
function_match_instance = FunctionMatch.from_json(json)
21+
# print the JSON string representation of the object
22+
print(FunctionMatch.to_json())
23+
24+
# convert the object into a dict
25+
function_match_dict = function_match_instance.to_dict()
26+
# create an instance of FunctionMatch from a dict
27+
function_match_from_dict = FunctionMatch.from_dict(function_match_dict)
28+
```
29+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
30+
31+
Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# FunctionMatchingBatchResponse
1+
# FunctionMatchingResponse
22

33

44
## Properties
@@ -11,24 +11,27 @@ Name | Type | Description | Notes
1111
**error_message** | **str** | | [optional]
1212
**current_page** | **int** | | [optional]
1313
**total_pages** | **int** | | [optional]
14-
**matches** | [**List[FunctionMatchingResultWithBestMatch]**](FunctionMatchingResultWithBestMatch.md) | | [optional]
14+
**matches** | [**List[FunctionMatch]**](FunctionMatch.md) | | [optional]
15+
**num_matches** | **int** | | [optional]
16+
**num_debug_matches** | **int** | | [optional]
17+
**updated_at** | **str** | | [optional]
1518

1619
## Example
1720

1821
```python
19-
from revengai.models.function_matching_batch_response import FunctionMatchingBatchResponse
22+
from revengai.models.function_matching_response import FunctionMatchingResponse
2023

2124
# TODO update the JSON string below
2225
json = "{}"
23-
# create an instance of FunctionMatchingBatchResponse from a JSON string
24-
function_matching_batch_response_instance = FunctionMatchingBatchResponse.from_json(json)
26+
# create an instance of FunctionMatchingResponse from a JSON string
27+
function_matching_response_instance = FunctionMatchingResponse.from_json(json)
2528
# print the JSON string representation of the object
26-
print(FunctionMatchingBatchResponse.to_json())
29+
print(FunctionMatchingResponse.to_json())
2730

2831
# convert the object into a dict
29-
function_matching_batch_response_dict = function_matching_batch_response_instance.to_dict()
30-
# create an instance of FunctionMatchingBatchResponse from a dict
31-
function_matching_batch_response_from_dict = FunctionMatchingBatchResponse.from_dict(function_matching_batch_response_dict)
32+
function_matching_response_dict = function_matching_response_instance.to_dict()
33+
# create an instance of FunctionMatchingResponse from a dict
34+
function_matching_response_from_dict = FunctionMatchingResponse.from_dict(function_matching_response_dict)
3235
```
3336
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
3437

docs/FunctionMatchingResultWithBestMatch.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

docs/FunctionsCoreApi.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Name | Type | Description | Notes
102102
[[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)
103103

104104
# **analysis_function_matching**
105-
> FunctionMatchingBatchResponse analysis_function_matching(analysis_id, analysis_function_matching_request)
105+
> FunctionMatchingResponse analysis_function_matching(analysis_id, analysis_function_matching_request)
106106
107107
Perform matching for the functions of an analysis
108108

@@ -115,7 +115,7 @@ Takes in an analysis id and settings and matches the nearest functions to the on
115115
```python
116116
import revengai
117117
from revengai.models.analysis_function_matching_request import AnalysisFunctionMatchingRequest
118-
from revengai.models.function_matching_batch_response import FunctionMatchingBatchResponse
118+
from revengai.models.function_matching_response import FunctionMatchingResponse
119119
from revengai.rest import ApiException
120120
from pprint import pprint
121121

@@ -164,7 +164,7 @@ Name | Type | Description | Notes
164164

165165
### Return type
166166

167-
[**FunctionMatchingBatchResponse**](FunctionMatchingBatchResponse.md)
167+
[**FunctionMatchingResponse**](FunctionMatchingResponse.md)
168168

169169
### Authorization
170170

@@ -268,7 +268,7 @@ Name | Type | Description | Notes
268268
[[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)
269269

270270
# **batch_function_matching**
271-
> FunctionMatchingBatchResponse batch_function_matching(function_matching_request)
271+
> FunctionMatchingResponse batch_function_matching(function_matching_request)
272272
273273
Perform function matching for an arbitrary batch of functions, binaries or collections
274274

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

281281
```python
282282
import revengai
283-
from revengai.models.function_matching_batch_response import FunctionMatchingBatchResponse
284283
from revengai.models.function_matching_request import FunctionMatchingRequest
284+
from revengai.models.function_matching_response import FunctionMatchingResponse
285285
from revengai.rest import ApiException
286286
from pprint import pprint
287287

@@ -328,7 +328,7 @@ Name | Type | Description | Notes
328328

329329
### Return type
330330

331-
[**FunctionMatchingBatchResponse**](FunctionMatchingBatchResponse.md)
331+
[**FunctionMatchingResponse**](FunctionMatchingResponse.md)
332332

333333
### Authorization
334334

docs/LoginRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**username** | **str** | User's username |
8+
**username** | **str** | User's username or email |
99
**password** | **str** | User's password |
1010

1111
## Example

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__ = "v2.43.0"
16+
__version__ = "v2.46.0"
1717

1818
# Define package exports
1919
__all__ = [
@@ -217,10 +217,10 @@
217217
"FunctionLocalVariableResponse",
218218
"FunctionMapping",
219219
"FunctionMappingFull",
220-
"FunctionMatchingBatchResponse",
220+
"FunctionMatch",
221221
"FunctionMatchingFilters",
222222
"FunctionMatchingRequest",
223-
"FunctionMatchingResultWithBestMatch",
223+
"FunctionMatchingResponse",
224224
"FunctionNameHistory",
225225
"FunctionParamResponse",
226226
"FunctionRename",
@@ -531,10 +531,10 @@
531531
from revengai.models.function_local_variable_response import FunctionLocalVariableResponse as FunctionLocalVariableResponse
532532
from revengai.models.function_mapping import FunctionMapping as FunctionMapping
533533
from revengai.models.function_mapping_full import FunctionMappingFull as FunctionMappingFull
534-
from revengai.models.function_matching_batch_response import FunctionMatchingBatchResponse as FunctionMatchingBatchResponse
534+
from revengai.models.function_match import FunctionMatch as FunctionMatch
535535
from revengai.models.function_matching_filters import FunctionMatchingFilters as FunctionMatchingFilters
536536
from revengai.models.function_matching_request import FunctionMatchingRequest as FunctionMatchingRequest
537-
from revengai.models.function_matching_result_with_best_match import FunctionMatchingResultWithBestMatch as FunctionMatchingResultWithBestMatch
537+
from revengai.models.function_matching_response import FunctionMatchingResponse as FunctionMatchingResponse
538538
from revengai.models.function_name_history import FunctionNameHistory as FunctionNameHistory
539539
from revengai.models.function_param_response import FunctionParamResponse as FunctionParamResponse
540540
from revengai.models.function_rename import FunctionRename as FunctionRename

revengai/api/functions_core_api.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
from revengai.models.base_response_function_capability_response import BaseResponseFunctionCapabilityResponse
2929
from revengai.models.base_response_function_strings_response import BaseResponseFunctionStringsResponse
3030
from revengai.models.base_response_functions_detail_response import BaseResponseFunctionsDetailResponse
31-
from revengai.models.function_matching_batch_response import FunctionMatchingBatchResponse
3231
from revengai.models.function_matching_request import FunctionMatchingRequest
32+
from revengai.models.function_matching_response import FunctionMatchingResponse
3333

3434
from revengai.api_client import ApiClient, RequestSerialized
3535
from revengai.api_response import ApiResponse
@@ -358,7 +358,7 @@ def analysis_function_matching(
358358
_content_type: Optional[StrictStr] = None,
359359
_headers: Optional[Dict[StrictStr, Any]] = None,
360360
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
361-
) -> FunctionMatchingBatchResponse:
361+
) -> FunctionMatchingResponse:
362362
"""Perform matching for the functions of an analysis
363363
364364
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
@@ -399,7 +399,7 @@ def analysis_function_matching(
399399
)
400400

401401
_response_types_map: Dict[str, Optional[str]] = {
402-
'200': "FunctionMatchingBatchResponse",
402+
'200': "FunctionMatchingResponse",
403403
'422': "BaseResponse",
404404
}
405405
response_data = self.api_client.call_api(
@@ -430,7 +430,7 @@ def analysis_function_matching_with_http_info(
430430
_content_type: Optional[StrictStr] = None,
431431
_headers: Optional[Dict[StrictStr, Any]] = None,
432432
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
433-
) -> ApiResponse[FunctionMatchingBatchResponse]:
433+
) -> ApiResponse[FunctionMatchingResponse]:
434434
"""Perform matching for the functions of an analysis
435435
436436
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
@@ -471,7 +471,7 @@ def analysis_function_matching_with_http_info(
471471
)
472472

473473
_response_types_map: Dict[str, Optional[str]] = {
474-
'200': "FunctionMatchingBatchResponse",
474+
'200': "FunctionMatchingResponse",
475475
'422': "BaseResponse",
476476
}
477477
response_data = self.api_client.call_api(
@@ -543,7 +543,7 @@ def analysis_function_matching_without_preload_content(
543543
)
544544

545545
_response_types_map: Dict[str, Optional[str]] = {
546-
'200': "FunctionMatchingBatchResponse",
546+
'200': "FunctionMatchingResponse",
547547
'422': "BaseResponse",
548548
}
549549
response_data = self.api_client.call_api(
@@ -941,7 +941,7 @@ def batch_function_matching(
941941
_content_type: Optional[StrictStr] = None,
942942
_headers: Optional[Dict[StrictStr, Any]] = None,
943943
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
944-
) -> FunctionMatchingBatchResponse:
944+
) -> FunctionMatchingResponse:
945945
"""Perform function matching for an arbitrary batch of functions, binaries or collections
946946
947947
Takes in an input of functions ID's and settings and finds the nearest functions for each function that's within the system
@@ -979,7 +979,7 @@ def batch_function_matching(
979979
)
980980

981981
_response_types_map: Dict[str, Optional[str]] = {
982-
'200': "FunctionMatchingBatchResponse",
982+
'200': "FunctionMatchingResponse",
983983
'422': "BaseResponse",
984984
}
985985
response_data = self.api_client.call_api(
@@ -1009,7 +1009,7 @@ def batch_function_matching_with_http_info(
10091009
_content_type: Optional[StrictStr] = None,
10101010
_headers: Optional[Dict[StrictStr, Any]] = None,
10111011
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1012-
) -> ApiResponse[FunctionMatchingBatchResponse]:
1012+
) -> ApiResponse[FunctionMatchingResponse]:
10131013
"""Perform function matching for an arbitrary batch of functions, binaries or collections
10141014
10151015
Takes in an input of functions ID's and settings and finds the nearest functions for each function that's within the system
@@ -1047,7 +1047,7 @@ def batch_function_matching_with_http_info(
10471047
)
10481048

10491049
_response_types_map: Dict[str, Optional[str]] = {
1050-
'200': "FunctionMatchingBatchResponse",
1050+
'200': "FunctionMatchingResponse",
10511051
'422': "BaseResponse",
10521052
}
10531053
response_data = self.api_client.call_api(
@@ -1115,7 +1115,7 @@ def batch_function_matching_without_preload_content(
11151115
)
11161116

11171117
_response_types_map: Dict[str, Optional[str]] = {
1118-
'200': "FunctionMatchingBatchResponse",
1118+
'200': "FunctionMatchingResponse",
11191119
'422': "BaseResponse",
11201120
}
11211121
response_data = self.api_client.call_api(

revengai/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(
9090
self.default_headers[header_name] = header_value
9191
self.cookie = cookie
9292
# Set default User-Agent.
93-
self.user_agent = 'OpenAPI-Generator/v2.43.0/python'
93+
self.user_agent = 'OpenAPI-Generator/v2.46.0/python'
9494
self.client_side_validation = configuration.client_side_validation
9595

9696
def __enter__(self):

0 commit comments

Comments
 (0)