revengai 1.78.1__py3-none-any.whl → 1.79.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 CHANGED
@@ -13,7 +13,7 @@
13
13
  """ # noqa: E501
14
14
 
15
15
 
16
- __version__ = "v1.78.1"
16
+ __version__ = "v1.79.0"
17
17
 
18
18
  # Define package exports
19
19
  __all__ = [
@@ -37,7 +37,6 @@ __all__ = [
37
37
  "FunctionsThreatScoreApi",
38
38
  "ModelsApi",
39
39
  "SearchApi",
40
- "DefaultApi",
41
40
  "ApiResponse",
42
41
  "ApiClient",
43
42
  "Configuration",
@@ -380,7 +379,6 @@ from revengai.api.functions_renaming_history_api import FunctionsRenamingHistory
380
379
  from revengai.api.functions_threat_score_api import FunctionsThreatScoreApi as FunctionsThreatScoreApi
381
380
  from revengai.api.models_api import ModelsApi as ModelsApi
382
381
  from revengai.api.search_api import SearchApi as SearchApi
383
- from revengai.api.default_api import DefaultApi as DefaultApi
384
382
 
385
383
  # import ApiClient
386
384
  from revengai.api_response import ApiResponse as ApiResponse
revengai/api/__init__.py CHANGED
@@ -21,5 +21,4 @@ from revengai.api.functions_renaming_history_api import FunctionsRenamingHistory
21
21
  from revengai.api.functions_threat_score_api import FunctionsThreatScoreApi
22
22
  from revengai.api.models_api import ModelsApi
23
23
  from revengai.api.search_api import SearchApi
24
- from revengai.api.default_api import DefaultApi
25
24
 
@@ -25,6 +25,7 @@ from revengai.models.analysis_update_tags_request import AnalysisUpdateTagsReque
25
25
  from revengai.models.app_api_rest_v2_analyses_enums_order_by import AppApiRestV2AnalysesEnumsOrderBy
26
26
  from revengai.models.base_response_analysis_create_response import BaseResponseAnalysisCreateResponse
27
27
  from revengai.models.base_response_analysis_detail_response import BaseResponseAnalysisDetailResponse
28
+ from revengai.models.base_response_analysis_function_mapping import BaseResponseAnalysisFunctionMapping
28
29
  from revengai.models.base_response_analysis_update_tags_response import BaseResponseAnalysisUpdateTagsResponse
29
30
  from revengai.models.base_response_basic import BaseResponseBasic
30
31
  from revengai.models.base_response_binary_ann_list_response import BaseResponseBinaryAnnListResponse
@@ -1233,6 +1234,285 @@ class AnalysesCoreApi:
1233
1234
 
1234
1235
 
1235
1236
 
1237
+ @validate_call
1238
+ def get_analysis_function_map(
1239
+ self,
1240
+ analysis_id: StrictInt,
1241
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
1242
+ _request_timeout: Union[
1243
+ None,
1244
+ Annotated[StrictFloat, Field(gt=0)],
1245
+ Tuple[
1246
+ Annotated[StrictFloat, Field(gt=0)],
1247
+ Annotated[StrictFloat, Field(gt=0)]
1248
+ ]
1249
+ ] = None,
1250
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1251
+ _content_type: Optional[StrictStr] = None,
1252
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1253
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1254
+ ) -> BaseResponseAnalysisFunctionMapping:
1255
+ """Get Analysis Function Map
1256
+
1257
+ Returns three maps: a map of function ids to function addresses, it's inverse and a map of function addresses to function names.
1258
+
1259
+ :param analysis_id: (required)
1260
+ :type analysis_id: int
1261
+ :param authorization: API Key bearer token
1262
+ :type authorization: str
1263
+ :param _request_timeout: timeout setting for this request. If one
1264
+ number provided, it will be total request
1265
+ timeout. It can also be a pair (tuple) of
1266
+ (connection, read) timeouts.
1267
+ :type _request_timeout: int, tuple(int, int), optional
1268
+ :param _request_auth: set to override the auth_settings for an a single
1269
+ request; this effectively ignores the
1270
+ authentication in the spec for a single request.
1271
+ :type _request_auth: dict, optional
1272
+ :param _content_type: force content-type for the request.
1273
+ :type _content_type: str, Optional
1274
+ :param _headers: set to override the headers for a single
1275
+ request; this effectively ignores the headers
1276
+ in the spec for a single request.
1277
+ :type _headers: dict, optional
1278
+ :param _host_index: set to override the host_index for a single
1279
+ request; this effectively ignores the host_index
1280
+ in the spec for a single request.
1281
+ :type _host_index: int, optional
1282
+ :return: Returns the result object.
1283
+ """ # noqa: E501
1284
+
1285
+ _param = self._get_analysis_function_map_serialize(
1286
+ analysis_id=analysis_id,
1287
+ authorization=authorization,
1288
+ _request_auth=_request_auth,
1289
+ _content_type=_content_type,
1290
+ _headers=_headers,
1291
+ _host_index=_host_index
1292
+ )
1293
+
1294
+ _response_types_map: Dict[str, Optional[str]] = {
1295
+ '200': "BaseResponseAnalysisFunctionMapping",
1296
+ '422': "BaseResponse",
1297
+ }
1298
+ response_data = self.api_client.call_api(
1299
+ *_param,
1300
+ _request_timeout=_request_timeout
1301
+ )
1302
+ response_data.read()
1303
+ return self.api_client.response_deserialize(
1304
+ response_data=response_data,
1305
+ response_types_map=_response_types_map,
1306
+ ).data
1307
+
1308
+
1309
+ @validate_call
1310
+ def get_analysis_function_map_with_http_info(
1311
+ self,
1312
+ analysis_id: StrictInt,
1313
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
1314
+ _request_timeout: Union[
1315
+ None,
1316
+ Annotated[StrictFloat, Field(gt=0)],
1317
+ Tuple[
1318
+ Annotated[StrictFloat, Field(gt=0)],
1319
+ Annotated[StrictFloat, Field(gt=0)]
1320
+ ]
1321
+ ] = None,
1322
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1323
+ _content_type: Optional[StrictStr] = None,
1324
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1325
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1326
+ ) -> ApiResponse[BaseResponseAnalysisFunctionMapping]:
1327
+ """Get Analysis Function Map
1328
+
1329
+ Returns three maps: a map of function ids to function addresses, it's inverse and a map of function addresses to function names.
1330
+
1331
+ :param analysis_id: (required)
1332
+ :type analysis_id: int
1333
+ :param authorization: API Key bearer token
1334
+ :type authorization: str
1335
+ :param _request_timeout: timeout setting for this request. If one
1336
+ number provided, it will be total request
1337
+ timeout. It can also be a pair (tuple) of
1338
+ (connection, read) timeouts.
1339
+ :type _request_timeout: int, tuple(int, int), optional
1340
+ :param _request_auth: set to override the auth_settings for an a single
1341
+ request; this effectively ignores the
1342
+ authentication in the spec for a single request.
1343
+ :type _request_auth: dict, optional
1344
+ :param _content_type: force content-type for the request.
1345
+ :type _content_type: str, Optional
1346
+ :param _headers: set to override the headers for a single
1347
+ request; this effectively ignores the headers
1348
+ in the spec for a single request.
1349
+ :type _headers: dict, optional
1350
+ :param _host_index: set to override the host_index for a single
1351
+ request; this effectively ignores the host_index
1352
+ in the spec for a single request.
1353
+ :type _host_index: int, optional
1354
+ :return: Returns the result object.
1355
+ """ # noqa: E501
1356
+
1357
+ _param = self._get_analysis_function_map_serialize(
1358
+ analysis_id=analysis_id,
1359
+ authorization=authorization,
1360
+ _request_auth=_request_auth,
1361
+ _content_type=_content_type,
1362
+ _headers=_headers,
1363
+ _host_index=_host_index
1364
+ )
1365
+
1366
+ _response_types_map: Dict[str, Optional[str]] = {
1367
+ '200': "BaseResponseAnalysisFunctionMapping",
1368
+ '422': "BaseResponse",
1369
+ }
1370
+ response_data = self.api_client.call_api(
1371
+ *_param,
1372
+ _request_timeout=_request_timeout
1373
+ )
1374
+ response_data.read()
1375
+ return self.api_client.response_deserialize(
1376
+ response_data=response_data,
1377
+ response_types_map=_response_types_map,
1378
+ )
1379
+
1380
+
1381
+ @validate_call
1382
+ def get_analysis_function_map_without_preload_content(
1383
+ self,
1384
+ analysis_id: StrictInt,
1385
+ authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
1386
+ _request_timeout: Union[
1387
+ None,
1388
+ Annotated[StrictFloat, Field(gt=0)],
1389
+ Tuple[
1390
+ Annotated[StrictFloat, Field(gt=0)],
1391
+ Annotated[StrictFloat, Field(gt=0)]
1392
+ ]
1393
+ ] = None,
1394
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1395
+ _content_type: Optional[StrictStr] = None,
1396
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1397
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1398
+ ) -> RESTResponseType:
1399
+ """Get Analysis Function Map
1400
+
1401
+ Returns three maps: a map of function ids to function addresses, it's inverse and a map of function addresses to function names.
1402
+
1403
+ :param analysis_id: (required)
1404
+ :type analysis_id: int
1405
+ :param authorization: API Key bearer token
1406
+ :type authorization: str
1407
+ :param _request_timeout: timeout setting for this request. If one
1408
+ number provided, it will be total request
1409
+ timeout. It can also be a pair (tuple) of
1410
+ (connection, read) timeouts.
1411
+ :type _request_timeout: int, tuple(int, int), optional
1412
+ :param _request_auth: set to override the auth_settings for an a single
1413
+ request; this effectively ignores the
1414
+ authentication in the spec for a single request.
1415
+ :type _request_auth: dict, optional
1416
+ :param _content_type: force content-type for the request.
1417
+ :type _content_type: str, Optional
1418
+ :param _headers: set to override the headers for a single
1419
+ request; this effectively ignores the headers
1420
+ in the spec for a single request.
1421
+ :type _headers: dict, optional
1422
+ :param _host_index: set to override the host_index for a single
1423
+ request; this effectively ignores the host_index
1424
+ in the spec for a single request.
1425
+ :type _host_index: int, optional
1426
+ :return: Returns the result object.
1427
+ """ # noqa: E501
1428
+
1429
+ _param = self._get_analysis_function_map_serialize(
1430
+ analysis_id=analysis_id,
1431
+ authorization=authorization,
1432
+ _request_auth=_request_auth,
1433
+ _content_type=_content_type,
1434
+ _headers=_headers,
1435
+ _host_index=_host_index
1436
+ )
1437
+
1438
+ _response_types_map: Dict[str, Optional[str]] = {
1439
+ '200': "BaseResponseAnalysisFunctionMapping",
1440
+ '422': "BaseResponse",
1441
+ }
1442
+ response_data = self.api_client.call_api(
1443
+ *_param,
1444
+ _request_timeout=_request_timeout
1445
+ )
1446
+ return response_data.response
1447
+
1448
+
1449
+ def _get_analysis_function_map_serialize(
1450
+ self,
1451
+ analysis_id,
1452
+ authorization,
1453
+ _request_auth,
1454
+ _content_type,
1455
+ _headers,
1456
+ _host_index,
1457
+ ) -> RequestSerialized:
1458
+
1459
+ _host = None
1460
+
1461
+ _collection_formats: Dict[str, str] = {
1462
+ }
1463
+
1464
+ _path_params: Dict[str, str] = {}
1465
+ _query_params: List[Tuple[str, str]] = []
1466
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1467
+ _form_params: List[Tuple[str, str]] = []
1468
+ _files: Dict[
1469
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1470
+ ] = {}
1471
+ _body_params: Optional[bytes] = None
1472
+
1473
+ # process the path parameters
1474
+ if analysis_id is not None:
1475
+ _path_params['analysis_id'] = analysis_id
1476
+ # process the query parameters
1477
+ # process the header parameters
1478
+ if authorization is not None:
1479
+ _header_params['authorization'] = authorization
1480
+ # process the form parameters
1481
+ # process the body parameter
1482
+
1483
+
1484
+ # set the HTTP header `Accept`
1485
+ if 'Accept' not in _header_params:
1486
+ _header_params['Accept'] = self.api_client.select_header_accept(
1487
+ [
1488
+ 'application/json'
1489
+ ]
1490
+ )
1491
+
1492
+
1493
+ # authentication setting
1494
+ _auth_settings: List[str] = [
1495
+ 'APIKey'
1496
+ ]
1497
+
1498
+ return self.api_client.param_serialize(
1499
+ method='GET',
1500
+ resource_path='/v2/analyses/{analysis_id}/func_maps',
1501
+ path_params=_path_params,
1502
+ query_params=_query_params,
1503
+ header_params=_header_params,
1504
+ body=_body_params,
1505
+ post_params=_form_params,
1506
+ files=_files,
1507
+ auth_settings=_auth_settings,
1508
+ collection_formats=_collection_formats,
1509
+ _host=_host,
1510
+ _request_auth=_request_auth
1511
+ )
1512
+
1513
+
1514
+
1515
+
1236
1516
  @validate_call
1237
1517
  def get_analysis_logs(
1238
1518
  self,
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.78.1/python'
93
+ self.user_agent = 'OpenAPI-Generator/v1.79.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.78.1\n"\
533
- "SDK Package Version: v1.78.1".\
532
+ "Version of the API: v1.79.0\n"\
533
+ "SDK Package Version: v1.79.0".\
534
534
  format(env=sys.platform, pyversion=sys.version)
535
535
 
536
536
  def get_host_settings(self) -> List[HostSetting]:
@@ -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
- __properties: ClassVar[List[str]] = ["function_map", "inverse_function_map"]
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.78.1
3
+ Version: 1.79.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,6 +63,7 @@ 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
@@ -170,7 +171,6 @@ Class | Method | HTTP request | Description
170
171
  *SearchApi* | [**search_collections**](docs/SearchApi.md#search_collections) | **GET** /v2/search/collections | Collections search
171
172
  *SearchApi* | [**search_functions**](docs/SearchApi.md#search_functions) | **GET** /v2/search/functions | Functions search
172
173
  *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
174
 
175
175
 
176
176
  ## Documentation For Models
@@ -1,13 +1,13 @@
1
- revengai/__init__.py,sha256=US5BrQNuJPs3E0mY6WDIYy43RCnFy_kBIIMOmtJ6fuE,43525
2
- revengai/api_client.py,sha256=LA7Yxqby2aVrvhTcYLYLZzdEHTDghkp3MxIxk3b3uik,27670
1
+ revengai/__init__.py,sha256=9Q8-GB4zichj6cstzpItOS-qys9iRyYv800jhoS6GfQ,43445
2
+ revengai/api_client.py,sha256=LL1XBZAIdrL50Xry_WjUIexjz0dDszC0MAePnj589C8,27670
3
3
  revengai/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
4
- revengai/configuration.py,sha256=PXhC2BsojG7oAfrkJWlzRjWLcuSB8J2jOd8WRZJGg2Q,18749
4
+ revengai/configuration.py,sha256=cawkDpwOdW1LGp2LcQDE_l01m2ZKBcOHJiN1Y7OmIQo,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=0RWymEgdEdR3_QjuvOUc1lubqqnTvQv9PnJVjwdAqds,1444
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=Kaz3uLxevn9UOxR7lOkLZVIcjl5AxUoB6hK7tn2KXBs,183627
10
+ revengai/api/analyses_core_api.py,sha256=lcnaGDlp921oDfF_3w5iXzPj8kg8ybp27X1LMGqHqt0,194954
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,7 +15,6 @@ 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
@@ -222,7 +221,7 @@ revengai/models/function_info_input.py,sha256=w2WZ4xjp0nZ_gea4NrcMl5huksF-8QZB74
222
221
  revengai/models/function_info_input_func_deps_inner.py,sha256=oNrQvHiraXX74EjnQ5M-xYwNIrRngk9sePKq3ANct5w,6292
223
222
  revengai/models/function_info_output.py,sha256=iIxkZ6_KFSoz0NhbBXyNi7knPvWcIp-hmA2H51VoH6Y,3707
224
223
  revengai/models/function_local_variable_response.py,sha256=llv5alvfVXqxE3Cs6vt7qnQNyfwj4PBoxq_Sim65jic,2733
225
- revengai/models/function_mapping.py,sha256=_3xUeb8h_Jfxf4NwwrWCaZcK0lOqvMVwfsCe-HAdB_g,2744
224
+ revengai/models/function_mapping.py,sha256=X4fa-lcMfO-40eVMtSTUPRpJlxdSZNEdzPTEOR0uAlg,2924
226
225
  revengai/models/function_mapping_full.py,sha256=dax345vnk25zSPVVpAmCFrrOWXzFXW6OnhSs9zVIKpI,11948
227
226
  revengai/models/function_name_confidence_body.py,sha256=Dz8HvTUDn5YcyCie-KMXmOdy8yF8PD-m0XzwpRyyQmg,3415
228
227
  revengai/models/function_name_history.py,sha256=INu3KWYUpQMFfWy6oWl5iSaxrlayKr-wvuiahRCzinI,3265
@@ -338,6 +337,6 @@ revengai/models/vulnerabilities.py,sha256=9t6uoZd3svWyfcZJjmj6zP731Dp47Apb25y8Qt
338
337
  revengai/models/vulnerability.py,sha256=P7rAOAYU5JLLpcRr824-YJgZba5kPb_J9ALV3tSNfLQ,3688
339
338
  revengai/models/vulnerability_type.py,sha256=SyOgfMmELYYc_H84oPkikBpjwngtG5Qw9Q_86a2TPr8,866
340
339
  revengai/models/workspace.py,sha256=chjU62GFvByEmaNd6luMNQVQLP3wlPx1zJgGJ_yyMLA,676
341
- revengai-1.78.1.dist-info/METADATA,sha256=AAbfBScqBaN9y5AcXzZDFJm0fYePCdUgGNx2r1Ljfq8,41911
342
- revengai-1.78.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
343
- revengai-1.78.1.dist-info/RECORD,,
340
+ revengai-1.79.0.dist-info/METADATA,sha256=7s0kP4Sag5nD0OKxED0mpCNWbfg9-_IbRGN2ALeLOvU,41921
341
+ revengai-1.79.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
342
+ revengai-1.79.0.dist-info/RECORD,,
@@ -1,317 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- RevEng.AI API
5
-
6
- RevEng.AI is Similarity Search Engine for executable binaries
7
-
8
- Generated by OpenAPI Generator (https://openapi-generator.tech)
9
-
10
- Do not edit the class manually.
11
- """ # noqa: E501
12
-
13
- import warnings
14
- from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
15
- from typing import Any, Dict, List, Optional, Tuple, Union
16
- from typing_extensions import Annotated
17
-
18
- from pydantic import Field, StrictInt, StrictStr
19
- from typing import Optional
20
- from typing_extensions import Annotated
21
- from revengai.models.base_response_analysis_function_mapping import BaseResponseAnalysisFunctionMapping
22
-
23
- from revengai.api_client import ApiClient, RequestSerialized
24
- from revengai.api_response import ApiResponse
25
- from revengai.rest import RESTResponseType
26
-
27
-
28
- class DefaultApi:
29
- """NOTE: This class is auto generated by OpenAPI Generator
30
- Ref: https://openapi-generator.tech
31
-
32
- Do not edit the class manually.
33
- """
34
-
35
- def __init__(self, api_client=None) -> None:
36
- if api_client is None:
37
- api_client = ApiClient.get_default()
38
- self.api_client = api_client
39
-
40
-
41
- @validate_call
42
- def get_analysis_function_map(
43
- self,
44
- analysis_id: StrictInt,
45
- authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
46
- _request_timeout: Union[
47
- None,
48
- Annotated[StrictFloat, Field(gt=0)],
49
- Tuple[
50
- Annotated[StrictFloat, Field(gt=0)],
51
- Annotated[StrictFloat, Field(gt=0)]
52
- ]
53
- ] = None,
54
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
55
- _content_type: Optional[StrictStr] = None,
56
- _headers: Optional[Dict[StrictStr, Any]] = None,
57
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
58
- ) -> BaseResponseAnalysisFunctionMapping:
59
- """Get Analysis Function Map
60
-
61
- Returns the a map of function ids to function addresses for the analysis, and it's inverse.
62
-
63
- :param analysis_id: (required)
64
- :type analysis_id: int
65
- :param authorization: API Key bearer token
66
- :type authorization: str
67
- :param _request_timeout: timeout setting for this request. If one
68
- number provided, it will be total request
69
- timeout. It can also be a pair (tuple) of
70
- (connection, read) timeouts.
71
- :type _request_timeout: int, tuple(int, int), optional
72
- :param _request_auth: set to override the auth_settings for an a single
73
- request; this effectively ignores the
74
- authentication in the spec for a single request.
75
- :type _request_auth: dict, optional
76
- :param _content_type: force content-type for the request.
77
- :type _content_type: str, Optional
78
- :param _headers: set to override the headers for a single
79
- request; this effectively ignores the headers
80
- in the spec for a single request.
81
- :type _headers: dict, optional
82
- :param _host_index: set to override the host_index for a single
83
- request; this effectively ignores the host_index
84
- in the spec for a single request.
85
- :type _host_index: int, optional
86
- :return: Returns the result object.
87
- """ # noqa: E501
88
-
89
- _param = self._get_analysis_function_map_serialize(
90
- analysis_id=analysis_id,
91
- authorization=authorization,
92
- _request_auth=_request_auth,
93
- _content_type=_content_type,
94
- _headers=_headers,
95
- _host_index=_host_index
96
- )
97
-
98
- _response_types_map: Dict[str, Optional[str]] = {
99
- '200': "BaseResponseAnalysisFunctionMapping",
100
- '422': "BaseResponse",
101
- }
102
- response_data = self.api_client.call_api(
103
- *_param,
104
- _request_timeout=_request_timeout
105
- )
106
- response_data.read()
107
- return self.api_client.response_deserialize(
108
- response_data=response_data,
109
- response_types_map=_response_types_map,
110
- ).data
111
-
112
-
113
- @validate_call
114
- def get_analysis_function_map_with_http_info(
115
- self,
116
- analysis_id: StrictInt,
117
- authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
118
- _request_timeout: Union[
119
- None,
120
- Annotated[StrictFloat, Field(gt=0)],
121
- Tuple[
122
- Annotated[StrictFloat, Field(gt=0)],
123
- Annotated[StrictFloat, Field(gt=0)]
124
- ]
125
- ] = None,
126
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
127
- _content_type: Optional[StrictStr] = None,
128
- _headers: Optional[Dict[StrictStr, Any]] = None,
129
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
130
- ) -> ApiResponse[BaseResponseAnalysisFunctionMapping]:
131
- """Get Analysis Function Map
132
-
133
- Returns the a map of function ids to function addresses for the analysis, and it's inverse.
134
-
135
- :param analysis_id: (required)
136
- :type analysis_id: int
137
- :param authorization: API Key bearer token
138
- :type authorization: str
139
- :param _request_timeout: timeout setting for this request. If one
140
- number provided, it will be total request
141
- timeout. It can also be a pair (tuple) of
142
- (connection, read) timeouts.
143
- :type _request_timeout: int, tuple(int, int), optional
144
- :param _request_auth: set to override the auth_settings for an a single
145
- request; this effectively ignores the
146
- authentication in the spec for a single request.
147
- :type _request_auth: dict, optional
148
- :param _content_type: force content-type for the request.
149
- :type _content_type: str, Optional
150
- :param _headers: set to override the headers for a single
151
- request; this effectively ignores the headers
152
- in the spec for a single request.
153
- :type _headers: dict, optional
154
- :param _host_index: set to override the host_index for a single
155
- request; this effectively ignores the host_index
156
- in the spec for a single request.
157
- :type _host_index: int, optional
158
- :return: Returns the result object.
159
- """ # noqa: E501
160
-
161
- _param = self._get_analysis_function_map_serialize(
162
- analysis_id=analysis_id,
163
- authorization=authorization,
164
- _request_auth=_request_auth,
165
- _content_type=_content_type,
166
- _headers=_headers,
167
- _host_index=_host_index
168
- )
169
-
170
- _response_types_map: Dict[str, Optional[str]] = {
171
- '200': "BaseResponseAnalysisFunctionMapping",
172
- '422': "BaseResponse",
173
- }
174
- response_data = self.api_client.call_api(
175
- *_param,
176
- _request_timeout=_request_timeout
177
- )
178
- response_data.read()
179
- return self.api_client.response_deserialize(
180
- response_data=response_data,
181
- response_types_map=_response_types_map,
182
- )
183
-
184
-
185
- @validate_call
186
- def get_analysis_function_map_without_preload_content(
187
- self,
188
- analysis_id: StrictInt,
189
- authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
190
- _request_timeout: Union[
191
- None,
192
- Annotated[StrictFloat, Field(gt=0)],
193
- Tuple[
194
- Annotated[StrictFloat, Field(gt=0)],
195
- Annotated[StrictFloat, Field(gt=0)]
196
- ]
197
- ] = None,
198
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
199
- _content_type: Optional[StrictStr] = None,
200
- _headers: Optional[Dict[StrictStr, Any]] = None,
201
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
202
- ) -> RESTResponseType:
203
- """Get Analysis Function Map
204
-
205
- Returns the a map of function ids to function addresses for the analysis, and it's inverse.
206
-
207
- :param analysis_id: (required)
208
- :type analysis_id: int
209
- :param authorization: API Key bearer token
210
- :type authorization: str
211
- :param _request_timeout: timeout setting for this request. If one
212
- number provided, it will be total request
213
- timeout. It can also be a pair (tuple) of
214
- (connection, read) timeouts.
215
- :type _request_timeout: int, tuple(int, int), optional
216
- :param _request_auth: set to override the auth_settings for an a single
217
- request; this effectively ignores the
218
- authentication in the spec for a single request.
219
- :type _request_auth: dict, optional
220
- :param _content_type: force content-type for the request.
221
- :type _content_type: str, Optional
222
- :param _headers: set to override the headers for a single
223
- request; this effectively ignores the headers
224
- in the spec for a single request.
225
- :type _headers: dict, optional
226
- :param _host_index: set to override the host_index for a single
227
- request; this effectively ignores the host_index
228
- in the spec for a single request.
229
- :type _host_index: int, optional
230
- :return: Returns the result object.
231
- """ # noqa: E501
232
-
233
- _param = self._get_analysis_function_map_serialize(
234
- analysis_id=analysis_id,
235
- authorization=authorization,
236
- _request_auth=_request_auth,
237
- _content_type=_content_type,
238
- _headers=_headers,
239
- _host_index=_host_index
240
- )
241
-
242
- _response_types_map: Dict[str, Optional[str]] = {
243
- '200': "BaseResponseAnalysisFunctionMapping",
244
- '422': "BaseResponse",
245
- }
246
- response_data = self.api_client.call_api(
247
- *_param,
248
- _request_timeout=_request_timeout
249
- )
250
- return response_data.response
251
-
252
-
253
- def _get_analysis_function_map_serialize(
254
- self,
255
- analysis_id,
256
- authorization,
257
- _request_auth,
258
- _content_type,
259
- _headers,
260
- _host_index,
261
- ) -> RequestSerialized:
262
-
263
- _host = None
264
-
265
- _collection_formats: Dict[str, str] = {
266
- }
267
-
268
- _path_params: Dict[str, str] = {}
269
- _query_params: List[Tuple[str, str]] = []
270
- _header_params: Dict[str, Optional[str]] = _headers or {}
271
- _form_params: List[Tuple[str, str]] = []
272
- _files: Dict[
273
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
274
- ] = {}
275
- _body_params: Optional[bytes] = None
276
-
277
- # process the path parameters
278
- if analysis_id is not None:
279
- _path_params['analysis_id'] = analysis_id
280
- # process the query parameters
281
- # process the header parameters
282
- if authorization is not None:
283
- _header_params['authorization'] = authorization
284
- # process the form parameters
285
- # process the body parameter
286
-
287
-
288
- # set the HTTP header `Accept`
289
- if 'Accept' not in _header_params:
290
- _header_params['Accept'] = self.api_client.select_header_accept(
291
- [
292
- 'application/json'
293
- ]
294
- )
295
-
296
-
297
- # authentication setting
298
- _auth_settings: List[str] = [
299
- 'APIKey'
300
- ]
301
-
302
- return self.api_client.param_serialize(
303
- method='GET',
304
- resource_path='/v2/analyses/{analysis_id}/func_maps',
305
- path_params=_path_params,
306
- query_params=_query_params,
307
- header_params=_header_params,
308
- body=_body_params,
309
- post_params=_form_params,
310
- files=_files,
311
- auth_settings=_auth_settings,
312
- collection_formats=_collection_formats,
313
- _host=_host,
314
- _request_auth=_request_auth
315
- )
316
-
317
-