Update api spec (#157)
* YOYO NEW API SPEC! * I have generated the latest API! --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@ -5,6 +5,7 @@ from websockets.sync.client import ClientConnection, connect as ws_connect
|
||||
|
||||
from ...client import Client
|
||||
from ...models.error import Error
|
||||
from ...models.web_socket_request import WebSocketRequest
|
||||
|
||||
|
||||
def _get_kwargs(
|
||||
@ -29,6 +30,10 @@ def _get_kwargs(
|
||||
webrtc: bool,
|
||||
|
||||
|
||||
|
||||
body: WebSocketRequest,
|
||||
|
||||
|
||||
*,
|
||||
client: Client,
|
||||
|
||||
@ -42,6 +47,8 @@ def _get_kwargs(
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
) -> Dict[str, Any]:
|
||||
url = "{}/ws/modeling/commands".format(client.base_url) # noqa: E501
|
||||
|
||||
@ -85,6 +92,8 @@ def _get_kwargs(
|
||||
url = url + "?webrtc=" + str(webrtc)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
headers: Dict[str, Any] = client.get_headers()
|
||||
@ -95,7 +104,7 @@ def _get_kwargs(
|
||||
"headers": headers,
|
||||
"cookies": cookies,
|
||||
"timeout": client.get_timeout(),
|
||||
|
||||
"content": body,
|
||||
}
|
||||
|
||||
|
||||
@ -121,6 +130,10 @@ def sync(
|
||||
webrtc: bool,
|
||||
|
||||
|
||||
|
||||
body: WebSocketRequest,
|
||||
|
||||
|
||||
*,
|
||||
client: Client,
|
||||
|
||||
@ -134,6 +147,8 @@ def sync(
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
) -> ClientConnection:
|
||||
"""Pass those commands to the engine via websocket, and pass responses back to the client. Basically, this is a websocket proxy between the frontend/client and the engine.""" # noqa: E501
|
||||
|
||||
@ -149,6 +164,8 @@ def sync(
|
||||
|
||||
webrtc=webrtc,
|
||||
|
||||
body=body,
|
||||
|
||||
client=client,
|
||||
)
|
||||
|
||||
@ -182,6 +199,10 @@ async def asyncio(
|
||||
webrtc: bool,
|
||||
|
||||
|
||||
|
||||
body: WebSocketRequest,
|
||||
|
||||
|
||||
*,
|
||||
client: Client,
|
||||
|
||||
@ -195,6 +216,8 @@ async def asyncio(
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
) -> WebSocketClientProtocol:
|
||||
"""Pass those commands to the engine via websocket, and pass responses back to the client. Basically, this is a websocket proxy between the frontend/client and the engine.""" # noqa: E501
|
||||
|
||||
@ -210,6 +233,8 @@ async def asyncio(
|
||||
|
||||
webrtc=webrtc,
|
||||
|
||||
body=body,
|
||||
|
||||
client=client,
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user