import * as z from "zod/v3"; import { ClosedEnum, OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Announcement } from "./announcement.js"; import { AppResult } from "./appresult.js"; import { CalendarEvent } from "./calendarevent.js"; import { ChatSuggestion } from "./chatsuggestion.js"; import { Collection } from "./collection.js"; import { CollectionItem } from "./collectionitem.js"; import { CountInfo } from "./countinfo.js"; import { Digest } from "./digest.js"; import { DisplayableListItemUIConfig } from "./displayablelistitemuiconfig.js"; import { Document } from "./document.js"; import { Person } from "./person.js"; import { PromptTemplateResult } from "./prompttemplateresult.js"; import { Thumbnail } from "./thumbnail.js"; import { UserActivity } from "./useractivity.js"; import { WorkflowResult } from "./workflowresult.js"; /** * defines how to render this particular displayable list card */ export declare const Format: { readonly List: "LIST"; }; /** * defines how to render this particular displayable list card */ export type Format = ClosedEnum; export type UiConfig = { /** * defines how to render this particular displayable list card */ format?: Format | undefined; /** * UI configurations for each item of the list */ additionalFlags?: DisplayableListItemUIConfig | undefined; }; /** * Type of the justification. */ export declare const JustificationType: { readonly FrequentlyAccessed: "FREQUENTLY_ACCESSED"; readonly RecentlyAccessed: "RECENTLY_ACCESSED"; readonly TrendingDocument: "TRENDING_DOCUMENT"; readonly VerificationReminder: "VERIFICATION_REMINDER"; readonly SuggestedDocument: "SUGGESTED_DOCUMENT"; readonly EmptyStateSuggestion: "EMPTY_STATE_SUGGESTION"; readonly FrecencyScored: "FRECENCY_SCORED"; readonly ServerGenerated: "SERVER_GENERATED"; readonly UseCase: "USE_CASE"; readonly UpdateSinceLastView: "UPDATE_SINCE_LAST_VIEW"; readonly RecentlyStarted: "RECENTLY_STARTED"; readonly Event: "EVENT"; readonly UserMention: "USER_MENTION"; readonly Announcement: "ANNOUNCEMENT"; readonly ExternalAnnouncement: "EXTERNAL_ANNOUNCEMENT"; readonly PopularityBasedTrending: "POPULARITY_BASED_TRENDING"; readonly CompanyResource: "COMPANY_RESOURCE"; readonly EventDocumentFromContent: "EVENT_DOCUMENT_FROM_CONTENT"; readonly EventDocumentFromSearch: "EVENT_DOCUMENT_FROM_SEARCH"; readonly VisitAffinityScored: "VISIT_AFFINITY_SCORED"; readonly SuggestedApp: "SUGGESTED_APP"; readonly SuggestedPerson: "SUGGESTED_PERSON"; readonly ActivityHighlight: "ACTIVITY_HIGHLIGHT"; readonly SavedSearch: "SAVED_SEARCH"; readonly SuggestedChannel: "SUGGESTED_CHANNEL"; readonly PeopleCelebrations: "PEOPLE_CELEBRATIONS"; readonly SocialLink: "SOCIAL_LINK"; readonly ZeroStateChatSuggestion: "ZERO_STATE_CHAT_SUGGESTION"; readonly ZeroStateChatToolSuggestion: "ZERO_STATE_CHAT_TOOL_SUGGESTION"; readonly ZeroStatePromptTemplateSuggestion: "ZERO_STATE_PROMPT_TEMPLATE_SUGGESTION"; readonly ZeroStateStaticWorkflowSuggestion: "ZERO_STATE_STATIC_WORKFLOW_SUGGESTION"; readonly ZeroStateAgentSuggestion: "ZERO_STATE_AGENT_SUGGESTION"; readonly PersonalizedChatSuggestion: "PERSONALIZED_CHAT_SUGGESTION"; readonly DailyDigest: "DAILY_DIGEST"; readonly Task: "TASK"; readonly PlanMyDay: "PLAN_MY_DAY"; readonly EndMyDay: "END_MY_DAY"; readonly StarterKitExtension: "STARTER_KIT_EXTENSION"; readonly StarterKitOrgChart: "STARTER_KIT_ORG_CHART"; readonly StarterKitAddDoc: "STARTER_KIT_ADD_DOC"; readonly MeetingRecap: "MEETING_RECAP"; readonly ActiveDiscussion: "ACTIVE_DISCUSSION"; readonly MidDayCatchUp: "MID_DAY_CATCH_UP"; readonly QuerySuggestion: "QUERY_SUGGESTION"; readonly WeeklyMeetings: "WEEKLY_MEETINGS"; readonly FollowUp: "FOLLOW_UP"; readonly MilestoneTimelineCheck: "MILESTONE_TIMELINE_CHECK"; readonly ProjectDiscussionDigest: "PROJECT_DISCUSSION_DIGEST"; readonly ProjectNextStep: "PROJECT_NEXT_STEP"; }; /** * Type of the justification. */ export type JustificationType = OpenEnum; export type FeedEntry = { /** * optional ID associated with a single feed entry (displayable_list_id) */ entryId?: string | undefined; /** * Title for the result. Can be document title, event title and so on. */ title: string; thumbnail?: Thumbnail | undefined; createdBy?: Person | undefined; uiConfig?: UiConfig | undefined; /** * Type of the justification. */ justificationType?: JustificationType | undefined; /** * Server side generated justification string if server provides one. */ justification?: string | undefined; /** * An opaque token that represents this particular feed entry in this particular response. To be used for /feedback reporting. */ trackingToken?: string | undefined; /** * View URL for the entry if based on links that are not documents in Glean. */ viewUrl?: string | undefined; document?: Document | undefined; event?: CalendarEvent | undefined; announcement?: Announcement | undefined; digest?: Digest | undefined; collection?: Collection | undefined; collectionItem?: CollectionItem | undefined; person?: Person | undefined; app?: AppResult | undefined; chatSuggestion?: ChatSuggestion | undefined; promptTemplate?: PromptTemplateResult | undefined; workflow?: WorkflowResult | undefined; /** * List of activity where each activity has user, action, timestamp. */ activities?: Array | undefined; documentVisitorCount?: CountInfo | undefined; }; /** @internal */ export declare const Format$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const UiConfig$inboundSchema: z.ZodType; export declare function uiConfigFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const JustificationType$inboundSchema: z.ZodType; /** @internal */ export declare const FeedEntry$inboundSchema: z.ZodType; export declare function feedEntryFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=feedentry.d.ts.map