revengai 2.0.0__py3-none-any.whl → 2.1.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 -1
- revengai/api/analyses_core_api.py +3 -3
- revengai/api_client.py +1 -1
- revengai/configuration.py +2 -2
- revengai/models/app_api_rest_v2_functions_responses_function.py +7 -2
- revengai/models/matched_function.py +1 -6
- {revengai-2.0.0.dist-info → revengai-2.1.0.dist-info}/METADATA +1 -1
- {revengai-2.0.0.dist-info → revengai-2.1.0.dist-info}/RECORD +10 -10
- {revengai-2.0.0.dist-info → revengai-2.1.0.dist-info}/WHEEL +0 -0
- {revengai-2.0.0.dist-info → revengai-2.1.0.dist-info}/licenses/LICENSE.md +0 -0
revengai/__init__.py
CHANGED
|
@@ -928,7 +928,7 @@ class AnalysesCoreApi:
|
|
|
928
928
|
) -> BaseResponseBasic:
|
|
929
929
|
"""Gets basic analysis information
|
|
930
930
|
|
|
931
|
-
|
|
931
|
+
Returns basic analysis information for an analysis
|
|
932
932
|
|
|
933
933
|
:param analysis_id: (required)
|
|
934
934
|
:type analysis_id: int
|
|
@@ -996,7 +996,7 @@ class AnalysesCoreApi:
|
|
|
996
996
|
) -> ApiResponse[BaseResponseBasic]:
|
|
997
997
|
"""Gets basic analysis information
|
|
998
998
|
|
|
999
|
-
|
|
999
|
+
Returns basic analysis information for an analysis
|
|
1000
1000
|
|
|
1001
1001
|
:param analysis_id: (required)
|
|
1002
1002
|
:type analysis_id: int
|
|
@@ -1064,7 +1064,7 @@ class AnalysesCoreApi:
|
|
|
1064
1064
|
) -> RESTResponseType:
|
|
1065
1065
|
"""Gets basic analysis information
|
|
1066
1066
|
|
|
1067
|
-
|
|
1067
|
+
Returns basic analysis information for an analysis
|
|
1068
1068
|
|
|
1069
1069
|
:param analysis_id: (required)
|
|
1070
1070
|
:type analysis_id: int
|
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/v2.
|
|
93
|
+
self.user_agent = 'OpenAPI-Generator/v2.1.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: v2.
|
|
533
|
-
"SDK Package Version: v2.
|
|
532
|
+
"Version of the API: v2.1.0\n"\
|
|
533
|
+
"SDK Package Version: v2.1.0".\
|
|
534
534
|
format(env=sys.platform, pyversion=sys.version)
|
|
535
535
|
|
|
536
536
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -17,7 +17,7 @@ import re # noqa: F401
|
|
|
17
17
|
import json
|
|
18
18
|
|
|
19
19
|
from pydantic import BaseModel, ConfigDict, Field, StrictInt
|
|
20
|
-
from typing import Any, ClassVar, Dict, List
|
|
20
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
21
21
|
from typing import Optional, Set
|
|
22
22
|
from typing_extensions import Self
|
|
23
23
|
|
|
@@ -25,7 +25,7 @@ class AppApiRestV2FunctionsResponsesFunction(BaseModel):
|
|
|
25
25
|
"""
|
|
26
26
|
Function schema used in function strings response.
|
|
27
27
|
""" # noqa: E501
|
|
28
|
-
function_id: StrictInt
|
|
28
|
+
function_id: Optional[StrictInt] = None
|
|
29
29
|
function_vaddr: StrictInt = Field(description="Function virtual address")
|
|
30
30
|
__properties: ClassVar[List[str]] = ["function_id", "function_vaddr"]
|
|
31
31
|
|
|
@@ -68,6 +68,11 @@ class AppApiRestV2FunctionsResponsesFunction(BaseModel):
|
|
|
68
68
|
exclude=excluded_fields,
|
|
69
69
|
exclude_none=True,
|
|
70
70
|
)
|
|
71
|
+
# set to None if function_id (nullable) is None
|
|
72
|
+
# and model_fields_set contains the field
|
|
73
|
+
if self.function_id is None and "function_id" in self.model_fields_set:
|
|
74
|
+
_dict['function_id'] = None
|
|
75
|
+
|
|
71
76
|
return _dict
|
|
72
77
|
|
|
73
78
|
@classmethod
|
|
@@ -29,7 +29,7 @@ class MatchedFunction(BaseModel):
|
|
|
29
29
|
binary_id: StrictInt
|
|
30
30
|
function_name: StrictStr
|
|
31
31
|
function_vaddr: StrictInt
|
|
32
|
-
mangled_name:
|
|
32
|
+
mangled_name: StrictStr
|
|
33
33
|
debug: StrictBool
|
|
34
34
|
binary_name: StrictStr
|
|
35
35
|
sha_256_hash: StrictStr
|
|
@@ -77,11 +77,6 @@ class MatchedFunction(BaseModel):
|
|
|
77
77
|
exclude=excluded_fields,
|
|
78
78
|
exclude_none=True,
|
|
79
79
|
)
|
|
80
|
-
# set to None if mangled_name (nullable) is None
|
|
81
|
-
# and model_fields_set contains the field
|
|
82
|
-
if self.mangled_name is None and "mangled_name" in self.model_fields_set:
|
|
83
|
-
_dict['mangled_name'] = None
|
|
84
|
-
|
|
85
80
|
# set to None if similarity (nullable) is None
|
|
86
81
|
# and model_fields_set contains the field
|
|
87
82
|
if self.similarity is None and "similarity" in self.model_fields_set:
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
revengai/__init__.py,sha256=
|
|
2
|
-
revengai/api_client.py,sha256=
|
|
1
|
+
revengai/__init__.py,sha256=eUyB-Vf0fB_mO79wF7CSa2hwVQqrBJ3n7yMp7JEp48k,42410
|
|
2
|
+
revengai/api_client.py,sha256=MeiemWWpAhM_kJ4gudHCkOSLjaVCtMd7wGW7cjCLdQ4,27669
|
|
3
3
|
revengai/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
|
-
revengai/configuration.py,sha256=
|
|
4
|
+
revengai/configuration.py,sha256=KvzDJz15t_JU8zlVVfNfq9HePm0Qa-8Ivh0VB7XsPa0,18747
|
|
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
8
|
revengai/api/__init__.py,sha256=ercHI6-ZXgrfZ-crplF-fSQbSXY4xPellnIkvTt68uc,1320
|
|
9
9
|
revengai/api/analyses_comments_api.py,sha256=p_3N8KmHSBsBtsiW0rAc_LtsM-X3NOJEP86-9VUknoc,46292
|
|
10
|
-
revengai/api/analyses_core_api.py,sha256=
|
|
10
|
+
revengai/api/analyses_core_api.py,sha256=FXP25U3GIUXm9a6oudJ7m5R_ESAOLIyIdFczPcaX2pg,172165
|
|
11
11
|
revengai/api/analyses_dynamic_execution_api.py,sha256=N1SlAlsokt8us_x11tJpjK5GSAk-kuEECNO9KqtO0dI,71948
|
|
12
12
|
revengai/api/analyses_results_metadata_api.py,sha256=jRUub32skTygbVgo4K81XLLsJlL__1I99EO55ctuVEw,73593
|
|
13
13
|
revengai/api/analyses_security_checks_api.py,sha256=YqdVI96mNOb7yyCX2gm3sDABbNr7BMO6jUtvmwKPctk,33219
|
|
@@ -49,7 +49,7 @@ revengai/models/app_api_rest_v2_analyses_enums_dynamic_execution_status.py,sha25
|
|
|
49
49
|
revengai/models/app_api_rest_v2_analyses_enums_order_by.py,sha256=Wpv3tfyAeBzN5_jkk4tBtYlJvUn8h0qudg4bvzBtKh8,739
|
|
50
50
|
revengai/models/app_api_rest_v2_analyses_responses_tag_item.py,sha256=Clh9pPBQKqeqeRiOZG4Fbh77pLPyKMCH3r3nU8Ej0Pc,2921
|
|
51
51
|
revengai/models/app_api_rest_v2_collections_enums_order_by.py,sha256=IVV9Auj0-HwTYYI0ZvJv-P3ciLOkq0l7MOyy0A5s92I,846
|
|
52
|
-
revengai/models/app_api_rest_v2_functions_responses_function.py,sha256=
|
|
52
|
+
revengai/models/app_api_rest_v2_functions_responses_function.py,sha256=DYRGwkWhrmdjgQQ13SFRwkcEF7VyaJnsJWLrcZiQkvc,2936
|
|
53
53
|
revengai/models/app_api_rest_v2_functions_types_function.py,sha256=t3BttHuPogip0-MMl85lmIcc3wi_1dBcU1Ci-kEteTc,4071
|
|
54
54
|
revengai/models/app_services_binary_ann_schema_tag_item.py,sha256=m25sIz8KEsPES0XGjmOZFhmLNLmB-jsakfRUpRfiMks,2977
|
|
55
55
|
revengai/models/app_services_dynamic_execution_schemas_dynamic_execution_status.py,sha256=9e3LDnw0iNCbowQPFTkNyIqkzsCQyJLZrx6tqRska6o,2562
|
|
@@ -252,7 +252,7 @@ revengai/models/list_collection_results.py,sha256=ZYGFTvOQfI234u67tURX8J0jwb6q-A
|
|
|
252
252
|
revengai/models/login_request.py,sha256=48uYtkWFL_Q-hN64P1f15ExGJvbab9XLymBtDduQvg0,2684
|
|
253
253
|
revengai/models/login_response.py,sha256=O35cqntoQ68IdYCBtHTYhPXlDqw8CIlnK-bNjf6QMO0,2461
|
|
254
254
|
revengai/models/logs.py,sha256=cV_V-xN6q-yTd7eL-X89ugqz5ifWPsFPo6qYFgpS_Pw,2419
|
|
255
|
-
revengai/models/matched_function.py,sha256=
|
|
255
|
+
revengai/models/matched_function.py,sha256=P8-1NM9UAaDzIriRPhWk83gEFMPkUeehQDZYt3hSB4g,3910
|
|
256
256
|
revengai/models/matched_function_suggestion.py,sha256=UK5Yrw2xlJ0dcOKIga_Syi0Ly_rWjvio6KPzPNbuDDg,3322
|
|
257
257
|
revengai/models/meta_model.py,sha256=GbyFJZ9kwvK1Gqg8QnJ1GHpaMs8cMht6j-MY1k0YSt0,2943
|
|
258
258
|
revengai/models/model_name.py,sha256=lVKok5pWyLcN1rhq1IYccC7uQQrPdyz1oohYRUMRrmw,1271
|
|
@@ -329,7 +329,7 @@ revengai/models/vulnerabilities.py,sha256=9t6uoZd3svWyfcZJjmj6zP731Dp47Apb25y8Qt
|
|
|
329
329
|
revengai/models/vulnerability.py,sha256=P7rAOAYU5JLLpcRr824-YJgZba5kPb_J9ALV3tSNfLQ,3688
|
|
330
330
|
revengai/models/vulnerability_type.py,sha256=SyOgfMmELYYc_H84oPkikBpjwngtG5Qw9Q_86a2TPr8,866
|
|
331
331
|
revengai/models/workspace.py,sha256=chjU62GFvByEmaNd6luMNQVQLP3wlPx1zJgGJ_yyMLA,676
|
|
332
|
-
revengai-2.
|
|
333
|
-
revengai-2.
|
|
334
|
-
revengai-2.
|
|
335
|
-
revengai-2.
|
|
332
|
+
revengai-2.1.0.dist-info/METADATA,sha256=Jg-ETCO4Ls3Z_tCrjkhGOjqlBcKXK9KvGv-jaBUA_V8,40938
|
|
333
|
+
revengai-2.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
334
|
+
revengai-2.1.0.dist-info/licenses/LICENSE.md,sha256=z1S-x9w52sZDqbFdJi0kL5-FLP5CR2aQA0kW8m6scaw,1052
|
|
335
|
+
revengai-2.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|