RichContentNode::Mention],
discriminated on type.
type FileSearchResult = { filename: string; path: string; score: number; type: "file" } | { dirname: string; path: string; score: number; type: "directory" } | { indexingStatusLabel: string | null; repo: string; repoFullName: string; score: number; setupStatusLabel: string | null; type: "repo" } | { playbook: PlaybookRef; score: number; type: "playbook" } | { aliases: string[] | null; categoryType: FileSearchCategoryType; description: string; disabledMessage: string | null; icon: string | null; isDisabled: boolean | null; isLoading: boolean | null; name: string; score: number; type: "category" } | { description: string; instructions: string; isDisabled: boolean | null; name: string; score: number; type: "teach" } | { command: string; description: string | null; displayText: string; replacementText: string; score: number; type: "slash-command" } | { aliases: string[] | null; command: string; description: string; displayText: string; options: FileSearchInputCommandOption[] | null; score: number; selectedOption: string | null; type: "input-command" } | { description: string; name: string; score: number; type: "manage-commands" } | { description: string; name: string; score: number; type: "send-secret" } | { name: string; note: string; score: number; type: "secret" } | { customizeSearch: SkillCustomizeSearch | null; description: string; logoUrl: string | null; notActivatedInSession: boolean | null; repoName: string; score: number; skillAliases: string[] | null; skillDisplayName: string | null; skillName: string; skillPath: string; source: FileSearchSkillSource | null; type: "skill" } | { initialMessage: string | null; score: number; sessionId: string; status: string; title: string; type: "devin-session"; updatedAt: string | null } | { macro: string; noteName: string; playbookId: string | null; score: number; type: "macro" } | { description: string; identity: string; installing: boolean | null; logoUrl: string | null; pluginName: string; score: number; source: FileSearchSkillSource | null; type: "plugin" } | { boardId: string; key: string; score: number; ticketId: string; title: string | null; type: "board-ticket" } | { action: WorkItemAction | null; connectionId: string; connectionName: string | null; key: string; score: number; status: string | null; title: string; type: "work-item"; url: string | null } | { avatarUrl: string | null; botId: string; creatorEmail: string | null; name: string; score: number; serviceUserId: string | null; type: "superdevin" } | { avatarUrl: string | null; displayName: string; email: string | null; score: number; type: "user"; userId: string } | { botJoined: boolean; botName: string | null; channelId: string; name: string; score: number; type: "slack-channel"; workspaceName: string | null } | { item: FileSearchLocalItem; score: number; type: "local-item" }

