Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions src/otari/_client/api/files_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated

from pydantic import StrictStr
from typing import Any, Dict, Optional
from pydantic import StrictBytes, StrictStr
from typing import Any, Dict, Optional, Tuple, Union
from uuid import UUID

from otari._client.api_client import ApiClient, RequestSerialized
Expand Down Expand Up @@ -644,7 +644,7 @@ def get_file_content_v1_files_file_id_content_get(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> object:
) -> bytes:
"""Get File Content

Download the raw bytes of a file, streamed rather than buffered whole.
Expand Down Expand Up @@ -685,7 +685,7 @@ def get_file_content_v1_files_file_id_content_get(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "object",
'200': "bytes",
'422': "HTTPValidationError",
}
response_data = self.api_client.call_api(
Expand Down Expand Up @@ -716,7 +716,7 @@ def get_file_content_v1_files_file_id_content_get_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[bytes]:
"""Get File Content

Download the raw bytes of a file, streamed rather than buffered whole.
Expand Down Expand Up @@ -757,7 +757,7 @@ def get_file_content_v1_files_file_id_content_get_with_http_info(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "object",
'200': "bytes",
'422': "HTTPValidationError",
}
response_data = self.api_client.call_api(
Expand Down Expand Up @@ -829,7 +829,7 @@ def get_file_content_v1_files_file_id_content_get_without_preload_content(
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "object",
'200': "bytes",
'422': "HTTPValidationError",
}
response_data = self.api_client.call_api(
Expand Down Expand Up @@ -880,6 +880,8 @@ def _get_file_content_v1_files_file_id_content_get_serialize(
if 'Accept' not in _header_params:
_header_params['Accept'] = self.api_client.select_header_accept(
[
'*/*',
'application/octet-stream',
'application/json'
]
)
Expand Down
Loading