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 CHANGED
@@ -13,7 +13,7 @@
13
13
  """ # noqa: E501
14
14
 
15
15
 
16
- __version__ = "v1.80.0"
16
+ __version__ = "v1.81.2"
17
17
 
18
18
  # Define package exports
19
19
  __all__ = [
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.80.0/python'
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.80.0\n"\
533
- "SDK Package Version: v1.80.0".\
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
- __properties: ClassVar[List[str]] = ["min_similarity", "apply"]
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
- __properties: ClassVar[List[str]] = ["progress", "status", "total_time", "matches", "applied"]
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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: revengai
3
- Version: 1.80.0
3
+ Version: 1.81.2
4
4
  Summary: RevEng.AI API
5
5
  Project-URL: Repository, https://github.com/RevEngAI/revengai-python
6
6
  Keywords: RevEng.AI API
@@ -1,7 +1,7 @@
1
- revengai/__init__.py,sha256=mq5Qa_5pDdu6N5-I831T_EYNp04HNUIHemiaqYUrUtw,43147
2
- revengai/api_client.py,sha256=qry5OIGXfEMUzpQBAhsLjuBzfDVx4bljSn87BnNGrHw,27670
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=JgnkPnuY_nbet2mpzZgby-nHjjHtPLFdanYEVfBu4Ic,18749
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=TuThCMXb1eCrLrQsPsCx2bAOJhsHk4YUeQLJoP3fad0,3001
60
- revengai/models/auto_unstrip_response.py,sha256=Mu2GzeIc8vL2PRIdAT7BWzQa38PyhEzqq8TyuI3luOo,4384
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.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,,
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,,