Variable SearchInputDataSchemaConst
SearchInputDataSchema: Struct<
{
query: String;
rankToken: String;
recentAccounts: $Array<
Struct<{ fullName: String; userId: String; username: String }>,
>;
results: $Array<
Union<
readonly [
Struct<
{
__typename: Literal<"XDTTypeaheadSearchKeyword">;
keyword_lazified: Struct<
{ id: String; name: String; user: optional<NullOr<(...)>> },
>;
},
>,
Struct<
{
__typename: Literal<"XDTTypeaheadSearchUser">;
rank_token: optional<String>;
user: Struct<
{
full_name: optional<String>;
id: String;
is_private: optional<Boolean>;
is_verified: optional<Boolean>;
latest_reel_media: optional<NullOr<(...)>>;
profile_pic_url: optional<String>;
search_serp_type: optional<NullOr<(...)>>;
username: String;
},
>;
},
>,
Struct<
{
__typename: Literal<"XDTTypeaheadSearchHashtag">;
hashtag: Struct<
{ id: String; media_count: optional<Number>; name: String },
>;
},
>,
],
>,
>;
session: optionalKey<
Struct<
{
clientUuidRankToken: String;
searchSessionId: String;
serpSessionId: optionalKey<String>;
typeaheadSessionId: String;
},
>,
>;
},
> = ...
What the search field shows and carries on: the typed text, its suggestions and the session, plus — when it was opened empty from the Explore tab — the recent accounts (with an empty query and result list).