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

    Interface PostingCameraGalleryActions

    The actions of PostingCameraGalleryScreen: the methods you call on its handle while the screen is open.

    interface PostingCameraGalleryActions {
        pickPhoto: (
            ...args: [photo: PostingPhotoInput, gallery?: PostingGalleryEntry],
        ) => Effect<
            PostingStoryPhotoEditorHandle,
            | IgCheckpointError
            | IgAccountSuspendedError
            | IgAccountDisabledError
            | IgLoginRequiredError
            | IgUserLoggedOutError
            | ScreenEnterConcurrentError
            | ScreenDataError
            | ScreenEdgeInputError
            | PostingMediaFormatError,
            never,
        >;
        pickVideo: (
            ...args: [video: PostingVideoInput, gallery?: PostingGalleryEntry],
        ) => Effect<
            | AssembledHandle<
                "PostingReelEditor",
                "screen",
                {
                    assetId: string;
                    creationSessionId: string;
                    draftId: string;
                    entry: "post-mode"
                    | "reel-mode";
                    media: {
                        byteLength: number;
                        durationMs: number;
                        height: number;
                        id: string;
                        kind: "video";
                        mimeType: "video/mp4";
                        width: number;
                    };
                    origin: "feed"
                    | "reels-tab";
                },
                PostingReelEditorActions,
                Record<never, never>,
                ScreenHandle,
                "required",
                true,
                never,
                AndroidScreens,
            >
            | PostingStoryVideoEditorHandle,

                | IgCheckpointError
                | IgAccountSuspendedError
                | IgAccountDisabledError
                | IgLoginRequiredError
                | IgUserLoggedOutError
                | ScreenEnterConcurrentError
                | ScreenDataError
                | ScreenEdgeInputError
                | PostingMediaFormatError,
            never,
        >;
    }
    Index

    Properties

    Properties

    pickPhoto: (
        ...args: [photo: PostingPhotoInput, gallery?: PostingGalleryEntry],
    ) => Effect<
        PostingStoryPhotoEditorHandle,
        | IgCheckpointError
        | IgAccountSuspendedError
        | IgAccountDisabledError
        | IgLoginRequiredError
        | IgUserLoggedOutError
        | ScreenEnterConcurrentError
        | ScreenDataError
        | ScreenEdgeInputError
        | PostingMediaFormatError,
        never,
    >

    Picks a photo (photo.file holds its bytes; where adds what a phone's gallery would say of it: takenAt in epoch seconds and folder). Answers the mode's editor: the story photo editor in the story mode. A photo picked in the Reel mode fails with PostingPhotoPickedInReelModeError.

    pickVideo: (
        ...args: [video: PostingVideoInput, gallery?: PostingGalleryEntry],
    ) => Effect<
        | AssembledHandle<
            "PostingReelEditor",
            "screen",
            {
                assetId: string;
                creationSessionId: string;
                draftId: string;
                entry: "post-mode"
                | "reel-mode";
                media: {
                    byteLength: number;
                    durationMs: number;
                    height: number;
                    id: string;
                    kind: "video";
                    mimeType: "video/mp4";
                    width: number;
                };
                origin: "feed"
                | "reels-tab";
            },
            PostingReelEditorActions,
            Record<never, never>,
            ScreenHandle,
            "required",
            true,
            never,
            AndroidScreens,
        >
        | PostingStoryVideoEditorHandle,

            | IgCheckpointError
            | IgAccountSuspendedError
            | IgAccountDisabledError
            | IgLoginRequiredError
            | IgUserLoggedOutError
            | ScreenEnterConcurrentError
            | ScreenDataError
            | ScreenEdgeInputError
            | PostingMediaFormatError,
        never,
    >

    Picks a video (video.file holds its bytes; where adds takenAt and folder). Answers the mode's editor: the story video editor in the story mode, the Reel editor in the Reel mode.