igpapi — Instagram private API Simulator for Node.js (API reference) 4.14.0
    Preparing search index...

    Interface AndroidOtherwise<E>

    A reusable description of the alternative branches, built once by defineOtherwise and passed as otherwise to every entry. E is the union of the errors its handlers can fail with: what an entry's call can reject with beside the start's own errors (AndroidIgpapiStartError<typeof constant>).

    The call reads the branches through AndroidOtherwise.branchFor; a caller only builds one.

    interface AndroidOtherwise<E = unknown> {
        branchFor: (
            id:
                | "LoginHomepage"
                | "LoginHomeCds"
                | "LandingScreen"
                | "LoginTwoFactorEntrypoint"
                | "LoginTwoFactorMethodPicker"
                | "LoginTwoFactorEnterTotpCode"
                | "AccountRecoverySearchCds"
                | "AccountRecoverySearch"
                | "AccountRecoveryAuthenticationConfirmation"
                | "AccountRecoveryEmailCode"
                | "RegistrationPhoneNumber"
                | "RegistrationConfirmationCode"
                | "RegistrationPassword"
                | "RegistrationBirthday"
                | "RegistrationName"
                | "RegistrationUsername"
                | "RegistrationTermsOfService"
                | "SaveCredentials"
                | "AccountRecoverySuccessLocationPermission"
                | "FeedTimeline"
                | "PostOpenedFromLink"
                | "ReelsViewer"
                | "MediaComments"
                | "RepostNoteEditor"
                | "Explore"
                | "SearchInput"
                | "SearchResultsTopTab"
                | "SearchResultsAccountsTab"
                | "UserProfile"
                | "ProfileMediaTab"
                | "MyProfile"
                | "MyProfileMediaTab"
                | "EditProfile"
                | "EditProfileBio"
                | "EditProfileUsername"
                | "EditProfileLinks"
                | "EditProfileAddLink"
                | "ProfilePostsFeed"
                | "FeedTimelineFollowing"
                | "UserProfileReelsTab"
                | "DirectInbox"
                | "DirectRecipientPicker"
                | "DirectThread"
                | "DirectCustomizeChat"
                | "DirectThreadThemePicker"
                | "DirectThreadDetails"
                | "DirectThreadSharedMedia"
                | "DirectThreadNicknames"
                | "DirectThreadNicknameChange"
                | "DirectGroupNameAndPhotoEditor"
                | "PostingGalleryPicker"
                | "PostingPostEdit"
                | "PostingNewPost"
                | "PostingCamera"
                | "PostingCameraGallery"
                | "PostingReelEditor"
                | "PostingNewReel"
                | "PostingPostVideoCameraGallery"
                | "PostingPostVideoCamera"
                | "PostingReelCamera"
                | "PostingStoryCameraHost"
                | "PostingStoryCameraGallery"
                | "PostingPostVideoNewReel"
                | "PostingStoryPhotoEditor"
                | "PostingStoryVideoEditor"
                | "PostingStoryStickerTray"
                | "PostingStoryMusicStickerEditor"
                | "PostingStoryShareSheet"
                | "PostingStoryAlsoShareTo"
                | "PostingStoryDoneCamera"
                | "PostingStoryMusicSearchHost"
                | "PostingMusicBrowser"
                | "PostingMusicSearchResults"
                | "PostingReelMusicOverlayDetail"
                | "PostingReelMusicEditor"
                | "ChallengeSelectVerifyMethod"
                | "ChallengeVerifyCode"
                | "ChallengeSubmitPhone"
                | "ChallengeSetNewPassword"
                | "ChallengeAddBirthday"
                | "ChallengeLoginReview"
                | "ChallengeAccountTemporarilyLocked"
                | "ChallengeEscalationInformation"
                | "ChallengeReviewContactPointChange"
                | "ChallengeScrapingWarning"
                | "ChallengeWebRecaptcha"
                | "ChallengeWebSetNewPassword"
                | "ChallengeTextCaptcha"
                | "ChallengeRecaptcha"
                | "ChallengeSetContactPoint"
                | "ChallengeContactPointCode"
                | "ChallengeAuthenticityWizard"
                | "ChallengeAwaitingReview"
                | "ChallengeThanksForProvidingInfo"
                | "ChallengeAccountSuspended",
        ) => AndroidOtherwiseRun<E>
        | undefined;
    }

    Type Parameters

    • E = unknown
    Index

    Properties

    Properties

    branchFor: (
        id:
            | "LoginHomepage"
            | "LoginHomeCds"
            | "LandingScreen"
            | "LoginTwoFactorEntrypoint"
            | "LoginTwoFactorMethodPicker"
            | "LoginTwoFactorEnterTotpCode"
            | "AccountRecoverySearchCds"
            | "AccountRecoverySearch"
            | "AccountRecoveryAuthenticationConfirmation"
            | "AccountRecoveryEmailCode"
            | "RegistrationPhoneNumber"
            | "RegistrationConfirmationCode"
            | "RegistrationPassword"
            | "RegistrationBirthday"
            | "RegistrationName"
            | "RegistrationUsername"
            | "RegistrationTermsOfService"
            | "SaveCredentials"
            | "AccountRecoverySuccessLocationPermission"
            | "FeedTimeline"
            | "PostOpenedFromLink"
            | "ReelsViewer"
            | "MediaComments"
            | "RepostNoteEditor"
            | "Explore"
            | "SearchInput"
            | "SearchResultsTopTab"
            | "SearchResultsAccountsTab"
            | "UserProfile"
            | "ProfileMediaTab"
            | "MyProfile"
            | "MyProfileMediaTab"
            | "EditProfile"
            | "EditProfileBio"
            | "EditProfileUsername"
            | "EditProfileLinks"
            | "EditProfileAddLink"
            | "ProfilePostsFeed"
            | "FeedTimelineFollowing"
            | "UserProfileReelsTab"
            | "DirectInbox"
            | "DirectRecipientPicker"
            | "DirectThread"
            | "DirectCustomizeChat"
            | "DirectThreadThemePicker"
            | "DirectThreadDetails"
            | "DirectThreadSharedMedia"
            | "DirectThreadNicknames"
            | "DirectThreadNicknameChange"
            | "DirectGroupNameAndPhotoEditor"
            | "PostingGalleryPicker"
            | "PostingPostEdit"
            | "PostingNewPost"
            | "PostingCamera"
            | "PostingCameraGallery"
            | "PostingReelEditor"
            | "PostingNewReel"
            | "PostingPostVideoCameraGallery"
            | "PostingPostVideoCamera"
            | "PostingReelCamera"
            | "PostingStoryCameraHost"
            | "PostingStoryCameraGallery"
            | "PostingPostVideoNewReel"
            | "PostingStoryPhotoEditor"
            | "PostingStoryVideoEditor"
            | "PostingStoryStickerTray"
            | "PostingStoryMusicStickerEditor"
            | "PostingStoryShareSheet"
            | "PostingStoryAlsoShareTo"
            | "PostingStoryDoneCamera"
            | "PostingStoryMusicSearchHost"
            | "PostingMusicBrowser"
            | "PostingMusicSearchResults"
            | "PostingReelMusicOverlayDetail"
            | "PostingReelMusicEditor"
            | "ChallengeSelectVerifyMethod"
            | "ChallengeVerifyCode"
            | "ChallengeSubmitPhone"
            | "ChallengeSetNewPassword"
            | "ChallengeAddBirthday"
            | "ChallengeLoginReview"
            | "ChallengeAccountTemporarilyLocked"
            | "ChallengeEscalationInformation"
            | "ChallengeReviewContactPointChange"
            | "ChallengeScrapingWarning"
            | "ChallengeWebRecaptcha"
            | "ChallengeWebSetNewPassword"
            | "ChallengeTextCaptcha"
            | "ChallengeRecaptcha"
            | "ChallengeSetContactPoint"
            | "ChallengeContactPointCode"
            | "ChallengeAuthenticityWizard"
            | "ChallengeAwaitingReview"
            | "ChallengeThanksForProvidingInfo"
            | "ChallengeAccountSuspended",
    ) => AndroidOtherwiseRun<E>
    | undefined

    The branch the screen id names, when the constant describes it: the call's read, not a caller's.