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

    Function isSearchInputUserResult

    • Whether a row of the typeahead list is a user (SearchInputUserResult): it narrows the row, so its openProfile() is there to call. Keyword and hashtag suggestions are rows to read and have no action.

      Parameters

      • row: unknown

      Returns row is AssembledHandle<
          "SearchInputUserResult",
          "item",
          {
              __typename: "XDTTypeaheadSearchUser";
              key: string;
              rank_token?: string;
              user: {
                  full_name?: string;
                  id: string;
                  is_private?: boolean;
                  is_verified?: boolean;
                  latest_reel_media?: number
                  | null;
                  profile_pic_url?: string;
                  search_serp_type?: number | null;
                  username: string;
              };
          },
          {
              openProfile: (
                  self: ScreenHandle,
                  state: TypeaheadUserRowState,
              ) => ScreenEdgeBound<
                  ScreenEdgeShape<
                      UserProfileDefinition,
                      [],

                          | "clips_profile"
                          | "inbox"
                          | "tab"
                          | "cold_start"
                          | "warm_start"
                          | "button"
                          | "search_result"
                          | "inbox_new_message"
                          | "suggested_users"
                          | "third_party_url"
                          | "message_button"
                          | "camera_tab_bar"
                          | "next",
                      AndroidScreens,
                  >,
                  (
                      ...args: [],
                  ) => Effect<
                      AssembledHandle<
                          "UserProfile",
                          "screen",
                          {
                              backgroundFailures: readonly {
                                  message?: (...)
                                  | (...);
                                  request:
                                      | (...)
                                      | (...)
                                      | (...)
                                      | (...)
                                      | (...)
                                      | (...)
                                      | (...)
                                      | (...)
                                      | (...)
                                      | (...)
                                      | (...)
                                      | (...)
                                      | (...)
                                      | (...)
                                      | (...)
                                      | (...)
                                      | (...)
                                      | (...)
                                      | (...)
                                      | (...)
                                      | (...)
                                      | (...);
                                  tag: string;
                              }[];
                              following?: boolean;
                              gridCursor?: { gridItemsCursor: string; maxId: string };
                              isPrivate: boolean;
                              media: readonly {
                                  authorId?: (...) | (...);
                                  carousel?: (...) | (...);
                                  dashManifest?: (...) | (...);
                                  mediaId: string;
                                  mediaType?: (...) | (...);
                                  position: number;
                                  takenAt?: (...) | (...);
                                  trackingToken?: (...) | (...);
                                  videoDuration?: (...) | (...);
                              }[];
                              suggested: readonly {
                                  followRankingToken?: (...)
                                  | (...);
                                  fullName: string;
                                  userId: string;
                                  username: string;
                              }[];
                              userId: string;
                              username: string;
                          },
                          ProfileActions,
                          {
                              grid: {
                                  at: "media";
                                  item: ScreenItemDefinition<
                                      "ProfileGridMedia",
                                      {
                                          authorId?: ...;
                                          carousel?: ...;
                                          dashManifest?: ...;
                                          mediaId: ...;
                                          mediaType?: ...;
                                          position: ...;
                                          takenAt?: ...;
                                          trackingToken?: ...;
                                          videoDuration?: ...;
                                      },
                                      {
                                          authorId?: ...;
                                          carousel?: ...;
                                          dashManifest?: ...;
                                          mediaId: ...;
                                          mediaType?: ...;
                                          position: ...;
                                          takenAt?: ...;
                                          trackingToken?: ...;
                                          videoDuration?: ...;
                                      },
                                      ProfileGridMediaState,
                                      never,
                                      never,
                                      { open: ... },
                                      {
                                          followsAuthor?: ...;
                                          page: ...;
                                          pageCursor?: ...;
                                          userId: ...;
                                          username: ...;
                                      },
                                      never,
                                  >;
                                  key: "mediaId";
                                  source: ScreenItemNodes;
                              };
                              suggestedUsers: {
                                  at: "suggested";
                                  item: ScreenItemDefinition<
                                      "SuggestedUser",
                                      {
                                          followRankingToken?: ...;
                                          fullName: ...;
                                          userId: ...;
                                          username: ...;
                                      },
                                      {
                                          followRankingToken?: ...;
                                          fullName: ...;
                                          userId: ...;
                                          username: ...;
                                      },
                                      SuggestedUserState,
                                      never,
                                      never,
                                      { openProfile: ... },
                                      undefined,
                                      never,
                                  >;
                                  key: "userId";
                                  source: ScreenItemNodes;
                              };
                          },
                          ScreenHandle,
                          "required",
                          true,
                          "userId",
                          AndroidScreens,
                      >,
                      | IgApiError
                      | RequestError
                      | ParseError
                      | TransportError
                      | SchemaError
                      | GraphqlRootFieldMissingError
                      | ScreenDataError
                      | ScreenEnterConcurrentError
                      | ScreenEdgeInputError,
                      | PlainJsonApiHttp
                      | MobileSession
                      | MobileDevice
                      | GraphqlJsonHttp
                      | MobileApplication
                      | NavigationWire
                      | PlainNdjsonApiHttp
                      | MobileNavigation
                      | MobileUserFlows
                      | MobileProcessMobileConfig
                      | ScreenStack
                      | AndroidThrottlingDetector
                      | AndroidQuickPromotionStash
                      | ScreenCatalog,
                  >,
              >;
          },
          Record<never, never>,
          ScreenHandle | undefined,
          "optional",
          false,
          never,
          unknown,
      >