Optional Readonlyapplication application ?: { adaptiveUi ?: boolean ; APP_VERSION : string ; APP_VERSION_CODE : string ; BLOKS_VERSION_ID : string ; bloksClientContext ?: { keys : readonly ( "bloks_version" | "styles_id" | "theme_params" | "pixel_ratio" )[] ; } ; bloksInfraTheme ?: string ; bloksPrismExtendedPalette ?: { gray : boolean ; polish : boolean } ; bloksThemeParams ?: readonly { design_system_name : string ; value : readonly string [] ; } [] ; BREADCRUMB_KEY : string ; CAPABILITIES : string ; directInboxMode ?: number ; directSearchGenAiBotsLimit ?: number ; FACEBOOK_ANALYTICS_APPLICATION_ID : string ; FACEBOOK_ANALYTICS_CLIENT_TOKEN ?: string ; GRAPHQL_DOC_IDS ?: { readonly [ key : string ]: string } ; GRAPHQL_GZIP_MIN_BYTES ?: number ; GRAPHQL_OMIT_PRETTY ?: boolean ; GRAPHQL_SERVER_TIMESTAMPS ?: "timestamp" | "true" ; launchWire ?: "451" ; mediaLikeWire ?: "rest" | "graphql" ; mediaNoteWire ?: "451" | "450" ; mediaRepostWire ?: "note-with-text" | "editor" ; reelsTrayPageSize ?: number ; shoppingExperiments ?: readonly string [] ; SUPPORTED_CAPABILITIES : readonly { name : string ; value : string } [] ; ufiActionFlowActions ?: readonly ("like" | "comment" )[] ; usdidMissingHeader ?: boolean ; usdidRegistrationName ?: | "IGUSDIDRegistrationMutation" | "IGFamilyUSDIDRegistrationMutation" ; ZERO_HEADERS ?: { authenticated : { balance : string ; eh : string } ; "logged-out" : { balance : string ; eh : string } ; "rmd-evaluated" : { balance : string ; eh : string } ; } ; }
Optional Readonlycookies cookies ?: unknown
Optional Readonlydevice device ?: { addressBook ?: readonly { displayName : string ; emailAddresses : readonly string [] ; firstName : string ; phoneNumbers : readonly string [] ; phoneNumbersNormalized : readonly string [] ; } [] ; adid : string ; adsEnigmaDownloadedAtMs ?: number ; adsKey ?: { publicKeyB64Url : string ; registered : boolean ; secretKeyB64Url : string ; } ; adsOptOut ?: boolean ; androidDevicePerformanceClass ?: number ; aymhAccounts ?: readonly { readonly [ key : string ]: unknown } [] ; battery ?: | { kind : "charging" ; startedAtMs : number ; startLevel : number } | { kind : "discharging" ; percentPerHour : number ; startedAtMs : number ; startLevel : number ; } ; bootedAtMs ?: number ; build : string ; cloudTrustToken ?: string ; currentKeyboardLanguage ?: string ; descriptor : string ; deviceAccountEmail ?: string | null ; deviceHasSavedCredential ?: boolean ; deviceStatus ?: { readonly [ key : string ]: unknown } ; expTag ?: { lines : number ; tag : string } ; familyDeviceSynced ?: boolean ; familyId : string ; fbnsKey ?: { createdAt : number ; publicKey : string } ; fcmToken ?: string ; flashCallPermissionsStatus ?: { ANSWER_PHONE_CALLS : "GRANTED" | "DENIED" ; READ_CALL_LOG : "GRANTED" | "DENIED" ; READ_PHONE_STATE : "GRANTED" | "DENIED" ; } ; gmsCallRetrieverEligibility ?: "eligible" | "not_eligible" ; gpuMemoryMb ?: number ; hasCameraPermission ?: boolean ; hasGoogleAdId ?: boolean ; hasNotificationPermission ?: boolean ; id : string ; inputLanguage ?: { displayName : string ; locale : string } ; inputMethods ?: readonly { languages : readonly { displayName : string ; locale : string } [] ; name : string ; } [] ; isDarkMode ?: boolean ; isFoldable ?: boolean ; isLayoutRTL : boolean ; keyboardLanguage ?: string ; language : string ; lastPushRegistration ?: { at : number } ; location ?: { lat : number ; lng : number } ; mobileConfig ?: { accounts ?: { readonly [ key : string ]: { readonly [ key : string ]: { readonly [ key : string ]: string | number | boolean ; } ; } ; } ; appVersion ?: string ; sessionless ?: { readonly [ key : string ]: { readonly [ key : string ]: string | number | boolean ; } ; } ; } ; network ?: { kind : "cellular" ; radio : "LTE" } | { kind : "wifi" } ; networkInfo ?: { active_data_subscription_info ?: | { readonly [ key : string ]: unknown } | null ; active_subscriptions_info : readonly unknown [] | null ; default_sms_subscription_info ?: { readonly [ key : string ]: unknown } | null ; default_subscription_info : { group_id_level_1 : number | null ; is_data_roaming : number ; is_esim : number | null ; is_gsm_roaming : number ; is_mobile_data_enabled : number ; is_sim_sms_capable : number | null ; network_operator : string | number ; network_type : string | number | null ; signal_strength : number | null ; sim_carrier_id : number ; sim_carrier_id_name : string | null ; sim_operator : string | number ; sim_operator_name : string ; sim_state : number ; } ; is_active_network_cellular : number ; is_airplane_mode : number ; is_device_sms_capable : number ; is_wifi : number ; sim_count : number ; } ; networkSessionId ?: string ; phoneId : string ; pigeonIdentities ?: { readonly [ key : string ]: { config ?: { hash : string ; timestamp : string } ; hmacTtl ?: { expiresAt ?: string ; token : string } ; sampling ?: { hash : string ; timestamp : string } ; } ; } ; pushHpkeIdentity ?: { keystoreId : string ; privKeyPem : string ; pubKeyB64 : string ; } ; pushToken ?: string ; radioType ?: string ; ramSizeInGb ?: number ; rmd ?: { kind : "no-valid-map" | "url-eligible" } ; rmdNoValidMapTimes ?: { recvTime : string ; reqTime : string } ; systemLanguages ?: readonly string [] ; systemLocale ?: string ; telemetry ?: { counters : { readonly [ key : string ]: number } ; pending : { readonly [ key : string ]: readonly { atMs : number ; dueAtMs : number ; id : string ; name : string ; payload : string ; seq : number ; } [] ; } ; sequence : number ; } ; timezoneName ?: string ; timezoneOffset : string ; usdidIdentity ?: { kid : string ; privKeyPem : string ; pubKeySpkiB64 : string ; uuid : string ; } ; uuid : string ; videoEncoders ?: { readonly [ key : string ]: readonly { bitrate : readonly [ number , number ] ; complexity : readonly [ number , number ] ; encoder_name : string ; frame_rate : readonly [ number , number ] ; height : readonly [ number , number ] ; height_alignment : number ; max_instances : number ; width : readonly [ number , number ] ; width_alignment : number ; } [] ; } ; wifiBssid ?: string ; zeroAttestationIdentity ?: { keyHash : string ; privKeyPem : string ; uploadedAtMs : number ; } ; }
Optional Readonlysession session ?: Partial < { accounts : { readonly [ key : string ]: { contentFilterDictionaryVersions ?: { readonly [ key : string ]: string } ; directInboxCache ?: { threads : readonly { is_group : boolean ; items : readonly { client_context ?: ...; item_id : ...; item_type : ...; text ?: ...; timestamp : ...; user_id : ...; } [] ; last_activity_at : string | number ; muted : boolean ; thread_id : string ; thread_title : string ; thread_v2_id : string ; users : readonly { fbid_v2 ?: ...; full_name : ...; pk : ...; username : ...; } [] ; } [] ; } ; directInboxSeqId ?: number ; directLoadedThreads ?: readonly string [] ; lastCreationMode ?: "post" | "story" | "reel" ; metaAiConsent ?: { cacheTimeSeconds : number ; fetchedAtSeconds : number ; nuxType : string ; requiresNux : boolean ; text : string ; version : string ; } ; metaSubsEntrypointSessions ?: { readonly [ key : string ]: { expiresAtMs : number ; refreshAtMs : number ; sessionId : string ; } ; } ; msgrRegion ?: string ; noteCtasFetchedAtMs ?: number ; popularKeywordsRefreshedAtMs ?: number ; quickPromotionCooldown ?: { defaultMs : number ; slots : { readonly [ key : string ]: number } ; } ; quickPromotionImpressions ?: { readonly [ key : string ]: { lastSurface : string ; surfaces : { readonly [ key : string ]: number } ; } ; } ; regionHint ?: string ; rur ?: string ; shbid ?: string ; shbts ?: string ; } ; } ; appStartPhase ?: "cold" ; appStartTimeMs ?: number ; authorization ?: string ; bandwidth ?: { bytes : number ; carried ?: true ; ms : number ; stack ?: { downloadBwAvgBps : number ; downloadBweMeanBps : number ; downloadBwStddevBps : number ; rttAvgMs : number ; rttStddevMs : number ; uploadBwAvgBps : number ; uploadBwe : { bps : number ; buckets : readonly { lower : number ; mean : number ; p25 : number ; p50 : number ; p75 : number ; samples : number ; upper : (...) | (...); } [] ; sampleCount : number ; } ; uploadBwStddevBps : number ; } ; } ; challenge ?: { readonly [ key : string ]: unknown } ; checkpoint ?: { readonly [ key : string ]: unknown } ; clientSessionIdLifetime : number ; dsUserId ?: string ; familyDeviceIdBound ?: boolean ; fbidV2 ?: string ; igWWWClaim ?: string ; passwordEncryptionKeyId ?: string ; passwordEncryptionPubKey ?: string ; pigeonSessionIdLifetime : number ; profileFollows ?: { readonly [ key : string ]: { atMs : number ; following : boolean ; outgoingRequest : boolean ; } ; } ; profileInfoFetches ?: { readonly [ key : string ]: { atMs : number ; userFbid ?: string ; username : string ; } ; } ; rmdEvaluationStarted ?: boolean ; sessionStartPhase ?: "starting" ; thumbnailCacheBustingValue : number ; xMetaUsdid ?: string ; xMid ?: string ; zeroInterface ?: boolean ; zeroPhase ?: "logged-out" | "authenticated" | "rmd-evaluated" ; } , >
A snapshot built by hand — an account that already exists in the caller's own system, brought onto a phone of its own — for
AndroidIgpapi.launch({ snapshot, seed?, … }). Every member is typed from the library's own state schemas, and every member is optional: a part the snapshot lacks is the library's own.device: the whole device state or none. A complete device (its android idid,uuid,phoneId,familyId,adid,descriptor— the part of the user agent that names the phone:30/11; 420dpi; 1080x2340; samsung; SM-G991B; o1s; exynos2100—build,language, …) is kept exactly as given; without it the whole device is generated fromseed(a random one without a seed), the wayAndroidIgpapi.installgenerates it. No field is ever filled in from the seed into a device the caller gave, and aseedbeside a given device is unused. The user agent is not an input: the library builds it from the device and the application.application: the whole application profile or none. Without it the process presents the library's own build. A given profile is what the process sends, whatever build it names (owner, 2026-10-31: «снэпшот приоритетнее чем код. снэпшот - декларация, а не подсказка»); only a version-bound field the profile omits is filled from the library's build.session: the session, as the app holds it (any subset; what is not given is the empty session's). With a signed-in session (authorization) the launch is the signed-in app's cold start and the program receives the feed; without a session the program receives the login home on the device. The account id has one source, the authorization: an omitted or emptydsUserIdis read from aBearer IGT:2:authorization, and one that names another account is aSnapshotDecodeError.cookies: the cookie jar in the serialized form oftough-cookie.The JSON text of such a snapshot is handled exactly like the object. A snapshot exported by
ExportSnapshotis such a value too.checkpoint()after the launch gives the library's own format.