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

    Interface ProfilePostsFeedPhotoItemActions

    The actions of ProfilePostsFeedPhotoItem: the methods you call on an item of the list.

    interface ProfilePostsFeedPhotoItemActions {
        like: (
            ...args: [],
        ) => Effect<
            | {
                data: {
                    xig_media_like: {
                        media: {
                            __typename?: string;
                            has_liked: boolean;
                            id: string;
                            strong_id__?: string;
                        };
                    };
                };
            } & { raw: ActionRaw }
            | MediaLikeRestResponse & { raw: ActionRaw },

                | IgApiError
                | RequestError
                | ParseError
                | TransportError
                | SchemaError
                | GraphqlRootFieldMissingError
                | ScreenEnterConcurrentError,
            never,
        >;
        openComments: (
            ...args: readonly [
                { commentSessionId?: string; rankingSessionId?: string },
            ],
        ) => Effect<
            AssembledHandle<
                "MediaComments",
                "screen",
                | {
                    commentSessionId: string;
                    createdMediaNoteIds: readonly string[];
                    mediaId: string;
                    slide?: { index: number; mediaId: string };
                    surface: "feed";
                }
                | {
                    commentSessionId: string;
                    createdMediaNoteIds: readonly string[];
                    mediaId: string;
                    surface: "reels";
                },
                MediaCommentsActions,
                Record<never, never>,
                ScreenHandle,
                "required",
                true,
                "mediaId",
                AndroidScreens,
            >,

                | IgApiError
                | RequestError
                | ParseError
                | TransportError
                | ScreenEnterConcurrentError
                | ScreenDataError
                | ScreenEdgeInputError,
            never,
        >;
        removeRepost: (
            ...args: [],
        ) => Effect<
            ActionValue<string>,

                | IgApiError
                | RequestError
                | ParseError
                | TransportError
                | ScreenEnterConcurrentError,
            never,
        >;
        repost: (
            ...args: [text?: string],
        ) => Effect<
            { note: MediaCreateNoteResponse; trackingToken: string } & {
                raw: ActionRaw;
            },
            | IgApiError
            | RequestError
            | ParseError
            | TransportError
            | SchemaError
            | GraphqlRootFieldMissingError
            | MediaRepostTextRejectedError
            | ScreenEnterConcurrentError
            | ScreenDataError,
            never,
        >;
        unlike: (
            ...args: [],
        ) => Effect<
            ActionValue<string>,

                | IgApiError
                | RequestError
                | ParseError
                | TransportError
                | ScreenEnterConcurrentError,
            never,
        >;
    }
    Index

    Properties

    like: (
        ...args: [],
    ) => Effect<
        | {
            data: {
                xig_media_like: {
                    media: {
                        __typename?: string;
                        has_liked: boolean;
                        id: string;
                        strong_id__?: string;
                    };
                };
            };
        } & { raw: ActionRaw }
        | MediaLikeRestResponse & { raw: ActionRaw },

            | IgApiError
            | RequestError
            | ParseError
            | TransportError
            | SchemaError
            | GraphqlRootFieldMissingError
            | ScreenEnterConcurrentError,
        never,
    >

    Taps the heart on the media. Answers the like's result.

    openComments: (
        ...args: readonly [
            { commentSessionId?: string; rankingSessionId?: string },
        ],
    ) => Effect<
        AssembledHandle<
            "MediaComments",
            "screen",
            | {
                commentSessionId: string;
                createdMediaNoteIds: readonly string[];
                mediaId: string;
                slide?: { index: number; mediaId: string };
                surface: "feed";
            }
            | {
                commentSessionId: string;
                createdMediaNoteIds: readonly string[];
                mediaId: string;
                surface: "reels";
            },
            MediaCommentsActions,
            Record<never, never>,
            ScreenHandle,
            "required",
            true,
            "mediaId",
            AndroidScreens,
        >,

            | IgApiError
            | RequestError
            | ParseError
            | TransportError
            | ScreenEnterConcurrentError
            | ScreenDataError
            | ScreenEdgeInputError,
        never,
    >

    Taps the comment icon and opens the comments sheet over the media. Answers its handle.

    removeRepost: (
        ...args: [],
    ) => Effect<
        ActionValue<string>,

            | IgApiError
            | RequestError
            | ParseError
            | TransportError
            | ScreenEnterConcurrentError,
        never,
    >

    Takes your repost of the media back.

    repost: (
        ...args: [text?: string],
    ) => Effect<
        { note: MediaCreateNoteResponse; trackingToken: string } & {
            raw: ActionRaw;
        },
        | IgApiError
        | RequestError
        | ParseError
        | TransportError
        | SchemaError
        | GraphqlRootFieldMissingError
        | MediaRepostTextRejectedError
        | ScreenEnterConcurrentError
        | ScreenDataError,
        never,
    >

    Taps Repost and reposts the media. Answers the repost.

    unlike: (
        ...args: [],
    ) => Effect<
        ActionValue<string>,

            | IgApiError
            | RequestError
            | ParseError
            | TransportError
            | ScreenEnterConcurrentError,
        never,
    >

    Takes the like of the media back.