|
15 | 15 | from typing import Any, Dict, List, Optional, Tuple, Union |
16 | 16 | from typing_extensions import Annotated |
17 | 17 |
|
18 | | -from pydantic import StrictStr |
19 | | -from typing import Any, Dict, Optional |
| 18 | +from pydantic import StrictBytes, StrictStr |
| 19 | +from typing import Any, Dict, Optional, Tuple, Union |
20 | 20 | from uuid import UUID |
21 | 21 |
|
22 | 22 | from otari._client.api_client import ApiClient, RequestSerialized |
@@ -644,7 +644,7 @@ def get_file_content_v1_files_file_id_content_get( |
644 | 644 | _content_type: Optional[StrictStr] = None, |
645 | 645 | _headers: Optional[Dict[StrictStr, Any]] = None, |
646 | 646 | _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, |
647 | | - ) -> object: |
| 647 | + ) -> bytes: |
648 | 648 | """Get File Content |
649 | 649 |
|
650 | 650 | Download the raw bytes of a file, streamed rather than buffered whole. |
@@ -685,7 +685,7 @@ def get_file_content_v1_files_file_id_content_get( |
685 | 685 | ) |
686 | 686 |
|
687 | 687 | _response_types_map: Dict[str, Optional[str]] = { |
688 | | - '200': "object", |
| 688 | + '200': "bytes", |
689 | 689 | '422': "HTTPValidationError", |
690 | 690 | } |
691 | 691 | response_data = self.api_client.call_api( |
@@ -716,7 +716,7 @@ def get_file_content_v1_files_file_id_content_get_with_http_info( |
716 | 716 | _content_type: Optional[StrictStr] = None, |
717 | 717 | _headers: Optional[Dict[StrictStr, Any]] = None, |
718 | 718 | _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, |
719 | | - ) -> ApiResponse[object]: |
| 719 | + ) -> ApiResponse[bytes]: |
720 | 720 | """Get File Content |
721 | 721 |
|
722 | 722 | Download the raw bytes of a file, streamed rather than buffered whole. |
@@ -757,7 +757,7 @@ def get_file_content_v1_files_file_id_content_get_with_http_info( |
757 | 757 | ) |
758 | 758 |
|
759 | 759 | _response_types_map: Dict[str, Optional[str]] = { |
760 | | - '200': "object", |
| 760 | + '200': "bytes", |
761 | 761 | '422': "HTTPValidationError", |
762 | 762 | } |
763 | 763 | response_data = self.api_client.call_api( |
@@ -829,7 +829,7 @@ def get_file_content_v1_files_file_id_content_get_without_preload_content( |
829 | 829 | ) |
830 | 830 |
|
831 | 831 | _response_types_map: Dict[str, Optional[str]] = { |
832 | | - '200': "object", |
| 832 | + '200': "bytes", |
833 | 833 | '422': "HTTPValidationError", |
834 | 834 | } |
835 | 835 | response_data = self.api_client.call_api( |
@@ -880,6 +880,8 @@ def _get_file_content_v1_files_file_id_content_get_serialize( |
880 | 880 | if 'Accept' not in _header_params: |
881 | 881 | _header_params['Accept'] = self.api_client.select_header_accept( |
882 | 882 | [ |
| 883 | + '*/*', |
| 884 | + 'application/octet-stream', |
883 | 885 | 'application/json' |
884 | 886 | ] |
885 | 887 | ) |
|
0 commit comments