type: object
description: |
    Aggregate counters carried inside a `SocialProfile` and returned from
    `/admin/account/{id}/social/stats`. Mirrors `SocialStats` in
    [`cloud/src/SocialAPI/Schemas.ts`](../../../../cloud/src/SocialAPI/Schemas.ts).
    The public-facing projection (`PublicSocialStats`) is a subset of these
    fields — see [`PublicSocialStats`](./PublicSocialStats.yaml).
required: [friendsCount, followersCount, blockedCount, notificationsCount, unreadNotificationsCount, historyItemCount, lastOnlineDate]
properties:
    socialId:
        type: string
        description: Profile this stats record belongs to.
    notificationsCount: { type: integer, description: Total notifications stored for the profile. }
    unreadNotificationsCount: { type: integer, description: Notifications still in `Unread` status. }
    historyItemCount: { type: integer, description: Active rows in the social-history table for the profile. }
    friendsCount: { type: integer, description: Active `Friends` edges. }
    followersCount: { type: integer, description: Active `Following` edges where the profile is the target. }
    blockedCount: { type: integer, description: Active `Blocked` edges owned by the profile. }
    lastOnlineDate:
        type: integer
        description: Last time the profile was online, as a Unix timestamp in **seconds**.
example:
    socialId: "soc_01HZR12345ABC678DEF90GHJKM"
    notificationsCount: 12
    unreadNotificationsCount: 3
    historyItemCount: 87
    friendsCount: 42
    followersCount: 18
    blockedCount: 1
    lastOnlineDate: 1762462440
