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

    Variable ProfilePostsFeedCarouselItemConst

    ProfilePostsFeedCarouselItem: ScreenItemDefinition<
        "ProfilePostsFeedCarousel",
        {
            authorId?: string;
            carousel?: { children: readonly string[]; size?: number; slide?: number };
            dashManifest?: string;
            mediaId: string;
            mediaType: 0 | 1 | 2 | 8;
            position: number;
            takenAt?: number;
            trackingToken?: string;
            videoDuration?: number;
        },
        {
            authorId?: string;
            carousel?: { children: readonly string[]; size?: number; slide?: number };
            dashManifest?: string;
            mediaId: string;
            mediaType: 0 | 1 | 2 | 8;
            position: number;
            takenAt?: number;
            trackingToken?: string;
            videoDuration?: number;
        },
        ProfilePostsFeedCarouselState,
        never,
        never,
        {
            like: (
                self: ScreenHandle,
                state: ProfilePostsFeedMediaState,
            ) => (
                ...args: [],
            ) => Effect<
                | {
                    data: {
                        xig_media_like: {
                            media: {
                                __typename?: ...;
                                has_liked: ...;
                                id: ...;
                                strong_id__?: ...;
                            };
                        };
                    };
                } & { raw: ActionRaw }
                | MediaLikeRestResponse & { raw: ActionRaw },

                    | IgApiError
                    | RequestError
                    | ParseError
                    | TransportError
                    | SchemaError
                    | GraphqlRootFieldMissingError
                    | ScreenEnterConcurrentError,
                | PlainJsonApiHttp
                | Signature
                | MobileSession
                | MobileDevice
                | GraphqlJsonHttp
                | MobileApplication
                | NavigationWire
                | MobileNavigation
                | MobileUserFlows
                | ScreenStack,
            >;
            openComments: (
                self: ScreenHandle,
                state: ProfilePostsFeedMediaState,
            ) => ScreenEdgeBound<
                ScreenEdgeShape<
                    ScreenDefinition<
                        "MediaComments",
                        "screen",
                        | {
                            carousel?: { children: readonly (...)[]; slide: number };
                            chainingSeedMediaId?: string;
                            commentSessionId?: string;
                            feedPosition?: string | number;
                            mediaId: string;
                            rankingSessionId?: string;
                            surface: "feed";
                        }
                        | {
                            chainingPosition?: string
                            | number;
                            chainingSeedMediaId?: string;
                            chainingSessionId?: string;
                            clientPosition?: string | number;
                            commentSessionId?: string;
                            mediaId: string;
                            rankingSessionId?: string;
                            storyRankingToken?: string;
                            surface: "reels";
                        },
                        | {
                            commentSessionId: string;
                            createdMediaNoteIds: readonly string[];
                            mediaId: string;
                            slide?: { index: number; mediaId: string };
                            surface: "feed";
                        }
                        | {
                            commentSessionId: string;
                            createdMediaNoteIds: readonly string[];
                            mediaId: string;
                            surface: "reels";
                        },
                        | {
                            carousel?: { children: ...; slide: ... };
                            chainingSeedMediaId?: string;
                            commentSessionId?: string;
                            feedPosition?: string | number;
                            mediaId: string;
                            rankingSessionId?: string;
                            surface: "feed";
                        } & {
                            commentSessionId: string;
                            createdMediaNoteIds: readonly string[];
                            mediaId: string;
                            slide?: { index: ...; mediaId: ... };
                            surface: "feed";
                        }
                        | never
                        | never
                        | {
                            chainingPosition?: string
                            | number;
                            chainingSeedMediaId?: string;
                            chainingSessionId?: string;
                            clientPosition?: string | number;
                            commentSessionId?: string;
                            mediaId: string;
                            rankingSessionId?: string;
                            storyRankingToken?: string;
                            surface: "reels";
                        } & {
                            commentSessionId: string;
                            createdMediaNoteIds: readonly string[];
                            mediaId: string;
                            surface: "reels";
                        },
                        | IgApiError
                        | RequestError
                        | ParseError
                        | TransportError
                        | ScreenDataError,
                        | PlainJsonApiHttp
                        | MobileSession
                        | MobileDevice
                        | GraphqlJsonHttp
                        | MobileApplication
                        | MobileNavigation
                        | JsonResponseHttp
                        | MobileUserFlows
                        | MediaCommentsReads
                        | AndroidQuickPromotionStash,
                        {
                            comment: (
                                self: ScreenHandle,
                                state:
                                    | {
                                        carousel?: ...;
                                        chainingSeedMediaId?: ...;
                                        commentSessionId?: ...;
                                        feedPosition?: ...;
                                        mediaId: ...;
                                        rankingSessionId?: ...;
                                        surface: ...;
                                    } & {
                                        commentSessionId: ...;
                                        createdMediaNoteIds: ...;
                                        mediaId: ...;
                                        slide?: ...;
                                        surface: ...;
                                    }
                                    | never
                                    | never
                                    | {
                                        chainingPosition?: ...;
                                        chainingSeedMediaId?: ...;
                                        chainingSessionId?: ...;
                                        clientPosition?: ...;
                                        commentSessionId?: ...;
                                        mediaId: ...;
                                        rankingSessionId?: ...;
                                        storyRankingToken?: ...;
                                        surface: ...;
                                    } & {
                                        commentSessionId: ...;
                                        createdMediaNoteIds: ...;
                                        mediaId: ...;
                                        surface: ...;
                                    },
                            ) => (
                                ...args: [text: string, options?: (...) | (...)],
                            ) => Effect<
                                (...) & (...),
                                (...) | (...) | (...) | (...) | (...),
                                (...) | (...) | (...) | (...) | (...) | (...) | (...) | (...) | (...),
                            >;
                        },
                        Record<never, never>,
                        never,
                        "mediaId",
                    >,
                    readonly [{ commentSessionId?: string; rankingSessionId?: string }],
                    "button",
                    AndroidScreens,
                >,
                (
                    ...args: readonly [
                        { commentSessionId?: string; rankingSessionId?: string },
                    ],
                ) => Effect<
                    AssembledHandle<
                        "MediaComments",
                        "screen",
                        | {
                            commentSessionId: string;
                            createdMediaNoteIds: readonly string[];
                            mediaId: string;
                            slide?: { index: ...; mediaId: ... };
                            surface: "feed";
                        }
                        | {
                            commentSessionId: string;
                            createdMediaNoteIds: readonly string[];
                            mediaId: string;
                            surface: "reels";
                        },
                        {
                            comment: (
                                self: ScreenHandle,
                                state: (...) & (...) | never | never | (...) & (...),
                            ) => (
                                ...args: [text: ..., options?: ...],
                            ) => Effect<(...), (...), (...)>;
                        },
                        Record<never, never>,
                        ScreenHandle,
                        "required",
                        true,
                        "mediaId",
                        AndroidScreens,
                    >,

                        | IgApiError
                        | RequestError
                        | ParseError
                        | TransportError
                        | ScreenDataError
                        | ScreenEnterConcurrentError
                        | ScreenEdgeInputError,
                    | PlainJsonApiHttp
                    | MobileSession
                    | MobileDevice
                    | GraphqlJsonHttp
                    | MobileApplication
                    | MobileNavigation
                    | JsonResponseHttp
                    | MobileUserFlows
                    | ScreenStack
                    | MediaCommentsReads
                    | AndroidQuickPromotionStash
                    | ScreenCatalog,
                >,
            >;
            removeRepost: (
                self: ScreenHandle,
                state: ProfilePostsFeedMediaState,
            ) => (
                ...args: [],
            ) => Effect<
                ActionValue<string>,

                    | IgApiError
                    | RequestError
                    | ParseError
                    | TransportError
                    | ScreenEnterConcurrentError,
                GraphqlJsonHttp
                | MobileApplication
                | MobileNavigation
                | ScreenStack,
            >;
            repost: (
                self: ScreenHandle,
                state: ProfilePostsFeedMediaState,
            ) => (
                ...args: [text?: string],
            ) => Effect<
                { note: MediaCreateNoteResponse; trackingToken: string } & {
                    raw: ActionRaw;
                },
                | IgApiError
                | RequestError
                | ParseError
                | TransportError
                | SchemaError
                | GraphqlRootFieldMissingError
                | MediaRepostTextTooLongError
                | ScreenDataError
                | ScreenEnterConcurrentError,
                | PlainJsonApiHttp
                | Signature
                | MobileSession
                | MobileDevice
                | GraphqlJsonHttp
                | MobileApplication
                | NavigationWire
                | MobileNavigation
                | MobileUserFlows
                | ScreenStack,
            >;
            share: (
                self: ScreenHandle,
                state: ProfilePostsFeedCarouselState,
            ) => ScreenEdgeBound<
                ScreenEdgeShape<
                    ScreenDefinition<
                        "DirectShareSheet",
                        "screen",
                        | {
                            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 },
                        {
                            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?: ...;
                                    item_id: ...;
                                    item_type: ...;
                                    media?: ...;
                                    text?: ...;
                                    timestamp: ...;
                                    user_id: ...;
                                }[];
                                thread_id: string;
                                thread_title: string;
                                thread_v2_id?: string;
                                users: readonly {
                                    fbid_v2?: ...;
                                    full_name: ...;
                                    pk: ...;
                                    username: ...;
                                }[];
                            }[];
                        },
                        {
                            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 };
                        },
                        never,
                        MobileSession
                        | MobileNavigation,
                        {},
                        {
                            threads: {
                                at: "threads";
                                item: ScreenItemDefinition<
                                    "DirectShareSheetThread",
                                    {
                                        is_group: boolean;
                                        muted?: (...)
                                        | (...)
                                        | (...);
                                        preview: readonly (...)[];
                                        thread_id: string;
                                        thread_title: string;
                                        thread_v2_id?: (...) | (...);
                                        users: readonly (...)[];
                                    },
                                    {
                                        is_group: boolean;
                                        muted?: (...)
                                        | (...)
                                        | (...);
                                        preview: readonly (...)[];
                                        thread_id: string;
                                        thread_title: string;
                                        thread_v2_id?: (...) | (...);
                                        users: readonly (...)[];
                                    },
                                    DirectShareSheetThreadState,
                                    never,
                                    never,
                                    { send: (self: ..., state: ...) => ... },
                                    { share: (...) | (...) | (...) | (...) },
                                    never,
                                >;
                                key: "thread_id";
                                source: ScreenNoItemNodes;
                            };
                        },
                        never,
                        never,
                    >,
                    [],
                    "button",
                    AndroidScreens,
                >,
                (
                    ...args: [],
                ) => Effect<
                    AssembledHandle<
                        "DirectShareSheet",
                        "screen",
                        {
                            share: | {
                                carousel_share_child_media_id?: (...)
                                | (...);
                                inventory_source?: (...) | (...);
                                kind: "post";
                                media_id: string;
                                media_type: number;
                                ranking_info_token?: (...) | (...);
                                send_attribution: "feed_timeline";
                            }
                            | {
                                carousel_share_child_media_id?: (...)
                                | (...);
                                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?: (...) | (...) | (...);
                                preview: readonly (...)[];
                                thread_id: string;
                                thread_title: string;
                                thread_v2_id?: (...) | (...);
                                users: readonly (...)[];
                            }[];
                        },
                        {},
                        {
                            threads: {
                                at: "threads";
                                item: ScreenItemDefinition<
                                    "DirectShareSheetThread",
                                    {
                                        is_group: ...;
                                        muted?: ...;
                                        preview: ...;
                                        thread_id: ...;
                                        thread_title: ...;
                                        thread_v2_id?: ...;
                                        users: ...;
                                    },
                                    {
                                        is_group: ...;
                                        muted?: ...;
                                        preview: ...;
                                        thread_id: ...;
                                        thread_title: ...;
                                        thread_v2_id?: ...;
                                        users: ...;
                                    },
                                    DirectShareSheetThreadState,
                                    never,
                                    never,
                                    { send: ... },
                                    { share: ... },
                                    never,
                                >;
                                key: "thread_id";
                                source: ScreenNoItemNodes;
                            };
                        },
                        ScreenHandle,
                        "required",
                        true,
                        never,
                        AndroidScreens,
                    >,
                    ScreenDataError
                    | ScreenEnterConcurrentError
                    | ScreenEdgeInputError,
                    MobileSession | MobileNavigation | ScreenStack | ScreenCatalog,
                >,
            >;
            swipeToSlide: (
                self: ScreenHandle,
                state: ProfilePostsFeedCarouselState,
            ) => ScreenDataMember<
                ScreenDataShape,
                (
                    ...args: [index: number],
                ) => Effect<
                    ScreenHandle,
                    ScreenDataActionFailure<
                        CarouselSlidesNotLoadedError
                        | CarouselSlideNotFoundError,
                    >,
                    MobileNavigation | ScreenStack,
                >,
            >;
            unlike: (
                self: ScreenHandle,
                state: ProfilePostsFeedMediaState,
            ) => (
                ...args: [],
            ) => Effect<
                ActionValue<string>,

                    | IgApiError
                    | RequestError
                    | ParseError
                    | TransportError
                    | ScreenEnterConcurrentError,
                | MobileDevice
                | GraphqlJsonHttp
                | MobileApplication
                | NavigationWire
                | MobileNavigation
                | ScreenStack,
            >;
        },
        { facts: { firstMediaId: string; followsAuthor?: boolean } },
        never,
    > = ...

    One carousel of the posts feed: the like and the note target its container; its slides are data, not items. The person swipes it to a slide (swipeToSlide, the first slide when they never swipe), and the comments sheet it opens names that slide.