66from ... import errors
77from ...client import AuthenticatedClient , Client
88from ...models .error import Error
9- from ...models .stream import Stream
9+ from ...models .stream_details_response import StreamDetailsResponse
1010from ...types import Response
1111
1212
@@ -25,9 +25,9 @@ def _get_kwargs(
2525
2626def _parse_response (
2727 * , client : Union [AuthenticatedClient , Client ], response : httpx .Response
28- ) -> Optional [Union [Error , Stream ]]:
28+ ) -> Optional [Union [Error , StreamDetailsResponse ]]:
2929 if response .status_code == 200 :
30- response_200 = Stream .from_dict (response .json ())
30+ response_200 = StreamDetailsResponse .from_dict (response .json ())
3131
3232 return response_200
3333 if response .status_code == 401 :
@@ -50,7 +50,7 @@ def _parse_response(
5050
5151def _build_response (
5252 * , client : Union [AuthenticatedClient , Client ], response : httpx .Response
53- ) -> Response [Union [Error , Stream ]]:
53+ ) -> Response [Union [Error , StreamDetailsResponse ]]:
5454 return Response (
5555 status_code = HTTPStatus (response .status_code ),
5656 content = response .content ,
@@ -63,7 +63,7 @@ def sync_detailed(
6363 stream_id : str ,
6464 * ,
6565 client : AuthenticatedClient ,
66- ) -> Response [Union [Error , Stream ]]:
66+ ) -> Response [Union [Error , StreamDetailsResponse ]]:
6767 """Shows information about the stream
6868
6969 Args:
@@ -74,7 +74,7 @@ def sync_detailed(
7474 httpx.TimeoutException: If the request takes longer than Client.timeout.
7575
7676 Returns:
77- Response[Union[Error, Stream ]]
77+ Response[Union[Error, StreamDetailsResponse ]]
7878 """
7979
8080 kwargs = _get_kwargs (
@@ -92,7 +92,7 @@ def sync(
9292 stream_id : str ,
9393 * ,
9494 client : AuthenticatedClient ,
95- ) -> Optional [Union [Error , Stream ]]:
95+ ) -> Optional [Union [Error , StreamDetailsResponse ]]:
9696 """Shows information about the stream
9797
9898 Args:
@@ -103,7 +103,7 @@ def sync(
103103 httpx.TimeoutException: If the request takes longer than Client.timeout.
104104
105105 Returns:
106- Union[Error, Stream ]
106+ Union[Error, StreamDetailsResponse ]
107107 """
108108
109109 return sync_detailed (
@@ -116,7 +116,7 @@ async def asyncio_detailed(
116116 stream_id : str ,
117117 * ,
118118 client : AuthenticatedClient ,
119- ) -> Response [Union [Error , Stream ]]:
119+ ) -> Response [Union [Error , StreamDetailsResponse ]]:
120120 """Shows information about the stream
121121
122122 Args:
@@ -127,7 +127,7 @@ async def asyncio_detailed(
127127 httpx.TimeoutException: If the request takes longer than Client.timeout.
128128
129129 Returns:
130- Response[Union[Error, Stream ]]
130+ Response[Union[Error, StreamDetailsResponse ]]
131131 """
132132
133133 kwargs = _get_kwargs (
@@ -143,7 +143,7 @@ async def asyncio(
143143 stream_id : str ,
144144 * ,
145145 client : AuthenticatedClient ,
146- ) -> Optional [Union [Error , Stream ]]:
146+ ) -> Optional [Union [Error , StreamDetailsResponse ]]:
147147 """Shows information about the stream
148148
149149 Args:
@@ -154,7 +154,7 @@ async def asyncio(
154154 httpx.TimeoutException: If the request takes longer than Client.timeout.
155155
156156 Returns:
157- Union[Error, Stream ]
157+ Union[Error, StreamDetailsResponse ]
158158 """
159159
160160 return (
0 commit comments