revengai 1.78.1__py3-none-any.whl → 1.80.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of revengai might be problematic. Click here for more details.
- revengai/__init__.py +1 -9
- revengai/api/__init__.py +0 -1
- revengai/api/analyses_core_api.py +141 -147
- revengai/api/functions_core_api.py +12 -12
- revengai/api/functions_data_types_api.py +12 -12
- revengai/api_client.py +1 -1
- revengai/configuration.py +2 -2
- revengai/models/__init__.py +0 -3
- revengai/models/ann_function.py +2 -2
- revengai/models/basic.py +10 -3
- revengai/models/function_mapping.py +5 -3
- {revengai-1.78.1.dist-info → revengai-1.80.0.dist-info}/METADATA +2 -6
- {revengai-1.78.1.dist-info → revengai-1.80.0.dist-info}/RECORD +14 -18
- revengai/api/default_api.py +0 -317
- revengai/models/base_response_symbols_info.py +0 -125
- revengai/models/boundary.py +0 -90
- revengai/models/symbols_info.py +0 -102
- {revengai-1.78.1.dist-info → revengai-1.80.0.dist-info}/WHEEL +0 -0
|
@@ -3017,10 +3017,10 @@ class FunctionsCoreApi:
|
|
|
3017
3017
|
function_id: StrictInt,
|
|
3018
3018
|
limit: Annotated[Optional[StrictInt], Field(description="Number of similar functions to return")] = None,
|
|
3019
3019
|
distance: Annotated[Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.0)], Annotated[int, Field(le=1, strict=True, ge=0)]]], Field(description="Maximum cosine distance")] = None,
|
|
3020
|
-
collection_ids: Annotated[Optional[List[StrictInt]], Field(description="Collection filtering by IDs")] = None,
|
|
3020
|
+
collection_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Collection filtering by IDs")] = None,
|
|
3021
3021
|
debug: Annotated[Optional[StrictBool], Field(description="Only return matching debug functions")] = None,
|
|
3022
3022
|
debug_types: Annotated[Optional[List[StrictStr]], Field(description="If limiting results to functions with debug names, which type of debug names to include?")] = None,
|
|
3023
|
-
binary_ids: Annotated[Optional[List[StrictInt]], Field(description="Limit similar functions to specific binaries")] = None,
|
|
3023
|
+
binary_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Limit similar functions to specific binaries")] = None,
|
|
3024
3024
|
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
|
3025
3025
|
_request_timeout: Union[
|
|
3026
3026
|
None,
|
|
@@ -3045,13 +3045,13 @@ class FunctionsCoreApi:
|
|
|
3045
3045
|
:param distance: Maximum cosine distance
|
|
3046
3046
|
:type distance: float
|
|
3047
3047
|
:param collection_ids: Collection filtering by IDs
|
|
3048
|
-
:type collection_ids: List[int]
|
|
3048
|
+
:type collection_ids: List[Optional[int]]
|
|
3049
3049
|
:param debug: Only return matching debug functions
|
|
3050
3050
|
:type debug: bool
|
|
3051
3051
|
:param debug_types: If limiting results to functions with debug names, which type of debug names to include?
|
|
3052
3052
|
:type debug_types: List[str]
|
|
3053
3053
|
:param binary_ids: Limit similar functions to specific binaries
|
|
3054
|
-
:type binary_ids: List[int]
|
|
3054
|
+
:type binary_ids: List[Optional[int]]
|
|
3055
3055
|
:param authorization: API Key bearer token
|
|
3056
3056
|
:type authorization: str
|
|
3057
3057
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -3112,10 +3112,10 @@ class FunctionsCoreApi:
|
|
|
3112
3112
|
function_id: StrictInt,
|
|
3113
3113
|
limit: Annotated[Optional[StrictInt], Field(description="Number of similar functions to return")] = None,
|
|
3114
3114
|
distance: Annotated[Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.0)], Annotated[int, Field(le=1, strict=True, ge=0)]]], Field(description="Maximum cosine distance")] = None,
|
|
3115
|
-
collection_ids: Annotated[Optional[List[StrictInt]], Field(description="Collection filtering by IDs")] = None,
|
|
3115
|
+
collection_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Collection filtering by IDs")] = None,
|
|
3116
3116
|
debug: Annotated[Optional[StrictBool], Field(description="Only return matching debug functions")] = None,
|
|
3117
3117
|
debug_types: Annotated[Optional[List[StrictStr]], Field(description="If limiting results to functions with debug names, which type of debug names to include?")] = None,
|
|
3118
|
-
binary_ids: Annotated[Optional[List[StrictInt]], Field(description="Limit similar functions to specific binaries")] = None,
|
|
3118
|
+
binary_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Limit similar functions to specific binaries")] = None,
|
|
3119
3119
|
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
|
3120
3120
|
_request_timeout: Union[
|
|
3121
3121
|
None,
|
|
@@ -3140,13 +3140,13 @@ class FunctionsCoreApi:
|
|
|
3140
3140
|
:param distance: Maximum cosine distance
|
|
3141
3141
|
:type distance: float
|
|
3142
3142
|
:param collection_ids: Collection filtering by IDs
|
|
3143
|
-
:type collection_ids: List[int]
|
|
3143
|
+
:type collection_ids: List[Optional[int]]
|
|
3144
3144
|
:param debug: Only return matching debug functions
|
|
3145
3145
|
:type debug: bool
|
|
3146
3146
|
:param debug_types: If limiting results to functions with debug names, which type of debug names to include?
|
|
3147
3147
|
:type debug_types: List[str]
|
|
3148
3148
|
:param binary_ids: Limit similar functions to specific binaries
|
|
3149
|
-
:type binary_ids: List[int]
|
|
3149
|
+
:type binary_ids: List[Optional[int]]
|
|
3150
3150
|
:param authorization: API Key bearer token
|
|
3151
3151
|
:type authorization: str
|
|
3152
3152
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -3207,10 +3207,10 @@ class FunctionsCoreApi:
|
|
|
3207
3207
|
function_id: StrictInt,
|
|
3208
3208
|
limit: Annotated[Optional[StrictInt], Field(description="Number of similar functions to return")] = None,
|
|
3209
3209
|
distance: Annotated[Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.0)], Annotated[int, Field(le=1, strict=True, ge=0)]]], Field(description="Maximum cosine distance")] = None,
|
|
3210
|
-
collection_ids: Annotated[Optional[List[StrictInt]], Field(description="Collection filtering by IDs")] = None,
|
|
3210
|
+
collection_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Collection filtering by IDs")] = None,
|
|
3211
3211
|
debug: Annotated[Optional[StrictBool], Field(description="Only return matching debug functions")] = None,
|
|
3212
3212
|
debug_types: Annotated[Optional[List[StrictStr]], Field(description="If limiting results to functions with debug names, which type of debug names to include?")] = None,
|
|
3213
|
-
binary_ids: Annotated[Optional[List[StrictInt]], Field(description="Limit similar functions to specific binaries")] = None,
|
|
3213
|
+
binary_ids: Annotated[Optional[List[Optional[StrictInt]]], Field(description="Limit similar functions to specific binaries")] = None,
|
|
3214
3214
|
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
|
3215
3215
|
_request_timeout: Union[
|
|
3216
3216
|
None,
|
|
@@ -3235,13 +3235,13 @@ class FunctionsCoreApi:
|
|
|
3235
3235
|
:param distance: Maximum cosine distance
|
|
3236
3236
|
:type distance: float
|
|
3237
3237
|
:param collection_ids: Collection filtering by IDs
|
|
3238
|
-
:type collection_ids: List[int]
|
|
3238
|
+
:type collection_ids: List[Optional[int]]
|
|
3239
3239
|
:param debug: Only return matching debug functions
|
|
3240
3240
|
:type debug: bool
|
|
3241
3241
|
:param debug_types: If limiting results to functions with debug names, which type of debug names to include?
|
|
3242
3242
|
:type debug_types: List[str]
|
|
3243
3243
|
:param binary_ids: Limit similar functions to specific binaries
|
|
3244
|
-
:type binary_ids: List[int]
|
|
3244
|
+
:type binary_ids: List[Optional[int]]
|
|
3245
3245
|
:param authorization: API Key bearer token
|
|
3246
3246
|
:type authorization: str
|
|
3247
3247
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -940,7 +940,7 @@ class FunctionsDataTypesApi:
|
|
|
940
940
|
def list_function_data_types_for_analysis(
|
|
941
941
|
self,
|
|
942
942
|
analysis_id: StrictInt,
|
|
943
|
-
function_ids: Optional[List[StrictInt]] = None,
|
|
943
|
+
function_ids: Optional[List[Optional[StrictInt]]] = None,
|
|
944
944
|
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
|
945
945
|
_request_timeout: Union[
|
|
946
946
|
None,
|
|
@@ -962,7 +962,7 @@ class FunctionsDataTypesApi:
|
|
|
962
962
|
:param analysis_id: (required)
|
|
963
963
|
:type analysis_id: int
|
|
964
964
|
:param function_ids:
|
|
965
|
-
:type function_ids: List[int]
|
|
965
|
+
:type function_ids: List[Optional[int]]
|
|
966
966
|
:param authorization: API Key bearer token
|
|
967
967
|
:type authorization: str
|
|
968
968
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -1016,7 +1016,7 @@ class FunctionsDataTypesApi:
|
|
|
1016
1016
|
def list_function_data_types_for_analysis_with_http_info(
|
|
1017
1017
|
self,
|
|
1018
1018
|
analysis_id: StrictInt,
|
|
1019
|
-
function_ids: Optional[List[StrictInt]] = None,
|
|
1019
|
+
function_ids: Optional[List[Optional[StrictInt]]] = None,
|
|
1020
1020
|
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
|
1021
1021
|
_request_timeout: Union[
|
|
1022
1022
|
None,
|
|
@@ -1038,7 +1038,7 @@ class FunctionsDataTypesApi:
|
|
|
1038
1038
|
:param analysis_id: (required)
|
|
1039
1039
|
:type analysis_id: int
|
|
1040
1040
|
:param function_ids:
|
|
1041
|
-
:type function_ids: List[int]
|
|
1041
|
+
:type function_ids: List[Optional[int]]
|
|
1042
1042
|
:param authorization: API Key bearer token
|
|
1043
1043
|
:type authorization: str
|
|
1044
1044
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -1092,7 +1092,7 @@ class FunctionsDataTypesApi:
|
|
|
1092
1092
|
def list_function_data_types_for_analysis_without_preload_content(
|
|
1093
1093
|
self,
|
|
1094
1094
|
analysis_id: StrictInt,
|
|
1095
|
-
function_ids: Optional[List[StrictInt]] = None,
|
|
1095
|
+
function_ids: Optional[List[Optional[StrictInt]]] = None,
|
|
1096
1096
|
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
|
1097
1097
|
_request_timeout: Union[
|
|
1098
1098
|
None,
|
|
@@ -1114,7 +1114,7 @@ class FunctionsDataTypesApi:
|
|
|
1114
1114
|
:param analysis_id: (required)
|
|
1115
1115
|
:type analysis_id: int
|
|
1116
1116
|
:param function_ids:
|
|
1117
|
-
:type function_ids: List[int]
|
|
1117
|
+
:type function_ids: List[Optional[int]]
|
|
1118
1118
|
:param authorization: API Key bearer token
|
|
1119
1119
|
:type authorization: str
|
|
1120
1120
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -1236,7 +1236,7 @@ class FunctionsDataTypesApi:
|
|
|
1236
1236
|
@validate_call
|
|
1237
1237
|
def list_function_data_types_for_functions(
|
|
1238
1238
|
self,
|
|
1239
|
-
function_ids: Optional[List[StrictInt]] = None,
|
|
1239
|
+
function_ids: Optional[List[Optional[StrictInt]]] = None,
|
|
1240
1240
|
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
|
1241
1241
|
_request_timeout: Union[
|
|
1242
1242
|
None,
|
|
@@ -1256,7 +1256,7 @@ class FunctionsDataTypesApi:
|
|
|
1256
1256
|
Returns data types for multiple function IDs
|
|
1257
1257
|
|
|
1258
1258
|
:param function_ids:
|
|
1259
|
-
:type function_ids: List[int]
|
|
1259
|
+
:type function_ids: List[Optional[int]]
|
|
1260
1260
|
:param authorization: API Key bearer token
|
|
1261
1261
|
:type authorization: str
|
|
1262
1262
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -1308,7 +1308,7 @@ class FunctionsDataTypesApi:
|
|
|
1308
1308
|
@validate_call
|
|
1309
1309
|
def list_function_data_types_for_functions_with_http_info(
|
|
1310
1310
|
self,
|
|
1311
|
-
function_ids: Optional[List[StrictInt]] = None,
|
|
1311
|
+
function_ids: Optional[List[Optional[StrictInt]]] = None,
|
|
1312
1312
|
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
|
1313
1313
|
_request_timeout: Union[
|
|
1314
1314
|
None,
|
|
@@ -1328,7 +1328,7 @@ class FunctionsDataTypesApi:
|
|
|
1328
1328
|
Returns data types for multiple function IDs
|
|
1329
1329
|
|
|
1330
1330
|
:param function_ids:
|
|
1331
|
-
:type function_ids: List[int]
|
|
1331
|
+
:type function_ids: List[Optional[int]]
|
|
1332
1332
|
:param authorization: API Key bearer token
|
|
1333
1333
|
:type authorization: str
|
|
1334
1334
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -1380,7 +1380,7 @@ class FunctionsDataTypesApi:
|
|
|
1380
1380
|
@validate_call
|
|
1381
1381
|
def list_function_data_types_for_functions_without_preload_content(
|
|
1382
1382
|
self,
|
|
1383
|
-
function_ids: Optional[List[StrictInt]] = None,
|
|
1383
|
+
function_ids: Optional[List[Optional[StrictInt]]] = None,
|
|
1384
1384
|
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
|
1385
1385
|
_request_timeout: Union[
|
|
1386
1386
|
None,
|
|
@@ -1400,7 +1400,7 @@ class FunctionsDataTypesApi:
|
|
|
1400
1400
|
Returns data types for multiple function IDs
|
|
1401
1401
|
|
|
1402
1402
|
:param function_ids:
|
|
1403
|
-
:type function_ids: List[int]
|
|
1403
|
+
:type function_ids: List[Optional[int]]
|
|
1404
1404
|
:param authorization: API Key bearer token
|
|
1405
1405
|
:type authorization: str
|
|
1406
1406
|
:param _request_timeout: timeout setting for this request. If one
|
revengai/api_client.py
CHANGED
|
@@ -90,7 +90,7 @@ class ApiClient:
|
|
|
90
90
|
self.default_headers[header_name] = header_value
|
|
91
91
|
self.cookie = cookie
|
|
92
92
|
# Set default User-Agent.
|
|
93
|
-
self.user_agent = 'OpenAPI-Generator/v1.
|
|
93
|
+
self.user_agent = 'OpenAPI-Generator/v1.80.0/python'
|
|
94
94
|
self.client_side_validation = configuration.client_side_validation
|
|
95
95
|
|
|
96
96
|
def __enter__(self):
|
revengai/configuration.py
CHANGED
|
@@ -529,8 +529,8 @@ conf = revengai.Configuration(
|
|
|
529
529
|
return "Python SDK Debug Report:\n"\
|
|
530
530
|
"OS: {env}\n"\
|
|
531
531
|
"Python Version: {pyversion}\n"\
|
|
532
|
-
"Version of the API: v1.
|
|
533
|
-
"SDK Package Version: v1.
|
|
532
|
+
"Version of the API: v1.80.0\n"\
|
|
533
|
+
"SDK Package Version: v1.80.0".\
|
|
534
534
|
format(env=sys.platform, pyversion=sys.version)
|
|
535
535
|
|
|
536
536
|
def get_host_settings(self) -> List[HostSetting]:
|
revengai/models/__init__.py
CHANGED
|
@@ -116,7 +116,6 @@ from revengai.models.base_response_recent import BaseResponseRecent
|
|
|
116
116
|
from revengai.models.base_response_security_checks_response import BaseResponseSecurityChecksResponse
|
|
117
117
|
from revengai.models.base_response_status import BaseResponseStatus
|
|
118
118
|
from revengai.models.base_response_str import BaseResponseStr
|
|
119
|
-
from revengai.models.base_response_symbols_info import BaseResponseSymbolsInfo
|
|
120
119
|
from revengai.models.base_response_ttps import BaseResponseTTPS
|
|
121
120
|
from revengai.models.base_response_tag_search_response import BaseResponseTagSearchResponse
|
|
122
121
|
from revengai.models.base_response_task_response import BaseResponseTaskResponse
|
|
@@ -135,7 +134,6 @@ from revengai.models.binary_search_result import BinarySearchResult
|
|
|
135
134
|
from revengai.models.binary_task_status import BinaryTaskStatus
|
|
136
135
|
from revengai.models.block import Block
|
|
137
136
|
from revengai.models.block_comments_generation_for_function_response import BlockCommentsGenerationForFunctionResponse
|
|
138
|
-
from revengai.models.boundary import Boundary
|
|
139
137
|
from revengai.models.box_plot_confidence import BoxPlotConfidence
|
|
140
138
|
from revengai.models.callee_function_info import CalleeFunctionInfo
|
|
141
139
|
from revengai.models.callees_caller_functions_response import CalleesCallerFunctionsResponse
|
|
@@ -294,7 +292,6 @@ from revengai.models.string_functions import StringFunctions
|
|
|
294
292
|
from revengai.models.structure import Structure
|
|
295
293
|
from revengai.models.structure_member import StructureMember
|
|
296
294
|
from revengai.models.symbols import Symbols
|
|
297
|
-
from revengai.models.symbols_info import SymbolsInfo
|
|
298
295
|
from revengai.models.ttps import TTPS
|
|
299
296
|
from revengai.models.ttps_attack import TTPSAttack
|
|
300
297
|
from revengai.models.ttps_data import TTPSData
|
revengai/models/ann_function.py
CHANGED
|
@@ -30,8 +30,8 @@ class ANNFunction(BaseModel):
|
|
|
30
30
|
""" # noqa: E501
|
|
31
31
|
limit: Optional[StrictInt] = Field(default=5, description="The amount of neighbours per function ID")
|
|
32
32
|
distance: Optional[Union[StrictFloat, StrictInt]] = Field(default=0.1, description="The distance between two neighbours")
|
|
33
|
-
analysis_search_ids: Optional[List[StrictInt]] = Field(default=None, description="Perform a search on functions within a list of analyses")
|
|
34
|
-
collection_search_ids: Optional[Annotated[List[StrictInt], Field(max_length=5)]] = Field(default=None, description="Search only within these collections")
|
|
33
|
+
analysis_search_ids: Optional[List[Optional[StrictInt]]] = Field(default=None, description="Perform a search on functions within a list of analyses")
|
|
34
|
+
collection_search_ids: Optional[Annotated[List[Optional[StrictInt]], Field(max_length=5)]] = Field(default=None, description="Search only within these collections")
|
|
35
35
|
search_binary_ids: Optional[SearchBinaryIds] = None
|
|
36
36
|
search_function_ids: Optional[SearchFunctionIds] = None
|
|
37
37
|
debug_only: Optional[StrictBool] = Field(default=False, description="Searches for only functions which are debug")
|
revengai/models/basic.py
CHANGED
|
@@ -18,7 +18,7 @@ import json
|
|
|
18
18
|
|
|
19
19
|
from datetime import datetime
|
|
20
20
|
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
|
|
21
|
-
from typing import Any, ClassVar, Dict, List
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
22
|
from typing import Optional, Set
|
|
23
23
|
from typing_extensions import Self
|
|
24
24
|
|
|
@@ -37,7 +37,8 @@ class Basic(BaseModel):
|
|
|
37
37
|
debug: StrictBool = Field(description="Whether the current analysis was analysed with debug symbols")
|
|
38
38
|
function_count: StrictInt = Field(description="The number of functions in the binary")
|
|
39
39
|
is_advanced: StrictBool = Field(description="Whether the analysis was advanced")
|
|
40
|
-
|
|
40
|
+
base_address: Optional[StrictInt]
|
|
41
|
+
__properties: ClassVar[List[str]] = ["binary_name", "binary_size", "creation", "sha_256_hash", "model_name", "owner_username", "analysis_scope", "is_owner", "debug", "function_count", "is_advanced", "base_address"]
|
|
41
42
|
|
|
42
43
|
model_config = ConfigDict(
|
|
43
44
|
populate_by_name=True,
|
|
@@ -78,6 +79,11 @@ class Basic(BaseModel):
|
|
|
78
79
|
exclude=excluded_fields,
|
|
79
80
|
exclude_none=True,
|
|
80
81
|
)
|
|
82
|
+
# set to None if base_address (nullable) is None
|
|
83
|
+
# and model_fields_set contains the field
|
|
84
|
+
if self.base_address is None and "base_address" in self.model_fields_set:
|
|
85
|
+
_dict['base_address'] = None
|
|
86
|
+
|
|
81
87
|
return _dict
|
|
82
88
|
|
|
83
89
|
@classmethod
|
|
@@ -100,7 +106,8 @@ class Basic(BaseModel):
|
|
|
100
106
|
"is_owner": obj.get("is_owner"),
|
|
101
107
|
"debug": obj.get("debug"),
|
|
102
108
|
"function_count": obj.get("function_count"),
|
|
103
|
-
"is_advanced": obj.get("is_advanced")
|
|
109
|
+
"is_advanced": obj.get("is_advanced"),
|
|
110
|
+
"base_address": obj.get("base_address")
|
|
104
111
|
})
|
|
105
112
|
return _obj
|
|
106
113
|
|
|
@@ -16,7 +16,7 @@ import pprint
|
|
|
16
16
|
import re # noqa: F401
|
|
17
17
|
import json
|
|
18
18
|
|
|
19
|
-
from pydantic import BaseModel, ConfigDict, Field, StrictInt
|
|
19
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
20
20
|
from typing import Any, ClassVar, Dict, List
|
|
21
21
|
from typing import Optional, Set
|
|
22
22
|
from typing_extensions import Self
|
|
@@ -27,7 +27,8 @@ class FunctionMapping(BaseModel):
|
|
|
27
27
|
""" # noqa: E501
|
|
28
28
|
function_map: Dict[str, StrictInt] = Field(description="Mapping of remote function ids to local function addresses")
|
|
29
29
|
inverse_function_map: Dict[str, StrictInt] = Field(description="Mapping of local function addresses to remote function ids")
|
|
30
|
-
|
|
30
|
+
name_map: Dict[str, StrictStr] = Field(description="Mapping of local function addresses to function names")
|
|
31
|
+
__properties: ClassVar[List[str]] = ["function_map", "inverse_function_map", "name_map"]
|
|
31
32
|
|
|
32
33
|
model_config = ConfigDict(
|
|
33
34
|
populate_by_name=True,
|
|
@@ -81,7 +82,8 @@ class FunctionMapping(BaseModel):
|
|
|
81
82
|
|
|
82
83
|
_obj = cls.model_validate({
|
|
83
84
|
"function_map": obj.get("function_map"),
|
|
84
|
-
"inverse_function_map": obj.get("inverse_function_map")
|
|
85
|
+
"inverse_function_map": obj.get("inverse_function_map"),
|
|
86
|
+
"name_map": obj.get("name_map")
|
|
85
87
|
})
|
|
86
88
|
return _obj
|
|
87
89
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: revengai
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.80.0
|
|
4
4
|
Summary: RevEng.AI API
|
|
5
5
|
Project-URL: Repository, https://github.com/RevEngAI/revengai-python
|
|
6
6
|
Keywords: RevEng.AI API
|
|
@@ -63,11 +63,11 @@ Class | Method | HTTP request | Description
|
|
|
63
63
|
*AnalysesCoreApi* | [**delete_analysis**](docs/AnalysesCoreApi.md#delete_analysis) | **DELETE** /v2/analyses/{analysis_id} | Delete Analysis
|
|
64
64
|
*AnalysesCoreApi* | [**find_similar_functions_batch**](docs/AnalysesCoreApi.md#find_similar_functions_batch) | **POST** /v2/analyses/{analysis_id}/similarity/functions | Batch Symbol ANN using Analysis ID
|
|
65
65
|
*AnalysesCoreApi* | [**get_analysis_basic_info**](docs/AnalysesCoreApi.md#get_analysis_basic_info) | **GET** /v2/analyses/{analysis_id}/basic | Gets basic analysis information
|
|
66
|
+
*AnalysesCoreApi* | [**get_analysis_function_map**](docs/AnalysesCoreApi.md#get_analysis_function_map) | **GET** /v2/analyses/{analysis_id}/func_maps | Get Analysis Function Map
|
|
66
67
|
*AnalysesCoreApi* | [**get_analysis_logs**](docs/AnalysesCoreApi.md#get_analysis_logs) | **GET** /v2/analyses/{analysis_id}/logs | Gets the logs of an analysis
|
|
67
68
|
*AnalysesCoreApi* | [**get_analysis_params**](docs/AnalysesCoreApi.md#get_analysis_params) | **GET** /v2/analyses/{analysis_id}/params | Gets analysis param information
|
|
68
69
|
*AnalysesCoreApi* | [**get_analysis_status**](docs/AnalysesCoreApi.md#get_analysis_status) | **GET** /v2/analyses/{analysis_id}/status | Gets the status of an analysis
|
|
69
70
|
*AnalysesCoreApi* | [**get_binary_ann**](docs/AnalysesCoreApi.md#get_binary_ann) | **POST** /v2/binary_ann/{analysis_id} | Binary Ann
|
|
70
|
-
*AnalysesCoreApi* | [**get_symbol_info_for_binary**](docs/AnalysesCoreApi.md#get_symbol_info_for_binary) | **GET** /v2/analyses/symbol_info/{binary_id} | Gets the symbol information of a binary
|
|
71
71
|
*AnalysesCoreApi* | [**list_analyses**](docs/AnalysesCoreApi.md#list_analyses) | **GET** /v2/analyses/list | Gets the most recent analyses
|
|
72
72
|
*AnalysesCoreApi* | [**lookup_binary_id**](docs/AnalysesCoreApi.md#lookup_binary_id) | **GET** /v2/analyses/lookup/{binary_id} | Gets the analysis ID from binary ID
|
|
73
73
|
*AnalysesCoreApi* | [**requeue_analysis**](docs/AnalysesCoreApi.md#requeue_analysis) | **POST** /v2/analyses/{analysis_id}/requeue | Requeue Analysis
|
|
@@ -170,7 +170,6 @@ Class | Method | HTTP request | Description
|
|
|
170
170
|
*SearchApi* | [**search_collections**](docs/SearchApi.md#search_collections) | **GET** /v2/search/collections | Collections search
|
|
171
171
|
*SearchApi* | [**search_functions**](docs/SearchApi.md#search_functions) | **GET** /v2/search/functions | Functions search
|
|
172
172
|
*SearchApi* | [**search_tags**](docs/SearchApi.md#search_tags) | **GET** /v2/search/tags | Tags search
|
|
173
|
-
*DefaultApi* | [**get_analysis_function_map**](docs/DefaultApi.md#get_analysis_function_map) | **GET** /v2/analyses/{analysis_id}/func_maps | Get Analysis Function Map
|
|
174
173
|
|
|
175
174
|
|
|
176
175
|
## Documentation For Models
|
|
@@ -279,7 +278,6 @@ Class | Method | HTTP request | Description
|
|
|
279
278
|
- [BaseResponseSecurityChecksResponse](docs/BaseResponseSecurityChecksResponse.md)
|
|
280
279
|
- [BaseResponseStatus](docs/BaseResponseStatus.md)
|
|
281
280
|
- [BaseResponseStr](docs/BaseResponseStr.md)
|
|
282
|
-
- [BaseResponseSymbolsInfo](docs/BaseResponseSymbolsInfo.md)
|
|
283
281
|
- [BaseResponseTTPS](docs/BaseResponseTTPS.md)
|
|
284
282
|
- [BaseResponseTagSearchResponse](docs/BaseResponseTagSearchResponse.md)
|
|
285
283
|
- [BaseResponseTaskResponse](docs/BaseResponseTaskResponse.md)
|
|
@@ -298,7 +296,6 @@ Class | Method | HTTP request | Description
|
|
|
298
296
|
- [BinaryTaskStatus](docs/BinaryTaskStatus.md)
|
|
299
297
|
- [Block](docs/Block.md)
|
|
300
298
|
- [BlockCommentsGenerationForFunctionResponse](docs/BlockCommentsGenerationForFunctionResponse.md)
|
|
301
|
-
- [Boundary](docs/Boundary.md)
|
|
302
299
|
- [BoxPlotConfidence](docs/BoxPlotConfidence.md)
|
|
303
300
|
- [CalleeFunctionInfo](docs/CalleeFunctionInfo.md)
|
|
304
301
|
- [CalleesCallerFunctionsResponse](docs/CalleesCallerFunctionsResponse.md)
|
|
@@ -457,7 +454,6 @@ Class | Method | HTTP request | Description
|
|
|
457
454
|
- [Structure](docs/Structure.md)
|
|
458
455
|
- [StructureMember](docs/StructureMember.md)
|
|
459
456
|
- [Symbols](docs/Symbols.md)
|
|
460
|
-
- [SymbolsInfo](docs/SymbolsInfo.md)
|
|
461
457
|
- [TTPS](docs/TTPS.md)
|
|
462
458
|
- [TTPSAttack](docs/TTPSAttack.md)
|
|
463
459
|
- [TTPSData](docs/TTPSData.md)
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
revengai/__init__.py,sha256=
|
|
2
|
-
revengai/api_client.py,sha256=
|
|
1
|
+
revengai/__init__.py,sha256=mq5Qa_5pDdu6N5-I831T_EYNp04HNUIHemiaqYUrUtw,43147
|
|
2
|
+
revengai/api_client.py,sha256=qry5OIGXfEMUzpQBAhsLjuBzfDVx4bljSn87BnNGrHw,27670
|
|
3
3
|
revengai/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
|
-
revengai/configuration.py,sha256=
|
|
4
|
+
revengai/configuration.py,sha256=JgnkPnuY_nbet2mpzZgby-nHjjHtPLFdanYEVfBu4Ic,18749
|
|
5
5
|
revengai/exceptions.py,sha256=IvdI9ZIZ9b2lSSKtIKMQDlG-5UPAedrjm3U4xfmGkso,6385
|
|
6
6
|
revengai/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
revengai/rest.py,sha256=T6Q2dcazhntqm288H33BKC1hf8NVdvmQWgaymlJo158,9376
|
|
8
|
-
revengai/api/__init__.py,sha256=
|
|
8
|
+
revengai/api/__init__.py,sha256=KS_1v_pNTcR2cIzEuwGEFq0f_-HmC6aGSgb1qaq2k90,1396
|
|
9
9
|
revengai/api/analyses_comments_api.py,sha256=L6NuM8bS3NJRt1b3WKdnZlYVE0YgdcZivNwGuQe5Gb4,49575
|
|
10
|
-
revengai/api/analyses_core_api.py,sha256=
|
|
10
|
+
revengai/api/analyses_core_api.py,sha256=s9PNVMNAYHMS5Hpajqt2PlNpFUXqu2M1fMuYrwemYPM,183698
|
|
11
11
|
revengai/api/analyses_dynamic_execution_api.py,sha256=4vNnupRsuwNVNk7cPa-VFx2nnLtrokJpHu4YUOPwX_o,77682
|
|
12
12
|
revengai/api/analyses_results_metadata_api.py,sha256=NlwPugWgnvFLcth_p4DRk8kwBk76offi7y9zxHL5mxk,90181
|
|
13
13
|
revengai/api/analyses_security_checks_api.py,sha256=b1phfsLDO2kvmLaYtGjMVUkHUhRp63EEN3aJvTyX16o,35691
|
|
@@ -15,19 +15,18 @@ revengai/api/authentication_users_api.py,sha256=2bJh7ij2nMIlsz-YIQHjl9Q2RSHlYKgB
|
|
|
15
15
|
revengai/api/binaries_api.py,sha256=QMKuMSwu5b0H-HElCeECff_Wd0OuSo0ZN4oyKtvUFsw,66116
|
|
16
16
|
revengai/api/collections_api.py,sha256=B6QLZ8pzDssu60R9cRF66b6vEn2HFv9z_zHIVSFle_E,89699
|
|
17
17
|
revengai/api/confidence_api.py,sha256=1tLfE_uMhK7kHQP3ErkHScJZo1x0pG2-FK_nK_DiFHk,50722
|
|
18
|
-
revengai/api/default_api.py,sha256=EWN9nmGcQXr7DJE4lSq4q1tMwr3Rbx8v31r-Zh4L_04,12243
|
|
19
18
|
revengai/api/external_sources_api.py,sha256=JMyVAoivo6AsgeNekXnSk5BZh02APn9bzojoFzdsCdU,65993
|
|
20
19
|
revengai/api/firmware_api.py,sha256=IPkGAJ-gxmuNcz2sUM6ip-9N2DZujqLJWwhiLvUQBOA,24150
|
|
21
20
|
revengai/api/functions_ai_decompilation_api.py,sha256=JJZREg2Tz5iozNGl48F1vvkGJOrQoIwFFBbQuEghAeU,109824
|
|
22
21
|
revengai/api/functions_block_comments_api.py,sha256=SilDkZYrrJ2_6j-Hh-ZNTUZKp1G9XE9aUwVbDzev5Co,35480
|
|
23
|
-
revengai/api/functions_core_api.py,sha256
|
|
24
|
-
revengai/api/functions_data_types_api.py,sha256=
|
|
22
|
+
revengai/api/functions_core_api.py,sha256=-g1nwdSqyNvF4Fd3L5h0qeY5neSKHThBhgV-FfSAkoM,150042
|
|
23
|
+
revengai/api/functions_data_types_api.py,sha256=Fzu4oI6kTwSE820_cGjr09N_G3uGOa4DUiyPFwOqvx4,73869
|
|
25
24
|
revengai/api/functions_decompilation_api.py,sha256=nEvYHPFoonmKSAf_t4_voC3SfoDd-O9sisSfA-5hiJo,83262
|
|
26
25
|
revengai/api/functions_renaming_history_api.py,sha256=L2CDadLnZrA0oNxhJfTSLLiMDz0Z4583Q8zLEj-Ze2I,47441
|
|
27
26
|
revengai/api/functions_threat_score_api.py,sha256=RYbCaX71r2ssv7VxUrcezT8dSdU5K5ipHD6yR592k6I,23867
|
|
28
27
|
revengai/api/models_api.py,sha256=bqukeUMctErkaX5mH8Rm3iPKEHQOCx-JT-P8_KV_iP8,11319
|
|
29
28
|
revengai/api/search_api.py,sha256=Kzo7KfP4nY1-YsoCHxVOQm3Vn89kFjcnUV7oNdaw5z0,65835
|
|
30
|
-
revengai/models/__init__.py,sha256=
|
|
29
|
+
revengai/models/__init__.py,sha256=FKjzSnbDp-S01pPLPg4OZ8sXN6fFLF-fxioGYOdJ5SQ,23228
|
|
31
30
|
revengai/models/addr.py,sha256=-2N-UQsOiZ0eyEAQ7ssk0of8W2fBrXeYdTZXuVt3SZs,4787
|
|
32
31
|
revengai/models/ai_decompilation_rating.py,sha256=_Ucm2tiqUnnb5XjGSwAJ18ID0eZvGjVRqk-mL0SwJAI,698
|
|
33
32
|
revengai/models/ai_unstrip_request.py,sha256=loSXNdHATJmY5yttiUCE-lLEOkuE63qVDTz8U0eCAIc,2596
|
|
@@ -46,7 +45,7 @@ revengai/models/analysis_threat_score_data.py,sha256=1bCfJF-PyKsy6tW7JH-RyouW7bH
|
|
|
46
45
|
revengai/models/analysis_update_request.py,sha256=J4IulQ18iPHjrDMpLn9_NzMg99_W7jS8eCK17feVAtE,3403
|
|
47
46
|
revengai/models/analysis_update_tags_request.py,sha256=nrJwzS_Yg3SOkvrRcGW6eWfoG_FZn4l9dAZpRQNbV7A,2436
|
|
48
47
|
revengai/models/analysis_update_tags_response.py,sha256=KRNesNAW57hCPatnsy7ACBZORuKvWfd2XITFLwqtdbA,2936
|
|
49
|
-
revengai/models/ann_function.py,sha256=
|
|
48
|
+
revengai/models/ann_function.py,sha256=pq5pSzuebXYIQfYzRQ4Qd9JA8Vjngkv_UjEi2QpwiPk,5146
|
|
50
49
|
revengai/models/app_api_rest_v2_analyses_enums_dynamic_execution_status.py,sha256=x8VdW5OBlfoIoz3IV1HLN-SxeFh7798x6bHIggz7jF8,805
|
|
51
50
|
revengai/models/app_api_rest_v2_analyses_enums_order_by.py,sha256=Wpv3tfyAeBzN5_jkk4tBtYlJvUn8h0qudg4bvzBtKh8,739
|
|
52
51
|
revengai/models/app_api_rest_v2_analyses_responses_tag_item.py,sha256=Clh9pPBQKqeqeRiOZG4Fbh77pLPyKMCH3r3nU8Ej0Pc,2921
|
|
@@ -132,13 +131,12 @@ revengai/models/base_response_recent.py,sha256=_dcbJwsKBtmZWIS3YnQphgpa3FDkX8Vw-
|
|
|
132
131
|
revengai/models/base_response_security_checks_response.py,sha256=X1HIXKbo-Id7qB1OryHsd1WGb_UA-NndyXz6MNBYajA,4682
|
|
133
132
|
revengai/models/base_response_status.py,sha256=LI9tB94BMbcnVrBvWYrAheu_4cRoyzDvBm-ZspzenBE,4577
|
|
134
133
|
revengai/models/base_response_str.py,sha256=zTu53NE1e3zJsIw28iCudcK6Z6_1Qj1SycVTu7o4f8Q,4293
|
|
135
|
-
revengai/models/base_response_symbols_info.py,sha256=Xds6S7m0EG0hBnlJF6zgmZC5ajs_PPnTRxBMzrcgkYM,4593
|
|
136
134
|
revengai/models/base_response_tag_search_response.py,sha256=gssJNLuZNf9-I-wdgLoxMfeBalO5GwwT2bpylJYoM3g,4642
|
|
137
135
|
revengai/models/base_response_task_response.py,sha256=bXkHhQ2-D-COJji5G-pNsJYOhGeZCO6fl_ObQPDAPc4,4601
|
|
138
136
|
revengai/models/base_response_ttps.py,sha256=-YE-wpKgyPyheUtGThviW3MqJovAQD0RWLYvQe9qTjg,4536
|
|
139
137
|
revengai/models/base_response_upload_response.py,sha256=6j2_TFjqvg4McQHFjYBmPsZ8m4dBRsXBfwuApyViW8U,4617
|
|
140
138
|
revengai/models/base_response_vulnerabilities.py,sha256=gsy0wxCCt3qoD3dOvIkCESAEmdK3v0SXEf_Yud61X5M,4624
|
|
141
|
-
revengai/models/basic.py,sha256=
|
|
139
|
+
revengai/models/basic.py,sha256=hWNfm8W7yoF9HgKvNgt1nSh0qmwys5BZHRRMWiEQPK8,4358
|
|
142
140
|
revengai/models/binary_additional_details_data_response.py,sha256=PhRBpsYcvfRF32gmBD6S7DzAqrEzEXYqXYwRStoKmlU,3772
|
|
143
141
|
revengai/models/binary_additional_response.py,sha256=CiG7bH6c4mePyHsj50DKRm2iuyo0O6JzcjZ6J_jEAOs,3478
|
|
144
142
|
revengai/models/binary_ann_form.py,sha256=pGtM-LuN5dWsA_f0YiMNhlydgAlTPGPGilu1yx9sFjE,3288
|
|
@@ -151,7 +149,6 @@ revengai/models/binary_search_result.py,sha256=y2T6qBDMvdLtyfRIBzlFMs6hCdMZqQfoF
|
|
|
151
149
|
revengai/models/binary_task_status.py,sha256=hHEJcio8AYxUZBFg3WB4dyEcynczzCEIXxTtEGSlDLQ,765
|
|
152
150
|
revengai/models/block.py,sha256=zeccSEWdoStw5Dfx3TSv4AJV3IoQ7GNhrM7_5HJF9zA,2394
|
|
153
151
|
revengai/models/block_comments_generation_for_function_response.py,sha256=sVr84JNBPYxYxoLIJct7NVbHyqa_-eFXdX2pKb7zFMg,2538
|
|
154
|
-
revengai/models/boundary.py,sha256=BiUe70JhULF3P7L0oGLvhscB6rgbCMTAWpKC-dpLtQw,2716
|
|
155
152
|
revengai/models/box_plot_confidence.py,sha256=sbAJu7dTJT-g2cNQeJEK_VxaCASP3fHyXzyU_u9f3Z8,3110
|
|
156
153
|
revengai/models/callee_function_info.py,sha256=YsvcXKI9rRc7Iidko0smH9YEde_eSPLCa85sKSbW54A,3742
|
|
157
154
|
revengai/models/callees_caller_functions_response.py,sha256=iFbmAywCAlWTohtDCchXoTTIbdWEZuyenx_3ZJqnUjY,3841
|
|
@@ -222,7 +219,7 @@ revengai/models/function_info_input.py,sha256=w2WZ4xjp0nZ_gea4NrcMl5huksF-8QZB74
|
|
|
222
219
|
revengai/models/function_info_input_func_deps_inner.py,sha256=oNrQvHiraXX74EjnQ5M-xYwNIrRngk9sePKq3ANct5w,6292
|
|
223
220
|
revengai/models/function_info_output.py,sha256=iIxkZ6_KFSoz0NhbBXyNi7knPvWcIp-hmA2H51VoH6Y,3707
|
|
224
221
|
revengai/models/function_local_variable_response.py,sha256=llv5alvfVXqxE3Cs6vt7qnQNyfwj4PBoxq_Sim65jic,2733
|
|
225
|
-
revengai/models/function_mapping.py,sha256=
|
|
222
|
+
revengai/models/function_mapping.py,sha256=X4fa-lcMfO-40eVMtSTUPRpJlxdSZNEdzPTEOR0uAlg,2924
|
|
226
223
|
revengai/models/function_mapping_full.py,sha256=dax345vnk25zSPVVpAmCFrrOWXzFXW6OnhSs9zVIKpI,11948
|
|
227
224
|
revengai/models/function_name_confidence_body.py,sha256=Dz8HvTUDn5YcyCie-KMXmOdy8yF8PD-m0XzwpRyyQmg,3415
|
|
228
225
|
revengai/models/function_name_history.py,sha256=INu3KWYUpQMFfWy6oWl5iSaxrlayKr-wvuiahRCzinI,3265
|
|
@@ -310,7 +307,6 @@ revengai/models/string_functions.py,sha256=_TEfTPYSAS3-on-NCxZEpJlgcO6KrIQCW_UnF
|
|
|
310
307
|
revengai/models/structure.py,sha256=RbXBB7yS2R1_nEoPTjPe-nk0aNHXil1zBqDPXd80VU0,4022
|
|
311
308
|
revengai/models/structure_member.py,sha256=7sziErgaMiBw3Trib5V9ngLvr7O_segwePS7xnVPFko,3193
|
|
312
309
|
revengai/models/symbols.py,sha256=gbYM4MlO1hqPK1G5AJPxX5xAvhj92gYb5qdHn4WspzE,3271
|
|
313
|
-
revengai/models/symbols_info.py,sha256=ITQeE5oab77cbGqvSjkNLoL_--Pjis_vUtYai6xvZYA,3371
|
|
314
310
|
revengai/models/tag.py,sha256=Of0MVVngcaf-oVoZ0nT9_AkoeTE-VxtiscEnMD5CC3o,2342
|
|
315
311
|
revengai/models/tag_confidence_body.py,sha256=3aCx9HN8P0wpr0cNQ4PC-Kz_7R4lT3P--GhRuDUTH5s,2902
|
|
316
312
|
revengai/models/tag_origin_box_plot_confidence.py,sha256=6ZTJDf0W5p180bbysf72VyxDbFm6_rTY-RjRNTxoDuA,3047
|
|
@@ -338,6 +334,6 @@ revengai/models/vulnerabilities.py,sha256=9t6uoZd3svWyfcZJjmj6zP731Dp47Apb25y8Qt
|
|
|
338
334
|
revengai/models/vulnerability.py,sha256=P7rAOAYU5JLLpcRr824-YJgZba5kPb_J9ALV3tSNfLQ,3688
|
|
339
335
|
revengai/models/vulnerability_type.py,sha256=SyOgfMmELYYc_H84oPkikBpjwngtG5Qw9Q_86a2TPr8,866
|
|
340
336
|
revengai/models/workspace.py,sha256=chjU62GFvByEmaNd6luMNQVQLP3wlPx1zJgGJ_yyMLA,676
|
|
341
|
-
revengai-1.
|
|
342
|
-
revengai-1.
|
|
343
|
-
revengai-1.
|
|
337
|
+
revengai-1.80.0.dist-info/METADATA,sha256=vbaCtZdPTKSIW92KCz_7YRj_K20L4cE4qYtWR0LzGS0,41595
|
|
338
|
+
revengai-1.80.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
339
|
+
revengai-1.80.0.dist-info/RECORD,,
|