-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d89609
commit b2a8640
Showing
5 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
libparsec/crates/protocol/schema/authenticated_cmds/user_info.json5
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
[ | ||
{ | ||
"major_versions": [ | ||
4 | ||
], | ||
"req": { | ||
"cmd": "user_info", | ||
"fields": [ | ||
{ | ||
"name": "user_ids", | ||
"type": "List<UserID>" | ||
} | ||
] | ||
}, | ||
"reps": [ | ||
{ | ||
"status": "ok", | ||
"fields": [ | ||
{ | ||
"name": "user_info", | ||
"type": "List<UserInfo>" | ||
} | ||
] | ||
}, | ||
{ | ||
"status": "user_not_found", | ||
"fields": [ | ||
{ | ||
"name": "not_found_user", | ||
"type": "List<UserID>" | ||
} | ||
] | ||
} | ||
], | ||
"nested_types": [ | ||
{ | ||
"name": "UserInfo", | ||
"fields": [ | ||
{ | ||
"name": "user_id", | ||
"type": "UserID" | ||
}, | ||
{ | ||
"name": "human_handle", | ||
"type": "InvitationToken" | ||
}, | ||
{ | ||
"name": "frozen", | ||
"type": "Boolean" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] |
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
44 changes: 44 additions & 0 deletions
44
server/parsec/_parsec_pyi/protocol/authenticated_cmds/v4/user_info.pyi
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Parsec Cloud (https://parsec.cloud) Copyright (c) BUSL-1.1 2016-present Scille SAS | ||
|
||
# /!\ Autogenerated by misc/gen_protocol_typings.py, any modification will be lost ! | ||
|
||
from __future__ import annotations | ||
|
||
from parsec._parsec import InvitationToken, UserID | ||
|
||
class UserInfo: | ||
def __init__(self, user_id: UserID, human_handle: InvitationToken, frozen: bool) -> None: ... | ||
@property | ||
def frozen(self) -> bool: ... | ||
@property | ||
def human_handle(self) -> InvitationToken: ... | ||
@property | ||
def user_id(self) -> UserID: ... | ||
|
||
class Req: | ||
def __init__(self, user_ids: list[UserID]) -> None: ... | ||
def dump(self) -> bytes: ... | ||
@property | ||
def user_ids(self) -> list[UserID]: ... | ||
|
||
class Rep: | ||
@staticmethod | ||
def load(raw: bytes) -> Rep: ... | ||
def dump(self) -> bytes: ... | ||
|
||
class RepUnknownStatus(Rep): | ||
def __init__(self, status: str, reason: str | None) -> None: ... | ||
@property | ||
def status(self) -> str: ... | ||
@property | ||
def reason(self) -> str | None: ... | ||
|
||
class RepOk(Rep): | ||
def __init__(self, user_info: list[UserInfo]) -> None: ... | ||
@property | ||
def user_info(self) -> list[UserInfo]: ... | ||
|
||
class RepUserNotFound(Rep): | ||
def __init__(self, not_found_user: list[UserID]) -> None: ... | ||
@property | ||
def not_found_user(self) -> list[UserID]: ... |
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