Skip to content

Commit

Permalink
Update api spec (#157)
Browse files Browse the repository at this point in the history
* YOYO NEW API SPEC!

* I have generated the latest API!

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
jessfraz and github-actions[bot] authored Oct 12, 2023
1 parent 4120a13 commit 0369652
Show file tree
Hide file tree
Showing 77 changed files with 16,666 additions and 16,232 deletions.
404 changes: 202 additions & 202 deletions kittycad.py.patch.json

Large diffs are not rendered by default.

27 changes: 26 additions & 1 deletion kittycad/api/modeling/modeling_commands_ws.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from ...client import Client
from ...models.error import Error
from ...models.web_socket_request import WebSocketRequest


def _get_kwargs(
Expand All @@ -29,6 +30,10 @@ def _get_kwargs(
webrtc: bool,



body: WebSocketRequest,


*,
client: Client,

Expand All @@ -42,6 +47,8 @@ def _get_kwargs(





) -> Dict[str, Any]:
url = "{}/ws/modeling/commands".format(client.base_url) # noqa: E501

Expand Down Expand Up @@ -85,6 +92,8 @@ def _get_kwargs(
url = url + "?webrtc=" + str(webrtc)






headers: Dict[str, Any] = client.get_headers()
Expand All @@ -95,7 +104,7 @@ def _get_kwargs(
"headers": headers,
"cookies": cookies,
"timeout": client.get_timeout(),

"content": body,
}


Expand All @@ -121,6 +130,10 @@ def sync(
webrtc: bool,



body: WebSocketRequest,


*,
client: Client,

Expand All @@ -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

Expand All @@ -149,6 +164,8 @@ def sync(

webrtc=webrtc,

body=body,

client=client,
)

Expand Down Expand Up @@ -182,6 +199,10 @@ async def asyncio(
webrtc: bool,



body: WebSocketRequest,


*,
client: Client,

Expand All @@ -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

Expand All @@ -210,6 +233,8 @@ async def asyncio(

webrtc=webrtc,

body=body,

client=client,
)

Expand Down
Loading

1 comment on commit 0369652

@vercel
Copy link

@vercel vercel bot commented on 0369652 Oct 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.