Skip to main content

Module invite_admin

Module invite_admin 

Source
Expand description

Making and managing invites from an app: the client protocol’s admin requests CreateInvite, ListInvites and RevokeInvite. These are the same invites, with the same limits, as the web UI makes; the web UI and the apps 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.