Something went wrong. Try again.
Mirror — see github.com/blacksky-algorithms/blacksky.community
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420/* * Do not import runtime code into this file */
import {type Platform} from 'react-native'
import {type NotificationReason} from '#/lib/hooks/useNotificationHandler'import {type NotificationType} from '#/state/queries/notifications/types'import {type FeedDescriptor} from '#/state/queries/post-feed'import {type LiveEventFeedMetricContext} from '#/features/liveEvents/types'
export type Events = { // App events init: { initMs: number } 'experiment:viewed': { experimentId: string variationId: string } 'feature:viewed': { featureId: string featureResultValue: unknown /** Only available if feature has experiment rules applied */ experimentId?: string /** Only available if feature has experiment rules applied */ variationId?: string }
'appviewFallback:changed': { active: boolean trigger: 'auto' | 'force-fallback' | 'force-primary' } 'appviewFallback:probe': { result: 'eligible' | 'ineligible' | 'unknown' errorName?: string status?: number } 'appviewFallback:outage': { active: boolean }
'account:loggedIn': { logContext: | 'LoginForm' | 'SwitchAccount' | 'ChooseAccountForm' | 'Settings' | 'Notification' withPassword: boolean } 'account:loggedOut': { logContext: | 'SwitchAccount' | 'Settings' | 'SignupQueued' | 'Deactivated' | 'Takendown' | 'AgeAssuranceNoAccessScreen' | 'GroupInvite' scope: 'current' | 'every' } // OAuth session lifecycle. These are silent client-side events used to // diagnose unexpected sign-outs (refresh races, IndexedDB eviction, DPoP // skew, etc.). `account:loggedOut` is reserved for user-initiated logouts. 'oauth:sessionDeleted': { // Reason the underlying OAuth client deleted the local session. // Common values map to oauth-client/session-getter causes: // 'session_deleted_by_another_process' — refresh race / cross-tab // 'invalid_grant' — refresh token rejected // 'database_closed' — IndexedDB unavailable / evicted // 'unknown' — unmapped cause cause: string // Truncated error message for further triage in OpenSearch. message?: string } 'oauth:sessionRefreshed': {} // Fired when a refresh round-trip to /oauth/token fails for any reason — // network blocked, timeout, 5xx, server-side rejection. The session may or // may not survive (a 400 invalid_grant will additionally fire // oauth:sessionDeleted; a network blip will not). 'oauth:refreshFailed': { triggerContext: 'background' | 'debugButton' errorCategory: | 'sessionDeleted' | 'sessionExpired' | 'invalidGrant' | 'databaseClosed' | 'dpopSkew' | 'dpopOther' | 'refreshExhausted' | 'subMismatch' | 'timeout' | 'network' | 'serverError' | 'unknown' // Truncated for triage in OpenSearch / postgres. message?: string // HTTP status when the failure was a non-2xx response (vs. a thrown fetch). httpStatus?: number } 'oauth:sessionResumeFailed': { // Where in the app the resume attempt happened. logContext: 'AppBoot' | 'ChooseAccountForm' | 'SwitchAccount' // Coarse error category derived from the thrown error string. errorCategory: | 'sessionDeleted' | 'sessionExpired' | 'invalidGrant' | 'databaseClosed' | 'dpopSkew' | 'dpopOther' | 'refreshExhausted' | 'subMismatch' | 'timeout' | 'network' | 'unknown' message?: string } 'notifications:openApp': { reason: NotificationReason causedBoot: boolean } 'notifications:request': { context: 'StartOnboarding' | 'AfterOnboarding' | 'Login' | 'Home' status: 'granted' | 'denied' | 'undetermined' } 'notifications:bundleExpand': { notificationType: NotificationType authorCount: number } 'state:background': { secondsActive: number } 'state:foreground': {} 'router:navigate': { from?: string } 'nav:click': { item: | 'home' | 'search' | 'chat' | 'notifications' | 'profile' | 'feeds' | 'lists' | 'saved' | 'settings' | 'support' | 'menu' surface: 'bottomBar' | 'drawer' | 'drawerHeader' | 'topBar' | 'leftNav' } 'deepLink:referrerReceived': { to: string referrer: string hostname: string }
// Screen events 'splash:signInPressed': {} 'splash:createAccountPressed': {} 'welcomeModal:signupClicked': {} 'welcomeModal:exploreClicked': {} 'welcomeModal:signinClicked': {} 'welcomeModal:dismissed': {} 'welcomeModal:presented': {} 'signup:nextPressed': { activeStep: number phoneVerificationRequired?: boolean } 'signup:backPressed': { activeStep: number } 'signup:captchaSuccess': {} 'signup:captchaFailure': {} 'signup:fieldError': { field: string errorCount: number errorMessage: string activeStep: number } 'signup:backgrounded': { activeStep: number backgroundCount: number } 'signup:handleTaken': {typeahead?: boolean} 'signup:handleAvailable': {typeahead?: boolean} 'signup:handleSuggestionSelected': {method: string} 'signin:hostingProviderPressed': { hostingProviderDidChange: boolean } 'signin:hostingProviderFailedResolution': {} 'signin:success': { failedAttemptsCount: number isUsingCustomProvider: boolean timeTakenSeconds: number } 'signin:backPressed': { failedAttemptsCount: number } 'signin:forgotPasswordPressed': {} 'signin:passwordReset': {} 'signin:passwordResetSuccess': {} 'signin:passwordResetFailure': {} 'onboarding:interests:nextPressed': { selectedInterests: string[] selectedInterestsLength: number } 'onboarding:suggestedAccounts:tabPressed': { tab: string } 'onboarding:suggestedAccounts:followAllPressed': { tab: string numAccounts: number } 'onboarding:suggestedAccounts:nextPressed': { selectedAccountsLength: number skipped: boolean } 'onboarding:followingFeed:nextPressed': {} 'onboarding:algoFeeds:nextPressed': { selectedPrimaryFeeds: string[] selectedPrimaryFeedsLength: number selectedSecondaryFeeds: string[] selectedSecondaryFeedsLength: number } 'onboarding:topicalFeeds:nextPressed': { selectedFeeds: string[] selectedFeedsLength: number } 'onboarding:moderation:nextPressed': {} 'onboarding:profile:nextPressed': {} 'onboarding:finished:nextPressed': { usedStarterPack: boolean starterPackName?: string starterPackCreator?: string starterPackUri?: string profilesFollowed: number feedsPinned: number } 'onboarding:finished:avatarResult': { avatarResult: 'default' | 'created' | 'uploaded' } 'onboarding:valueProp:stepOne:nextPressed': {} 'onboarding:valueProp:stepTwo:nextPressed': {} 'onboarding:valueProp:skipPressed': {} 'home:feedDisplayed': { feedUrl: string feedType: string index: number reason?: string } 'feed:endReached': { feedUrl: string feedType: string itemCount: number } 'feed:refresh': { feedUrl: string feedType: string reason: 'pull-to-refresh' | 'soft-reset' | 'load-latest' } 'feed:save': { feedUrl: string } 'feed:unsave': { feedUrl: string } 'feed:pin': { feedUrl: string } 'feed:unpin': { feedUrl: string } 'feed:like': { feedUrl: string } 'feed:unlike': { feedUrl: string } 'feed:share': { feedUrl: string } 'feed:suggestion:seen': { feedUrl: string } 'feed:suggestion:press': { feedUrl: string } 'post:showMore': { uri: string authorDid: string logContext: 'FeedItem' | 'PostThreadItem' | 'Post' | 'ImmersiveVideo' feedDescriptor?: string position?: number } 'post:showLess': { uri: string authorDid: string logContext: 'FeedItem' | 'PostThreadItem' | 'Post' | 'ImmersiveVideo' feedDescriptor?: string position?: number } 'feed:clickthrough': { feed: string count: number } 'feed:engaged': { feed: string count: number } 'feed:seen': { feed: string count: number }
'feed:discover:emptyError': { userDid: string }
'composer:gif:open': {} 'composer:gif:select': {} 'composer:image:edit': { platform: Platform['OS'] } 'composerPrompt:press': {} 'composerPrompt:camera:press': {} 'composerPrompt:gallery:press': {}
'composer:threadgate:open': { nudged: boolean } 'composer:threadgate:save': { replyOptions: string quotesEnabled: boolean persist: boolean hasChanged: boolean } 'composer:open': { logContext: | 'Fab' | 'PostReply' | 'QuotePost' | 'ProfileFeed' | 'Deeplink' | 'Other' isReply: boolean hasQuote: boolean hasDraft: boolean } 'draft:save': { isNewDraft: boolean hasText: boolean hasImages: boolean hasVideo: boolean hasGif: boolean hasQuote: boolean hasLink: boolean postCount: number textLength: number } 'draft:load': { draftAgeMs: number hasText: boolean hasImages: boolean hasVideo: boolean hasGif: boolean postCount: number } 'draft:delete': { logContext: 'DraftsList' draftAgeMs: number } 'draft:listOpen': { draftCount: number } 'draft:post': { draftAgeMs: number wasEdited: boolean } 'draft:discard': { logContext: 'ComposerClose' | 'BeforeDraftsList' hadContent: boolean textLength: number }
// Data events 'account:create:begin': {} 'account:create:success': { signupDuration: number fieldErrorsTotal: number backgroundCount: number } 'post:create': { imageCount: number isReply: boolean isPartOfThread: boolean hasLink: boolean hasQuote: boolean langs: string logContext: 'Composer' } 'thread:create': { postCount: number isReply: boolean } 'post:like': { uri: string authorDid: string doesLikerFollowPoster: boolean | undefined doesPosterFollowLiker: boolean | undefined likerClout: number | undefined postClout: number | undefined logContext: 'FeedItem' | 'PostThreadItem' | 'Post' | 'ImmersiveVideo' feedDescriptor?: string } 'post:repost': { uri: string authorDid: string logContext: 'FeedItem' | 'PostThreadItem' | 'Post' | 'ImmersiveVideo' feedDescriptor?: string } 'post:unlike': { uri: string authorDid: string logContext: 'FeedItem' | 'PostThreadItem' | 'Post' | 'ImmersiveVideo' feedDescriptor?: string } 'post:unrepost': { uri: string authorDid: string logContext: 'FeedItem' | 'PostThreadItem' | 'Post' | 'ImmersiveVideo' feedDescriptor?: string } 'post:mute': { uri: string authorDid: string logContext: 'FeedItem' | 'PostThreadItem' | 'Post' | 'ImmersiveVideo' feedDescriptor?: string position?: number } 'post:unmute': { uri: string authorDid: string logContext: 'FeedItem' | 'PostThreadItem' | 'Post' | 'ImmersiveVideo' feedDescriptor?: string position?: number } 'post:pin': {} 'post:unpin': {} 'post:bookmark': { uri: string authorDid: string logContext: 'FeedItem' | 'PostThreadItem' | 'Post' | 'ImmersiveVideo' feedDescriptor?: string position?: number } 'post:unbookmark': { uri: string authorDid: string logContext: 'FeedItem' | 'PostThreadItem' | 'Post' | 'ImmersiveVideo' feedDescriptor?: string position?: number } 'post:clickReply': { uri: string authorDid: string logContext: 'FeedItem' | 'PostThreadItem' | 'Post' | 'ImmersiveVideo' feedDescriptor?: string position?: number } 'post:clickQuotePost': { uri: string authorDid: string logContext: 'FeedItem' | 'PostThreadItem' | 'Post' | 'ImmersiveVideo' feedDescriptor?: string position?: number } 'post:clickthroughAuthor': { uri: string authorDid: string logContext: 'FeedItem' | 'PostThreadItem' | 'Post' | 'ImmersiveVideo' feedDescriptor?: string position?: number } 'post:clickthroughItem': { uri: string authorDid: string logContext: 'FeedItem' | 'PostThreadItem' | 'Post' | 'ImmersiveVideo' feedDescriptor?: string position?: number } 'post:clickthroughEmbed': { uri: string authorDid: string logContext: 'FeedItem' | 'PostThreadItem' | 'Post' | 'ImmersiveVideo' feedDescriptor?: string position?: number } 'post:view': { uri: string authorDid: string logContext: | 'FeedItem' | 'PostThreadItem' | 'Post' | 'ImmersiveVideo' | 'SearchResults' | 'Bookmarks' | 'Notifications' | 'Hashtag' | 'Topic' | 'PostQuotes' feedDescriptor?: string position?: number } 'bookmarks:view': {} 'bookmarks:post-clicked': {} 'profile:follow': { contextProfileDid?: string didBecomeMutual: boolean | undefined followeeClout: number | undefined followeeDid: string followerClout: number | undefined position?: number logContext: | 'RecommendedFollowsItem' | 'PostThreadItem' | 'ProfileCard' | 'ProfileHeader' | 'ProfileHeaderSuggestedFollows' | 'ProfileMenu' | 'ProfileHoverCard' | 'AvatarButton' | 'StarterPackProfilesList' | 'FeedInterstitial' | 'PostOnboardingFindFollows' | 'ImmersiveVideo' | 'ExploreSuggestedAccounts' | 'OnboardingSuggestedAccounts' | 'FindContacts' | 'GroupChat' | 'NotificationExpandedProfileCard' } 'profile:followers:view': { contextProfileDid: string isOwnProfile: boolean } 'profile:followers:paginate': { contextProfileDid: string itemCount: number page: number } 'profile:following:view': { contextProfileDid: string isOwnProfile: boolean } 'profile:following:paginate': { contextProfileDid: string itemCount: number page: number } 'profileCard:seen': { contextProfileDid?: string profileDid: string position?: number } 'profile:mute': {} 'profile:unmute': {} 'profile:block': {} 'profile:unblock': {} 'suggestedUser:follow': { logContext: | 'Explore' | 'DiscoverInterstitial' | 'ProfileInterstitial' | 'ProfileHeader' | 'Onboarding' | 'SeeMoreSuggestedUsers' | 'ProgressGuide' location: 'Card' | 'Profile' | 'FollowAll' recSource?: 'Search' recId?: number | string position: number suggestedDid: string category: string | null } 'suggestedUser:press': { logContext: | 'Explore' | 'DiscoverInterstitial' | 'ProfileInterstitial' | 'ProfileHeader' | 'Onboarding' | 'SeeMoreSuggestedUsers' recId?: number | string position: number suggestedDid: string category: string | null } 'suggestedUser:seen': { logContext: | 'Explore' | 'DiscoverInterstitial' | 'ProfileInterstitial' | 'ProfileHeader' | 'Onboarding' | 'SeeMoreSuggestedUsers' | 'ProgressGuide' recSource?: 'Search' recId?: number | string position: number suggestedDid: string category: string | null } 'suggestedUser:seeMore': { logContext: | 'Explore' | 'DiscoverInterstitial' | 'ProfileInterstitial' | 'ProfileHeader' | 'Onboarding' recId?: number | string } 'suggestedUser:dismiss': { logContext: 'DiscoverInterstitial' | 'ProfileInterstitial' | 'ProfileHeader' recId?: number | string position: number suggestedDid: string } 'profile:unfollow': { logContext: | 'RecommendedFollowsItem' | 'PostThreadItem' | 'ProfileCard' | 'ProfileHeader' | 'ProfileHeaderSuggestedFollows' | 'ProfileMenu' | 'ProfileHoverCard' | 'Chat' | 'AvatarButton' | 'StarterPackProfilesList' | 'FeedInterstitial' | 'PostOnboardingFindFollows' | 'ImmersiveVideo' | 'ExploreSuggestedAccounts' | 'OnboardingSuggestedAccounts' | 'FindContacts' | 'GroupChat' | 'NotificationExpandedProfileCard' } 'chat:create': { logContext: | 'ProfileHeader' | 'NewChatDialog' | 'SendViaChatDialog' | 'ConvoSettings' } 'chat:open': { logContext: | 'ProfileHeader' | 'NewChatDialog' | 'ChatsList' | 'SendViaChatDialog' | 'ConvoSettings' } // Message replies 'chat:message:reply:send': { convoId: string isGroup: boolean } 'chat:message:reply:tap': { convoId: string }
// Group chat adoption 'groupchat:create': { logContext: 'NewChatDialog' } 'groupchat:landingPage:view': { hasSession: boolean } 'groupchat:inviteLink:redeem': {}
// Group invite deep links 'groupInvite:opened': { hasSession: boolean } 'groupInvite:signInRequested': {} 'groupInvite:acceptAttempted': {} 'groupInvite:joined': { hasPosting: boolean } 'groupInvite:failure': { errorName: string }
// Group chat user interactions 'groupchat:message:send': { convoId: string isOwner: boolean } 'groupchat:mute': { convoId: string } 'groupchat:unmute': { convoId: string } 'groupchat:leave': { convoId: string isOwner: boolean } 'groupchat:settings:view': { convoId: string isOwner: boolean } 'groupchat:inviteLink:shareButton:press': { convoId: string method: 'post' | 'copy' | 'native' } 'groupchat:inviteLink:shared': { convoId: string method: 'post' | 'dm' }
// Group chat owner actions 'groupchat:owner:editName': { convoId: string } 'groupchat:owner:lock': { convoId: string } 'groupchat:owner:unlock': { convoId: string } 'groupchat:owner:kickMember': { convoId: string } 'groupchat:owner:inviteMember': { convoId: string } 'groupchat:owner:joinRequest:accept': { convoId: string } 'groupchat:owner:joinRequest:reject': { convoId: string } 'groupchat:owner:inviteLink:create': { convoId: string } 'groupchat:owner:inviteLink:disable': { convoId: string }
// Group chat problems 'groupchat:join:memberLimitReached': { convoId: string }
'starterPack:addUser': { starterPack?: string } 'starterPack:removeUser': { starterPack?: string } 'starterPack:share': { starterPack: string shareType: 'link' | 'qrcode' qrShareType?: 'save' | 'copy' | 'share' } 'starterPack:followAll': { logContext: 'StarterPackProfilesList' | 'Onboarding' starterPack: string count: number } 'starterPack:delete': {} 'starterPack:create': { setName: boolean setDescription: boolean profilesCount: number feedsCount: number } 'starterPack:convertToList': { starterPack: string memberCount: number } 'starterPack:ctaPress': { starterPack: string } 'starterPack:opened': { starterPack: string } 'link:clicked': { url: string domain: string }
'feed:interstitial:feedCard:press': {} 'desktopFeeds:feed:click': { feedUri: string feedDescriptor: string }
'profile:header:suggestedFollowsCard:press': {} 'profile:addToStarterPack': {}
'test:all:always': {} 'test:all:sometimes': {} 'test:all:boosted_by_gate1': {reason: 'base' | 'gate1'} 'test:all:boosted_by_gate2': {reason: 'base' | 'gate2'} 'test:all:boosted_by_both': {reason: 'base' | 'gate1' | 'gate2'} 'test:gate1:always': {} 'test:gate1:sometimes': {} 'test:gate2:always': {} 'test:gate2:sometimes': {}
'tmd:share': {} 'tmd:download': {} 'tmd:post': {}
'trendingTopics:show': { context: 'settings' } 'trendingTopics:hide': { context: 'settings' | 'sidebar' | 'interstitial' | 'explore:trending' } 'trendingTopic:click': { context: 'sidebar' | 'interstitial' | 'explore' } 'recommendedTopic:click': { context: 'explore' } 'trendingVideos:show': { context: 'settings' } 'trendingVideos:hide': { context: 'settings' | 'interstitial:discover' | 'interstitial:explore' } 'videoCard:click': { context: 'interstitial:discover' | 'interstitial:explore' | 'feed' }
'explore:module:seen': { module: | 'trendingTopics' | 'trendingVideos' | 'suggestedAccounts' | 'suggestedFeeds' | 'suggestedStarterPacks' | `feed:${FeedDescriptor}` } 'explore:module:searchButtonPress': { module: 'suggestedAccounts' | 'suggestedFeeds' } 'explore:suggestedAccounts:tabPressed': { tab: string }
'search:query': { source: 'typed' | 'history' | 'autocomplete' }
'search:results:loaded': { tab: 'top' | 'latest' | 'people' | 'feeds' initialCount: number }
'search:result:press': { tab?: 'top' | 'latest' | 'people' | 'feeds' resultType: 'post' | 'profile' | 'feed' position: number uri: string }
'search:recent:press': { profileDid: string position: number }
'search:autocomplete:press': { profileDid: string position: number }
'progressGuide:hide': {} 'progressGuide:followDialog:open': {}
'moderation:subscribedToLabeler': {} 'moderation:unsubscribedFromLabeler': {} 'moderation:changeLabelPreference': { preference: string }
'moderation:subscribedToList': { listType: 'mute' | 'block' } 'moderation:unsubscribedFromList': { listType: 'mute' | 'block' }
'reportDialog:open': { subjectType: string } 'reportDialog:close': {} 'reportDialog:success': { reason: string labeler: string details: boolean } 'reportDialog:failure': {}
translate: { os: Platform['OS'] /** * The languages the content might be in, such as the user-supplied * language codes on posts. Currently only available on posts. */ possibleSourceLanguages: string[] | undefined /** * This is the user's configured primary language, which is always defined. */ expectedTargetLanguage: string /** * The length of the text being translated. We assume shorter texts are * more likely to have inaccurate translations. */ textLength: number googleTranslate: boolean } 'translate:result': { success: boolean os: Platform['OS'] /** * The languages the content might be in, such as the user-supplied * language codes on posts. Currently only available on posts. */ possibleSourceLanguages: string[] | undefined /** * The language we expected the content to be in. This could be based on * user selection or on our confidence in the detected language. This is * nullable because we may not always have an expected source language. */ expectedSourceLanguage: string | null /** * This is the user's configured primary language, which is always defined. */ expectedTargetLanguage: string /** * The language the translation result was actually in. This is nullable * because the translation could have failed, in which case we won't have a * result source language. */ resultSourceLanguage: string | null /** * The language the translation result was translated into. This should be * the same as `expectedTargetLanguage`, but we include it for completeness * and in case there are any edge cases where they differ. This is nullable * because if the translation failed, we won't have a result target * language. */ resultTargetLanguage: string | null /** * The length of the text being translated. We assume shorter texts are * more likely to have inaccurate translations. */ textLength: number } 'translate:override': { os: Platform['OS'] /** * The languages the content might be in, such as the user-supplied * language codes on posts. Currently only available on posts. */ possibleSourceLanguages: string[] | undefined /** * The language the user has indicated the content is actually in, which * may be different from the expected source language if the user is * overriding the auto-detected language. This is the language the user * wants to translate from after overriding. */ expectedSourceLanguage: string /** * This is the user's configured primary language, which is always defined. */ expectedTargetLanguage: string /** * The language the translation result was actually in, which the user now * wishes to override. */ resultSourceLanguage: string } 'composer:language:suggestLanguage': { os: Platform['OS'] /** * The language we detected and suggested to the user as an override for the * expected target language. */ suggestedLanguage: string | undefined /** * This is the user's current composer languages, which are always defined. */ currentTargetLanguages: string[] /** * The length of the text being translated. We assume shorter texts are * more likely to have inaccurate translations. */ textLength: number } 'composer:language:acceptSuggestion': { os: Platform['OS'] /** * The language we detected and suggested to the user as an override for the * expected target language. */ suggestedLanguage: string | undefined /** * This is the user's current composer languages, which are always defined. */ currentTargetLanguages: string[] /** * The length of the text being translated. We assume shorter texts are * more likely to have inaccurate translations. */ textLength: number } 'composer:language:declineSuggestion': { os: Platform['OS'] /** * The language we detected and suggested to the user as an override for the * expected target language. */ suggestedLanguage: string | undefined /** * This is the user's current composer languages, which are always defined. */ currentTargetLanguages: string[] /** * The length of the text being translated. We assume shorter texts are * more likely to have inaccurate translations. */ textLength: number } 'composer:language:replyNudgeAccept': { /** * The language of the post the user is replying to. */ replyToLanguage: string /** * This is the user's current composer languages, which are always defined. */ currentTargetLanguages: string[] } 'composer:language:replyNudgeDecline': { /** * The language of the post the user is replying to. */ replyToLanguage: string /** * This is the user's current composer languages, which are always defined. */ currentTargetLanguages: string[] } 'composer:language:nudgeUser': { os: Platform['OS'] /** * The language we detected and suggested to the user as an override for the * expected target language. */ suggestedLanguage: string | undefined /** * This is the user's current composer languages, which are always defined. */ currentTargetLanguages: string[] /** * The length of the text being translated. We assume shorter texts are * more likely to have inaccurate translations. */ textLength: number } 'composer:language:langSelectorPressed': { /** * If the user was nudged by our language detection to update their language */ wasNudged: boolean }
'postMenu:openMuteWordsDialog': { uri: string authorDid: string logContext: 'FeedItem' | 'PostThreadItem' | 'Post' | 'ImmersiveVideo' feedDescriptor?: string } 'postMenu:muteAccount': { uri: string authorDid: string logContext: 'FeedItem' | 'PostThreadItem' | 'Post' | 'ImmersiveVideo' feedDescriptor?: string } 'postMenu:unmuteAccount': { uri: string authorDid: string logContext: 'FeedItem' | 'PostThreadItem' | 'Post' | 'ImmersiveVideo' feedDescriptor?: string } 'postMenu:blockAccount': { uri: string authorDid: string logContext: 'FeedItem' | 'PostThreadItem' | 'Post' | 'ImmersiveVideo' feedDescriptor?: string } 'postMenu:reportPost': { uri: string authorDid: string logContext: 'FeedItem' | 'PostThreadItem' | 'Post' | 'ImmersiveVideo' feedDescriptor?: string }
'verification:create': {} 'verification:revoke': {} 'verification:badge:click': {} 'verification:learn-more': { location: | 'initialAnnouncementeNux' | 'verificationsDialog' | 'verifierDialog' | 'verificationSettings' } 'verification:settings:hideBadges': {} 'verification:settings:unHideBadges': {}
'bot:label:toggle': {state: 'add' | 'remove'} 'bot:badge:click': {}
'live:create': {duration: number} 'live:edit': {} 'live:remove': {} 'live:card:open': {subject: string; from: 'post' | 'profile'} 'live:card:watch': {subject: string} 'live:card:openProfile': {subject: string} 'live:view:profile': {subject: string} 'live:view:post': {subject: string; feed?: string}
'post:share': { uri: string authorDid: string logContext: 'FeedItem' | 'PostThreadItem' | 'Post' | 'ImmersiveVideo' feedDescriptor?: string postContext: 'feed' | 'thread' position?: number } 'share:press:copyLink': {} 'share:press:nativeShare': {} 'share:press:openDmSearch': {} 'share:press:dmSelected': {} 'share:press:recentDm': {} 'share:press:embed': {}
'embed:standardSite:view': {url: string} 'embed:standardSite:article:press': {url: string} 'embed:standardSite:article:longPress': {url: string} 'embed:standardSite:publication:press': {url: string} 'embed:standardSite:publication:longPress': {url: string} 'embed:standardSite:publicationCta:press': {url: string} 'embed:standardSite:publicationCta:longPress': {url: string} 'embed:standardSite:subscribe:press': {url: string} 'embed:standardSite:subscribe:longPress': {url: string} 'embed:standardSite:authorHandle:press': {handle: string}
'thread:click:showOtherReplies': {} 'thread:click:hideReplyForMe': {} 'thread:click:hideReplyForEveryone': {} 'thread:preferences:load': { [key: string]: unknown } 'thread:preferences:update': { [key: string]: unknown } 'thread:click:headerMenuOpen': {} 'thread:click:editOwnThreadgate': {} 'thread:click:viewSomeoneElsesThreadgate': {} 'activitySubscription:enable': { setting: 'posts' | 'posts_and_replies' } 'activitySubscription:disable': {} 'activityPreference:changeChannels': { name: string push: boolean list?: boolean } 'activityPreference:changeFilter': { name: string value: string }
'ageAssurance:navigateToSettings': {} 'ageAssurance:dismissFeedBanner': {} 'ageAssurance:dismissSettingsNotice': {} 'ageAssurance:initDialogOpen': { hasInitiatedPreviously: boolean } 'ageAssurance:initDialogSubmit': {} 'ageAssurance:api:begin': { platform: string countryCode: string regionCode?: string } 'ageAssurance:initDialogError': { code: string } 'ageAssurance:redirectDialogOpen': {} 'ageAssurance:redirectDialogSuccess': {} 'ageAssurance:redirectDialogFail': {} 'ageAssurance:appealDialogOpen': {} 'ageAssurance:appealDialogSubmit': {} 'ageAssurance:noAccessScreen:shown': { accountCreatedAt: string isAARegion: boolean hasDeclaredAge: boolean canUpdateBirthday: boolean } 'ageAssurance:noAccessScreen:openBirthdateDialog': {} 'ageAssurance:noAccessScreen:openDeleteAccountDialog': {}
/* * Specifically for the `BlockedGeoOverlay` */ 'blockedGeoOverlay:shown': {}
'geo:debug': {}
/* * Find Contacts stuff */
// user presses the button on the new feature NUX 'contacts:nux:ctaPressed': {} // user presses the banner NUX 'contacts:nux:bannerPressed': {} // user dismisses the banner 'contacts:nux:bannerDismissed': {}
// user lands on the contacts step 'onboarding:contacts:presented': {} // user pressed "Import Contacts" button to begin flow 'onboarding:contacts:begin': {} // skips the step entirely 'onboarding:contacts:skipPressed': {} // user shared their contacts 'onboarding:contacts:contactsShared': {} // user leaves the matches page 'onboarding:contacts:nextPressed': { matchCount: number followCount: number dismissedMatchCount: number }
// user entered a number 'contacts:phone:phoneEntered': { entryPoint: 'Onboarding' | 'Standalone' } // user entered the correct one-time-code 'contacts:phone:phoneVerified': { entryPoint: 'Onboarding' | 'Standalone' } // user responded to the contacts permission prompt 'contacts:permission:request': { status: 'granted' | 'denied' accessLevelIOS?: 'all' | 'limited' | 'none' } // contacts were successfully imported and matched 'contacts:import:success': { contactCount: number matchCount: number entryPoint: 'Onboarding' | 'Standalone' } // contacts import failed 'contacts:import:failure': { reason: 'noValidNumbers' | 'networkError' | 'unknown' entryPoint: 'Onboarding' | 'Standalone' } // user followed a single match 'contacts:matches:follow': { entryPoint: 'Onboarding' | 'Standalone' } // user pressed "Follow All" on matches 'contacts:matches:followAll': { followCount: number entryPoint: 'Onboarding' | 'Standalone' } // user dismissed a match 'contacts:matches:dismiss': { entryPoint: 'Onboarding' | 'Standalone' } // user pressed invite to send an SMS to a non-match 'contacts:matches:invite': { entryPoint: 'Onboarding' | 'Standalone' } // user opened the Find Contacts settings screen 'contacts:settings:presented': { hasPreviouslySynced: boolean matchCount?: number } // user followed a single match from settings 'contacts:settings:follow': {} // user pressed "Follow All" from settings 'contacts:settings:followAll': { followCount: number } // user dismissed a match from settings 'contacts:settings:dismiss': {} // user re-entered the flow via the resync button 'contacts:settings:resync': { daysSinceLastSync: number } // user pressed the remove all data button 'contacts:settings:removeData': {}
'liveEvents:feedBanner:seen': { feed: string context: LiveEventFeedMetricContext } 'liveEvents:feedBanner:click': { feed: string context: LiveEventFeedMetricContext } 'liveEvents:feedBanner:hide': { feed: string context: LiveEventFeedMetricContext } 'liveEvents:feedBanner:unhide': { feed: string context: LiveEventFeedMetricContext } 'liveEvents:hideAllFeedBanners': { context: LiveEventFeedMetricContext } 'liveEvents:unhideAllFeedBanners': { context: LiveEventFeedMetricContext }
'profile:associated:germ:click-to-chat': {} 'profile:associated:germ:click-self-info': {} 'profile:associated:germ:self-disconnect': {} 'profile:associated:germ:self-reconnect': {}
// Post photo embed events 'post:photoEmbed:impression': { layout: 'single' | 'grid' | 'carousel' totalImages: number postUri: string postAuthorDid: string feedDescriptor?: string } 'post:photoEmbed:open': { layout: 'single' | 'grid' | 'carousel' fromImage: number totalImages: number postUri: string postAuthorDid: string feedDescriptor?: string } 'post:photoEmbed:carouselSwipe': { fromImage: number toImage: number totalImages: number postUri: string postAuthorDid: string feedDescriptor?: string } 'post:photoEmbed:lightboxSwipe': { layout: 'single' | 'grid' | 'carousel' fromImage: number toImage: number totalImages: number postUri: string postAuthorDid: string feedDescriptor?: string }
/* * Invite friends (profile QR share sheet) */
// NUX announcement dialog was shown to the user 'invite:nux:presented': {} // user pressed "Try it" on the NUX announcement 'invite:nux:tryItPressed': {} // invite friends dialog opened, with the surface that triggered it 'invite:dialog:open': { logContext: | 'ProfileHeader' | 'Drawer' | 'FindContactsSettings' | 'NuxAnnouncement' } // user copied the invite link to clipboard 'invite:action:copy': {} // user invoked the native share sheet with the invite link 'invite:action:share': {} // user saved the QR code image to their camera roll (success only) 'invite:action:download': {} // user pressed the scan button to open the QR scanner 'invite:action:scan': {} // user changed the QR card color theme 'invite:theme:change': { themeKey: 'dawn' | 'day' | 'dusk' | 'night' } // QR scanner decoded a code; result indicates whether it resolved to a profile 'invite:scanner:scanned': { result: 'profileFound' | 'invalidQr' } // empty-followers banner promoting invite/find friends was shown 'invite:followersPromo:seen': {} // user pressed the empty-followers promo banner 'invite:followersPromo:press': {} // user dismissed the empty-followers promo banner 'invite:followersPromo:dismiss': {}}