Skip to content

Commit 2fc99d0

Browse files
chore: regenerate SDK client core from Otari OpenAPI spec (#66)
Co-authored-by: HareeshBahuleyan <13996331+HareeshBahuleyan@users.noreply.github.com>
1 parent ee68e14 commit 2fc99d0

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

‎src/otari/_client/api/files_api.py‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
from typing import Any, Dict, List, Optional, Tuple, Union
1616
from typing_extensions import Annotated
1717

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
2020
from uuid import UUID
2121

2222
from otari._client.api_client import ApiClient, RequestSerialized
@@ -644,7 +644,7 @@ def get_file_content_v1_files_file_id_content_get(
644644
_content_type: Optional[StrictStr] = None,
645645
_headers: Optional[Dict[StrictStr, Any]] = None,
646646
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
647-
) -> object:
647+
) -> bytes:
648648
"""Get File Content
649649
650650
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(
685685
)
686686

687687
_response_types_map: Dict[str, Optional[str]] = {
688-
'200': "object",
688+
'200': "bytes",
689689
'422': "HTTPValidationError",
690690
}
691691
response_data = self.api_client.call_api(
@@ -716,7 +716,7 @@ def get_file_content_v1_files_file_id_content_get_with_http_info(
716716
_content_type: Optional[StrictStr] = None,
717717
_headers: Optional[Dict[StrictStr, Any]] = None,
718718
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
719-
) -> ApiResponse[object]:
719+
) -> ApiResponse[bytes]:
720720
"""Get File Content
721721
722722
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(
757757
)
758758

759759
_response_types_map: Dict[str, Optional[str]] = {
760-
'200': "object",
760+
'200': "bytes",
761761
'422': "HTTPValidationError",
762762
}
763763
response_data = self.api_client.call_api(
@@ -829,7 +829,7 @@ def get_file_content_v1_files_file_id_content_get_without_preload_content(
829829
)
830830

831831
_response_types_map: Dict[str, Optional[str]] = {
832-
'200': "object",
832+
'200': "bytes",
833833
'422': "HTTPValidationError",
834834
}
835835
response_data = self.api_client.call_api(
@@ -880,6 +880,8 @@ def _get_file_content_v1_files_file_id_content_get_serialize(
880880
if 'Accept' not in _header_params:
881881
_header_params['Accept'] = self.api_client.select_header_accept(
882882
[
883+
'*/*',
884+
'application/octet-stream',
883885
'application/json'
884886
]
885887
)

0 commit comments

Comments
 (0)