Skip to content

Commit 83f51f5

Browse files
authored
Merge pull request #198 from RevEngAI/sdk-update-v3.124.0
🤖 Update SDK to version v3.124.0
2 parents ecc456a + 4418a65 commit 83f51f5

8 files changed

Lines changed: 53 additions & 10 deletions

File tree

.sdk-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v3.123.0
1+
v3.124.0

docs/Permissions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**can_export_symbols** | **bool** | |
99
**can_generate_pdf_reports** | **bool** | |
1010
**can_use_ai_malware_analysis** | **bool** | |
11+
**can_use_composition_analysis** | **bool** | |
1112
**can_use_malware_sandbox** | **bool** | |
1213
**can_use_private_analyses** | **bool** | |
1314

docs/SearchApi.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Method | HTTP request | Description
1111

1212

1313
# **search_binaries**
14-
> BaseResponseBinarySearchResponse search_binaries(page=page, page_size=page_size, partial_name=partial_name, partial_sha256=partial_sha256, tags=tags, model_name=model_name, user_files_only=user_files_only, exclude_binary_id=exclude_binary_id)
14+
> BaseResponseBinarySearchResponse search_binaries(page=page, page_size=page_size, partial_name=partial_name, partial_sha256=partial_sha256, tags=tags, model_name=model_name, user_files_only=user_files_only, exclude_binary_id=exclude_binary_id, user_ids=user_ids)
1515
1616
Binaries search
1717

@@ -62,10 +62,11 @@ with revengai.ApiClient(configuration) as api_client:
6262
model_name = 'model_name_example' # str | The name of the model used to analyze the binary the function belongs to (optional)
6363
user_files_only = False # bool | Whether to only search user's uploaded files (optional) (default to False)
6464
exclude_binary_id = 56 # int | A binary ID to exclude from the results (optional)
65+
user_ids = [56] # List[int] | Restrict the search to binaries owned by these user IDs (optional)
6566

6667
try:
6768
# Binaries search
68-
api_response = api_instance.search_binaries(page=page, page_size=page_size, partial_name=partial_name, partial_sha256=partial_sha256, tags=tags, model_name=model_name, user_files_only=user_files_only, exclude_binary_id=exclude_binary_id)
69+
api_response = api_instance.search_binaries(page=page, page_size=page_size, partial_name=partial_name, partial_sha256=partial_sha256, tags=tags, model_name=model_name, user_files_only=user_files_only, exclude_binary_id=exclude_binary_id, user_ids=user_ids)
6970
print("The response of SearchApi->search_binaries:\n")
7071
pprint(api_response)
7172
except Exception as e:
@@ -87,6 +88,7 @@ Name | Type | Description | Notes
8788
**model_name** | **str**| The name of the model used to analyze the binary the function belongs to | [optional]
8889
**user_files_only** | **bool**| Whether to only search user's uploaded files | [optional] [default to False]
8990
**exclude_binary_id** | **int**| A binary ID to exclude from the results | [optional]
91+
**user_ids** | [**List[int]**](int.md)| Restrict the search to binaries owned by these user IDs | [optional]
9092

9193
### Return type
9294

@@ -111,7 +113,7 @@ Name | Type | Description | Notes
111113
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
112114

113115
# **search_collections**
114-
> BaseResponseCollectionSearchResponse search_collections(page=page, page_size=page_size, partial_collection_name=partial_collection_name, partial_binary_name=partial_binary_name, partial_binary_sha256=partial_binary_sha256, tags=tags, filters=filters, order_by=order_by, order_by_direction=order_by_direction)
116+
> BaseResponseCollectionSearchResponse search_collections(page=page, page_size=page_size, partial_collection_name=partial_collection_name, partial_binary_name=partial_binary_name, partial_binary_sha256=partial_binary_sha256, tags=tags, filters=filters, order_by=order_by, order_by_direction=order_by_direction, user_ids=user_ids)
115117
116118
Collections search
117119

@@ -166,10 +168,11 @@ with revengai.ApiClient(configuration) as api_client:
166168
filters = [revengai.Filters()] # List[Filters] | The filters to be used for the search (optional)
167169
order_by = revengai.AppApiRestV2CollectionsEnumsOrderBy() # AppApiRestV2CollectionsEnumsOrderBy | The field to sort the order by in the results (optional)
168170
order_by_direction = revengai.Order() # Order | The order direction in which to return results (optional)
171+
user_ids = [56] # List[int] | Restrict the search to collections owned by these user IDs (optional)
169172

170173
try:
171174
# Collections search
172-
api_response = api_instance.search_collections(page=page, page_size=page_size, partial_collection_name=partial_collection_name, partial_binary_name=partial_binary_name, partial_binary_sha256=partial_binary_sha256, tags=tags, filters=filters, order_by=order_by, order_by_direction=order_by_direction)
175+
api_response = api_instance.search_collections(page=page, page_size=page_size, partial_collection_name=partial_collection_name, partial_binary_name=partial_binary_name, partial_binary_sha256=partial_binary_sha256, tags=tags, filters=filters, order_by=order_by, order_by_direction=order_by_direction, user_ids=user_ids)
173176
print("The response of SearchApi->search_collections:\n")
174177
pprint(api_response)
175178
except Exception as e:
@@ -192,6 +195,7 @@ Name | Type | Description | Notes
192195
**filters** | [**List[Filters]**](Filters.md)| The filters to be used for the search | [optional]
193196
**order_by** | [**AppApiRestV2CollectionsEnumsOrderBy**](.md)| The field to sort the order by in the results | [optional]
194197
**order_by_direction** | [**Order**](.md)| The order direction in which to return results | [optional]
198+
**user_ids** | [**List[int]**](int.md)| Restrict the search to collections owned by these user IDs | [optional]
195199

196200
### Return type
197201

revengai/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
""" # noqa: E501
1414

1515

16-
__version__ = "v3.123.0"
16+
__version__ = "v3.124.0"
1717

1818
# Define package exports
1919
__all__ = [

revengai/api/search_api.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def search_binaries(
5555
model_name: Annotated[Optional[StrictStr], Field(description="The name of the model used to analyze the binary the function belongs to")] = None,
5656
user_files_only: Annotated[Optional[StrictBool], Field(description="Whether to only search user's uploaded files")] = None,
5757
exclude_binary_id: Annotated[Optional[StrictInt], Field(description="A binary ID to exclude from the results")] = None,
58+
user_ids: Annotated[Optional[List[StrictInt]], Field(description="Restrict the search to binaries owned by these user IDs")] = None,
5859
_request_timeout: Union[
5960
None,
6061
Annotated[StrictFloat, Field(gt=0)],
@@ -88,6 +89,8 @@ def search_binaries(
8889
:type user_files_only: bool
8990
:param exclude_binary_id: A binary ID to exclude from the results
9091
:type exclude_binary_id: int
92+
:param user_ids: Restrict the search to binaries owned by these user IDs
93+
:type user_ids: List[int]
9194
:param _request_timeout: timeout setting for this request. If one
9295
number provided, it will be total request
9396
timeout. It can also be a pair (tuple) of
@@ -119,6 +122,7 @@ def search_binaries(
119122
model_name=model_name,
120123
user_files_only=user_files_only,
121124
exclude_binary_id=exclude_binary_id,
125+
user_ids=user_ids,
122126
_request_auth=_request_auth,
123127
_content_type=_content_type,
124128
_headers=_headers,
@@ -151,6 +155,7 @@ def search_binaries_with_http_info(
151155
model_name: Annotated[Optional[StrictStr], Field(description="The name of the model used to analyze the binary the function belongs to")] = None,
152156
user_files_only: Annotated[Optional[StrictBool], Field(description="Whether to only search user's uploaded files")] = None,
153157
exclude_binary_id: Annotated[Optional[StrictInt], Field(description="A binary ID to exclude from the results")] = None,
158+
user_ids: Annotated[Optional[List[StrictInt]], Field(description="Restrict the search to binaries owned by these user IDs")] = None,
154159
_request_timeout: Union[
155160
None,
156161
Annotated[StrictFloat, Field(gt=0)],
@@ -184,6 +189,8 @@ def search_binaries_with_http_info(
184189
:type user_files_only: bool
185190
:param exclude_binary_id: A binary ID to exclude from the results
186191
:type exclude_binary_id: int
192+
:param user_ids: Restrict the search to binaries owned by these user IDs
193+
:type user_ids: List[int]
187194
:param _request_timeout: timeout setting for this request. If one
188195
number provided, it will be total request
189196
timeout. It can also be a pair (tuple) of
@@ -215,6 +222,7 @@ def search_binaries_with_http_info(
215222
model_name=model_name,
216223
user_files_only=user_files_only,
217224
exclude_binary_id=exclude_binary_id,
225+
user_ids=user_ids,
218226
_request_auth=_request_auth,
219227
_content_type=_content_type,
220228
_headers=_headers,
@@ -247,6 +255,7 @@ def search_binaries_without_preload_content(
247255
model_name: Annotated[Optional[StrictStr], Field(description="The name of the model used to analyze the binary the function belongs to")] = None,
248256
user_files_only: Annotated[Optional[StrictBool], Field(description="Whether to only search user's uploaded files")] = None,
249257
exclude_binary_id: Annotated[Optional[StrictInt], Field(description="A binary ID to exclude from the results")] = None,
258+
user_ids: Annotated[Optional[List[StrictInt]], Field(description="Restrict the search to binaries owned by these user IDs")] = None,
250259
_request_timeout: Union[
251260
None,
252261
Annotated[StrictFloat, Field(gt=0)],
@@ -280,6 +289,8 @@ def search_binaries_without_preload_content(
280289
:type user_files_only: bool
281290
:param exclude_binary_id: A binary ID to exclude from the results
282291
:type exclude_binary_id: int
292+
:param user_ids: Restrict the search to binaries owned by these user IDs
293+
:type user_ids: List[int]
283294
:param _request_timeout: timeout setting for this request. If one
284295
number provided, it will be total request
285296
timeout. It can also be a pair (tuple) of
@@ -311,6 +322,7 @@ def search_binaries_without_preload_content(
311322
model_name=model_name,
312323
user_files_only=user_files_only,
313324
exclude_binary_id=exclude_binary_id,
325+
user_ids=user_ids,
314326
_request_auth=_request_auth,
315327
_content_type=_content_type,
316328
_headers=_headers,
@@ -338,6 +350,7 @@ def _search_binaries_serialize(
338350
model_name,
339351
user_files_only,
340352
exclude_binary_id,
353+
user_ids,
341354
_request_auth,
342355
_content_type,
343356
_headers,
@@ -348,6 +361,7 @@ def _search_binaries_serialize(
348361

349362
_collection_formats: Dict[str, str] = {
350363
'tags': 'multi',
364+
'user_ids': 'multi',
351365
}
352366

353367
_path_params: Dict[str, str] = {}
@@ -393,6 +407,10 @@ def _search_binaries_serialize(
393407

394408
_query_params.append(('exclude_binary_id', exclude_binary_id))
395409

410+
if user_ids is not None:
411+
412+
_query_params.append(('user_ids', user_ids))
413+
396414
# process the header parameters
397415
# process the form parameters
398416
# process the body parameter
@@ -443,6 +461,7 @@ def search_collections(
443461
filters: Annotated[Optional[List[Filters]], Field(description="The filters to be used for the search")] = None,
444462
order_by: Annotated[Optional[AppApiRestV2CollectionsEnumsOrderBy], Field(description="The field to sort the order by in the results")] = None,
445463
order_by_direction: Annotated[Optional[Order], Field(description="The order direction in which to return results")] = None,
464+
user_ids: Annotated[Optional[List[StrictInt]], Field(description="Restrict the search to collections owned by these user IDs")] = None,
446465
_request_timeout: Union[
447466
None,
448467
Annotated[StrictFloat, Field(gt=0)],
@@ -478,6 +497,8 @@ def search_collections(
478497
:type order_by: AppApiRestV2CollectionsEnumsOrderBy
479498
:param order_by_direction: The order direction in which to return results
480499
:type order_by_direction: Order
500+
:param user_ids: Restrict the search to collections owned by these user IDs
501+
:type user_ids: List[int]
481502
:param _request_timeout: timeout setting for this request. If one
482503
number provided, it will be total request
483504
timeout. It can also be a pair (tuple) of
@@ -510,6 +531,7 @@ def search_collections(
510531
filters=filters,
511532
order_by=order_by,
512533
order_by_direction=order_by_direction,
534+
user_ids=user_ids,
513535
_request_auth=_request_auth,
514536
_content_type=_content_type,
515537
_headers=_headers,
@@ -543,6 +565,7 @@ def search_collections_with_http_info(
543565
filters: Annotated[Optional[List[Filters]], Field(description="The filters to be used for the search")] = None,
544566
order_by: Annotated[Optional[AppApiRestV2CollectionsEnumsOrderBy], Field(description="The field to sort the order by in the results")] = None,
545567
order_by_direction: Annotated[Optional[Order], Field(description="The order direction in which to return results")] = None,
568+
user_ids: Annotated[Optional[List[StrictInt]], Field(description="Restrict the search to collections owned by these user IDs")] = None,
546569
_request_timeout: Union[
547570
None,
548571
Annotated[StrictFloat, Field(gt=0)],
@@ -578,6 +601,8 @@ def search_collections_with_http_info(
578601
:type order_by: AppApiRestV2CollectionsEnumsOrderBy
579602
:param order_by_direction: The order direction in which to return results
580603
:type order_by_direction: Order
604+
:param user_ids: Restrict the search to collections owned by these user IDs
605+
:type user_ids: List[int]
581606
:param _request_timeout: timeout setting for this request. If one
582607
number provided, it will be total request
583608
timeout. It can also be a pair (tuple) of
@@ -610,6 +635,7 @@ def search_collections_with_http_info(
610635
filters=filters,
611636
order_by=order_by,
612637
order_by_direction=order_by_direction,
638+
user_ids=user_ids,
613639
_request_auth=_request_auth,
614640
_content_type=_content_type,
615641
_headers=_headers,
@@ -643,6 +669,7 @@ def search_collections_without_preload_content(
643669
filters: Annotated[Optional[List[Filters]], Field(description="The filters to be used for the search")] = None,
644670
order_by: Annotated[Optional[AppApiRestV2CollectionsEnumsOrderBy], Field(description="The field to sort the order by in the results")] = None,
645671
order_by_direction: Annotated[Optional[Order], Field(description="The order direction in which to return results")] = None,
672+
user_ids: Annotated[Optional[List[StrictInt]], Field(description="Restrict the search to collections owned by these user IDs")] = None,
646673
_request_timeout: Union[
647674
None,
648675
Annotated[StrictFloat, Field(gt=0)],
@@ -678,6 +705,8 @@ def search_collections_without_preload_content(
678705
:type order_by: AppApiRestV2CollectionsEnumsOrderBy
679706
:param order_by_direction: The order direction in which to return results
680707
:type order_by_direction: Order
708+
:param user_ids: Restrict the search to collections owned by these user IDs
709+
:type user_ids: List[int]
681710
:param _request_timeout: timeout setting for this request. If one
682711
number provided, it will be total request
683712
timeout. It can also be a pair (tuple) of
@@ -710,6 +739,7 @@ def search_collections_without_preload_content(
710739
filters=filters,
711740
order_by=order_by,
712741
order_by_direction=order_by_direction,
742+
user_ids=user_ids,
713743
_request_auth=_request_auth,
714744
_content_type=_content_type,
715745
_headers=_headers,
@@ -738,6 +768,7 @@ def _search_collections_serialize(
738768
filters,
739769
order_by,
740770
order_by_direction,
771+
user_ids,
741772
_request_auth,
742773
_content_type,
743774
_headers,
@@ -749,6 +780,7 @@ def _search_collections_serialize(
749780
_collection_formats: Dict[str, str] = {
750781
'tags': 'multi',
751782
'filters': 'multi',
783+
'user_ids': 'multi',
752784
}
753785

754786
_path_params: Dict[str, str] = {}
@@ -798,6 +830,10 @@ def _search_collections_serialize(
798830

799831
_query_params.append(('order_by_direction', order_by_direction.value))
800832

833+
if user_ids is not None:
834+
835+
_query_params.append(('user_ids', user_ids))
836+
801837
# process the header parameters
802838
# process the form parameters
803839
# process the body parameter

revengai/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(
9090
self.default_headers[header_name] = header_value
9191
self.cookie = cookie
9292
# Set default User-Agent.
93-
self.user_agent = 'OpenAPI-Generator/v3.123.0/python'
93+
self.user_agent = 'OpenAPI-Generator/v3.124.0/python'
9494
self.client_side_validation = configuration.client_side_validation
9595

9696
def __enter__(self):

revengai/configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,8 @@ def to_debug_report(self) -> str:
541541
return "Python SDK Debug Report:\n"\
542542
"OS: {env}\n"\
543543
"Python Version: {pyversion}\n"\
544-
"Version of the API: v3.123.0\n"\
545-
"SDK Package Version: v3.123.0".\
544+
"Version of the API: v3.124.0\n"\
545+
"SDK Package Version: v3.124.0".\
546546
format(env=sys.platform, pyversion=sys.version)
547547

548548
def get_host_settings(self) -> List[HostSetting]:

revengai/models/permissions.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ class Permissions(BaseModel):
2828
can_export_symbols: StrictBool
2929
can_generate_pdf_reports: StrictBool
3030
can_use_ai_malware_analysis: StrictBool
31+
can_use_composition_analysis: StrictBool
3132
can_use_malware_sandbox: StrictBool
3233
can_use_private_analyses: StrictBool
3334
additional_properties: Dict[str, Any] = {}
34-
__properties: ClassVar[List[str]] = ["can_export_symbols", "can_generate_pdf_reports", "can_use_ai_malware_analysis", "can_use_malware_sandbox", "can_use_private_analyses"]
35+
__properties: ClassVar[List[str]] = ["can_export_symbols", "can_generate_pdf_reports", "can_use_ai_malware_analysis", "can_use_composition_analysis", "can_use_malware_sandbox", "can_use_private_analyses"]
3536

3637
model_config = ConfigDict(
3738
populate_by_name=True,
@@ -94,6 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
9495
"can_export_symbols": obj.get("can_export_symbols"),
9596
"can_generate_pdf_reports": obj.get("can_generate_pdf_reports"),
9697
"can_use_ai_malware_analysis": obj.get("can_use_ai_malware_analysis"),
98+
"can_use_composition_analysis": obj.get("can_use_composition_analysis"),
9799
"can_use_malware_sandbox": obj.get("can_use_malware_sandbox"),
98100
"can_use_private_analyses": obj.get("can_use_private_analyses")
99101
})

0 commit comments

Comments
 (0)