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

    Type Alias ProfileActions

    The profile's actions. Written out so this action's inference does not make the definition circular: the suggested-user item's edge leads back to this screen, and a typeof profileItems in an inferred action type would close the loop. The annotation is checked against the implementation, so an item enter that starts failing or needing a service fails this type.

    type ProfileActions = {
        follow: (
            self: ScreenHandle,
            state: ProfileState,
        ) => () => Effect.Effect<
            ActionAnswer<ProfileFollowAnswer>,
            ProfileFollowFailure,
            ProfileFollowServices,
        >;
        openDirectThread: typeof openDirectThreadEdge;
        openReelsTab: typeof openReelsTabEdge;
        scrollGrid: typeof scrollProfileGrid;
    }
    Index

    Properties

    follow: (
        self: ScreenHandle,
        state: ProfileState,
    ) => () => Effect.Effect<
        ActionAnswer<ProfileFollowAnswer>,
        ProfileFollowFailure,
        ProfileFollowServices,
    >
    openDirectThread: typeof openDirectThreadEdge

    The profile's "Message" button: the 1:1 thread opened with the profile user (the message_button source).

    openReelsTab: typeof openReelsTabEdge

    The profile's "Reels" tab: the profile owner's clips (ClipsProfileQuery), whose items open the reels viewer.

    scrollGrid: typeof scrollProfileGrid

    The person scrolls the media grid: the next page of tiles (the page after the visit's first).