nextspace
    Preparing search index...

    Interface UseResourcesReturn

    interface UseResourcesReturn {
        handleConversationEnding: () => void;
        handleMarkReadingsAsSeen: () => void;
        handleResourcesUpdated: (
            payload: {
                resources: {
                    addedAt?: string;
                    authors?: string[];
                    category: "required" | "referenced" | "suggested";
                    citation?: string;
                    description?: string;
                    hasPdf?: boolean;
                    id?: string;
                    participantVisible: boolean;
                    relevanceReason?: string;
                    source: "speaker" | "ai";
                    summary?: string;
                    title: string;
                    url?: string;
                    year?: string;
                }[];
            },
            isResourcesTabActive: boolean,
        ) => void;
        newResourceIds: Set<string>;
        onClearResources: () => void;
        resources: {
            addedAt?: string;
            authors?: string[];
            category: "required" | "referenced" | "suggested";
            citation?: string;
            description?: string;
            hasPdf?: boolean;
            id?: string;
            participantVisible: boolean;
            relevanceReason?: string;
            source: "speaker" | "ai";
            summary?: string;
            title: string;
            url?: string;
            year?: string;
        }[];
        resourcesNavBadgeDismissed: boolean;
        resourcesReminderActive: boolean;
        setResources: Dispatch<
            SetStateAction<
                {
                    addedAt?: string;
                    authors?: string[];
                    category: "required"
                    | "referenced"
                    | "suggested";
                    citation?: string;
                    description?: string;
                    hasPdf?: boolean;
                    id?: string;
                    participantVisible: boolean;
                    relevanceReason?: string;
                    source: "speaker" | "ai";
                    summary?: string;
                    title: string;
                    url?: string;
                    year?: string;
                }[],
            >,
        >;
        setResourcesNavBadgeDismissed: Dispatch<SetStateAction<boolean>>;
        setResourcesReminderActive: Dispatch<SetStateAction<boolean>>;
        unseenResourcesCount: number;
    }
    Index

    Properties

    handleConversationEnding: () => void
    handleMarkReadingsAsSeen: () => void
    handleResourcesUpdated: (
        payload: {
            resources: {
                addedAt?: string;
                authors?: string[];
                category: "required" | "referenced" | "suggested";
                citation?: string;
                description?: string;
                hasPdf?: boolean;
                id?: string;
                participantVisible: boolean;
                relevanceReason?: string;
                source: "speaker" | "ai";
                summary?: string;
                title: string;
                url?: string;
                year?: string;
            }[];
        },
        isResourcesTabActive: boolean,
    ) => void
    newResourceIds: Set<string>
    onClearResources: () => void
    resources: {
        addedAt?: string;
        authors?: string[];
        category: "required" | "referenced" | "suggested";
        citation?: string;
        description?: string;
        hasPdf?: boolean;
        id?: string;
        participantVisible: boolean;
        relevanceReason?: string;
        source: "speaker" | "ai";
        summary?: string;
        title: string;
        url?: string;
        year?: string;
    }[]

    Type Declaration

    • OptionaladdedAt?: string

      Format: date-time

    • Optionalauthors?: string[]
    • category: "required" | "referenced" | "suggested"

      required — speaker-assigned background reading; referenced — cited during the talk and surfaced by the librarian; suggested — proactively recommended by the librarian or speaker.

    • Optionalcitation?: string

      Full formatted citation string. Used verbatim in RAG metadata when provided; falls back to title/authors/year otherwise.

    • Optionaldescription?: string

      Creator-provided relevance note.

    • OptionalhasPdf?: boolean

      True when a PDF file is attached to this resource. The on-disk filename is not exposed.

    • Optionalid?: string
    • participantVisible: boolean
    • OptionalrelevanceReason?: string

      One-line relevance note generated by the librarian agent.

    • source: "speaker" | "ai"

      Whether the resource was added by the conversation creator or by an AI agent.

    • Optionalsummary?: string

      AI-generated content summary; populated asynchronously for required readings.

    • title: string
    • Optionalurl?: string
    • Optionalyear?: string
    resourcesNavBadgeDismissed: boolean
    resourcesReminderActive: boolean
    setResources: Dispatch<
        SetStateAction<
            {
                addedAt?: string;
                authors?: string[];
                category: "required"
                | "referenced"
                | "suggested";
                citation?: string;
                description?: string;
                hasPdf?: boolean;
                id?: string;
                participantVisible: boolean;
                relevanceReason?: string;
                source: "speaker" | "ai";
                summary?: string;
                title: string;
                url?: string;
                year?: string;
            }[],
        >,
    >
    setResourcesNavBadgeDismissed: Dispatch<SetStateAction<boolean>>
    setResourcesReminderActive: Dispatch<SetStateAction<boolean>>
    unseenResourcesCount: number