/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: e18410d4ffd4 */ import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { FeedRequestOptions, FeedRequestOptions$Outbound, FeedRequestOptions$outboundSchema, } from "./feedrequestoptions.js"; import { SessionInfo, SessionInfo$Outbound, SessionInfo$outboundSchema, } from "./sessioninfo.js"; export const FeedRequestCategory = { DocumentSuggestion: "DOCUMENT_SUGGESTION", DocumentSuggestionScenario: "DOCUMENT_SUGGESTION_SCENARIO", TrendingDocument: "TRENDING_DOCUMENT", VerificationReminder: "VERIFICATION_REMINDER", Event: "EVENT", Announcement: "ANNOUNCEMENT", Mention: "MENTION", DatasourceAffinity: "DATASOURCE_AFFINITY", Recent: "RECENT", CompanyResource: "COMPANY_RESOURCE", Experimental: "EXPERIMENTAL", PeopleCelebrations: "PEOPLE_CELEBRATIONS", DisplayableList: "DISPLAYABLE_LIST", SocialLink: "SOCIAL_LINK", ExternalTasks: "EXTERNAL_TASKS", WorkflowCollections: "WORKFLOW_COLLECTIONS", ZeroStateChatSuggestion: "ZERO_STATE_CHAT_SUGGESTION", ZeroStateChatToolSuggestion: "ZERO_STATE_CHAT_TOOL_SUGGESTION", ZeroStateWorkflowCreatedByMe: "ZERO_STATE_WORKFLOW_CREATED_BY_ME", ZeroStateWorkflowFavorites: "ZERO_STATE_WORKFLOW_FAVORITES", ZeroStateWorkflowPopular: "ZERO_STATE_WORKFLOW_POPULAR", ZeroStateWorkflowRecent: "ZERO_STATE_WORKFLOW_RECENT", ZeroStateWorkflowSuggestion: "ZERO_STATE_WORKFLOW_SUGGESTION", PersonalizedChatSuggestion: "PERSONALIZED_CHAT_SUGGESTION", DailyDigest: "DAILY_DIGEST", Task: "TASK", PlanMyDay: "PLAN_MY_DAY", EndMyDay: "END_MY_DAY", StarterKit: "STARTER_KIT", MidDayCatchUp: "MID_DAY_CATCH_UP", QuerySuggestion: "QUERY_SUGGESTION", WeeklyMeetings: "WEEKLY_MEETINGS", FollowUp: "FOLLOW_UP", MilestoneTimelineCheck: "MILESTONE_TIMELINE_CHECK", ProjectDiscussionDigest: "PROJECT_DISCUSSION_DIGEST", ProjectNextStep: "PROJECT_NEXT_STEP", } as const; export type FeedRequestCategory = ClosedEnum; export type FeedRequest = { /** * Categories of content requested. An allowlist gives flexibility to request content separately or together. */ categories?: Array | undefined; requestOptions?: FeedRequestOptions | undefined; /** * Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. */ timeoutMillis?: number | undefined; sessionInfo?: SessionInfo | undefined; }; /** @internal */ export const FeedRequestCategory$outboundSchema: z.ZodNativeEnum< typeof FeedRequestCategory > = z.nativeEnum(FeedRequestCategory); /** @internal */ export type FeedRequest$Outbound = { categories?: Array | undefined; requestOptions?: FeedRequestOptions$Outbound | undefined; timeoutMillis?: number | undefined; sessionInfo?: SessionInfo$Outbound | undefined; }; /** @internal */ export const FeedRequest$outboundSchema: z.ZodType< FeedRequest$Outbound, z.ZodTypeDef, FeedRequest > = z.object({ categories: z.array(FeedRequestCategory$outboundSchema).optional(), requestOptions: FeedRequestOptions$outboundSchema.optional(), timeoutMillis: z.number().int().optional(), sessionInfo: SessionInfo$outboundSchema.optional(), }); export function feedRequestToJSON(feedRequest: FeedRequest): string { return JSON.stringify(FeedRequest$outboundSchema.parse(feedRequest)); }