revengai 2.9.1__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 CHANGED
@@ -13,7 +13,7 @@
13
13
  """ # noqa: E501
14
14
 
15
15
 
16
- __version__ = "v2.9.1"
16
+ __version__ = "v2.11.0"
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/v2.9.1/python'
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.9.1\n"\
533
- "SDK Package Version: v2.9.1".\
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"),
@@ -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, Optional
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: Optional[StrictStr] = Field(default='', description="The new name for the function")
29
- new_mangled_name: Optional[StrictStr] = None
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") if obj.get("new_name") is not None else '',
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, Optional
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: Optional[StrictStr] = Field(default='', description="The new name for the function")
30
- new_mangled_name: Optional[StrictStr] = None
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") if obj.get("new_name") is not None else '',
85
+ "new_name": obj.get("new_name"),
91
86
  "new_mangled_name": obj.get("new_mangled_name")
92
87
  })
93
88
  return _obj
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: revengai
3
- Version: 2.9.1
3
+ Version: 2.11.0
4
4
  Summary: RevEng.AI API
5
5
  Project-URL: Repository, https://github.com/RevEngAI/sdk-python
6
6
  License-Expression: MIT
@@ -1,7 +1,7 @@
1
- revengai/__init__.py,sha256=1Y1lNAhZrNDqdoM7jVHWL2fh8U3eEc1un5jCuNiYpq0,39963
2
- revengai/api_client.py,sha256=YXcvEZT985gyvnDzG3JRLAmjmkMe3jGMdajDQnFWUGk,27669
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=e3vph4359kfiBXdVJQeuscnzBPL_B7RGRll78p-9s-g,18747
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
@@ -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=hWNfm8W7yoF9HgKvNgt1nSh0qmwys5BZHRRMWiEQPK8,4358
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
@@ -212,8 +212,8 @@ revengai/models/function_matching_request.py,sha256=doC7Z1UCe0qD1vR0Iu400ni7a94D
212
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=zDRCmR9Z2szWXYQfPNOu95Zp6AD9dxkr8lohm_yUYMk,2914
216
- revengai/models/function_rename_map.py,sha256=BGya5ChAdAj-Ol_J66kn-9of1mZdPqYI_yw2kxLGK8Q,3086
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
@@ -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.9.1.dist-info/METADATA,sha256=e_i2WF-zToPnuA08fzTiTwn4FpDD_aWeXdamwrTWPzM,38681
315
- revengai-2.9.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
316
- revengai-2.9.1.dist-info/licenses/LICENSE.md,sha256=z1S-x9w52sZDqbFdJi0kL5-FLP5CR2aQA0kW8m6scaw,1052
317
- revengai-2.9.1.dist-info/RECORD,,
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,,