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

    Interface ReelsViewerReelItemActions

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

    interface ReelsViewerReelItemActions {
        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 }],
        ) => 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,
        >;
        share: (
            ...args: [],
        ) => Effect<
            AssembledHandle<
                "DirectShareSheet",
                "screen",
                {
                    share: | {
                        carousel_share_child_media_id?: string;
                        inventory_source?: string;
                        kind: "post";
                        media_id: string;
                        media_type: number;
                        ranking_info_token?: string;
                        send_attribution: "feed_timeline";
                    }
                    | {
                        carousel_share_child_media_id?: string;
                        kind: "carousel";
                        media_id: string;
                        media_type: number;
                        send_attribution: "feed_contextual_profile";
                    }
                    | { kind: "reel"; media_id: string }
                    | { kind: "profile"; send_attribution: "profile"; user_id: string };
                    threads: readonly {
                        is_group: boolean;
                        muted?: boolean;
                        preview: readonly {
                            client_context?: string;
                            command_count?: number;
                            edit_count?: number;
                            item_id: string;
                            item_type: string;
                            media?:
                                | {
                                    height: number;
                                    media_type: 1;
                                    pk: string;
                                    url: string;
                                    width: number;
                                }
                                | {
                                    height: number;
                                    media_type: 2;
                                    pk: string;
                                    url: string;
                                    width: number;
                                }
                                | { media_type: 8; pk: string; slides: readonly (...)[] };
                            message_ephemeral_lifetime_ms?: string;
                            text?: string;
                            timestamp: string;
                            user_id: string;
                        }[];
                        thread_id: string;
                        thread_title: string;
                        thread_v2_id?: string;
                        users: readonly {
                            fbid_v2?: string;
                            full_name: string;
                            pk: string;
                            username: string;
                        }[];
                    }[];
                },
                DirectShareSheetActions,
                DirectShareSheetItems,
                ScreenHandle,
                "required",
                true,
                never,
                unknown,
            >,
            ScreenEnterConcurrentError
            | ScreenDataError
            | ScreenEdgeInputError,
            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 reel. Answers the like's result.

    openComments: (
        ...args: readonly [{ commentSessionId?: 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 reel, with the viewer's chaining context. Answers its handle.

    share: (
        ...args: [],
    ) => Effect<
        AssembledHandle<
            "DirectShareSheet",
            "screen",
            {
                share: | {
                    carousel_share_child_media_id?: string;
                    inventory_source?: string;
                    kind: "post";
                    media_id: string;
                    media_type: number;
                    ranking_info_token?: string;
                    send_attribution: "feed_timeline";
                }
                | {
                    carousel_share_child_media_id?: string;
                    kind: "carousel";
                    media_id: string;
                    media_type: number;
                    send_attribution: "feed_contextual_profile";
                }
                | { kind: "reel"; media_id: string }
                | { kind: "profile"; send_attribution: "profile"; user_id: string };
                threads: readonly {
                    is_group: boolean;
                    muted?: boolean;
                    preview: readonly {
                        client_context?: string;
                        command_count?: number;
                        edit_count?: number;
                        item_id: string;
                        item_type: string;
                        media?:
                            | {
                                height: number;
                                media_type: 1;
                                pk: string;
                                url: string;
                                width: number;
                            }
                            | {
                                height: number;
                                media_type: 2;
                                pk: string;
                                url: string;
                                width: number;
                            }
                            | { media_type: 8; pk: string; slides: readonly (...)[] };
                        message_ephemeral_lifetime_ms?: string;
                        text?: string;
                        timestamp: string;
                        user_id: string;
                    }[];
                    thread_id: string;
                    thread_title: string;
                    thread_v2_id?: string;
                    users: readonly {
                        fbid_v2?: string;
                        full_name: string;
                        pk: string;
                        username: string;
                    }[];
                }[];
            },
            DirectShareSheetActions,
            DirectShareSheetItems,
            ScreenHandle,
            "required",
            true,
            never,
            unknown,
        >,
        ScreenEnterConcurrentError
        | ScreenDataError
        | ScreenEdgeInputError,
        never,
    >

    Taps the paper plane and opens the Direct share sheet on this reel. Nothing is sent until you pick a conversation in the sheet. Answers the sheet's handle.

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

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

    Takes the like of the reel back.