Expand description
The messages of spoolframe/client/1.
Every enum is internally tagged: {"type": "ping"},
{"type": "item", "id": "plex:movie:1"}. Peers ignore fields they do
not know, and an error or event type they do not know decodes as
Unknown, so a newer peer can add both without breaking an older one.
A request type the server does not know is answered with
Error::Unsupported.
Structs§
- Begin
Invite Passkey - An invite’s code and the account to make with it and a passkey
(
BeginInvitePasskey). - Change
Password - The session user’s password and the one to replace it with
(
ChangePassword). - Confirm
Password - The account password, to confirm it is the session user
(
ConfirmPassword). - Device
Address - An address a device reached the server from.
- Device
Info - One of a user’s devices.
- Device
Sign InRequest - A device waiting to be signed in, as the approver sees it.
- Hello
- The client introduces itself. Every field is required. Each
string is cut to
MAX_HELLO_TEXTcharacters. - Home
Screen - Rows for a home screen. Every item carries the user’s playback state.
- Login
Password - Lookup
Invite - An invite’s code to look up (
LookupInvite): asRedeemInvitetakes it, in any case, with dashes or spaces. - PinState
- A user’s PIN as clients may know it.
- Portable
Sign In - A portable user’s device proving itself (
FinishPortableSignIn): the credential their root gave the device’s key, and that key’s signature over this server’s nonce. - Portable
Tie - One of an account’s ties to a portable identity.
- Redeem
Invite - An invite’s code and the account to make with it (
RedeemInvite).codeas the link carries it (crate::invite::Invite::code); any case, dashes or spaces are taken. - Redeem
Invite With Passkey - The invite’s code again, and the passkey made for the account
(
RedeemInviteWithPasskey). - Redeem
Portable Invite - A
portable-accountinvite’s code and the portable user redeeming it (RedeemPortableInvite). - Request
Envelope - One request, and the session it is made in.
- Server
Info - Who the server is.
endpoint_idis what the client pins. - Server
Row - A paired server’s row on Home.
- Session
Id - An opaque session token from a login. It is only valid from the endpoint that logged in.
- Session
Info - One live session, without its token.
- Track
Preferences Info - The session user’s track preferences (
GetTrackPreferences), and whether this server reads picture subtitles as text. - Trusted
Profile - A user a device is trusted for, as that device sees them.
- User
Summary - A session’s user.
- WhoAmI
Reply - What
WhoAmIanswers: the session’s user, and whether they may leave the server. On the wire the user’s fields andcan_leavesit in one map, so a client that does not knowcan_leavereads it as aUserSummary.
Enums§
- Address
Network - What kind of network an address is on, as the server’s web approval page judges it too.
- Auth
Method - How a user can log in to this server.
- Error
- Why a request failed. Typed, so clients act on the kind, not on text.
- Event
- Something the server tells the client without being asked, on the events stream.
- Invite
Lookup Outcome - What an invite’s code is (
InviteLookup). Looking never uses it up. - Manifest
Kind - Which HLS playlist.
- Next
Mode - Which episode
NextEpisodefinds after the one given. - PinProof
- What proves a PIN change or removal is the user’s: the PIN they have, or, when it is forgotten, their account password.
- Reply
- Request
- Response
- The answer to one request.
Constants§
- MAX_
HELLO_ TEXT - The most characters the server keeps of each of
Hello’s strings:client_name,client_versionanddevice_name. It cuts a longer one to this many, and keeps and shows only that. - MAX_
SIGN_ IN_ STATES - The most identity states a portable sign-in carries.
- PROTOCOL_
VERSION - The protocol revision inside the
spoolframe/client/1ALPN. Raised for coordinated development releases, including breaking wire changes. A server refuses every other revision atHello. - SUBTITLE_
CHUNK - The maximum raw body of one subtitle chunk on a resource stream.
Functions§
- cut
textcut toMAX_HELLO_TEXTcharacters: what a server keeps of a device’s strings (aHello’s, an offered TV’s name), and a device of an invite link’s name.