syncing 1.7.61 v2 auth changes
Some checks failed
CI / run_server_binary (push) Has been cancelled

This commit is contained in:
Ayush Saini 2026-02-23 19:28:45 +05:30
parent f0fc46a51d
commit 9e0176e424
19 changed files with 374 additions and 72 deletions

View file

@ -462,3 +462,25 @@ class AnalyticsEventMessage(Message):
"""Have a nice analytics event!"""
event: Annotated[AnalyticsEvent, IOAttrs('e')]
@ioprepped
@dataclass
class AuthRequestMessage(Message):
"""Request access to a server for a current account."""
global_app_instance_uuid: Annotated[str, IOAttrs('a')]
@override
@classmethod
def get_response_types(cls) -> list[type[Response] | None]:
return [AuthRequestResponse]
@ioprepped
@dataclass
class AuthRequestResponse(Response):
"""Here's that access ya asked for boss."""
error: Annotated[str | None, IOAttrs('e')]
token: Annotated[str | None, IOAttrs('t')]