diff --git a/.sdk-version b/.sdk-version index aed1eb7..1f7701b 100644 --- a/.sdk-version +++ b/.sdk-version @@ -1 +1 @@ -v2.86.0 +v2.88.1 diff --git a/docs/BinariesApi.md b/docs/BinariesApi.md index 26ebdfc..d7b4504 100644 --- a/docs/BinariesApi.md +++ b/docs/BinariesApi.md @@ -15,7 +15,7 @@ Method | HTTP request | Description # **download_zipped_binary** -> object download_zipped_binary(binary_id) +> bytearray download_zipped_binary(binary_id) Downloads a zipped binary with password protection @@ -71,7 +71,7 @@ Name | Type | Description | Notes ### Return type -**object** +**bytearray** ### Authorization @@ -80,13 +80,13 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: application/zip, application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Successful Response | - | +**200** | Download file | - | **422** | Invalid request parameters | - | [[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) diff --git a/revengai/__init__.py b/revengai/__init__.py index dc03fcb..5d11f81 100644 --- a/revengai/__init__.py +++ b/revengai/__init__.py @@ -13,7 +13,7 @@ """ # noqa: E501 -__version__ = "v2.86.0" +__version__ = "v2.88.1" # Define package exports __all__ = [ diff --git a/revengai/api/binaries_api.py b/revengai/api/binaries_api.py index 07d5d48..9efbd9b 100644 --- a/revengai/api/binaries_api.py +++ b/revengai/api/binaries_api.py @@ -15,8 +15,8 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import StrictInt -from typing import Any +from pydantic import StrictBytes, StrictInt, StrictStr +from typing import Tuple, Union from revengai.models.base_response_additional_details_status_response import BaseResponseAdditionalDetailsStatusResponse from revengai.models.base_response_binaries_related_status_response import BaseResponseBinariesRelatedStatusResponse from revengai.models.base_response_binary_additional_response import BaseResponseBinaryAdditionalResponse @@ -59,7 +59,7 @@ def download_zipped_binary( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: + ) -> bytearray: """Downloads a zipped binary with password protection @@ -96,7 +96,7 @@ def download_zipped_binary( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "bytearray", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -126,7 +126,7 @@ def download_zipped_binary_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[object]: + ) -> ApiResponse[bytearray]: """Downloads a zipped binary with password protection @@ -163,7 +163,7 @@ def download_zipped_binary_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "bytearray", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -230,7 +230,7 @@ def download_zipped_binary_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "bytearray", '422': "BaseResponse", } response_data = self.api_client.call_api( @@ -276,6 +276,7 @@ def _download_zipped_binary_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ + 'application/zip', 'application/json' ] ) diff --git a/revengai/api_client.py b/revengai/api_client.py index e058719..ecd22e4 100644 --- a/revengai/api_client.py +++ b/revengai/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/v2.86.0/python' + self.user_agent = 'OpenAPI-Generator/v2.88.1/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/revengai/configuration.py b/revengai/configuration.py index 3595d90..e470f99 100644 --- a/revengai/configuration.py +++ b/revengai/configuration.py @@ -533,8 +533,8 @@ def to_debug_report(self) -> str: return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: v2.86.0\n"\ - "SDK Package Version: v2.86.0".\ + "Version of the API: v2.88.1\n"\ + "SDK Package Version: v2.88.1".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: