revengai 1.94.0__py3-none-any.whl → 1.96.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/analyses_comments_api.py +1 -62
- revengai/api/analyses_core_api.py +0 -240
- revengai/api/analyses_dynamic_execution_api.py +2 -108
- revengai/api/analyses_results_metadata_api.py +0 -105
- revengai/api/analyses_security_checks_api.py +1 -47
- revengai/api/authentication_users_api.py +1 -63
- revengai/api/binaries_api.py +2 -93
- revengai/api/collections_api.py +0 -105
- revengai/api/confidence_api.py +1 -62
- revengai/api/external_sources_api.py +1 -93
- revengai/api/firmware_api.py +1 -32
- revengai/api/functions_ai_decompilation_api.py +1 -136
- revengai/api/functions_block_comments_api.py +1 -48
- revengai/api/functions_core_api.py +0 -195
- revengai/api/functions_data_types_api.py +1 -92
- revengai/api/functions_decompilation_api.py +1 -107
- revengai/api/functions_renaming_history_api.py +1 -63
- revengai/api/models_api.py +0 -18
- revengai/api/search_api.py +0 -45
- revengai/api_client.py +1 -1
- revengai/configuration.py +2 -2
- {revengai-1.94.0.dist-info → revengai-1.96.0.dist-info}/METADATA +4 -2
- {revengai-1.94.0.dist-info → revengai-1.96.0.dist-info}/RECORD +26 -25
- revengai-1.96.0.dist-info/licenses/LICENSE.md +19 -0
- {revengai-1.94.0.dist-info → revengai-1.96.0.dist-info}/WHEEL +0 -0
revengai/api/firmware_api.py
CHANGED
|
@@ -15,9 +15,8 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
|
15
15
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
16
16
|
from typing_extensions import Annotated
|
|
17
17
|
|
|
18
|
-
from pydantic import
|
|
18
|
+
from pydantic import StrictBytes, StrictStr
|
|
19
19
|
from typing import Any, Optional, Tuple, Union
|
|
20
|
-
from typing_extensions import Annotated
|
|
21
20
|
|
|
22
21
|
from revengai.api_client import ApiClient, RequestSerialized
|
|
23
22
|
from revengai.api_response import ApiResponse
|
|
@@ -41,7 +40,6 @@ class FirmwareApi:
|
|
|
41
40
|
def get_binaries_for_firmware_task(
|
|
42
41
|
self,
|
|
43
42
|
task_id: StrictStr,
|
|
44
|
-
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
|
45
43
|
_request_timeout: Union[
|
|
46
44
|
None,
|
|
47
45
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -61,8 +59,6 @@ class FirmwareApi:
|
|
|
61
59
|
|
|
62
60
|
:param task_id: (required)
|
|
63
61
|
:type task_id: str
|
|
64
|
-
:param authorization: API Key bearer token
|
|
65
|
-
:type authorization: str
|
|
66
62
|
:param _request_timeout: timeout setting for this request. If one
|
|
67
63
|
number provided, it will be total request
|
|
68
64
|
timeout. It can also be a pair (tuple) of
|
|
@@ -87,7 +83,6 @@ class FirmwareApi:
|
|
|
87
83
|
|
|
88
84
|
_param = self._get_binaries_for_firmware_task_serialize(
|
|
89
85
|
task_id=task_id,
|
|
90
|
-
authorization=authorization,
|
|
91
86
|
_request_auth=_request_auth,
|
|
92
87
|
_content_type=_content_type,
|
|
93
88
|
_headers=_headers,
|
|
@@ -113,7 +108,6 @@ class FirmwareApi:
|
|
|
113
108
|
def get_binaries_for_firmware_task_with_http_info(
|
|
114
109
|
self,
|
|
115
110
|
task_id: StrictStr,
|
|
116
|
-
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
|
117
111
|
_request_timeout: Union[
|
|
118
112
|
None,
|
|
119
113
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -133,8 +127,6 @@ class FirmwareApi:
|
|
|
133
127
|
|
|
134
128
|
:param task_id: (required)
|
|
135
129
|
:type task_id: str
|
|
136
|
-
:param authorization: API Key bearer token
|
|
137
|
-
:type authorization: str
|
|
138
130
|
:param _request_timeout: timeout setting for this request. If one
|
|
139
131
|
number provided, it will be total request
|
|
140
132
|
timeout. It can also be a pair (tuple) of
|
|
@@ -159,7 +151,6 @@ class FirmwareApi:
|
|
|
159
151
|
|
|
160
152
|
_param = self._get_binaries_for_firmware_task_serialize(
|
|
161
153
|
task_id=task_id,
|
|
162
|
-
authorization=authorization,
|
|
163
154
|
_request_auth=_request_auth,
|
|
164
155
|
_content_type=_content_type,
|
|
165
156
|
_headers=_headers,
|
|
@@ -185,7 +176,6 @@ class FirmwareApi:
|
|
|
185
176
|
def get_binaries_for_firmware_task_without_preload_content(
|
|
186
177
|
self,
|
|
187
178
|
task_id: StrictStr,
|
|
188
|
-
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
|
189
179
|
_request_timeout: Union[
|
|
190
180
|
None,
|
|
191
181
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -205,8 +195,6 @@ class FirmwareApi:
|
|
|
205
195
|
|
|
206
196
|
:param task_id: (required)
|
|
207
197
|
:type task_id: str
|
|
208
|
-
:param authorization: API Key bearer token
|
|
209
|
-
:type authorization: str
|
|
210
198
|
:param _request_timeout: timeout setting for this request. If one
|
|
211
199
|
number provided, it will be total request
|
|
212
200
|
timeout. It can also be a pair (tuple) of
|
|
@@ -231,7 +219,6 @@ class FirmwareApi:
|
|
|
231
219
|
|
|
232
220
|
_param = self._get_binaries_for_firmware_task_serialize(
|
|
233
221
|
task_id=task_id,
|
|
234
|
-
authorization=authorization,
|
|
235
222
|
_request_auth=_request_auth,
|
|
236
223
|
_content_type=_content_type,
|
|
237
224
|
_headers=_headers,
|
|
@@ -252,7 +239,6 @@ class FirmwareApi:
|
|
|
252
239
|
def _get_binaries_for_firmware_task_serialize(
|
|
253
240
|
self,
|
|
254
241
|
task_id,
|
|
255
|
-
authorization,
|
|
256
242
|
_request_auth,
|
|
257
243
|
_content_type,
|
|
258
244
|
_headers,
|
|
@@ -278,8 +264,6 @@ class FirmwareApi:
|
|
|
278
264
|
_path_params['task_id'] = task_id
|
|
279
265
|
# process the query parameters
|
|
280
266
|
# process the header parameters
|
|
281
|
-
if authorization is not None:
|
|
282
|
-
_header_params['authorization'] = authorization
|
|
283
267
|
# process the form parameters
|
|
284
268
|
# process the body parameter
|
|
285
269
|
|
|
@@ -320,7 +304,6 @@ class FirmwareApi:
|
|
|
320
304
|
def upload_firmware(
|
|
321
305
|
self,
|
|
322
306
|
file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
|
|
323
|
-
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
|
324
307
|
password: Optional[StrictStr] = None,
|
|
325
308
|
_request_timeout: Union[
|
|
326
309
|
None,
|
|
@@ -341,8 +324,6 @@ class FirmwareApi:
|
|
|
341
324
|
|
|
342
325
|
:param file: (required)
|
|
343
326
|
:type file: bytearray
|
|
344
|
-
:param authorization: API Key bearer token
|
|
345
|
-
:type authorization: str
|
|
346
327
|
:param password:
|
|
347
328
|
:type password: str
|
|
348
329
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -369,7 +350,6 @@ class FirmwareApi:
|
|
|
369
350
|
|
|
370
351
|
_param = self._upload_firmware_serialize(
|
|
371
352
|
file=file,
|
|
372
|
-
authorization=authorization,
|
|
373
353
|
password=password,
|
|
374
354
|
_request_auth=_request_auth,
|
|
375
355
|
_content_type=_content_type,
|
|
@@ -396,7 +376,6 @@ class FirmwareApi:
|
|
|
396
376
|
def upload_firmware_with_http_info(
|
|
397
377
|
self,
|
|
398
378
|
file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
|
|
399
|
-
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
|
400
379
|
password: Optional[StrictStr] = None,
|
|
401
380
|
_request_timeout: Union[
|
|
402
381
|
None,
|
|
@@ -417,8 +396,6 @@ class FirmwareApi:
|
|
|
417
396
|
|
|
418
397
|
:param file: (required)
|
|
419
398
|
:type file: bytearray
|
|
420
|
-
:param authorization: API Key bearer token
|
|
421
|
-
:type authorization: str
|
|
422
399
|
:param password:
|
|
423
400
|
:type password: str
|
|
424
401
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -445,7 +422,6 @@ class FirmwareApi:
|
|
|
445
422
|
|
|
446
423
|
_param = self._upload_firmware_serialize(
|
|
447
424
|
file=file,
|
|
448
|
-
authorization=authorization,
|
|
449
425
|
password=password,
|
|
450
426
|
_request_auth=_request_auth,
|
|
451
427
|
_content_type=_content_type,
|
|
@@ -472,7 +448,6 @@ class FirmwareApi:
|
|
|
472
448
|
def upload_firmware_without_preload_content(
|
|
473
449
|
self,
|
|
474
450
|
file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]],
|
|
475
|
-
authorization: Annotated[Optional[StrictStr], Field(description="API Key bearer token")] = None,
|
|
476
451
|
password: Optional[StrictStr] = None,
|
|
477
452
|
_request_timeout: Union[
|
|
478
453
|
None,
|
|
@@ -493,8 +468,6 @@ class FirmwareApi:
|
|
|
493
468
|
|
|
494
469
|
:param file: (required)
|
|
495
470
|
:type file: bytearray
|
|
496
|
-
:param authorization: API Key bearer token
|
|
497
|
-
:type authorization: str
|
|
498
471
|
:param password:
|
|
499
472
|
:type password: str
|
|
500
473
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -521,7 +494,6 @@ class FirmwareApi:
|
|
|
521
494
|
|
|
522
495
|
_param = self._upload_firmware_serialize(
|
|
523
496
|
file=file,
|
|
524
|
-
authorization=authorization,
|
|
525
497
|
password=password,
|
|
526
498
|
_request_auth=_request_auth,
|
|
527
499
|
_content_type=_content_type,
|
|
@@ -543,7 +515,6 @@ class FirmwareApi:
|
|
|
543
515
|
def _upload_firmware_serialize(
|
|
544
516
|
self,
|
|
545
517
|
file,
|
|
546
|
-
authorization,
|
|
547
518
|
password,
|
|
548
519
|
_request_auth,
|
|
549
520
|
_content_type,
|
|
@@ -568,8 +539,6 @@ class FirmwareApi:
|
|
|
568
539
|
# process the path parameters
|
|
569
540
|
# process the query parameters
|
|
570
541
|
# process the header parameters
|
|
571
|
-
if authorization is not None:
|
|
572
|
-
_header_params['authorization'] = authorization
|
|
573
542
|
# process the form parameters
|
|
574
543
|
if file is not None:
|
|
575
544
|
_files['file'] = file
|