Skip to content

Commit

Permalink
Update schema and imports
Browse files Browse the repository at this point in the history
  • Loading branch information
zephraph committed Feb 19, 2025
1 parent 5ceb2b4 commit e6db4c5
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import msgspec
import sys

from .schemas import *

# Import schemas
from .schemas import (
NotificationMessage,
Expand Down Expand Up @@ -43,7 +45,6 @@
LoadHtmlRequest,
LoadUrlRequest,
Size,
ContentHtml as WebViewContentHtml,
)

# Constants
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,48 @@
from typing import Union
import msgspec

__all__ = [
"AckResponse",
"BooleanResultType",
"ClosedNotification",
"Content",
"ContentHtml",
"ContentUrl",
"ErrResponse",
"EvalRequest",
"FloatResultType",
"FullscreenRequest",
"GetSizeRequest",
"GetTitleRequest",
"GetVersionRequest",
"IpcNotification",
"IsVisibleRequest",
"LoadHtmlRequest",
"LoadUrlRequest",
"MaximizeRequest",
"Message",
"MinimizeRequest",
"Notification",
"NotificationMessage",
"OpenDevToolsRequest",
"Options",
"Request",
"Response",
"ResponseMessage",
"ResultResponse",
"ResultType",
"SetSizeRequest",
"SetTitleRequest",
"SetVisibilityRequest",
"Size",
"SizeResultType",
"SizeWithScale",
"StartedNotification",
"StringResultType",
"WindowSize",
"WindowSizeStates"
]

class StartedNotification(msgspec.Struct, tag_field="$type", tag="started"):
version: str
"""The version of the webview binary"""
Expand Down

0 comments on commit e6db4c5

Please sign in to comment.