Skip to main content

Module invite_admin

Module invite_admin 

Source
Expand description

Making and managing invites from an app (PX-44): the client protocol’s admin requests CreateInvite, ListInvites and RevokeInvite, with P6-01’s semantics, limits and store; the web UI’s inviteCreate and the apps make the same invites and see each other’s.

Only an admin’s session may ask (AdminRequired otherwise), and only for an account here (NotForPortableUsers for a portable guest). Creating and revoking also need the admin to have confirmed it is them recently, as the web UI’s admin changes do: a fresh ConfirmPassword or passkey confirmation, else RecentSignInRequired. Listing does not.

Structs§

CreateInvite
An invite to make (CreateInvite). Each None is the server’s default, as for the web UI’s inviteCreate: one use, 7 days, the consumer role.
InviteCreated
A new invite (CreateInvite), with its code: shown this once.
InviteCreator
Who made an invite.
InviteSummary
An invite as admins see it: never its code, which the server keeps only as a hash.

Enums§

InviteKind
What redeeming an invite does.
InviteOrigin
Where an invite was made.