IGPAPI
    Preparing search index...

    Interface TopSerpInput

    interface TopSerpInput {
        lastSeenMedia?: readonly {
            mediaIds: readonly string[];
            surfaceType: string;
            timestamp: number;
        }[];
        origination?: string;
        query: string;
        session: {
            clientUuidRankToken?: string;
            searchSessionId: string;
            serpSessionId: string;
            typeaheadSessionId?: string;
        };
        sessionState?: string;
    }
    Index

    Properties

    lastSeenMedia?: readonly {
        mediaIds: readonly string[];
        surfaceType: string;
        timestamp: number;
    }[]

    Media the user saw last; absent when the caller knows none.

    origination?: string

    How the SERP was opened; defaults to keyboard.

    query: string
    session: {
        clientUuidRankToken?: string;
        searchSessionId: string;
        serpSessionId: string;
        typeaheadSessionId?: string;
    }
    sessionState?: string

    Session state carried to the server; defaults to typeahead.