revengai 2.8.0__py3-none-any.whl → 2.11.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/functions_ai_decompilation_api.py +30 -30
- revengai/api_client.py +1 -1
- revengai/configuration.py +2 -2
- revengai/models/basic.py +3 -1
- revengai/models/callee_function_info.py +1 -1
- revengai/models/caller_function_info.py +1 -1
- revengai/models/decompilation_response.py +2 -2
- revengai/models/function_matching_result_with_best_match.py +2 -2
- revengai/models/function_rename.py +4 -9
- revengai/models/function_rename_map.py +4 -9
- revengai/models/functions_detail_response.py +2 -2
- revengai/models/matched_function.py +2 -2
- {revengai-2.8.0.dist-info → revengai-2.11.0.dist-info}/METADATA +1 -1
- {revengai-2.8.0.dist-info → revengai-2.11.0.dist-info}/RECORD +17 -17
- {revengai-2.8.0.dist-info → revengai-2.11.0.dist-info}/WHEEL +0 -0
- {revengai-2.8.0.dist-info → revengai-2.11.0.dist-info}/licenses/LICENSE.md +0 -0
revengai/__init__.py
CHANGED
|
@@ -345,7 +345,7 @@ class FunctionsAIDecompilationApi:
|
|
|
345
345
|
@validate_call
|
|
346
346
|
def create_ai_decompilation_task(
|
|
347
347
|
self,
|
|
348
|
-
function_id: StrictInt,
|
|
348
|
+
function_id: Annotated[StrictInt, Field(description="The ID of the function for which we are creating the decompilation task")],
|
|
349
349
|
_request_timeout: Union[
|
|
350
350
|
None,
|
|
351
351
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -363,7 +363,7 @@ class FunctionsAIDecompilationApi:
|
|
|
363
363
|
|
|
364
364
|
Begins the AI Decompilation Process
|
|
365
365
|
|
|
366
|
-
:param function_id: (required)
|
|
366
|
+
:param function_id: The ID of the function for which we are creating the decompilation task (required)
|
|
367
367
|
:type function_id: int
|
|
368
368
|
:param _request_timeout: timeout setting for this request. If one
|
|
369
369
|
number provided, it will be total request
|
|
@@ -417,7 +417,7 @@ class FunctionsAIDecompilationApi:
|
|
|
417
417
|
@validate_call
|
|
418
418
|
def create_ai_decompilation_task_with_http_info(
|
|
419
419
|
self,
|
|
420
|
-
function_id: StrictInt,
|
|
420
|
+
function_id: Annotated[StrictInt, Field(description="The ID of the function for which we are creating the decompilation task")],
|
|
421
421
|
_request_timeout: Union[
|
|
422
422
|
None,
|
|
423
423
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -435,7 +435,7 @@ class FunctionsAIDecompilationApi:
|
|
|
435
435
|
|
|
436
436
|
Begins the AI Decompilation Process
|
|
437
437
|
|
|
438
|
-
:param function_id: (required)
|
|
438
|
+
:param function_id: The ID of the function for which we are creating the decompilation task (required)
|
|
439
439
|
:type function_id: int
|
|
440
440
|
:param _request_timeout: timeout setting for this request. If one
|
|
441
441
|
number provided, it will be total request
|
|
@@ -489,7 +489,7 @@ class FunctionsAIDecompilationApi:
|
|
|
489
489
|
@validate_call
|
|
490
490
|
def create_ai_decompilation_task_without_preload_content(
|
|
491
491
|
self,
|
|
492
|
-
function_id: StrictInt,
|
|
492
|
+
function_id: Annotated[StrictInt, Field(description="The ID of the function for which we are creating the decompilation task")],
|
|
493
493
|
_request_timeout: Union[
|
|
494
494
|
None,
|
|
495
495
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -507,7 +507,7 @@ class FunctionsAIDecompilationApi:
|
|
|
507
507
|
|
|
508
508
|
Begins the AI Decompilation Process
|
|
509
509
|
|
|
510
|
-
:param function_id: (required)
|
|
510
|
+
:param function_id: The ID of the function for which we are creating the decompilation task (required)
|
|
511
511
|
:type function_id: int
|
|
512
512
|
:param _request_timeout: timeout setting for this request. If one
|
|
513
513
|
number provided, it will be total request
|
|
@@ -1170,7 +1170,7 @@ class FunctionsAIDecompilationApi:
|
|
|
1170
1170
|
@validate_call
|
|
1171
1171
|
def get_ai_decompilation_rating(
|
|
1172
1172
|
self,
|
|
1173
|
-
function_id: StrictInt,
|
|
1173
|
+
function_id: Annotated[StrictInt, Field(description="The ID of the function for which to get the rating")],
|
|
1174
1174
|
_request_timeout: Union[
|
|
1175
1175
|
None,
|
|
1176
1176
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1187,7 +1187,7 @@ class FunctionsAIDecompilationApi:
|
|
|
1187
1187
|
"""Get rating for AI decompilation
|
|
1188
1188
|
|
|
1189
1189
|
|
|
1190
|
-
:param function_id: (required)
|
|
1190
|
+
:param function_id: The ID of the function for which to get the rating (required)
|
|
1191
1191
|
:type function_id: int
|
|
1192
1192
|
:param _request_timeout: timeout setting for this request. If one
|
|
1193
1193
|
number provided, it will be total request
|
|
@@ -1237,7 +1237,7 @@ class FunctionsAIDecompilationApi:
|
|
|
1237
1237
|
@validate_call
|
|
1238
1238
|
def get_ai_decompilation_rating_with_http_info(
|
|
1239
1239
|
self,
|
|
1240
|
-
function_id: StrictInt,
|
|
1240
|
+
function_id: Annotated[StrictInt, Field(description="The ID of the function for which to get the rating")],
|
|
1241
1241
|
_request_timeout: Union[
|
|
1242
1242
|
None,
|
|
1243
1243
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1254,7 +1254,7 @@ class FunctionsAIDecompilationApi:
|
|
|
1254
1254
|
"""Get rating for AI decompilation
|
|
1255
1255
|
|
|
1256
1256
|
|
|
1257
|
-
:param function_id: (required)
|
|
1257
|
+
:param function_id: The ID of the function for which to get the rating (required)
|
|
1258
1258
|
:type function_id: int
|
|
1259
1259
|
:param _request_timeout: timeout setting for this request. If one
|
|
1260
1260
|
number provided, it will be total request
|
|
@@ -1304,7 +1304,7 @@ class FunctionsAIDecompilationApi:
|
|
|
1304
1304
|
@validate_call
|
|
1305
1305
|
def get_ai_decompilation_rating_without_preload_content(
|
|
1306
1306
|
self,
|
|
1307
|
-
function_id: StrictInt,
|
|
1307
|
+
function_id: Annotated[StrictInt, Field(description="The ID of the function for which to get the rating")],
|
|
1308
1308
|
_request_timeout: Union[
|
|
1309
1309
|
None,
|
|
1310
1310
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1321,7 +1321,7 @@ class FunctionsAIDecompilationApi:
|
|
|
1321
1321
|
"""Get rating for AI decompilation
|
|
1322
1322
|
|
|
1323
1323
|
|
|
1324
|
-
:param function_id: (required)
|
|
1324
|
+
:param function_id: The ID of the function for which to get the rating (required)
|
|
1325
1325
|
:type function_id: int
|
|
1326
1326
|
:param _request_timeout: timeout setting for this request. If one
|
|
1327
1327
|
number provided, it will be total request
|
|
@@ -1431,7 +1431,7 @@ class FunctionsAIDecompilationApi:
|
|
|
1431
1431
|
@validate_call
|
|
1432
1432
|
def get_ai_decompilation_task_result(
|
|
1433
1433
|
self,
|
|
1434
|
-
function_id: StrictInt,
|
|
1434
|
+
function_id: Annotated[StrictInt, Field(description="The ID of the function being decompiled")],
|
|
1435
1435
|
summarise: Annotated[Optional[StrictBool], Field(description="Generate a summary for the decompilation")] = None,
|
|
1436
1436
|
generate_inline_comments: Annotated[Optional[StrictBool], Field(description="Generate inline comments for the decompilation (only works if summarise is enabled)")] = None,
|
|
1437
1437
|
_request_timeout: Union[
|
|
@@ -1451,7 +1451,7 @@ class FunctionsAIDecompilationApi:
|
|
|
1451
1451
|
|
|
1452
1452
|
Polls the AI Decompilation Process
|
|
1453
1453
|
|
|
1454
|
-
:param function_id: (required)
|
|
1454
|
+
:param function_id: The ID of the function being decompiled (required)
|
|
1455
1455
|
:type function_id: int
|
|
1456
1456
|
:param summarise: Generate a summary for the decompilation
|
|
1457
1457
|
:type summarise: bool
|
|
@@ -1508,7 +1508,7 @@ class FunctionsAIDecompilationApi:
|
|
|
1508
1508
|
@validate_call
|
|
1509
1509
|
def get_ai_decompilation_task_result_with_http_info(
|
|
1510
1510
|
self,
|
|
1511
|
-
function_id: StrictInt,
|
|
1511
|
+
function_id: Annotated[StrictInt, Field(description="The ID of the function being decompiled")],
|
|
1512
1512
|
summarise: Annotated[Optional[StrictBool], Field(description="Generate a summary for the decompilation")] = None,
|
|
1513
1513
|
generate_inline_comments: Annotated[Optional[StrictBool], Field(description="Generate inline comments for the decompilation (only works if summarise is enabled)")] = None,
|
|
1514
1514
|
_request_timeout: Union[
|
|
@@ -1528,7 +1528,7 @@ class FunctionsAIDecompilationApi:
|
|
|
1528
1528
|
|
|
1529
1529
|
Polls the AI Decompilation Process
|
|
1530
1530
|
|
|
1531
|
-
:param function_id: (required)
|
|
1531
|
+
:param function_id: The ID of the function being decompiled (required)
|
|
1532
1532
|
:type function_id: int
|
|
1533
1533
|
:param summarise: Generate a summary for the decompilation
|
|
1534
1534
|
:type summarise: bool
|
|
@@ -1585,7 +1585,7 @@ class FunctionsAIDecompilationApi:
|
|
|
1585
1585
|
@validate_call
|
|
1586
1586
|
def get_ai_decompilation_task_result_without_preload_content(
|
|
1587
1587
|
self,
|
|
1588
|
-
function_id: StrictInt,
|
|
1588
|
+
function_id: Annotated[StrictInt, Field(description="The ID of the function being decompiled")],
|
|
1589
1589
|
summarise: Annotated[Optional[StrictBool], Field(description="Generate a summary for the decompilation")] = None,
|
|
1590
1590
|
generate_inline_comments: Annotated[Optional[StrictBool], Field(description="Generate inline comments for the decompilation (only works if summarise is enabled)")] = None,
|
|
1591
1591
|
_request_timeout: Union[
|
|
@@ -1605,7 +1605,7 @@ class FunctionsAIDecompilationApi:
|
|
|
1605
1605
|
|
|
1606
1606
|
Polls the AI Decompilation Process
|
|
1607
1607
|
|
|
1608
|
-
:param function_id: (required)
|
|
1608
|
+
:param function_id: The ID of the function being decompiled (required)
|
|
1609
1609
|
:type function_id: int
|
|
1610
1610
|
:param summarise: Generate a summary for the decompilation
|
|
1611
1611
|
:type summarise: bool
|
|
@@ -1732,7 +1732,7 @@ class FunctionsAIDecompilationApi:
|
|
|
1732
1732
|
@validate_call
|
|
1733
1733
|
def get_ai_decompilation_task_status(
|
|
1734
1734
|
self,
|
|
1735
|
-
function_id: StrictInt,
|
|
1735
|
+
function_id: Annotated[StrictInt, Field(description="The ID of the function being checked")],
|
|
1736
1736
|
_request_timeout: Union[
|
|
1737
1737
|
None,
|
|
1738
1738
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1749,7 +1749,7 @@ class FunctionsAIDecompilationApi:
|
|
|
1749
1749
|
"""Check the status of a function ai decompilation
|
|
1750
1750
|
|
|
1751
1751
|
|
|
1752
|
-
:param function_id: (required)
|
|
1752
|
+
:param function_id: The ID of the function being checked (required)
|
|
1753
1753
|
:type function_id: int
|
|
1754
1754
|
:param _request_timeout: timeout setting for this request. If one
|
|
1755
1755
|
number provided, it will be total request
|
|
@@ -1799,7 +1799,7 @@ class FunctionsAIDecompilationApi:
|
|
|
1799
1799
|
@validate_call
|
|
1800
1800
|
def get_ai_decompilation_task_status_with_http_info(
|
|
1801
1801
|
self,
|
|
1802
|
-
function_id: StrictInt,
|
|
1802
|
+
function_id: Annotated[StrictInt, Field(description="The ID of the function being checked")],
|
|
1803
1803
|
_request_timeout: Union[
|
|
1804
1804
|
None,
|
|
1805
1805
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1816,7 +1816,7 @@ class FunctionsAIDecompilationApi:
|
|
|
1816
1816
|
"""Check the status of a function ai decompilation
|
|
1817
1817
|
|
|
1818
1818
|
|
|
1819
|
-
:param function_id: (required)
|
|
1819
|
+
:param function_id: The ID of the function being checked (required)
|
|
1820
1820
|
:type function_id: int
|
|
1821
1821
|
:param _request_timeout: timeout setting for this request. If one
|
|
1822
1822
|
number provided, it will be total request
|
|
@@ -1866,7 +1866,7 @@ class FunctionsAIDecompilationApi:
|
|
|
1866
1866
|
@validate_call
|
|
1867
1867
|
def get_ai_decompilation_task_status_without_preload_content(
|
|
1868
1868
|
self,
|
|
1869
|
-
function_id: StrictInt,
|
|
1869
|
+
function_id: Annotated[StrictInt, Field(description="The ID of the function being checked")],
|
|
1870
1870
|
_request_timeout: Union[
|
|
1871
1871
|
None,
|
|
1872
1872
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1883,7 +1883,7 @@ class FunctionsAIDecompilationApi:
|
|
|
1883
1883
|
"""Check the status of a function ai decompilation
|
|
1884
1884
|
|
|
1885
1885
|
|
|
1886
|
-
:param function_id: (required)
|
|
1886
|
+
:param function_id: The ID of the function being checked (required)
|
|
1887
1887
|
:type function_id: int
|
|
1888
1888
|
:param _request_timeout: timeout setting for this request. If one
|
|
1889
1889
|
number provided, it will be total request
|
|
@@ -2306,7 +2306,7 @@ class FunctionsAIDecompilationApi:
|
|
|
2306
2306
|
@validate_call
|
|
2307
2307
|
def upsert_ai_decompilation_rating(
|
|
2308
2308
|
self,
|
|
2309
|
-
function_id: StrictInt,
|
|
2309
|
+
function_id: Annotated[StrictInt, Field(description="The ID of the function being rated")],
|
|
2310
2310
|
upsert_ai_decomplation_rating_request: UpsertAiDecomplationRatingRequest,
|
|
2311
2311
|
_request_timeout: Union[
|
|
2312
2312
|
None,
|
|
@@ -2324,7 +2324,7 @@ class FunctionsAIDecompilationApi:
|
|
|
2324
2324
|
"""Upsert rating for AI decompilation
|
|
2325
2325
|
|
|
2326
2326
|
|
|
2327
|
-
:param function_id: (required)
|
|
2327
|
+
:param function_id: The ID of the function being rated (required)
|
|
2328
2328
|
:type function_id: int
|
|
2329
2329
|
:param upsert_ai_decomplation_rating_request: (required)
|
|
2330
2330
|
:type upsert_ai_decomplation_rating_request: UpsertAiDecomplationRatingRequest
|
|
@@ -2377,7 +2377,7 @@ class FunctionsAIDecompilationApi:
|
|
|
2377
2377
|
@validate_call
|
|
2378
2378
|
def upsert_ai_decompilation_rating_with_http_info(
|
|
2379
2379
|
self,
|
|
2380
|
-
function_id: StrictInt,
|
|
2380
|
+
function_id: Annotated[StrictInt, Field(description="The ID of the function being rated")],
|
|
2381
2381
|
upsert_ai_decomplation_rating_request: UpsertAiDecomplationRatingRequest,
|
|
2382
2382
|
_request_timeout: Union[
|
|
2383
2383
|
None,
|
|
@@ -2395,7 +2395,7 @@ class FunctionsAIDecompilationApi:
|
|
|
2395
2395
|
"""Upsert rating for AI decompilation
|
|
2396
2396
|
|
|
2397
2397
|
|
|
2398
|
-
:param function_id: (required)
|
|
2398
|
+
:param function_id: The ID of the function being rated (required)
|
|
2399
2399
|
:type function_id: int
|
|
2400
2400
|
:param upsert_ai_decomplation_rating_request: (required)
|
|
2401
2401
|
:type upsert_ai_decomplation_rating_request: UpsertAiDecomplationRatingRequest
|
|
@@ -2448,7 +2448,7 @@ class FunctionsAIDecompilationApi:
|
|
|
2448
2448
|
@validate_call
|
|
2449
2449
|
def upsert_ai_decompilation_rating_without_preload_content(
|
|
2450
2450
|
self,
|
|
2451
|
-
function_id: StrictInt,
|
|
2451
|
+
function_id: Annotated[StrictInt, Field(description="The ID of the function being rated")],
|
|
2452
2452
|
upsert_ai_decomplation_rating_request: UpsertAiDecomplationRatingRequest,
|
|
2453
2453
|
_request_timeout: Union[
|
|
2454
2454
|
None,
|
|
@@ -2466,7 +2466,7 @@ class FunctionsAIDecompilationApi:
|
|
|
2466
2466
|
"""Upsert rating for AI decompilation
|
|
2467
2467
|
|
|
2468
2468
|
|
|
2469
|
-
:param function_id: (required)
|
|
2469
|
+
:param function_id: The ID of the function being rated (required)
|
|
2470
2470
|
:type function_id: int
|
|
2471
2471
|
:param upsert_ai_decomplation_rating_request: (required)
|
|
2472
2472
|
:type upsert_ai_decomplation_rating_request: UpsertAiDecomplationRatingRequest
|
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.11.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.11.0\n"\
|
|
533
|
+
"SDK Package Version: v2.11.0".\
|
|
534
534
|
format(env=sys.platform, pyversion=sys.version)
|
|
535
535
|
|
|
536
536
|
def get_host_settings(self) -> List[HostSetting]:
|
revengai/models/basic.py
CHANGED
|
@@ -31,6 +31,7 @@ class Basic(BaseModel):
|
|
|
31
31
|
creation: datetime = Field(description="When the binary was uploaded")
|
|
32
32
|
sha_256_hash: StrictStr = Field(description="The hash of the binary uploaded")
|
|
33
33
|
model_name: StrictStr = Field(description="The model name used for analysis")
|
|
34
|
+
model_id: StrictInt = Field(description="The model ID used for analysis")
|
|
34
35
|
owner_username: StrictStr = Field(description="The name of the owner of the binary")
|
|
35
36
|
analysis_scope: StrictStr = Field(description="The scope of the analysis")
|
|
36
37
|
is_owner: StrictBool = Field(description="Whether the current user is the owner")
|
|
@@ -38,7 +39,7 @@ class Basic(BaseModel):
|
|
|
38
39
|
function_count: StrictInt = Field(description="The number of functions in the binary")
|
|
39
40
|
is_advanced: StrictBool = Field(description="Whether the analysis was advanced")
|
|
40
41
|
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"]
|
|
42
|
+
__properties: ClassVar[List[str]] = ["binary_name", "binary_size", "creation", "sha_256_hash", "model_name", "model_id", "owner_username", "analysis_scope", "is_owner", "debug", "function_count", "is_advanced", "base_address"]
|
|
42
43
|
|
|
43
44
|
model_config = ConfigDict(
|
|
44
45
|
populate_by_name=True,
|
|
@@ -101,6 +102,7 @@ class Basic(BaseModel):
|
|
|
101
102
|
"creation": obj.get("creation"),
|
|
102
103
|
"sha_256_hash": obj.get("sha_256_hash"),
|
|
103
104
|
"model_name": obj.get("model_name"),
|
|
105
|
+
"model_id": obj.get("model_id"),
|
|
104
106
|
"owner_username": obj.get("owner_username"),
|
|
105
107
|
"analysis_scope": obj.get("analysis_scope"),
|
|
106
108
|
"is_owner": obj.get("is_owner"),
|
|
@@ -25,7 +25,7 @@ class CalleeFunctionInfo(BaseModel):
|
|
|
25
25
|
"""
|
|
26
26
|
CalleeFunctionInfo
|
|
27
27
|
""" # noqa: E501
|
|
28
|
-
function_id: StrictInt
|
|
28
|
+
function_id: StrictInt = Field(description="Unique identifier of the function")
|
|
29
29
|
matched_function_id: Optional[StrictInt]
|
|
30
30
|
dashboard_url: Optional[StrictStr]
|
|
31
31
|
is_external: Optional[StrictBool] = Field(default=False, description="Indicates if the function is external")
|
|
@@ -25,7 +25,7 @@ class CallerFunctionInfo(BaseModel):
|
|
|
25
25
|
"""
|
|
26
26
|
CallerFunctionInfo
|
|
27
27
|
""" # noqa: E501
|
|
28
|
-
function_id: StrictInt
|
|
28
|
+
function_id: StrictInt = Field(description="Unique identifier of the function")
|
|
29
29
|
matched_function_id: Optional[StrictInt]
|
|
30
30
|
dashboard_url: Optional[StrictStr]
|
|
31
31
|
is_external: Optional[StrictBool] = Field(default=False, description="Indicates if the function is external")
|
|
@@ -16,7 +16,7 @@ import pprint
|
|
|
16
16
|
import re # noqa: F401
|
|
17
17
|
import json
|
|
18
18
|
|
|
19
|
-
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
|
|
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
|
|
@@ -25,7 +25,7 @@ class DecompilationResponse(BaseModel):
|
|
|
25
25
|
"""
|
|
26
26
|
DecompilationResponse
|
|
27
27
|
""" # noqa: E501
|
|
28
|
-
function_id: StrictInt
|
|
28
|
+
function_id: StrictInt = Field(description="The ID of the function")
|
|
29
29
|
decompilation: StrictStr
|
|
30
30
|
calling_convention: StrictStr
|
|
31
31
|
__properties: ClassVar[List[str]] = ["function_id", "decompilation", "calling_convention"]
|
|
@@ -16,7 +16,7 @@ import pprint
|
|
|
16
16
|
import re # noqa: F401
|
|
17
17
|
import json
|
|
18
18
|
|
|
19
|
-
from pydantic import BaseModel, ConfigDict, StrictInt
|
|
19
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt
|
|
20
20
|
from typing import Any, ClassVar, Dict, List, Optional
|
|
21
21
|
from revengai.models.matched_function import MatchedFunction
|
|
22
22
|
from revengai.models.name_confidence import NameConfidence
|
|
@@ -27,7 +27,7 @@ class FunctionMatchingResultWithBestMatch(BaseModel):
|
|
|
27
27
|
"""
|
|
28
28
|
FunctionMatchingResultWithBestMatch
|
|
29
29
|
""" # noqa: E501
|
|
30
|
-
function_id: StrictInt
|
|
30
|
+
function_id: StrictInt = Field(description="Unique identifier of the function")
|
|
31
31
|
matched_functions: List[MatchedFunction]
|
|
32
32
|
confidences: Optional[List[NameConfidence]] = None
|
|
33
33
|
__properties: ClassVar[List[str]] = ["function_id", "matched_functions", "confidences"]
|
|
@@ -17,7 +17,7 @@ import re # noqa: F401
|
|
|
17
17
|
import json
|
|
18
18
|
|
|
19
19
|
from pydantic import BaseModel, ConfigDict, Field, StrictStr
|
|
20
|
-
from typing import Any, ClassVar, Dict, List
|
|
20
|
+
from typing import Any, ClassVar, Dict, List
|
|
21
21
|
from typing import Optional, Set
|
|
22
22
|
from typing_extensions import Self
|
|
23
23
|
|
|
@@ -25,8 +25,8 @@ class FunctionRename(BaseModel):
|
|
|
25
25
|
"""
|
|
26
26
|
FunctionRename
|
|
27
27
|
""" # noqa: E501
|
|
28
|
-
new_name:
|
|
29
|
-
new_mangled_name:
|
|
28
|
+
new_name: StrictStr = Field(description="The new name for the function")
|
|
29
|
+
new_mangled_name: StrictStr = Field(description="The new mangled name for the function")
|
|
30
30
|
__properties: ClassVar[List[str]] = ["new_name", "new_mangled_name"]
|
|
31
31
|
|
|
32
32
|
model_config = ConfigDict(
|
|
@@ -68,11 +68,6 @@ class FunctionRename(BaseModel):
|
|
|
68
68
|
exclude=excluded_fields,
|
|
69
69
|
exclude_none=True,
|
|
70
70
|
)
|
|
71
|
-
# set to None if new_mangled_name (nullable) is None
|
|
72
|
-
# and model_fields_set contains the field
|
|
73
|
-
if self.new_mangled_name is None and "new_mangled_name" in self.model_fields_set:
|
|
74
|
-
_dict['new_mangled_name'] = None
|
|
75
|
-
|
|
76
71
|
return _dict
|
|
77
72
|
|
|
78
73
|
@classmethod
|
|
@@ -85,7 +80,7 @@ class FunctionRename(BaseModel):
|
|
|
85
80
|
return cls.model_validate(obj)
|
|
86
81
|
|
|
87
82
|
_obj = cls.model_validate({
|
|
88
|
-
"new_name": obj.get("new_name")
|
|
83
|
+
"new_name": obj.get("new_name"),
|
|
89
84
|
"new_mangled_name": obj.get("new_mangled_name")
|
|
90
85
|
})
|
|
91
86
|
return _obj
|
|
@@ -17,7 +17,7 @@ import re # noqa: F401
|
|
|
17
17
|
import json
|
|
18
18
|
|
|
19
19
|
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
20
|
-
from typing import Any, ClassVar, Dict, List
|
|
20
|
+
from typing import Any, ClassVar, Dict, List
|
|
21
21
|
from typing import Optional, Set
|
|
22
22
|
from typing_extensions import Self
|
|
23
23
|
|
|
@@ -26,8 +26,8 @@ class FunctionRenameMap(BaseModel):
|
|
|
26
26
|
FunctionRenameMap
|
|
27
27
|
""" # noqa: E501
|
|
28
28
|
function_id: StrictInt = Field(description="The ID of the function to rename")
|
|
29
|
-
new_name:
|
|
30
|
-
new_mangled_name:
|
|
29
|
+
new_name: StrictStr = Field(description="The new name for the function")
|
|
30
|
+
new_mangled_name: StrictStr = Field(description="The new mangled name for the function")
|
|
31
31
|
__properties: ClassVar[List[str]] = ["function_id", "new_name", "new_mangled_name"]
|
|
32
32
|
|
|
33
33
|
model_config = ConfigDict(
|
|
@@ -69,11 +69,6 @@ class FunctionRenameMap(BaseModel):
|
|
|
69
69
|
exclude=excluded_fields,
|
|
70
70
|
exclude_none=True,
|
|
71
71
|
)
|
|
72
|
-
# set to None if new_mangled_name (nullable) is None
|
|
73
|
-
# and model_fields_set contains the field
|
|
74
|
-
if self.new_mangled_name is None and "new_mangled_name" in self.model_fields_set:
|
|
75
|
-
_dict['new_mangled_name'] = None
|
|
76
|
-
|
|
77
72
|
return _dict
|
|
78
73
|
|
|
79
74
|
@classmethod
|
|
@@ -87,7 +82,7 @@ class FunctionRenameMap(BaseModel):
|
|
|
87
82
|
|
|
88
83
|
_obj = cls.model_validate({
|
|
89
84
|
"function_id": obj.get("function_id"),
|
|
90
|
-
"new_name": obj.get("new_name")
|
|
85
|
+
"new_name": obj.get("new_name"),
|
|
91
86
|
"new_mangled_name": obj.get("new_mangled_name")
|
|
92
87
|
})
|
|
93
88
|
return _obj
|
|
@@ -16,7 +16,7 @@ import pprint
|
|
|
16
16
|
import re # noqa: F401
|
|
17
17
|
import json
|
|
18
18
|
|
|
19
|
-
from pydantic import BaseModel, ConfigDict, StrictBool, StrictFloat, StrictInt, StrictStr
|
|
19
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr
|
|
20
20
|
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
21
21
|
from typing import Optional, Set
|
|
22
22
|
from typing_extensions import Self
|
|
@@ -25,7 +25,7 @@ class FunctionsDetailResponse(BaseModel):
|
|
|
25
25
|
"""
|
|
26
26
|
FunctionsDetailResponse
|
|
27
27
|
""" # noqa: E501
|
|
28
|
-
function_id: StrictInt
|
|
28
|
+
function_id: StrictInt = Field(description="Function id")
|
|
29
29
|
function_name: StrictStr
|
|
30
30
|
function_vaddr: StrictInt
|
|
31
31
|
function_size: StrictInt
|
|
@@ -16,7 +16,7 @@ import pprint
|
|
|
16
16
|
import re # noqa: F401
|
|
17
17
|
import json
|
|
18
18
|
|
|
19
|
-
from pydantic import BaseModel, ConfigDict, StrictBool, StrictFloat, StrictInt, StrictStr
|
|
19
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr
|
|
20
20
|
from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
21
21
|
from typing import Optional, Set
|
|
22
22
|
from typing_extensions import Self
|
|
@@ -25,7 +25,7 @@ class MatchedFunction(BaseModel):
|
|
|
25
25
|
"""
|
|
26
26
|
MatchedFunction
|
|
27
27
|
""" # noqa: E501
|
|
28
|
-
function_id: StrictInt
|
|
28
|
+
function_id: StrictInt = Field(description="Unique identifier of the matched function")
|
|
29
29
|
binary_id: StrictInt
|
|
30
30
|
function_name: StrictStr
|
|
31
31
|
function_vaddr: StrictInt
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
revengai/__init__.py,sha256=
|
|
2
|
-
revengai/api_client.py,sha256=
|
|
1
|
+
revengai/__init__.py,sha256=jhnpy0E182PCej1vXYfX4RChvtDN2WNg8I0NA4_BgRQ,39964
|
|
2
|
+
revengai/api_client.py,sha256=v4P6k_NANOqm8QVWmcsYWnN0IWcrcNQFghX19h6EVRg,27670
|
|
3
3
|
revengai/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
|
-
revengai/configuration.py,sha256=
|
|
4
|
+
revengai/configuration.py,sha256=LfB15aBsohR3W0H_l2k7itgnYfNO5WM5bskrOjxIFfw,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
|
|
@@ -16,7 +16,7 @@ revengai/api/binaries_api.py,sha256=dnMTtqXH1huJKE7u2oTdnr9bleU0Gl-XwNwu4gwd1Y0,
|
|
|
16
16
|
revengai/api/collections_api.py,sha256=M5HSv8acfZAd0ool2yaLCPDIvOPVdPb99S91X82A9Ag,84022
|
|
17
17
|
revengai/api/external_sources_api.py,sha256=A5VaijGn6ZwdoymwyhrQlLB0g83CwIg_fEwcDRTCUFw,61041
|
|
18
18
|
revengai/api/firmware_api.py,sha256=FqBqNseoyuwsvc4tAh7Uz2vIO0OSgBg2O8PkyfxLG1A,22481
|
|
19
|
-
revengai/api/functions_ai_decompilation_api.py,sha256=
|
|
19
|
+
revengai/api/functions_ai_decompilation_api.py,sha256=meV4wSMsIgozFFKSK9vrH9RqAif3KaMgMMyp49DFTU0,104419
|
|
20
20
|
revengai/api/functions_block_comments_api.py,sha256=EWIvKLiiD68OSpHKZvYcGx5Dcb1HOxw1sdzfUMPrAkE,32961
|
|
21
21
|
revengai/api/functions_core_api.py,sha256=YAt4a7LxEnn_cFyNlvvm9XZInNikOLolcZkBaaBV92g,136226
|
|
22
22
|
revengai/api/functions_data_types_api.py,sha256=2juytFuLbsQ_C_f_A3vGCeHHEET1fIoFRcOcCKDWk0E,68945
|
|
@@ -124,7 +124,7 @@ revengai/models/base_response_task_response.py,sha256=bXkHhQ2-D-COJji5G-pNsJYOhG
|
|
|
124
124
|
revengai/models/base_response_ttps.py,sha256=-YE-wpKgyPyheUtGThviW3MqJovAQD0RWLYvQe9qTjg,4536
|
|
125
125
|
revengai/models/base_response_upload_response.py,sha256=6j2_TFjqvg4McQHFjYBmPsZ8m4dBRsXBfwuApyViW8U,4617
|
|
126
126
|
revengai/models/base_response_vulnerabilities.py,sha256=gsy0wxCCt3qoD3dOvIkCESAEmdK3v0SXEf_Yud61X5M,4624
|
|
127
|
-
revengai/models/basic.py,sha256=
|
|
127
|
+
revengai/models/basic.py,sha256=PK6nt1ygwAyXkLNFAq_zRaQBdLqa4BZRhVNB-SG-0o8,4493
|
|
128
128
|
revengai/models/binary_additional_details_data_response.py,sha256=PhRBpsYcvfRF32gmBD6S7DzAqrEzEXYqXYwRStoKmlU,3772
|
|
129
129
|
revengai/models/binary_additional_response.py,sha256=CiG7bH6c4mePyHsj50DKRm2iuyo0O6JzcjZ6J_jEAOs,3478
|
|
130
130
|
revengai/models/binary_ann_form.py,sha256=pGtM-LuN5dWsA_f0YiMNhlydgAlTPGPGilu1yx9sFjE,3288
|
|
@@ -137,9 +137,9 @@ revengai/models/binary_search_result.py,sha256=y2T6qBDMvdLtyfRIBzlFMs6hCdMZqQfoF
|
|
|
137
137
|
revengai/models/binary_task_status.py,sha256=hHEJcio8AYxUZBFg3WB4dyEcynczzCEIXxTtEGSlDLQ,765
|
|
138
138
|
revengai/models/block.py,sha256=zeccSEWdoStw5Dfx3TSv4AJV3IoQ7GNhrM7_5HJF9zA,2394
|
|
139
139
|
revengai/models/block_comments_generation_for_function_response.py,sha256=sVr84JNBPYxYxoLIJct7NVbHyqa_-eFXdX2pKb7zFMg,2538
|
|
140
|
-
revengai/models/callee_function_info.py,sha256=
|
|
140
|
+
revengai/models/callee_function_info.py,sha256=nxFhenG0rxNMmg6TZX_3ktA4oFBM_ft5__gatMJQ0EE,3799
|
|
141
141
|
revengai/models/callees_caller_functions_response.py,sha256=iFbmAywCAlWTohtDCchXoTTIbdWEZuyenx_3ZJqnUjY,3841
|
|
142
|
-
revengai/models/caller_function_info.py,sha256=
|
|
142
|
+
revengai/models/caller_function_info.py,sha256=SFc6kXDjrwbKk0Qx-pfdkECbhP3MDmAGpAAjfJ11EQE,3801
|
|
143
143
|
revengai/models/capabilities.py,sha256=RZCFNuj2M3QdEhEFj3iYUlqCWNdzduXWoTlfnLIqsa4,2980
|
|
144
144
|
revengai/models/capability.py,sha256=qdfutQ3hD2yTWolGQQ-wsO1rD0v0t9O5A4MEnYpEHVo,2866
|
|
145
145
|
revengai/models/check_security_checks_task_response.py,sha256=n4fkfbC4IqUZ_x3iLekHBx9NCQKoMk2i9XVfjTSEnMw,2522
|
|
@@ -167,7 +167,7 @@ revengai/models/confidence_type.py,sha256=yKWA71P6c128yu8uMNIhyAUozE-HNCHuk09SLI
|
|
|
167
167
|
revengai/models/context.py,sha256=2gUyX4vrcmbMzSqM4jj8wFlGinwTj5h-ca0JzAGDgGY,5076
|
|
168
168
|
revengai/models/created.py,sha256=wMUozBAHSb2jMM9q1RUzzj0_6GDVztSUHNGc2ahINNw,2785
|
|
169
169
|
revengai/models/decompilation_comment_context.py,sha256=j-kJladft1cKSOobRCsa5RDKtvJ2EIT4LldQ8hjf-_w,3011
|
|
170
|
-
revengai/models/decompilation_response.py,sha256=
|
|
170
|
+
revengai/models/decompilation_response.py,sha256=8coxqIkwRnVjLrQNsshXBSzN3KyNQYtkRjS7-HhxiFY,2728
|
|
171
171
|
revengai/models/die_match.py,sha256=q19UV0BckpB6TKjcZX90Th0nODb4PC_jhuyBUWlkxKs,3002
|
|
172
172
|
revengai/models/dynamic_execution_status_input.py,sha256=teGQG0pEzDf9SByNdl1ruzli1kak3Yr-0swK9OnaQSo,765
|
|
173
173
|
revengai/models/elf_dynamic_entry.py,sha256=LwmYrz03k_uApELiVJ3GvsUPQ5_P_Kye2LrWG0qzov8,2466
|
|
@@ -209,11 +209,11 @@ revengai/models/function_mapping_full.py,sha256=dax345vnk25zSPVVpAmCFrrOWXzFXW6O
|
|
|
209
209
|
revengai/models/function_matching_batch_response.py,sha256=oBglZULIjMvbrlzjymWNKSNERVzftWH7hHBRC3uMoP0,4952
|
|
210
210
|
revengai/models/function_matching_filters.py,sha256=O5F1PIcPhbumH8z-4KbG7JNoUsx_H3wBZQU9kCZ_boI,3710
|
|
211
211
|
revengai/models/function_matching_request.py,sha256=doC7Z1UCe0qD1vR0Iu400ni7a94D9WK_QN3GR_56H3I,4690
|
|
212
|
-
revengai/models/function_matching_result_with_best_match.py,sha256=
|
|
212
|
+
revengai/models/function_matching_result_with_best_match.py,sha256=lPuw9GkqzMvPguZRsct9mUZxdTu4swb8i5qwvge9wZM,4114
|
|
213
213
|
revengai/models/function_name_history.py,sha256=INu3KWYUpQMFfWy6oWl5iSaxrlayKr-wvuiahRCzinI,3265
|
|
214
214
|
revengai/models/function_param_response.py,sha256=hYsmmzxKwYuCh9y_khNvJSinRpvjDXcpi4fJ7xF-F3k,2697
|
|
215
|
-
revengai/models/function_rename.py,sha256=
|
|
216
|
-
revengai/models/function_rename_map.py,sha256=
|
|
215
|
+
revengai/models/function_rename.py,sha256=viZHvHCecb47UWsJMcdNZsmFqhw7fwslhc38dsdmNGI,2636
|
|
216
|
+
revengai/models/function_rename_map.py,sha256=AsEmYjvRQDDSEYyFRnwpLEX9HuEGMTGxr4y3oxYQoSw,2808
|
|
217
217
|
revengai/models/function_search_response.py,sha256=9hwZiJ4oUKyWr26jqH64m4bdEiw-5gRQBS7z23KoRH8,2986
|
|
218
218
|
revengai/models/function_search_result.py,sha256=PI-MPPhDFVGZKEagHfiykBN-enZsLluiaOFAZj80LHE,3487
|
|
219
219
|
revengai/models/function_string.py,sha256=XT1Pr8FbFNMDqj16umYUkVEg7jqzywUtHGEVfnnW0SU,2585
|
|
@@ -222,7 +222,7 @@ revengai/models/function_task_response.py,sha256=LYrPw_-vGi7-DpJlxMoAxjLeawKtQ_T
|
|
|
222
222
|
revengai/models/function_task_status.py,sha256=0Vy8HFVPjcp509WsHdkAf12aWFnqoZUk2uxg4SPWcd0,771
|
|
223
223
|
revengai/models/function_type_input.py,sha256=QMdRJxMDBAgs5Gk84qSGPTkYH505AOg3-5IbR7j8bdc,4823
|
|
224
224
|
revengai/models/function_type_output.py,sha256=jQfK_UAaLh3Asm-JImdW56v2Eq0o05FSIQcGmsLIOHI,4827
|
|
225
|
-
revengai/models/functions_detail_response.py,sha256
|
|
225
|
+
revengai/models/functions_detail_response.py,sha256=3_POofVdjVQMIlRxFur8UXx_glnw9AsN_mbwmTBSfj0,4354
|
|
226
226
|
revengai/models/functions_list_rename.py,sha256=OOi3EPhwAcOItGwoRmuybXTxwMrMVxUK3eQg70x-l1E,2990
|
|
227
227
|
revengai/models/generate_function_data_types.py,sha256=lAr0jb2p0n8wchhOLX9w7ryn7vbY402hGoR4YcG8hhw,3335
|
|
228
228
|
revengai/models/generation_status_list.py,sha256=q_SaRG3Ut3bgGMJzPehAYt9OH-oramgRQM2ZpAI6mLQ,3501
|
|
@@ -241,7 +241,7 @@ revengai/models/list_collection_results.py,sha256=ZYGFTvOQfI234u67tURX8J0jwb6q-A
|
|
|
241
241
|
revengai/models/login_request.py,sha256=48uYtkWFL_Q-hN64P1f15ExGJvbab9XLymBtDduQvg0,2684
|
|
242
242
|
revengai/models/login_response.py,sha256=O35cqntoQ68IdYCBtHTYhPXlDqw8CIlnK-bNjf6QMO0,2461
|
|
243
243
|
revengai/models/logs.py,sha256=cV_V-xN6q-yTd7eL-X89ugqz5ifWPsFPo6qYFgpS_Pw,2419
|
|
244
|
-
revengai/models/matched_function.py,sha256=
|
|
244
|
+
revengai/models/matched_function.py,sha256=tNLNeprWQPPxOjHmLdPW3B-3Auk0wAaKvY3pAskmUio,3982
|
|
245
245
|
revengai/models/matched_function_suggestion.py,sha256=UK5Yrw2xlJ0dcOKIga_Syi0Ly_rWjvio6KPzPNbuDDg,3322
|
|
246
246
|
revengai/models/meta_model.py,sha256=GbyFJZ9kwvK1Gqg8QnJ1GHpaMs8cMht6j-MY1k0YSt0,2943
|
|
247
247
|
revengai/models/model_name.py,sha256=lVKok5pWyLcN1rhq1IYccC7uQQrPdyz1oohYRUMRrmw,1271
|
|
@@ -311,7 +311,7 @@ revengai/models/vulnerabilities.py,sha256=9t6uoZd3svWyfcZJjmj6zP731Dp47Apb25y8Qt
|
|
|
311
311
|
revengai/models/vulnerability.py,sha256=P7rAOAYU5JLLpcRr824-YJgZba5kPb_J9ALV3tSNfLQ,3688
|
|
312
312
|
revengai/models/vulnerability_type.py,sha256=SyOgfMmELYYc_H84oPkikBpjwngtG5Qw9Q_86a2TPr8,866
|
|
313
313
|
revengai/models/workspace.py,sha256=chjU62GFvByEmaNd6luMNQVQLP3wlPx1zJgGJ_yyMLA,676
|
|
314
|
-
revengai-2.
|
|
315
|
-
revengai-2.
|
|
316
|
-
revengai-2.
|
|
317
|
-
revengai-2.
|
|
314
|
+
revengai-2.11.0.dist-info/METADATA,sha256=eFh1H7Dt1wdgKD0A-NXJY5wErFrWvCGcjXDAYTcD4a0,38682
|
|
315
|
+
revengai-2.11.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
316
|
+
revengai-2.11.0.dist-info/licenses/LICENSE.md,sha256=z1S-x9w52sZDqbFdJi0kL5-FLP5CR2aQA0kW8m6scaw,1052
|
|
317
|
+
revengai-2.11.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|