revengai 1.80.0__py3-none-any.whl → 1.81.2__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_client.py +1 -1
- revengai/configuration.py +2 -2
- revengai/models/auto_unstrip_request.py +6 -2
- revengai/models/auto_unstrip_response.py +9 -2
- {revengai-1.80.0.dist-info → revengai-1.81.2.dist-info}/METADATA +1 -1
- {revengai-1.80.0.dist-info → revengai-1.81.2.dist-info}/RECORD +8 -8
- {revengai-1.80.0.dist-info → revengai-1.81.2.dist-info}/WHEEL +0 -0
revengai/__init__.py
CHANGED
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.81.2/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.81.2\n"\
|
|
533
|
+
"SDK Package Version: v1.81.2".\
|
|
534
534
|
format(env=sys.platform, pyversion=sys.version)
|
|
535
535
|
|
|
536
536
|
def get_host_settings(self) -> List[HostSetting]:
|
|
@@ -28,7 +28,9 @@ class AutoUnstripRequest(BaseModel):
|
|
|
28
28
|
""" # noqa: E501
|
|
29
29
|
min_similarity: Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.0)], Annotated[int, Field(le=1, strict=True, ge=0)]]] = Field(default=0.9, description="Minimum similarity expected for a match, default is 0.9")
|
|
30
30
|
apply: Optional[StrictBool] = Field(default=False, description="Whether to apply the matched function names to the target binary, default is False")
|
|
31
|
-
|
|
31
|
+
confidence_threshold: Optional[Union[Annotated[float, Field(le=1.0, strict=True, ge=0.0)], Annotated[int, Field(le=1, strict=True, ge=0)]]] = Field(default=0.9, description="Confidence threshold for applying function names, default is 0.9")
|
|
32
|
+
min_group_size: Optional[Annotated[int, Field(le=20, strict=True, ge=1)]] = Field(default=10, description="Minimum number of matching functions required to consider for a match, default is 10")
|
|
33
|
+
__properties: ClassVar[List[str]] = ["min_similarity", "apply", "confidence_threshold", "min_group_size"]
|
|
32
34
|
|
|
33
35
|
model_config = ConfigDict(
|
|
34
36
|
populate_by_name=True,
|
|
@@ -82,7 +84,9 @@ class AutoUnstripRequest(BaseModel):
|
|
|
82
84
|
|
|
83
85
|
_obj = cls.model_validate({
|
|
84
86
|
"min_similarity": obj.get("min_similarity") if obj.get("min_similarity") is not None else 0.9,
|
|
85
|
-
"apply": obj.get("apply") if obj.get("apply") is not None else False
|
|
87
|
+
"apply": obj.get("apply") if obj.get("apply") is not None else False,
|
|
88
|
+
"confidence_threshold": obj.get("confidence_threshold") if obj.get("confidence_threshold") is not None else 0.9,
|
|
89
|
+
"min_group_size": obj.get("min_group_size") if obj.get("min_group_size") is not None else 10
|
|
86
90
|
})
|
|
87
91
|
return _obj
|
|
88
92
|
|
|
@@ -31,7 +31,8 @@ class AutoUnstripResponse(BaseModel):
|
|
|
31
31
|
total_time: Optional[StrictInt] = None
|
|
32
32
|
matches: Optional[List[MatchedFunctionSuggestion]] = None
|
|
33
33
|
applied: Optional[StrictBool] = None
|
|
34
|
-
|
|
34
|
+
error_message: Optional[StrictStr] = None
|
|
35
|
+
__properties: ClassVar[List[str]] = ["progress", "status", "total_time", "matches", "applied", "error_message"]
|
|
35
36
|
|
|
36
37
|
model_config = ConfigDict(
|
|
37
38
|
populate_by_name=True,
|
|
@@ -99,6 +100,11 @@ class AutoUnstripResponse(BaseModel):
|
|
|
99
100
|
if self.applied is None and "applied" in self.model_fields_set:
|
|
100
101
|
_dict['applied'] = None
|
|
101
102
|
|
|
103
|
+
# set to None if error_message (nullable) is None
|
|
104
|
+
# and model_fields_set contains the field
|
|
105
|
+
if self.error_message is None and "error_message" in self.model_fields_set:
|
|
106
|
+
_dict['error_message'] = None
|
|
107
|
+
|
|
102
108
|
return _dict
|
|
103
109
|
|
|
104
110
|
@classmethod
|
|
@@ -115,7 +121,8 @@ class AutoUnstripResponse(BaseModel):
|
|
|
115
121
|
"status": obj.get("status"),
|
|
116
122
|
"total_time": obj.get("total_time"),
|
|
117
123
|
"matches": [MatchedFunctionSuggestion.from_dict(_item) for _item in obj["matches"]] if obj.get("matches") is not None else None,
|
|
118
|
-
"applied": obj.get("applied")
|
|
124
|
+
"applied": obj.get("applied"),
|
|
125
|
+
"error_message": obj.get("error_message")
|
|
119
126
|
})
|
|
120
127
|
return _obj
|
|
121
128
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
revengai/__init__.py,sha256=
|
|
2
|
-
revengai/api_client.py,sha256=
|
|
1
|
+
revengai/__init__.py,sha256=uOx-PqqA0Vr9S84T4jSPwli84_5FUBLqSh6V0XDzpTA,43147
|
|
2
|
+
revengai/api_client.py,sha256=M1XxuR5oOdnOyoK2vlgPmtWb5xWzj2wRCL71jBsd3_M,27670
|
|
3
3
|
revengai/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
|
-
revengai/configuration.py,sha256=
|
|
4
|
+
revengai/configuration.py,sha256=RbP0R5sAH1YxQEzODuHHF8zovJWha312HR1zqVfOBSA,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
|
|
@@ -56,8 +56,8 @@ revengai/models/app_services_binary_ann_schema_tag_item.py,sha256=m25sIz8KEsPES0
|
|
|
56
56
|
revengai/models/app_services_dynamic_execution_schemas_dynamic_execution_status.py,sha256=9e3LDnw0iNCbowQPFTkNyIqkzsCQyJLZrx6tqRska6o,2562
|
|
57
57
|
revengai/models/argument.py,sha256=QmWpJiohyzTVC1GLHg1IlgM5QyONnBF6FGK_mOYQL_Y,3148
|
|
58
58
|
revengai/models/auto_unstrip_by_group_response.py,sha256=opMbIZGq8GwKSrCit98xMj26UBwio_EJeN-pj-ctq4o,4803
|
|
59
|
-
revengai/models/auto_unstrip_request.py,sha256=
|
|
60
|
-
revengai/models/auto_unstrip_response.py,sha256=
|
|
59
|
+
revengai/models/auto_unstrip_request.py,sha256=GCFMWRyyNhs3brpXwynAY6xVVQj2Quw2ChjAJLD1w34,3717
|
|
60
|
+
revengai/models/auto_unstrip_response.py,sha256=g37ANqNsVIM_BCb-kHNDak6E-8fNVUyPOh03YFjm2O8,4737
|
|
61
61
|
revengai/models/base_response.py,sha256=U1Hwv1TXztjpxHxXGwGk46egAYs49jfzEfr1nTajMjg,4526
|
|
62
62
|
revengai/models/base_response_analysis_create_response.py,sha256=bwA1vMqKgLUDcElBvuvTH2jo8tvx0mjfbMOnoniswbE,4682
|
|
63
63
|
revengai/models/base_response_analysis_detail_response.py,sha256=233L-ucrjTQhgwKeqiwlxW_C_Vrp4u4_pikrCti1F7Y,4682
|
|
@@ -334,6 +334,6 @@ revengai/models/vulnerabilities.py,sha256=9t6uoZd3svWyfcZJjmj6zP731Dp47Apb25y8Qt
|
|
|
334
334
|
revengai/models/vulnerability.py,sha256=P7rAOAYU5JLLpcRr824-YJgZba5kPb_J9ALV3tSNfLQ,3688
|
|
335
335
|
revengai/models/vulnerability_type.py,sha256=SyOgfMmELYYc_H84oPkikBpjwngtG5Qw9Q_86a2TPr8,866
|
|
336
336
|
revengai/models/workspace.py,sha256=chjU62GFvByEmaNd6luMNQVQLP3wlPx1zJgGJ_yyMLA,676
|
|
337
|
-
revengai-1.
|
|
338
|
-
revengai-1.
|
|
339
|
-
revengai-1.
|
|
337
|
+
revengai-1.81.2.dist-info/METADATA,sha256=r43LwfROh0d1AD76cbqQyM1AiFt6MOG9XSL-2bieKag,41595
|
|
338
|
+
revengai-1.81.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
339
|
+
revengai-1.81.2.dist-info/RECORD,,
|
|
File without changes
|