-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unused websockets dependency Pin aiohttp to avoid next major version breaking API client Use ruff for formatting instead of black Add mozart_client classes to mozart_api.__init__py imports Update OpenAPI generator to 7.10 Improve API documentation
- Loading branch information
Showing
233 changed files
with
5,981 additions
and
5,080 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,19 +3,25 @@ | |
# flake8: noqa | ||
|
||
""" | ||
Mozart platform API | ||
Mozart platform API | ||
API for interacting with the Mozart platform. | ||
API for interacting with the Mozart platform. | ||
The version of the OpenAPI document: 0.2.0 | ||
Contact: [email protected] | ||
Generated by OpenAPI Generator (https://openapi-generator.tech) | ||
The version of the OpenAPI document: 0.2.0 | ||
Contact: [email protected] | ||
Generated by OpenAPI Generator (https://openapi-generator.tech) | ||
Do not edit the class manually. | ||
Do not edit the class manually. | ||
""" # noqa: E501 | ||
|
||
__version__ = "4.1.1.116.1" | ||
|
||
__version__ = "4.1.1.116.0" | ||
# import manually created api client | ||
from mozart_api.mozart_client import ( | ||
BaseWebSocketResponse, | ||
MozartClient, | ||
WebSocketEventType, | ||
) | ||
|
||
# import apis into sdk package | ||
from mozart_api.api.beolink_api import BeolinkApi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,27 @@ | ||
# coding: utf-8 | ||
|
||
""" | ||
Mozart platform API | ||
Mozart platform API | ||
API for interacting with the Mozart platform. | ||
API for interacting with the Mozart platform. | ||
The version of the OpenAPI document: 0.2.0 | ||
Contact: [email protected] | ||
Generated by OpenAPI Generator (https://openapi-generator.tech) | ||
The version of the OpenAPI document: 0.2.0 | ||
Contact: [email protected] | ||
Generated by OpenAPI Generator (https://openapi-generator.tech) | ||
Do not edit the class manually. | ||
Do not edit the class manually. | ||
""" # noqa: E501 | ||
|
||
|
||
import re # noqa: F401 | ||
import io | ||
import re # noqa: F401 | ||
import warnings | ||
|
||
|
||
try: | ||
from pydantic.v1 import validate_arguments, ValidationError | ||
from pydantic.v1 import ValidationError, validate_arguments | ||
except ImportError: | ||
from pydantic import validate_arguments, ValidationError | ||
from pydantic import ValidationError, validate_arguments | ||
|
||
from typing import overload, Optional, Union, Awaitable | ||
from typing import Awaitable, Optional, Union, overload | ||
|
||
from typing_extensions import Annotated | ||
|
||
|
@@ -35,17 +33,16 @@ | |
|
||
from typing import List, Optional | ||
|
||
from mozart_api.api_client import ApiClient | ||
from mozart_api.api_response import ApiResponse | ||
from mozart_api.exceptions import ApiTypeError, ApiValueError # noqa: F401 | ||
from mozart_api.models.beolink_available_listener import BeolinkAvailableListener | ||
from mozart_api.models.beolink_join_request import BeolinkJoinRequest | ||
from mozart_api.models.beolink_join_result import BeolinkJoinResult | ||
from mozart_api.models.beolink_listener import BeolinkListener | ||
from mozart_api.models.beolink_peer import BeolinkPeer | ||
from mozart_api.models.beolink_self import BeolinkSelf | ||
|
||
from mozart_api.api_client import ApiClient | ||
from mozart_api.api_response import ApiResponse | ||
from mozart_api.exceptions import ApiTypeError, ApiValueError # noqa: F401 | ||
|
||
|
||
class BeolinkApi: | ||
"""NOTE: This class is auto generated by OpenAPI Generator | ||
|
@@ -80,9 +77,7 @@ async def get_beolink_available_listeners( | |
if "_preload_content" in kwargs: | ||
message = "Error! Please call the get_beolink_available_listeners_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 | ||
raise ValueError(message) | ||
return await self.get_beolink_available_listeners_with_http_info( | ||
**kwargs | ||
) # noqa: E501 | ||
return await self.get_beolink_available_listeners_with_http_info(**kwargs) # noqa: E501 | ||
|
||
@validate_arguments | ||
async def get_beolink_available_listeners_with_http_info( | ||
|
@@ -188,7 +183,7 @@ async def get_beolink_available_listeners_with_http_info( | |
async def get_beolink_join_result( | ||
self, | ||
id: Annotated[StrictStr, Field(..., description="Join request ID")], | ||
**kwargs | ||
**kwargs, | ||
) -> BeolinkJoinResult: # noqa: E501 | ||
"""Get Beolink join result, test-endpoint # noqa: E501 | ||
|
@@ -209,15 +204,13 @@ async def get_beolink_join_result( | |
if "_preload_content" in kwargs: | ||
message = "Error! Please call the get_beolink_join_result_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 | ||
raise ValueError(message) | ||
return await self.get_beolink_join_result_with_http_info( | ||
id, **kwargs | ||
) # noqa: E501 | ||
return await self.get_beolink_join_result_with_http_info(id, **kwargs) # noqa: E501 | ||
|
||
@validate_arguments | ||
async def get_beolink_join_result_with_http_info( | ||
self, | ||
id: Annotated[StrictStr, Field(..., description="Join request ID")], | ||
**kwargs | ||
**kwargs, | ||
) -> ApiResponse: # noqa: E501 | ||
"""Get Beolink join result, test-endpoint # noqa: E501 | ||
|
@@ -320,9 +313,7 @@ async def get_beolink_join_result_with_http_info( | |
) | ||
|
||
@validate_arguments | ||
async def get_beolink_listeners( | ||
self, **kwargs | ||
) -> List[BeolinkListener]: # noqa: E501 | ||
async def get_beolink_listeners(self, **kwargs) -> List[BeolinkListener]: # noqa: E501 | ||
"""Get joined peers # noqa: E501 | ||
Get a list of devices that are listening to this device active experience (that have joined). # noqa: E501 | ||
|
@@ -343,9 +334,7 @@ async def get_beolink_listeners( | |
return await self.get_beolink_listeners_with_http_info(**kwargs) # noqa: E501 | ||
|
||
@validate_arguments | ||
async def get_beolink_listeners_with_http_info( | ||
self, **kwargs | ||
) -> ApiResponse: # noqa: E501 | ||
async def get_beolink_listeners_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501 | ||
"""Get joined peers # noqa: E501 | ||
Get a list of devices that are listening to this device active experience (that have joined). # noqa: E501 | ||
|
@@ -464,9 +453,7 @@ async def get_beolink_peers(self, **kwargs) -> List[BeolinkPeer]: # noqa: E501 | |
return await self.get_beolink_peers_with_http_info(**kwargs) # noqa: E501 | ||
|
||
@validate_arguments | ||
async def get_beolink_peers_with_http_info( | ||
self, **kwargs | ||
) -> ApiResponse: # noqa: E501 | ||
async def get_beolink_peers_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501 | ||
"""Get discovered peers # noqa: E501 | ||
Get information about the Beolink peers discovered by this device. # noqa: E501 | ||
|
@@ -585,9 +572,7 @@ async def get_beolink_self(self, **kwargs) -> BeolinkSelf: # noqa: E501 | |
return await self.get_beolink_self_with_http_info(**kwargs) # noqa: E501 | ||
|
||
@validate_arguments | ||
async def get_beolink_self_with_http_info( | ||
self, **kwargs | ||
) -> ApiResponse: # noqa: E501 | ||
async def get_beolink_self_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501 | ||
"""Get information about this device # noqa: E501 | ||
Returns Beolink information like about this device. This can be useful if you want to expand _to_ this device. # noqa: E501 | ||
|
@@ -691,7 +676,7 @@ async def join_beolink_peer( | |
Optional[StrictStr], | ||
Field(description="Ask to join a specific source on peer"), | ||
] = None, | ||
**kwargs | ||
**kwargs, | ||
) -> BeolinkJoinRequest: # noqa: E501 | ||
"""Join multi-room experience # noqa: E501 | ||
|
@@ -714,9 +699,7 @@ async def join_beolink_peer( | |
if "_preload_content" in kwargs: | ||
message = "Error! Please call the join_beolink_peer_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 | ||
raise ValueError(message) | ||
return await self.join_beolink_peer_with_http_info( | ||
jid, source, **kwargs | ||
) # noqa: E501 | ||
return await self.join_beolink_peer_with_http_info(jid, source, **kwargs) # noqa: E501 | ||
|
||
@validate_arguments | ||
async def join_beolink_peer_with_http_info( | ||
|
@@ -726,7 +709,7 @@ async def join_beolink_peer_with_http_info( | |
Optional[StrictStr], | ||
Field(description="Ask to join a specific source on peer"), | ||
] = None, | ||
**kwargs | ||
**kwargs, | ||
) -> ApiResponse: # noqa: E501 | ||
"""Join multi-room experience # noqa: E501 | ||
|
@@ -835,9 +818,7 @@ async def join_beolink_peer_with_http_info( | |
) | ||
|
||
@validate_arguments | ||
async def join_latest_beolink_experience( | ||
self, **kwargs | ||
) -> BeolinkJoinRequest: # noqa: E501 | ||
async def join_latest_beolink_experience(self, **kwargs) -> BeolinkJoinRequest: # noqa: E501 | ||
"""Trigger touch to join # noqa: E501 | ||
|
@@ -854,9 +835,7 @@ async def join_latest_beolink_experience( | |
if "_preload_content" in kwargs: | ||
message = "Error! Please call the join_latest_beolink_experience_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 | ||
raise ValueError(message) | ||
return await self.join_latest_beolink_experience_with_http_info( | ||
**kwargs | ||
) # noqa: E501 | ||
return await self.join_latest_beolink_experience_with_http_info(**kwargs) # noqa: E501 | ||
|
||
@validate_arguments | ||
async def join_latest_beolink_experience_with_http_info( | ||
|
@@ -979,9 +958,7 @@ async def post_beolink_allstandby(self, **kwargs) -> None: # noqa: E501 | |
return await self.post_beolink_allstandby_with_http_info(**kwargs) # noqa: E501 | ||
|
||
@validate_arguments | ||
async def post_beolink_allstandby_with_http_info( | ||
self, **kwargs | ||
) -> ApiResponse: # noqa: E501 | ||
async def post_beolink_allstandby_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501 | ||
"""Broadcast an all standby event to turn all Beolink devices off # noqa: E501 | ||
|
@@ -1083,7 +1060,7 @@ async def post_beolink_expand( | |
..., description="Jabber id of peer to expand the active experience to" | ||
), | ||
], | ||
**kwargs | ||
**kwargs, | ||
) -> None: # noqa: E501 | ||
"""Expand the current active experience # noqa: E501 | ||
|
@@ -1104,9 +1081,7 @@ async def post_beolink_expand( | |
if "_preload_content" in kwargs: | ||
message = "Error! Please call the post_beolink_expand_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 | ||
raise ValueError(message) | ||
return await self.post_beolink_expand_with_http_info( | ||
jid, **kwargs | ||
) # noqa: E501 | ||
return await self.post_beolink_expand_with_http_info(jid, **kwargs) # noqa: E501 | ||
|
||
@validate_arguments | ||
async def post_beolink_expand_with_http_info( | ||
|
@@ -1117,7 +1092,7 @@ async def post_beolink_expand_with_http_info( | |
..., description="Jabber id of peer to expand the active experience to" | ||
), | ||
], | ||
**kwargs | ||
**kwargs, | ||
) -> ApiResponse: # noqa: E501 | ||
"""Expand the current active experience # noqa: E501 | ||
|
@@ -1237,9 +1212,7 @@ async def post_beolink_leave(self, **kwargs) -> None: # noqa: E501 | |
return await self.post_beolink_leave_with_http_info(**kwargs) # noqa: E501 | ||
|
||
@validate_arguments | ||
async def post_beolink_leave_with_http_info( | ||
self, **kwargs | ||
) -> ApiResponse: # noqa: E501 | ||
async def post_beolink_leave_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501 | ||
"""Leave the ongoing experience (disconnect this device from remote) # noqa: E501 | ||
|
@@ -1338,7 +1311,7 @@ async def post_beolink_unexpand( | |
jid: Annotated[ | ||
StrictStr, Field(..., description="Jabber id of peer to unexpand") | ||
], | ||
**kwargs | ||
**kwargs, | ||
) -> None: # noqa: E501 | ||
"""Unexpand (disconnect) a device from the multiroom session # noqa: E501 | ||
|
@@ -1359,17 +1332,15 @@ async def post_beolink_unexpand( | |
if "_preload_content" in kwargs: | ||
message = "Error! Please call the post_beolink_unexpand_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 | ||
raise ValueError(message) | ||
return await self.post_beolink_unexpand_with_http_info( | ||
jid, **kwargs | ||
) # noqa: E501 | ||
return await self.post_beolink_unexpand_with_http_info(jid, **kwargs) # noqa: E501 | ||
|
||
@validate_arguments | ||
async def post_beolink_unexpand_with_http_info( | ||
self, | ||
jid: Annotated[ | ||
StrictStr, Field(..., description="Jabber id of peer to unexpand") | ||
], | ||
**kwargs | ||
**kwargs, | ||
) -> ApiResponse: # noqa: E501 | ||
"""Unexpand (disconnect) a device from the multiroom session # noqa: E501 | ||
|
Oops, something went wrong.