Wraith. Members
(Wraith v0.1.0)
View Source
Readers who signed up. A member is id, email, name, status
("free" | "paid" | "comped"), labels, note, subscribed
(newsletter), stripe_customer_id, last_seen_at. Emails are unique.
Members sign in with a magic link (Wraith.Tokens :member_login,
mailed by Wraith.Newsletter.send_login_link/1); create_session/1
mints the cookie token once the link is opened (WraithWeb.MemberAuth).
Summary
Functions
Every member, pages followed (one DynamoDB page caps at 1 MB).
May this member read a post of this visibility?
The confirmation link was opened: the member is now subscribed.
Mint a session token for a member; store its hash. Returns the raw token.
Delete a member and everything of theirs: comments, sessions.
Members from CSV (header row with at least email; name, status, labels, subscribed optional). Existing emails are skipped.
Members who joined on or after date (ISO day), oldest first — a range read, not all.
Every member who gets the newsletter.
Every member as CSV (email, name, status, subscribed, labels, created_at).
Functions
Every member, pages followed (one DynamoDB page caps at 1 MB).
May this member read a post of this visibility?
The confirmation link was opened: the member is now subscribed.
Mint a session token for a member; store its hash. Returns the raw token.
Delete a member and everything of theirs: comments, sessions.
Members from CSV (header row with at least email; name, status, labels, subscribed optional). Existing emails are skipped.
Members who joined on or after date (ISO day), oldest first — a range read, not all.
Every member who gets the newsletter.
Every member as CSV (email, name, status, subscribed, labels, created_at).