activity
backend.api.activity
Section titled “backend.api.activity”activity feed — platform-wide chronological event stream.
Functions
Section titled “Functions”get_activity_feed source
Section titled “get_activity_feed source”get_activity_feed(db: Annotated[AsyncSession, Depends(get_db)], cursor: str | None = Query(None), limit: int = Query(20)) -> ActivityFeedResponseget the platform-wide activity feed.
get_activity_histogram source
Section titled “get_activity_histogram source”get_activity_histogram(db: Annotated[AsyncSession, Depends(get_db)], days: int = Query(7, ge=1, le=30)) -> ActivityHistogramResponseget activity counts per day for the sparkline.
Classes
Section titled “Classes”ActivityActor source
Section titled “ActivityActor source”actor who performed the activity.
Methods:
normalize_avatar source
Section titled “normalize_avatar source”normalize_avatar(cls, v: str | None) -> str | NoneActivityTrack source
Section titled “ActivityTrack source”track referenced in an activity event.
Methods:
normalize_avatar source
Section titled “normalize_avatar source”normalize_avatar(cls, v: str | None) -> str | NoneActivityEvent source
Section titled “ActivityEvent source”single activity event.
ActivityFeedResponse source
Section titled “ActivityFeedResponse source”paginated activity feed.
ActivityHistogramBucket source
Section titled “ActivityHistogramBucket source”single day in the activity histogram.
ActivityHistogramResponse source
Section titled “ActivityHistogramResponse source”activity counts per day over a time window.