Something went wrong. Try again.
A single hub to check all of my ATProto activity
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184// ─── ATProto record shapes (the lexicons this site reads) ────────────────// Everything is optional-by-default: these are foreign records we don't own,// so we treat every field as possibly-absent and normalize downstream.
export interface AtRecord<T> { uri: string; cid: string; value: T;}
export interface BlobRef { $type?: string; ref: { $link: string }; mimeType?: string; size?: number;}
export interface ActorProfile { displayName?: string; description?: string; avatar?: BlobRef;}
export interface StandardDocument { title?: string; description?: string; path?: string; site?: string; // at-uri of the publication publishedAt?: string;}export interface StandardPublication { url?: string; name?: string;}
export interface GrainGallery { title?: string; description?: string; createdAt?: string;}export interface GrainGalleryItem { gallery: string; item: string; position?: number;}export interface GrainPhoto { photo?: BlobRef; alt?: string; createdAt?: string;}
// Popfeed reviews and notes share this shape (notes just omit `rating`).export interface PopfeedItem { creativeWorkType?: string; rating?: number; // out of 10 genres?: string[]; text?: string; title?: string; posterUrl?: string; createdAt?: string; identifiers?: { tmdbTvSeriesId?: string; seasonNumber?: number; episodeNumber?: number };}
export interface BeaconRecord { venueName?: string; venueCategory?: string; rating?: number; // out of 5 shout?: string; addressDetails?: { locality?: string; country?: string }; post?: { uri: string; cid?: string }; // companion Bluesky post (holds photos) createdAt?: string;}
export interface BskyImage { image: BlobRef; alt?: string;}export interface BskyEmbed { $type?: string; images?: BskyImage[]; media?: BskyEmbed; // recordWithMedia external?: { uri?: string; title?: string; description?: string };}export interface BskyPost { text?: string; reply?: { root: { uri: string }; parent: { uri: string } }; embed?: BskyEmbed; createdAt?: string;}
export interface WineskyDrink { name?: string; vintage?: number; producer?: string; appellation?: string; region?: string; country?: string; varietals?: string[];}export interface WineskyReview { drink?: WineskyDrink; rating?: number; // out of 100 text?: string; post?: { atUri?: string; uri?: string; cid?: string }; // Bluesky crosspost imageSet?: { atUri: string; cid?: string }; // bottle photo reviewDate?: string; createdAt?: string;}export interface WineskyImageSet { images?: BlobRef[];}
export interface SifaPosition { title?: string; company?: string; startedAt?: string; endedAt?: string;}export interface SifaEducation { degree?: string; fieldOfStudy?: string; institution?: string; startedAt?: string; endedAt?: string;}export interface SifaPublication { title?: string; publisher?: string; url?: string; publishedAt?: string;}
// ─── App-internal model ──────────────────────────────────────────────────import type { SourceKey } from "./config";
// One post within a reconstructed Bluesky self-thread (text + its own photos).export interface ThreadPost { text: string; photos: string[]; // blob cids url: string; // permalink to this individual post}
// One rendered entry in the stream.export interface TimelineEvent { date: Date; verb: string; // pill text colorVerb: string; // topic that drives the pill colour (may differ from verb) title: string; stars: string; // pre-rendered HTML (empty if unrated) meta: string; // short muted line (rating context, place, org…) note: string; // longer comment/description paragraph image: string; // single right-hand thumbnail photos: string[]; // strip shown under the note url: string; // link to the original record, when we can build one thread: ThreadPost[]; // ≥2 posts ⇒ render as a threaded chain (a Bluesky self-thread) source?: SourceKey; // originating service/lexicon (set when composing the stream) seriesId?: string; // TV series id — adjacent same-series episodes thread together seriesName?: string; // series title (for the group summary)}
export interface EventExtra { colorVerb?: string; rating?: number | null; ratingScale?: number; meta?: string; note?: string; image?: string; photos?: string[]; url?: string; thread?: ThreadPost[]; seriesId?: string; seriesName?: string;}
// A job or degree: a span, not a moment. Drives the sticky context bar and the// started/finished milestones. `end === null` ⇒ still ongoing.export interface Interval { start: Date; end: Date | null; verb: "working" | "studying"; org: string; role: string;}