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

    Function screenEdges

    • The edges of a platform's screens, typed by its screen registry: an interface that maps each ScreenId to the type of its definition (interface AndroidScreens { readonly SearchResultsTopTab: typeof SearchResultsTopTabScreen; … }). An edge names its target by id, so a screen's type never depends on the type of the screen its edge leads to, and screens that lead to each other (a profile, a suggested user, the same profile) are declared without a cycle in their types: the registry is read only where the edge is used. The definitions themselves come from the platform's screen set at run time (screenSet(platform, { SearchResultsTopTab: SearchResultsTopTabScreen, … }), typed by the same registry).

      Type Parameters

      • Registry

      Returns {
          opens: {
              <
                  const Id extends
                      | "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",
                  State,
                  Step extends ScreenEdgeStep<unknown>,
              >(
                  id: Id,
                  step: (state: State) => Step,
              ): (
                  self: ScreenHandle,
                  state: State,
              ) => ScreenEdgeBound<
                  ScreenEdgeShape<Registry[Id], [], Step["source"], Registry>,
                  ScreenEdgeCall<Registry[Id], [], Step["input"], Registry, Step["source"]>,
              >;
              <
                  const Id extends
                      | "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",
                  State,
                  Args extends readonly unknown[],
                  Step extends ScreenEdgeStep<unknown>,
              >(
                  id: Id,
                  step: (state: State, ...args: NoInfer) => Step,
                  args: ScreenCodec<Args>,
              ): (
                  self: ScreenHandle,
                  state: State,
              ) => ScreenEdgeBound<
                  ScreenEdgeShape<Registry[Id], Args, Step["source"], Registry>,
                  ScreenEdgeCall<
                      Registry[Id],
                      Args,
                      Step["input"],
                      Registry,
                      Step["source"],
                  >,
              >;
          };
      }

      • opens: {
            <
                const Id extends
                    | "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",
                State,
                Step extends ScreenEdgeStep<unknown>,
            >(
                id: Id,
                step: (state: State) => Step,
            ): (
                self: ScreenHandle,
                state: State,
            ) => ScreenEdgeBound<
                ScreenEdgeShape<Registry[Id], [], Step["source"], Registry>,
                ScreenEdgeCall<Registry[Id], [], Step["input"], Registry, Step["source"]>,
            >;
            <
                const Id extends
                    | "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",
                State,
                Args extends readonly unknown[],
                Step extends ScreenEdgeStep<unknown>,
            >(
                id: Id,
                step: (state: State, ...args: NoInfer) => Step,
                args: ScreenCodec<Args>,
            ): (
                self: ScreenHandle,
                state: State,
            ) => ScreenEdgeBound<
                ScreenEdgeShape<Registry[Id], Args, Step["source"], Registry>,
                ScreenEdgeCall<
                    Registry[Id],
                    Args,
                    Step["input"],
                    Registry,
                    Step["source"],
                >,
            >;
        }