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

    Interface RegistrationUsernameActions

    The actions of RegistrationUsernameScreen: the method you call on its handle while the screen is open.

    interface RegistrationUsernameActions {
        submitUsername: (
            ...args: [username: string],
        ) => Effect<
            AssembledHandle<
                "RegistrationTermsOfService",
                "screen",
                {},
                RegistrationTermsOfServiceActions,
                Record<never, never>,
                ScreenHandle,
                "required",
                true,
                never,
                AndroidScreens,
            >,

                | IgApiError
                | RequestError
                | ParseError
                | TransportError
                | RegistrationUsernameTakenError
                | RegistrationChallengeRequiredError
                | RegistrationSpamError
                | ScreenEnterConcurrentError
                | ScreenDataError
                | ScreenEdgeInputError
                | RegistrationStateMissingError,
            never,
        >;
    }
    Index

    Properties

    Properties

    submitUsername: (
        ...args: [username: string],
    ) => Effect<
        AssembledHandle<
            "RegistrationTermsOfService",
            "screen",
            {},
            RegistrationTermsOfServiceActions,
            Record<never, never>,
            ScreenHandle,
            "required",
            true,
            never,
            AndroidScreens,
        >,

            | IgApiError
            | RequestError
            | ParseError
            | TransportError
            | RegistrationUsernameTakenError
            | RegistrationChallengeRequiredError
            | RegistrationSpamError
            | ScreenEnterConcurrentError
            | ScreenDataError
            | ScreenEdgeInputError
            | RegistrationStateMissingError,
        never,
    >

    Types the username and taps Next. A taken or invalid username is the typed RegistrationUsernameTakenError and the screen stays on top; an accepted one answers the terms screen's handle.