Something went wrong. Try again.
Mirror — see github.com/blacksky-algorithms/blacksky.community
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192import {type ComputedBrandConfig} from '#/lib/community/types'import {type SessionRecord} from '#/analytics/identifiers/session'import {type Gif} from '#/features/gifPicker/types'import {type InviteThemeKey} from '#/features/inviteFriends/themes'
/** * Data that's specific to the device and does not vary based account */export type Device = { inviteFriendsFollowersPromoDismissed?: boolean inviteFriendsThemeKey?: InviteThemeKey /** * Formerly managed by StatSig, this is the migrated stable ID for the * device, used with our logging and metrics tracking. */ deviceId?: string /** Analytics session ID with creation, native lifecycle, or web activity time. */ analyticsSession?: SessionRecord
fontScale: '-2' | '-1' | '0' | '1' | '2' fontFamily: 'system' | 'theme' lastNuxDialog: string | undefined geolocation?: { countryCode: string | undefined } trendingBetaEnabled: boolean devMode: boolean demoMode: boolean activitySubscriptionsNudged?: boolean threadgateNudged?: boolean /** * Whether the trending topics widget was installed the last time we checked, * so `trendingWidget:installed` and `trendingWidget:uninstalled` are only * logged when that changes. */ trendingWidgetInstalled?: boolean pendingOTAUpdate?: { attemptedAt: number channel: string updateId: string }}
export type Account = { searchTermHistory?: string[] searchAccountHistory?: string[]
/** * The ISO date string of when this account's birthdate was last updated on * this device. */ birthdateLastUpdatedAt?: string
lastSelectedHomeFeed?: string
/** * Recently selected GIFs in the GIF picker. Most recent first, capped at 20. */ recentGifs?: Gif[]
/** * Last resolved community brand config for this account (native only). * Seeded synchronously at boot/account-switch to avoid a Blacksky→community * theme flash, then refreshed from the brand service. See * src/lib/community/useCommunityBrandSync.ts. */ brandConfig?: ComputedBrandConfig
/** * Cached from preferences (`bskyAppState.isBetaUser`) so the GrowthBook * `isBetaUser` attribute can be set synchronously at analytics init, before * beta-gated features (e.g. SearchV2Enable) are first evaluated. Written back * when preferences load. * * Scoped per account, since `isBetaUser` is account-specific preference data. * Reading it globally would let a beta account's value leak into a non-beta * account after a switch, until that account's preferences loaded. */ isBetaUser?: boolean
/** * The account's subscribed labeler DIDs, cached from preferences so the * `atproto-accept-labelers` header can be configured synchronously at * session start, before preferences load. Eventually consistent: rewritten * on every preferences fetch (see `saveLabelers` in * `#/state/session/moderation`). Until the first fetch lands there is * simply no cache entry and initial requests go out without per-account * labeler headers. */ labelers?: string[]}