Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
feat(activity): remove old activity/firehose, and replace with activity feed (#5590)
teo9d7df37b0006
diff --git a/.sqlx/query-1720e22537ea916ca9c3ed5987b6ad4b8560ff21943acef9383cb92c46195d8e.json b/.sqlx/query-1720e22537ea916ca9c3ed5987b6ad4b8560ff21943acef9383cb92c46195d8e.jsondeleted file mode 100644index 54063b0e84..0000000000--- a/.sqlx/query-1720e22537ea916ca9c3ed5987b6ad4b8560ff21943acef9383cb92c46195d8e.json+++ /dev/null@@ -1,22 +0,0 @@-{- "db_name": "PostgreSQL",- "query": "\n SELECT COUNT(*) as \"count\"\n FROM \"Document\"\n WHERE owner = $1 AND \"deletedAt\" IS NULL\n ",- "describe": {- "columns": [- {- "ordinal": 0,- "name": "count",- "type_info": "Int8"- }- ],- "parameters": {- "Left": [- "Text"- ]- },- "nullable": [- null- ]- },- "hash": "1720e22537ea916ca9c3ed5987b6ad4b8560ff21943acef9383cb92c46195d8e"-}diff --git a/.sqlx/query-c792af1d4fe131a623828fcae21eba7b17a7ee70d1ff44892c747061478cee89.json b/.sqlx/query-c792af1d4fe131a623828fcae21eba7b17a7ee70d1ff44892c747061478cee89.jsondeleted file mode 100644index fe3708f959..0000000000--- a/.sqlx/query-c792af1d4fe131a623828fcae21eba7b17a7ee70d1ff44892c747061478cee89.json+++ /dev/null@@ -1,22 +0,0 @@-{- "db_name": "PostgreSQL",- "query": "\n SELECT COUNT(*) as \"count\"\n FROM \"Chat\"\n WHERE \"userId\" = $1 AND \"deletedAt\" IS NULL\n ",- "describe": {- "columns": [- {- "ordinal": 0,- "name": "count",- "type_info": "Int8"- }- ],- "parameters": {- "Left": [- "Text"- ]- },- "nullable": [- null- ]- },- "hash": "c792af1d4fe131a623828fcae21eba7b17a7ee70d1ff44892c747061478cee89"-}diff --git a/apps/web/src/components/app/app-sidebar/sidebar.tsx b/apps/web/src/components/app/app-sidebar/sidebar.tsxindex 5518bd3ac3..ce0cdabd2e 100644--- a/apps/web/src/components/app/app-sidebar/sidebar.tsx+++ b/apps/web/src/components/app/app-sidebar/sidebar.tsx@@ -1,5 +1,6 @@import { GO_TO_COMMAND_SCOPE, GO_TO_LEADER_KEY } from '@app/constants/hotkeys';import { LIST_VIEW_PATHS, type ListView } from '@app/constants/list-views';+import { useActivityFeedFlag } from '@app/features/activity/use-activity-feed-flag';import { SidebarActiveCallWidget } from '@app/features/block-call/sidebar/active-call-widget';import { useCalendarUiFlag } from '@app/features/calendar/use-calendar-ui-flag';import { ChannelsRecentWidget } from '@app/features/channel/sidebar/channels-recent-widget';@@ -47,7 +48,6 @@ import { inboxIconProps } from '@core/component/inboxIcon';import { toast } from '@core/component/Toast/Toast';import { UserIcon } from '@core/component/UserIcon';import {- ENABLE_ACTIVITY,ENABLE_CALLS,ENABLE_CRM,ENABLE_NEW_PRICING_OVERRIDE,@@ -405,8 +405,13 @@ export const GoToHotkeys = () => {const gettingStartedEnabled = useGettingStartedEnabled();const calendarUiEnabled = useCalendarUiFlag();+ const activityFeedEnabled = useActivityFeedFlag();const links = createMemo((): SidebarItem[] =>- buildSidebarLinks(gettingStartedEnabled(), calendarUiEnabled())+ buildSidebarLinks(+ gettingStartedEnabled(),+ calendarUiEnabled(),+ activityFeedEnabled()+ ));const debounceResetHotkeysState = debounce(resetGoToHotkeysState, 2000);@@ -1043,7 +1048,8 @@ const REMINDERS_LINK: SidebarItem = {*/const buildSidebarLinks = (showGettingStarted: boolean,- showCalendar: boolean+ showCalendar: boolean,+ showActivity: boolean): SidebarItem[] => {let links: SidebarItem[] = [DASHBOARD_LINK,@@ -1051,7 +1057,7 @@ const buildSidebarLinks = (...SIDEBAR_LINKS.filter((link) => showCalendar || link.id !== 'calendar'),];- if (ENABLE_ACTIVITY) {+ if (showActivity) {const idx = links.findIndex((link) => link.id === 'inbox');links = [...links.slice(0, idx + 1),@@ -1062,7 +1068,7 @@ const buildSidebarLinks = (if (ENABLE_REMINDERS()) {// Directly below Activity, or below Inbox when Activity is off.- const anchorId = ENABLE_ACTIVITY ? 'activity' : 'inbox';+ const anchorId = showActivity ? 'activity' : 'inbox';const idx = links.findIndex((l) => l.id === anchorId);links = [...links.slice(0, idx + 1),@@ -1147,8 +1153,13 @@ export const AppSidebar = (props: AppSidebarProps) => {const gettingStartedEnabled = useGettingStartedEnabled();const calendarUiEnabled = useCalendarUiFlag();+ const activityFeedEnabled = useActivityFeedFlag();const allLinks = createMemo((): SidebarItem[] =>- buildSidebarLinks(gettingStartedEnabled(), calendarUiEnabled())+ buildSidebarLinks(+ gettingStartedEnabled(),+ calendarUiEnabled(),+ activityFeedEnabled()+ ));// Hides only the rendered row: the g+s hotkey and command menu entry keepdiff --git a/apps/web/src/components/app/split-layout/componentRegistry.tsx b/apps/web/src/components/app/split-layout/componentRegistry.tsxindex dedf6c7dfd..c66e1ed399 100644--- a/apps/web/src/components/app/split-layout/componentRegistry.tsx+++ b/apps/web/src/components/app/split-layout/componentRegistry.tsx@@ -1,3 +1,4 @@+import { useActivityFeedFlag } from '@app/features/activity/use-activity-feed-flag';import { EventComposer } from '@app/features/calendar/events/EventComposer';import type { EventEditorInitialValues } from '@app/features/calendar/events/EventEditorForm';import type { CalendarEvent } from '@app/features/calendar/events/types';@@ -13,6 +14,7 @@ import { NonMemberChannelPreview } from '@app/features/next-soup/soup-view/non-mimport { SoupView } from '@app/features/next-soup/soup-view/soup-view';import { SettingsPanelComponentWrapper } from '@app/features/settings/Settings';import { useAnalytics } from '@app/lib/analytics/analytics-context';+import { usePosthog } from '@app/lib/analytics/posthog';import { globalSplitManager } from '@app/signal/splitLayout';import { ChannelCompose } from '@block-channel/component/Compose';import { EmailCompose } from '@block-email/component/compose/Compose';@@ -27,7 +29,6 @@ import { useIsAuthenticated } from '@core/auth';import { LoadingBlock } from '@core/component/LoadingBlock';import {DEV_MODE_ENV,- ENABLE_ACTIVITY,ENABLE_CRM,ENABLE_REMINDERS,LOCAL_ONLY,@@ -178,24 +179,41 @@ registerComponent(}));-const ActivityView = lazy(() =>- import('@app/features/activity-timeline/activity-view').then((module) => ({- default: module.ActivityView,+const MyActivityView = lazy(() =>+ import('@app/features/activity/my-activity-view').then((module) => ({+ default: module.MyActivityView,})));-registerComponent(- 'activity',- withAuth(() => {- // Keep the registration so direct navigation and restored splits can- // recover safely without loading the data-owning Activity view.- if (!ENABLE_ACTIVITY) {- return <RedirectSplit to={{ type: 'component', id: 'inbox' }} />;- }- usePageViewTracking('activity');- return <ActivityView />;- })-);+function TrackedMyActivityView() {+ usePageViewTracking('activity');+ return <MyActivityView />;+}++function MyActivityViewWrapper() {+ const activityFeedEnabled = useActivityFeedFlag();+ const posthog = usePosthog();++ // Registered even when the flag is off so a bookmarked /activity or a+ // restored split recovers to the inbox instead of an empty split, and the+ // data-owning feed view is never mounted. The redirect replaces the split+ // irreversibly, so it must wait for PostHog to actually answer — on a+ // fresh reload the flag reads false until flags load.+ return (+ <Show+ when={activityFeedEnabled()}+ fallback={+ <Show when={posthog.flagsLoaded()}>+ <RedirectSplit to={{ type: 'component', id: 'inbox' }} />+ </Show>+ }+ >+ <TrackedMyActivityView />+ </Show>+ );+}++registerComponent('activity', withAuth(MyActivityViewWrapper));registerComponent('reminders',diff --git a/apps/web/src/features/activity-timeline/activity-view.tsx b/apps/web/src/features/activity-timeline/activity-view.tsxdeleted file mode 100644index 085d9eed22..0000000000--- a/apps/web/src/features/activity-timeline/activity-view.tsx+++ /dev/null@@ -1,277 +0,0 @@-import {- defineQueryFilters,- type Query,-} from '@app/features/next-soup/filters/filter-store';-import { useSplitPanelOrThrow } from '@components/app/split-layout/layoutUtils';-import type { TabItem } from '@core/component/Tabs';-import { TabsInset } from '@core/component/TabsInset';-import { ENABLE_SNIPPETS } from '@core/constant/featureFlags';-import { useUserId } from '@core/context/user';-import { getTypeNoun } from '@entity/extractors-notification/notification-description-helpers';-import { NotificationRow } from '@entity/extractors-notification/notification-row';-import type { SoupApiItemFilter } from '@queries/soup/items';-import { makePersisted } from '@solid-primitives/storage';-import { createMemo, createSignal, type JSX, Show } from 'solid-js';-import type { TimelineRow } from './collapse';-import { EntityEventRow } from './entity-event-row';-import { mapEmailActivityEntity, mapMyActivityEntity } from './entity-events';-import {- createNotificationTimelineFeed,- createSoupTimelineFeed,-} from './feeds';-import { mergeTimelineFeeds } from './merge-feeds';-import { TimelinePane } from './timeline-view';-import { useChannelLookup } from './use-channel-lookup';--/**- * Server filters for the user's own actions: messages/threads they took part- * in (per-message soup rows), documents/tasks they created or edited, agent- * chats and folders they own, and calls they attended — plus, via the email- * view, the emails they sent. Drafts live in a separate email view, so they- * are a second query merged in below.- *- * Documents are restricted to the types the user authors in Macro (md and- * canvas, which includes tasks). Ingested files — email-auto-parsed PDFs,- * attachment uploads, bulk imports — are actions a pipeline took, not the- * user, and their updatedAt also moves on viewer activity, so they are- * excluded entirely rather than shown as created/edited.- */-const getMyActionsQuery = (userId: string): Query =>- defineQueryFilters({- include: {- channelThreadParticipantId: [userId],- documentOwnerId: [userId],- fileType: ['md', 'canvas'],- isEmailAttachment: false,- chatOwnerId: [userId],- folderOwnerId: [userId],- callAttended: true,- },- exclude: ENABLE_SNIPPETS() ? {} : { subType: ['snippet'] },- emailView: 'sent',- });--const getMyDraftsQuery = (): Query =>- defineQueryFilters({ emailView: 'drafts' });--/**- * Websocket-insert gates mirroring the server queries above (the cache layer- * bypasses the server AST — see `createSoupTimelineFeed.itemFilter`). The- * document arm mirrors the authorable-types restriction; the mapper drops- * anything else that slips through.- */-const myActionsItemFilter: SoupApiItemFilter = (item) =>- item.tag !== 'document' ||- item.data.subType?.type === 'task' ||- item.data.fileType === 'md' ||- item.data.fileType === 'canvas';--const emailOnlyItemFilter: SoupApiItemFilter = (item) =>- item.tag === 'emailThread';--/** Firehose email gate: threads only, and only signal (`is_signal`) ones. */-const signalEmailItemFilter: SoupApiItemFilter = (item) =>- item.tag === 'emailThread' && item.data.isImportant;--/**- * A notification row (or collapsed run of them). Single notifications render- * through the standard notification row; runs keep the newest notification's- * description and swap the content slot for a count summary.- */-function NotificationTimelineRow(props: { row: TimelineRow }) {- const notifications = () =>- props.row.items.flatMap((item) =>- item.kind === 'notification' ? [item.notification] : []- );- const first = () => notifications()[0]!;- const count = () => notifications().length;-- return (- <NotificationRow- notification={first()}- variant="compact"- showMarkDone={false}- content={- // Leave the slot on the default per-type content for single rows;- // runs summarize as "5 messages".- count() > 1 ? (- <span class="truncate">- {count()} {getTypeNoun(first().notification_metadata.tag, count())}- </span>- ) : undefined- }- />- );-}--/**- * "Things I did": the user's own recent actions at event granularity —- * messages sent, threads replied to, emails sent, drafts started, documents- * created/edited, tasks and folders created, agent sessions, and calls- * attended.- */-function MyActivityPane(props: { trailing?: JSX.Element }) {- const userId = useUserId();- const resolveChannel = useChannelLookup();-- const feed = mergeTimelineFeeds([- createSoupTimelineFeed({- query: () => getMyActionsQuery(userId() ?? ''),- map: (entity) => mapMyActivityEntity(entity, userId()),- enabled: () => userId() !== undefined,- itemFilter: myActionsItemFilter,- }),- createSoupTimelineFeed({- query: getMyDraftsQuery,- map: (entity) => mapMyActivityEntity(entity, userId()),- enabled: () => userId() !== undefined,- itemFilter: emailOnlyItemFilter,- }),- ]);-- const renderRow = (row: TimelineRow) => (- <EntityEventRow row={row} resolveChannel={resolveChannel} />- );-- return (- <TimelinePane- title="Things I did"- description="Your recent actions, for retracing your steps."- feed={feed}- renderRow={renderRow}- emptyTitle="No activity yet"- emptyDescription="Messages and emails you send, documents you edit, and tasks you create will appear here."- trailing={props.trailing}- />- );-}--/**- * "Firehose": everything going on in the team, at event granularity.- * Notifications supply the per-event records — every channel message (with- * its text), thread replies, mentions, document comments, task assignments,- * calls, and GitHub PR events (opened/merged/closed, reviews, comments).- * Email activity is merged in from soup, filtered to signal threads only:- * the user's inbox arrivals plus CRM-shared team threads (visibility- * inherited from CRM permissions), which never notify this user directly.- */-function FirehosePane(props: { trailing?: JSX.Element }) {- const resolveChannel = useChannelLookup();-- const feed = mergeTimelineFeeds([- // The notification stream splits by done state server-side; a timeline- // is history, so fetch both and merge.- createNotificationTimelineFeed({}),- createNotificationTimelineFeed({ done: true }),- // Email activity, signal only (`emailImportance` compiles to the- // classifier's per-thread `is_signal` flag — the same definition as the- // inbox Signal tab). Two feeds because Shared scoping is disjoint:- // CRM-shared team threads, and the user's own inbox arrivals, which- // used to come from `new_email` notifications that carry no- // signal/noise flag.- createSoupTimelineFeed({- query: () =>- defineQueryFilters({- include: { emailShared: 'only', emailImportance: true },- emailView: 'all',- }),- map: mapEmailActivityEntity,- itemFilter: signalEmailItemFilter,- }),- createSoupTimelineFeed({- query: () =>- defineQueryFilters({- include: { emailShared: 'exclude', emailImportance: true },- emailView: 'inbox',- }),- map: mapEmailActivityEntity,- itemFilter: signalEmailItemFilter,- }),- ]);-- const renderRow = (row: TimelineRow) =>- row.items[0]!.kind === 'notification' ? (- <NotificationTimelineRow row={row} />- ) : (- <EntityEventRow row={row} resolveChannel={resolveChannel} />- );-- return (- <TimelinePane- title="Firehose"- description="Everything happening across your team, as it happens."- feed={feed}- renderRow={renderRow}- emptyTitle="Nothing happening yet"- emptyDescription="Messages, replies, comments, shared emails, calls, and pull request activity from across your team will appear here."- trailing={props.trailing}- />- );-}--type ActivityTab = 'me' | 'team';--const ACTIVITY_TABS: TabItem[] = [- { value: 'me', label: 'Me' },- { value: 'team', label: 'Team' },-];--/**- * Minimum split width for showing both timelines side by side. Below it- * (half-splits, mobile) each pane would be too cramped to read, so the view- * collapses to one pane with a Me/Team toggle. At or above it (e.g. a- * full-width window on a 13" laptop) both panes render and the toggle is- * hidden.- */-const DUAL_PANE_MIN_SPLIT_WIDTH = 1024;--/**- * The Activity tab: "Things I did" (the user's own action timeline) and the- * team Firehose. Side by side when the split is wide enough; otherwise one- * pane at a time behind a Me/Team segmented toggle (the same control other- * list views use), persisted across sessions.- */-export function ActivityView() {- const panel = useSplitPanelOrThrow();- const [tab, setTab] = makePersisted(createSignal<ActivityTab>('me'), {- name: 'activity-view-tab',- });-- const isDualPane = createMemo(- () => (panel.panelSize.width ?? 0) >= DUAL_PANE_MIN_SPLIT_WIDTH- );-- // A factory rather than a shared element: each pane mount gets its own- // node instead of re-parenting one instance across Show branches.- const tabs = () => (- <TabsInset- list={ACTIVITY_TABS}- value={tab()}- defaultValue="me"- onChange={(value) => setTab(value as ActivityTab)}- />- );-- return (- <Show- when={isDualPane()}- fallback={- <Show- when={tab() === 'team'}- fallback={<MyActivityPane trailing={tabs()} />}- >- <FirehosePane trailing={tabs()} />- </Show>- }- >- <div class="flex h-full min-h-0">- <div class="min-h-0 min-w-0 flex-1 border-r border-edge-muted">- <MyActivityPane />- </div>- <div class="min-h-0 min-w-0 flex-1">- <FirehosePane />- </div>- </div>- </Show>- );-}diff --git a/apps/web/src/features/activity-timeline/collapse.test.ts b/apps/web/src/features/activity-timeline/collapse.test.tsdeleted file mode 100644index fb33f04782..0000000000--- a/apps/web/src/features/activity-timeline/collapse.test.ts+++ /dev/null@@ -1,98 +0,0 @@-import type { ChannelThreadEntity } from '@entity';-import type { UnifiedNotification } from '@notifications';-import { describe, expect, it } from 'vitest';-import { collapseTimeline } from './collapse';-import type { TimelineItem } from './timeline-types';--function messageNotification(args: {- id: string;- ts: number;- senderId: string;- channelId: string;- tag?: string;-}): TimelineItem {- return {- kind: 'notification',- id: args.id,- ts: args.ts,- notification: {- id: args.id,- sender_id: args.senderId,- entity_id: args.channelId,- notification_metadata: { tag: args.tag ?? 'channel_message_send' },- } as unknown as UnifiedNotification,- };-}--function sentMessage(args: {- id: string;- ts: number;- channelId: string;-}): TimelineItem {- return {- kind: 'entity-event',- id: args.id,- ts: args.ts,- verb: 'sent-message',- entity: {- type: 'channel_thread',- channelId: args.channelId,- } as unknown as ChannelThreadEntity,- };-}--function email(id: string, ts: number): TimelineItem {- return {- kind: 'entity-event',- id,- ts,- verb: 'sent-email',- entity: { type: 'email' } as never,- };-}--describe('collapseTimeline', () => {- it('folds consecutive messages by the same sender in the same channel', () => {- const rows = collapseTimeline([- messageNotification({ id: 'a', ts: 30, senderId: 'u1', channelId: 'c1' }),- messageNotification({ id: 'b', ts: 20, senderId: 'u1', channelId: 'c1' }),- messageNotification({ id: 'c', ts: 10, senderId: 'u1', channelId: 'c1' }),- ]);- expect(rows).toHaveLength(1);- expect(rows[0]!.items.map((i) => i.id)).toEqual(['a', 'b', 'c']);- expect(rows[0]!.ts).toBe(30);- });-- it('does not fold across different senders or channels', () => {- const rows = collapseTimeline([- messageNotification({ id: 'a', ts: 40, senderId: 'u1', channelId: 'c1' }),- messageNotification({ id: 'b', ts: 30, senderId: 'u2', channelId: 'c1' }),- messageNotification({ id: 'c', ts: 20, senderId: 'u2', channelId: 'c2' }),- ]);- expect(rows).toHaveLength(3);- });-- it('breaks a run when a different event interleaves', () => {- const rows = collapseTimeline([- messageNotification({ id: 'a', ts: 40, senderId: 'u1', channelId: 'c1' }),- email('e', 30),- messageNotification({ id: 'b', ts: 20, senderId: 'u1', channelId: 'c1' }),- ]);- expect(rows).toHaveLength(3);- });-- it('folds my own consecutive sent messages per channel', () => {- const rows = collapseTimeline([- sentMessage({ id: 'a', ts: 30, channelId: 'c1' }),- sentMessage({ id: 'b', ts: 20, channelId: 'c1' }),- sentMessage({ id: 'c', ts: 10, channelId: 'c2' }),- ]);- expect(rows).toHaveLength(2);- expect(rows[0]!.items).toHaveLength(2);- });-- it('never folds non-collapsible events, even consecutive identical verbs', () => {- const rows = collapseTimeline([email('a', 30), email('b', 20)]);- expect(rows).toHaveLength(2);- });-});diff --git a/apps/web/src/features/activity-timeline/collapse.ts b/apps/web/src/features/activity-timeline/collapse.tsdeleted file mode 100644index f471d2c6df..0000000000--- a/apps/web/src/features/activity-timeline/collapse.ts+++ /dev/null@@ -1,67 +0,0 @@-import type { TimelineItem } from './timeline-types';--/**- * A rendered feed row: one timeline item, or a run of consecutive items- * collapsed together ("You sent 5 messages in #squad"). `ts` is the newest- * item's timestamp; items are kept newest-first.- */-export type TimelineRow = {- key: string;- ts: number;- items: TimelineItem[];-};--/**- * The grouping key for collapsible items. Consecutive items sharing a key- * fold into one row. Only repeat-noise event shapes collapse — channel- * messages/replies by the same sender in the same place, and CI check runs- * on the same PR. Everything else (emails, doc edits, PR reviews, …) stays- * a row per event since each one carries distinct information.- */-function collapseKey(item: TimelineItem): string | undefined {- if (item.kind === 'notification') {- const notification = item.notification;- const tag = notification.notification_metadata.tag;- if (tag === 'channel_message_send' || tag === 'channel_message_reply') {- return `n:${tag}:${notification.sender_id}:${notification.entity_id}`;- }- if (tag === 'github_pr_check_run') {- return `n:${tag}:${notification.entity_id}`;- }- if (tag === 'ai_response') {- return `n:${tag}:${notification.entity_id}`;- }- return undefined;- }-- if (item.verb === 'sent-message' || item.verb === 'replied-in-thread') {- return item.entity.type === 'channel_thread'- ? `e:${item.verb}:${item.entity.channelId}`- : undefined;- }- return undefined;-}--/**- * Fold consecutive same-key items in a newest-first list into single rows.- */-export function collapseTimeline(items: TimelineItem[]): TimelineRow[] {- const rows: (TimelineRow & { collapseKey?: string })[] = [];-- for (const item of items) {- const key = collapseKey(item);- const current = rows[rows.length - 1];- if (key !== undefined && current?.collapseKey === key) {- current.items.push(item);- continue;- }- rows.push({- collapseKey: key,- key: `${item.kind}:${item.id}`,- ts: item.ts,- items: [item],- });- }-- return rows;-}diff --git a/apps/web/src/features/activity-timeline/entity-event-row.tsx b/apps/web/src/features/activity-timeline/entity-event-row.tsxdeleted file mode 100644index 8a807255f0..0000000000--- a/apps/web/src/features/activity-timeline/entity-event-row.tsx+++ /dev/null@@ -1,181 +0,0 @@-import { openEntityInSplitFromUnifiedList } from '@app/features/next-soup/utils';-import { EntityIcon, getEntityIconType } from '@core/component/EntityIcon';-import { StaticMarkdown } from '@core/component/LexicalMarkdown/component/core/StaticMarkdown';-import { UserIcon } from '@core/component/UserIcon';-import type { ChannelEntity, EntityData } from '@entity';-import { cn } from '@ui';-import { formatDistanceToNowStrict } from 'date-fns';-import { createMemo, Show } from 'solid-js';-import type { TimelineRow } from './collapse';-import type { EntityTimelineItem } from './timeline-types';--/**- * The "actor verb location" title plus optional content snippet for an- * entity-derived event (or a collapsed run of them), e.g. "You sent 5- * messages in #general" with the latest message text alongside.- */-function eventText(- items: EntityTimelineItem[],- resolveChannel: (channelId: string) => ChannelEntity | undefined-): { title: string; preview?: string } {- const first = items[0]!;- const entity = first.entity;- const count = items.length;-- const channelLocation = (): string | undefined => {- if (entity.type !== 'channel_thread') return undefined;- const channel = resolveChannel(entity.channelId);- if (!channel) return undefined;- if (channel.channelType === 'direct_message') {- return channel.name.trim() ? `a DM with ${channel.name}` : 'a DM';- }- return channel.name.trim()- ? `#${channel.name.replace(/^#/, '')}`- : undefined;- };-- // For a collapsed run, preview the newest message; the count lives in the- // title.- const messagePreview = (): string | undefined =>- entity.type === 'channel_thread' ? entity.content : undefined;-- const emailSubject = entity.type === 'email' ? entity.name : undefined;- const emailSnippet = entity.type === 'email' ? entity.snippet : undefined;- const emailPreview = emailSubject- ? `**${emailSubject}**${emailSnippet ? ` — ${emailSnippet}` : ''}`- : emailSnippet;-- switch (first.verb) {- case 'sent-message': {- const location = channelLocation();- const action =- count === 1 ? 'You sent a message' : `You sent ${count} messages`;- return {- title: location ? `${action} in ${location}` : action,- preview: messagePreview(),- };- }- case 'replied-in-thread': {- const location = channelLocation();- const action =- count === 1- ? 'You replied in a thread'- : `You replied in ${count} threads`;- return {- title: location ? `${action} in ${location}` : action,- preview: messagePreview(),- };- }- case 'sent-email':- return { title: 'You sent an email', preview: emailPreview };- case 'drafted-email':- return { title: 'You drafted an email', preview: emailPreview };- case 'email-activity': {- const sender =- entity.type === 'email'- ? (entity.senderName ?? entity.senderEmail)- : undefined;- return {- title: sender ? `${sender} emailed` : 'Email activity',- preview: emailPreview,- };- }- case 'created-document':- return { title: `You created “${entity.name}”` };- case 'edited-document':- // No diff available — there is no server-side edit log, only the fact- // that the document changed since creation.- return { title: `You edited “${entity.name}”` };- case 'created-task':- return { title: 'You created a task', preview: entity.name };- case 'edited-task':- return { title: 'You updated a task', preview: entity.name };- case 'created-folder':- return { title: `You created the folder “${entity.name}”` };- case 'agent-chat':- return { title: 'You worked with an agent', preview: entity.name };- case 'attended-call':- return { title: 'You attended a call', preview: entity.name };- }-}--function EventIcon(props: { entity: EntityData }) {- return (- <Show- when={- props.entity.type === 'channel_thread'- ? props.entity.senderId- : undefined- }- fallback={- <EntityIcon targetType={getEntityIconType(props.entity)} size="xs" />- }- >- {(senderId) => (- <div class="size-4">- <UserIcon- id={senderId()}- size="fill"- suppressClick- showTooltip={false}- />- </div>- )}- </Show>- );-}--/**- * A single entity-derived activity row (or collapsed run): icon, "actor verb- * location" title, one-line content preview, and a relative timestamp.- * Clicking opens the newest underlying entity — channel rows open at the- * specific message.- */-export function EntityEventRow(props: {- row: TimelineRow;- resolveChannel: (channelId: string) => ChannelEntity | undefined;-}) {- const items = createMemo(() =>- props.row.items.flatMap((item) =>- item.kind === 'entity-event' ? [item] : []- )- );- const first = () => items()[0]!;-- const text = createMemo(() => eventText(items(), props.resolveChannel));-- const open = (openInNewSplit: boolean) => {- void openEntityInSplitFromUnifiedList(first().entity, {- openInNewSplit,- });- };-- return (- <div- class={cn(- 'group/event @container/event-row flex items-center gap-2.5 px-3 py-2 min-w-0 overflow-hidden',- 'cursor-pointer hover:bg-ink-muted/6'- )}- onClick={(e) => open(e.shiftKey)}- >- <span class="size-4 shrink-0 flex items-center justify-center [&_svg]:size-3.5">- <EventIcon entity={first().entity} />- </span>- <span class="ph-no-capture min-w-0 shrink truncate text-xs text-ink">- {text().title}- </span>- <Show when={text().preview?.trim()}>- {(preview) => (- <span class="hidden @md/event-row:inline flex-1 min-w-0 overflow-hidden ph-no-capture truncate text-xs text-ink-muted/60">- <StaticMarkdown markdown={preview()} singleLine />- </span>- )}- </Show>- <span class="shrink-0 ml-auto text-ink-extra-muted text-xs tabular-nums">- {formatDistanceToNowStrict(new Date(props.row.ts), {- addSuffix: true,- })}- </span>- </div>- );-}diff --git a/apps/web/src/features/activity-timeline/entity-events.test.ts b/apps/web/src/features/activity-timeline/entity-events.test.tsdeleted file mode 100644index eec89f2ffc..0000000000--- a/apps/web/src/features/activity-timeline/entity-events.test.ts+++ /dev/null@@ -1,115 +0,0 @@-import type { DocumentEntity, EmailEntity } from '@entity';-import { describe, expect, it } from 'vitest';-import { mapEmailActivityEntity, mapMyActivityEntity } from './entity-events';--const USER = 'macro|[email protected]';--const HOUR_MS = 60 * 60 * 1000;-const CREATED = new Date('2026-07-01T12:00:00Z');-const at = (offsetMs: number) => new Date(CREATED.getTime() + offsetMs);--function doc(overrides: Partial<DocumentEntity> = {}): DocumentEntity {- return {- type: 'document',- id: 'doc-1',- name: 'Doc',- ownerId: USER,- fileType: 'md',- createdAt: CREATED,- updatedAt: CREATED,- ...overrides,- } as DocumentEntity;-}--describe('mapMyActivityEntity — documents', () => {- it('maps a fresh markdown doc to a single created event', () => {- const events = mapMyActivityEntity(doc(), USER);- expect(events.map((e) => e.kind === 'entity-event' && e.verb)).toEqual([- 'created-document',- ]);- });-- it('splits an older-edited markdown doc into edited + created events', () => {- const events = mapMyActivityEntity(- doc({ updatedAt: at(2 * HOUR_MS) }),- USER- );- expect(events.map((e) => e.kind === 'entity-event' && e.verb)).toEqual([- 'edited-document',- 'created-document',- ]);- expect(events[0]!.ts).toBe(at(2 * HOUR_MS).getTime());- expect(events[1]!.ts).toBe(CREATED.getTime());- expect(events[0]!.id).not.toBe(events[1]!.id);- });-- it('maps tasks to task verbs', () => {- const events = mapMyActivityEntity(- doc({ subType: { type: 'task' }, updatedAt: at(2 * HOUR_MS) }),- USER- );- expect(events.map((e) => e.kind === 'entity-event' && e.verb)).toEqual([- 'edited-task',- 'created-task',- ]);- });-- it('emits nothing for ingested file types like pdf', () => {- // Email-auto-parsed and uploaded files are pipeline output, and their- // updatedAt moves when the file is merely viewed — no created/edited- // events for them.- expect(mapMyActivityEntity(doc({ fileType: 'pdf' }), USER)).toEqual([]);- expect(- mapMyActivityEntity(- doc({ fileType: 'pdf', updatedAt: at(2 * HOUR_MS) }),- USER- )- ).toEqual([]);- expect(mapMyActivityEntity(doc({ fileType: undefined }), USER)).toEqual([]);- });-});--function email(overrides: Partial<EmailEntity> = {}): EmailEntity {- return {- type: 'email',- id: 'thread-1',- name: 'Subject',- ownerId: USER,- isDraft: false,- createdAt: CREATED,- updatedAt: CREATED,- ...overrides,- } as EmailEntity;-}--describe('mapMyActivityEntity — emails', () => {- it('distinguishes drafts from sent email', () => {- expect(- mapMyActivityEntity(email(), USER).map(- (e) => e.kind === 'entity-event' && e.verb- )- ).toEqual(['sent-email']);- expect(- mapMyActivityEntity(email({ isDraft: true }), USER).map(- (e) => e.kind === 'entity-event' && e.verb- )- ).toEqual(['drafted-email']);- });-});--describe('mapEmailActivityEntity', () => {- it('maps signal threads and drops noise and drafts', () => {- expect(- mapEmailActivityEntity(email({ isImportant: true })).map(- (e) => e.kind === 'entity-event' && e.verb- )- ).toEqual(['email-activity']);- // Untriaged rows (importance not loaded) pass through — the server- // queries already filter on importance.- expect(mapEmailActivityEntity(email())).toHaveLength(1);- expect(mapEmailActivityEntity(email({ isImportant: false }))).toEqual([]);- expect(- mapEmailActivityEntity(email({ isDraft: true, isImportant: true }))- ).toEqual([]);- });-});diff --git a/apps/web/src/features/activity-timeline/entity-events.ts b/apps/web/src/features/activity-timeline/entity-events.tsdeleted file mode 100644index 59a59111fd..0000000000--- a/apps/web/src/features/activity-timeline/entity-events.ts+++ /dev/null@@ -1,153 +0,0 @@-import type { DateValue } from '@core/util/date';-import type { EntityData } from '@entity';-import type { EntityEventVerb, TimelineItem } from './timeline-types';--/**- * A document whose updatedAt is within this window of createdAt renders as a- * single "created" event; beyond it, the row splits into a "created" event- * at creation time plus an "edited" event at last-update time. There is no- * server-side edit log (the CRDT blame table keeps only the last editor per- * node), so the edit event carries no diff — just the fact of the edit.- */-const EDIT_SPLIT_WINDOW_MS = 60 * 1000;--/**- * Document types the user actually authors inside Macro. Other file types- * (pdf, docx, images, …) mostly reach the workspace through ingestion- * pipelines — email-attachment parsing, bulk-upload extraction — and their- * updatedAt also moves on viewer activity (e.g. opening a PDF), so treating- * them as created/edited would fabricate actions the user never took.- */-const AUTHORABLE_FILE_TYPES: ReadonlySet<string> = new Set(['md', 'canvas']);--function isAuthorableDocument(entity: EntityData): boolean {- if (entity.type !== 'document') return false;- if (entity.subType?.type === 'task') return true;- return AUTHORABLE_FILE_TYPES.has(entity.fileType ?? '');-}--function tsOf(value: DateValue | null | undefined): number | undefined {- if (value == null) return undefined;- const ms = new Date(value).getTime();- return Number.isNaN(ms) ? undefined : ms;-}--/**- * The timestamp a soup row sorts by. Soup activity feeds query with- * `sort_method: 'updated_at'`, and `sortTs` (when present) mirrors the- * server-side sort key. The primary event of every row uses this timestamp;- * events synthesized at older timestamps (document "created") are handled by- * the feed's completeness boundary.- */-function entitySortTs(entity: EntityData): number | undefined {- return (- tsOf(entity.sortTs) ?? tsOf(entity.updatedAt) ?? tsOf(entity.createdAt)- );-}--function event(- entity: EntityData,- verb: EntityEventVerb,- ts: number | undefined,- idSuffix = ''-): TimelineItem | undefined {- if (ts === undefined) return undefined;- return {- kind: 'entity-event',- id: `${entity.type}:${entity.id}${idSuffix}`,- ts,- verb,- entity,- };-}--/**- * Events for a document/task row: an "edited" event at last-update time and,- * when the row is old enough for the two to be distinct, a separate- * "created" event back at creation time.- */-function documentEvents(- entity: EntityData,- createdVerb: EntityEventVerb,- editedVerb: EntityEventVerb-): (TimelineItem | undefined)[] {- const created = tsOf(entity.createdAt);- const updated = entitySortTs(entity);- if (- created === undefined ||- updated === undefined ||- updated - created < EDIT_SPLIT_WINDOW_MS- ) {- return [event(entity, createdVerb, updated)];- }- return [- event(entity, editedVerb, updated),- event(entity, createdVerb, created, ':created'),- ];-}--/**- * Map a soup row from the "Things I did" query to personal activity events.- * The query already scopes every entity type to the user's own actions- * (sender/owner/attendance filters + the sent email view); this assigns the- * verb(s) each row stands for. Rows with no timeline meaning map to nothing.- */-export function mapMyActivityEntity(- entity: EntityData,- userId: string | undefined-): TimelineItem[] {- const events = (): (TimelineItem | undefined)[] => {- switch (entity.type) {- case 'channel_thread':- // The query filters threads by participation; whether this was my- // message or a thread I replied in depends on who sent the root.- return [- event(- entity,- entity.senderId === userId ? 'sent-message' : 'replied-in-thread',- entitySortTs(entity)- ),- ];- case 'email':- return [- event(- entity,- entity.isDraft ? 'drafted-email' : 'sent-email',- entitySortTs(entity)- ),- ];- case 'document':- if (!isAuthorableDocument(entity)) return [];- return entity.subType?.type === 'task'- ? documentEvents(entity, 'created-task', 'edited-task')- : documentEvents(entity, 'created-document', 'edited-document');- case 'project':- return [event(entity, 'created-folder', entitySortTs(entity))];- case 'chat':- return [event(entity, 'agent-chat', entitySortTs(entity))];- case 'call':- return [event(entity, 'attended-call', entitySortTs(entity))];- default:- return [];- }- };-- return events().filter((item): item is TimelineItem => item !== undefined);-}--/**- * Map an email thread row to a Firehose event — used for both the user's- * signal inbox and CRM-shared team threads (visibility inherited from CRM- * permissions). The row's sender/snippet describe the latest message on the- * thread. Noise threads (`isImportant === false`, i.e. the classifier's- * `is_signal` flag is off) are dropped — the server queries already filter- * on importance, but rows can also enter through the websocket cache.- */-export function mapEmailActivityEntity(entity: EntityData): TimelineItem[] {- if (entity.type !== 'email' || entity.isDraft) return [];- if (entity.isImportant === false) return [];- const item = event(entity, 'email-activity', entitySortTs(entity));- return item ? [item] : [];-}--export { entitySortTs };diff --git a/apps/web/src/features/activity-timeline/feeds.ts b/apps/web/src/features/activity-timeline/feeds.tsdeleted file mode 100644index 769f2a0bd1..0000000000--- a/apps/web/src/features/activity-timeline/feeds.ts+++ /dev/null@@ -1,146 +0,0 @@-import {- compileToAst,- type Query,- queryStateFrom,-} from '@app/features/next-soup/filters/filter-store';-import type { EntityData } from '@entity';-import type { UnifiedNotification } from '@notifications';-import { useUserNotificationsQuery } from '@queries/notification/user-notifications';-import {- type SoupApiItemFilter,- useSoupAstItemsQuery,-} from '@queries/soup/items';-import { createMemo } from 'solid-js';-import { entitySortTs } from './entity-events';-import type { TimelineFeed, TimelineItem } from './timeline-types';--const PAGE_SIZE = 50;--/**- * Notification event types the timeline skips: plumbing rather than team- * activity, plus email arrivals — notifications carry no signal/noise flag- * client-side, so Firehose sources email activity from signal-filtered soup- * feeds instead (`Importance(true)` compiles to the thread's `is_signal`).- */-const EXCLUDED_NOTIFICATION_TAGS: ReadonlySet<string> = new Set([- 'inbox_reauth_required',- 'new_email',-]);--/**- * A timeline feed over the user's notification stream. The server returns- * only one done-state per query (omitted = active), so full-history surfaces- * create one feed per done state and merge them.- */-export function createNotificationTimelineFeed(args: {- done?: boolean;-}): TimelineFeed {- const query = useUserNotificationsQuery(() => ({- limit: PAGE_SIZE,- done: args.done,- }));-- const rows = createMemo((): UnifiedNotification[] => query.data ?? []);-- const items = createMemo((): TimelineItem[] => {- const mapped: TimelineItem[] = [];- for (const notification of rows()) {- if (- EXCLUDED_NOTIFICATION_TAGS.has(notification.notification_metadata.tag)- ) {- continue;- }- const ts = new Date(notification.created_at).getTime();- if (Number.isNaN(ts)) continue;- mapped.push({- kind: 'notification',- id: notification.id,- ts,- notification,- });- }- return mapped;- });-- // Cursor position: rows arrive newest-first, so the boundary is the oldest- // fetched row — including excluded ones, which still advance the cursor.- const boundaryTs = createMemo((): number | undefined => {- let boundary: number | undefined;- for (const notification of rows()) {- const ts = new Date(notification.created_at).getTime();- if (Number.isNaN(ts)) continue;- if (boundary === undefined || ts < boundary) boundary = ts;- }- return boundary;- });-- return {- items,- boundaryTs,- hasMore: () => query.hasNextPage ?? false,- isLoading: () => query.isLoading,- isFetchingMore: () => query.isFetchingNextPage,- fetchMore: () => {- if (!query.isFetchingNextPage) void query.fetchNextPage();- },- };-}--/**- * A timeline feed over a soup query, sorted by `updated_at`, with each row- * mapped to zero or more activity events. Events may sit at timestamps older- * than their row (e.g. a document's "created" event); the boundary tracks- * the row sort key so the merge withholds them until pagination catches up.- */-export function createSoupTimelineFeed(args: {- query: () => Query;- map: (entity: EntityData) => TimelineItem[];- enabled?: () => boolean;- /**- * Mirror of the server query for the websocket cache layer: optimistic- * inserts bypass the server AST, so without this gate any entity the user- * touches (e.g. an auto-ingested attachment doc bumped by viewing it) gets- * prepended into this feed's cache.- */- itemFilter?: SoupApiItemFilter;-}): TimelineFeed {- const query = useSoupAstItemsQuery(- () => ({- params: { limit: PAGE_SIZE, sort_method: 'updated_at' },- body: compileToAst(queryStateFrom(args.query())),- }),- () => ({- enabled: args.enabled?.() ?? true,- meta: args.itemFilter ? { itemFilter: args.itemFilter } : undefined,- })- );-- const entities = createMemo((): EntityData[] => query.data?.entities ?? []);-- const items = createMemo((): TimelineItem[] =>- entities().flatMap((entity) => args.map(entity))- );-- const boundaryTs = createMemo((): number | undefined => {- let boundary: number | undefined;- for (const entity of entities()) {- const ts = entitySortTs(entity);- if (ts === undefined) continue;- if (boundary === undefined || ts < boundary) boundary = ts;- }- return boundary;- });-- return {- items,- boundaryTs,- hasMore: () => query.hasNextPage ?? false,- // While disabled (e.g. the user id has not resolved yet) the feed reports- // loading so the merge withholds output instead of treating it as empty.- isLoading: () => query.isLoading || !(args.enabled?.() ?? true),- isFetchingMore: () => query.isFetchingNextPage,- fetchMore: () => {- if (!query.isFetchingNextPage) void query.fetchNextPage();- },- };-}diff --git a/apps/web/src/features/activity-timeline/merge-feeds.test.ts b/apps/web/src/features/activity-timeline/merge-feeds.test.tsdeleted file mode 100644index 3e6b38914c..0000000000--- a/apps/web/src/features/activity-timeline/merge-feeds.test.ts+++ /dev/null@@ -1,130 +0,0 @@-import { describe, expect, it, vi } from 'vitest';-import { mergeTimelineFeeds } from './merge-feeds';-import type { TimelineFeed, TimelineItem } from './timeline-types';--function item(id: string, ts: number): TimelineItem {- return { kind: 'notification', id, ts, notification: {} as never };-}--function feed(args: {- items: TimelineItem[];- /** Defaults to the oldest item ts (plain row-per-item feed). */- boundaryTs?: number;- hasMore?: boolean;- isLoading?: boolean;- isFetchingMore?: boolean;- fetchMore?: () => void;-}): TimelineFeed {- const defaultBoundary = args.items.length- ? Math.min(...args.items.map((i) => i.ts))- : undefined;- return {- items: () => args.items,- boundaryTs: () => args.boundaryTs ?? defaultBoundary,- hasMore: () => args.hasMore ?? false,- isLoading: () => args.isLoading ?? false,- isFetchingMore: () => args.isFetchingMore ?? false,- fetchMore: args.fetchMore ?? (() => {}),- };-}--describe('mergeTimelineFeeds', () => {- it('interleaves fully-loaded feeds newest-first', () => {- const merged = mergeTimelineFeeds([- feed({ items: [item('a', 30), item('b', 10)] }),- feed({ items: [item('c', 20)] }),- ]);- expect(merged.items().map((i) => i.id)).toEqual(['a', 'c', 'b']);- expect(merged.hasMore()).toBe(false);- });-- it('withholds items below the watermark of an incomplete feed', () => {- const merged = mergeTimelineFeeds([- // Loaded down to ts=100 with more pages — anything older than 100 in- // other feeds may still be preceded by unloaded items from this feed.- feed({ items: [item('a', 150), item('b', 100)], hasMore: true }),- feed({ items: [item('c', 120), item('d', 50)] }),- ]);- expect(merged.items().map((i) => i.id)).toEqual(['a', 'c', 'b']);- expect(merged.hasMore()).toBe(true);- });-- it('withholds synthesized items older than their feed boundary', () => {- const merged = mergeTimelineFeeds([- // A row fetched at ts=100 synthesized an extra event at ts=10; the- // boundary (cursor position) is still 100.- feed({- items: [item('a', 100), item('a-created', 10)],- boundaryTs: 100,- hasMore: true,- }),- ]);- expect(merged.items().map((i) => i.id)).toEqual(['a']);- });-- it('emits synthesized old items once every feed is exhausted', () => {- const merged = mergeTimelineFeeds([- feed({ items: [item('a', 100), item('a-created', 10)], boundaryTs: 100 }),- ]);- expect(merged.items().map((i) => i.id)).toEqual(['a', 'a-created']);- });-- it('emits nothing while a feed with pages has loaded no items yet', () => {- const merged = mergeTimelineFeeds([- feed({ items: [item('a', 10)] }),- feed({ items: [], hasMore: true }),- ]);- expect(merged.items()).toEqual([]);- });-- it('emits everything once an empty feed is exhausted', () => {- const merged = mergeTimelineFeeds([- feed({ items: [item('a', 10)] }),- feed({ items: [], hasMore: false }),- ]);- expect(merged.items().map((i) => i.id)).toEqual(['a']);- });-- it('dedupes items by id, keeping the first occurrence', () => {- const merged = mergeTimelineFeeds([- feed({ items: [item('a', 30)] }),- feed({ items: [item('a', 30), item('b', 20)] }),- ]);- expect(merged.items().map((i) => i.id)).toEqual(['a', 'b']);- });-- it('fetches more only from the feeds bounding the watermark', () => {- const fetchA = vi.fn();- const fetchB = vi.fn();- const merged = mergeTimelineFeeds([- feed({ items: [item('a', 100)], hasMore: true, fetchMore: fetchA }),- feed({ items: [item('b', 50)], hasMore: true, fetchMore: fetchB }),- ]);- merged.fetchMore();- expect(fetchA).toHaveBeenCalledTimes(1);- expect(fetchB).not.toHaveBeenCalled();- });-- it('skips feeds that are already fetching', () => {- const fetchA = vi.fn();- const merged = mergeTimelineFeeds([- feed({- items: [item('a', 100)],- hasMore: true,- isFetchingMore: true,- fetchMore: fetchA,- }),- ]);- merged.fetchMore();- expect(fetchA).not.toHaveBeenCalled();- });-- it('does nothing when every feed is exhausted', () => {- const fetchA = vi.fn();- const merged = mergeTimelineFeeds([- feed({ items: [item('a', 10)], fetchMore: fetchA }),- ]);- merged.fetchMore();- expect(fetchA).not.toHaveBeenCalled();- });-});diff --git a/apps/web/src/features/activity-timeline/merge-feeds.ts b/apps/web/src/features/activity-timeline/merge-feeds.tsdeleted file mode 100644index 15c46c90bb..0000000000--- a/apps/web/src/features/activity-timeline/merge-feeds.ts+++ /dev/null@@ -1,76 +0,0 @@-import type { TimelineFeed, TimelineItem } from './timeline-types';--/**- * Merge several paginated feeds into one newest-first timeline.- *- * Correctness rule: an item may only be emitted once no unloaded page of any- * feed could still contain a newer item. Each feed reports a `boundaryTs` —- * the timestamp its pagination cursor has reached — so everything at or- * above the *watermark* (the newest boundary across feeds that still have- * more pages) is final. Items below it are withheld until the lagging feeds- * catch up; synthesized items older than their source row simply surface- * once the watermark descends past them. A feed with more pages but nothing- * fetched yet pins the watermark at +infinity (nothing renders until its- * first page lands).- *- * `fetchMore` advances the feeds that bound the watermark, so each call- * makes progress instead of over-fetching sources that are already ahead.- * Items are deduped by id (first occurrence wins) — sources may overlap,- * e.g. a websocket insert reapplied to more than one notification query.- */-export function mergeTimelineFeeds(feeds: TimelineFeed[]): TimelineFeed {- const feedBoundary = (feed: TimelineFeed): number =>- feed.boundaryTs() ?? Number.POSITIVE_INFINITY;-- const watermark = (): number => {- let mark = Number.NEGATIVE_INFINITY;- for (const feed of feeds) {- if (!feed.hasMore()) continue;- mark = Math.max(mark, feedBoundary(feed));- }- return mark;- };-- const items = (): TimelineItem[] => {- const mark = watermark();- const merged: TimelineItem[] = [];- const seen = new Set<string>();-- for (const feed of feeds) {- for (const item of feed.items()) {- if (item.ts < mark) continue;- const key = `${item.kind}:${item.id}`;- if (seen.has(key)) continue;- seen.add(key);- merged.push(item);- }- }-- merged.sort((a, b) =>- a.ts === b.ts ? (a.id < b.id ? 1 : -1) : b.ts - a.ts- );- return merged;- };-- const fetchMore = () => {- const mark = watermark();- if (mark === Number.NEGATIVE_INFINITY) return;- for (const feed of feeds) {- if (!feed.hasMore()) continue;- if (feed.isFetchingMore() || feed.isLoading()) continue;- if (feedBoundary(feed) >= mark) feed.fetchMore();- }- };-- return {- items,- // The merged completeness boundary is the watermark itself: -Infinity- // when every feed is exhausted (fully complete), +Infinity while a feed- // with pages has fetched nothing.- boundaryTs: () => watermark(),- hasMore: () => feeds.some((feed) => feed.hasMore()),- isLoading: () => feeds.some((feed) => feed.isLoading()),- isFetchingMore: () => feeds.some((feed) => feed.isFetchingMore()),- fetchMore,- };-}diff --git a/apps/web/src/features/activity-timeline/timeline-types.ts b/apps/web/src/features/activity-timeline/timeline-types.tsdeleted file mode 100644index 4d3ffb253e..0000000000--- a/apps/web/src/features/activity-timeline/timeline-types.ts+++ /dev/null@@ -1,79 +0,0 @@-import type { EntityData } from '@entity';-import type { UnifiedNotification } from '@notifications';--/**- * The action a soup-derived timeline row stands for. Notification-derived- * rows carry their own event type in the notification metadata instead.- */-export type EntityEventVerb =- | 'sent-message'- | 'replied-in-thread'- | 'sent-email'- | 'drafted-email'- | 'email-activity'- | 'created-document'- | 'edited-document'- | 'created-task'- | 'edited-task'- | 'created-folder'- | 'agent-chat'- | 'attended-call';--/**- * One row of an activity timeline: either a notification (someone did- * something — the metadata carries actor, action, and content) or an- * entity-derived event (an action inferred from a soup row, e.g. "you sent- * this message"). `ts` is epoch milliseconds.- */-export type TimelineItem =- | {- kind: 'notification';- id: string;- ts: number;- notification: UnifiedNotification;- }- | {- kind: 'entity-event';- id: string;- ts: number;- verb: EntityEventVerb;- entity: EntityData;- };--export type NotificationTimelineItem = Extract<- TimelineItem,- { kind: 'notification' }->;-export type EntityTimelineItem = Extract<- TimelineItem,- { kind: 'entity-event' }->;--/**- * A paginated stream of timeline items. Thin adapter over an infinite query- * so heterogeneous sources (notifications, soup) can be merged into one- * timeline.- *- * `boundaryTs` is the pagination cursor position expressed as a timestamp:- * every server row with sort-ts newer than it has been fetched. Items may be- * synthesized at timestamps older than the row they came from (e.g. a- * document row also emits a "created" event at its creation time), so the- * merge trusts `boundaryTs`, not item order, for completeness.- */-export type TimelineFeed = {- /** Items loaded so far, in any order. */- items: () => TimelineItem[];- /**- * Completeness boundary: all server rows newer than this are loaded.- * `undefined` while nothing has been fetched yet.- */- boundaryTs: () => number | undefined;- /** Whether more (older) pages exist. */- hasMore: () => boolean;- /** Whether the first page is still loading. */- isLoading: () => boolean;- /** Whether an older page is currently being fetched. */- isFetchingMore: () => boolean;- /** Request the next (older) page. No-op while already fetching. */- fetchMore: () => void;-};diff --git a/apps/web/src/features/activity-timeline/timeline-view.tsx b/apps/web/src/features/activity-timeline/timeline-view.tsxdeleted file mode 100644index 70737deb3b..0000000000--- a/apps/web/src/features/activity-timeline/timeline-view.tsx+++ /dev/null@@ -1,177 +0,0 @@-import { dateBucket } from '@app/features/next-soup/soup-view/group-by-date';-import { LoadingBlock } from '@core/component/LoadingBlock';-import Spinner from '@phosphor/spinner.svg';-import { EmptyStatePanel } from '@ui';-import {- createEffect,- createMemo,- createSignal,- For,- type JSX,- onCleanup,- Show,-} from 'solid-js';-import { collapseTimeline, type TimelineRow } from './collapse';-import type { TimelineFeed } from './timeline-types';--type TimelineSection = {- key: string;- label: string;- rows: TimelineRow[];-};--/**- * Collapse repeat runs, then group the rows into contiguous relative-date- * sections (Today, Yesterday, Last 7 days, …).- */-function sectionize(rows: TimelineRow[]): TimelineSection[] {- const sections: TimelineSection[] = [];- for (const row of rows) {- const bucket = dateBucket(row.ts);- const current = sections[sections.length - 1];- if (current && current.key === bucket.key) {- current.rows.push(row);- } else {- sections.push({ key: bucket.key, label: bucket.label, rows: [row] });- }- }- return sections;-}--function rowIdentity(row: TimelineRow): string {- let identity = `${row.key}:${row.ts}`;- for (const item of row.items) identity += `,${item.id}`;- return identity;-}--/**- * One scrolling activity pane: a titled, date-sectioned, infinite feed of- * compact event rows. Row rendering is supplied by the caller; `trailing`- * renders at the header's right edge (e.g. the Me/Team toggle).- */-export function TimelinePane(props: {- title: string;- description: string;- feed: TimelineFeed;- renderRow: (row: TimelineRow) => JSX.Element;- emptyTitle: string;- emptyDescription: string;- trailing?: JSX.Element;-}) {- // Row and section objects are rebuilt on every feed update; reusing the- // previous object when a row's identity is unchanged lets <For> keep its- // DOM. Without this, each loaded page re-rendered every existing row —- // hundreds of markdown previews — which compounded until the pane froze.- let prevRows = new Map<string, TimelineRow>();- const rows = createMemo((): TimelineRow[] => {- const next = collapseTimeline(props.feed.items());- const reused = next.map((row) => {- const identity = rowIdentity(row);- const prev = prevRows.get(identity);- return prev ?? row;- });- prevRows = new Map(reused.map((row) => [rowIdentity(row), row]));- return reused;- });-- let prevSections = new Map<string, TimelineSection>();- const sections = createMemo((): TimelineSection[] => {- const next = sectionize(rows());- const reused = next.map((section) => {- const prev = prevSections.get(section.key);- const unchanged =- prev &&- prev.rows.length === section.rows.length &&- prev.rows.every((row, index) => row === section.rows[index]);- return unchanged ? prev : section;- });- prevSections = new Map(reused.map((section) => [section.key, section]));- return reused;- });-- // Load-more must keep firing while the sentinel stays in view:- // IntersectionObserver only reports threshold *crossings*, so if a loaded- // page doesn't push the sentinel out of the margin the observer alone- // never fires again and the feed stalls. Track visibility as a signal and- // re-attempt whenever a fetch settles while it is still visible.- const [sentinelVisible, setSentinelVisible] = createSignal(false);-- let sentinel: HTMLDivElement | undefined;- createEffect(() => {- if (!sentinel) return;- const observer = new IntersectionObserver(- (entries) => {- setSentinelVisible(entries.some((entry) => entry.isIntersecting));- },- { rootMargin: '600px' }- );- observer.observe(sentinel);- onCleanup(() => observer.disconnect());- });-- createEffect(() => {- if (!sentinelVisible()) return;- if (props.feed.isLoading() || props.feed.isFetchingMore()) return;- if (!props.feed.hasMore()) return;- props.feed.fetchMore();- });-- return (- <div class="flex h-full min-h-0 flex-col">- <div class="shrink-0 flex items-start justify-between gap-3 px-6 pb-2 pt-5">- <div class="min-w-0">- <h2 class="text-base font-semibold text-ink">{props.title}</h2>- <p class="text-xs text-ink-muted">{props.description}</p>- </div>- <Show when={props.trailing}>- <div class="shrink-0">{props.trailing}</div>- </Show>- </div>- <div class="min-h-0 flex-1 overflow-y-auto">- <div class="mx-auto flex w-full max-w-2xl flex-col px-3 pb-10 touch:pb-(--mobile-content-inset-bottom)">- <Show- when={!props.feed.isLoading()}- fallback={- <div class="py-16">- <LoadingBlock />- </div>- }- >- <Show- when={sections().length > 0}- fallback={- <EmptyStatePanel- centered- title={props.emptyTitle}- description={props.emptyDescription}- />- }- >- <For each={sections()}>- {(section) => (- <section class="mt-20 first:mt-4">- <div class="px-3 pb-3 text-sm font-semibold text-ink">- {section.label}- </div>- <ul class="flex flex-col">- <For each={section.rows}>- {(row) => <li>{props.renderRow(row)}</li>}- </For>- </ul>- </section>- )}- </For>- </Show>- </Show>-- <div ref={sentinel} class="h-px" />- <Show when={props.feed.isFetchingMore()}>- <div class="flex items-center justify-center py-4 text-ink-muted">- <Spinner class="size-4 animate-spin" />- </div>- </Show>- </div>- </div>- </div>- );-}diff --git a/apps/web/src/features/activity-timeline/use-channel-lookup.ts b/apps/web/src/features/activity-timeline/use-channel-lookup.tsdeleted file mode 100644index 4ee2f41b30..0000000000--- a/apps/web/src/features/activity-timeline/use-channel-lookup.ts+++ /dev/null@@ -1,43 +0,0 @@-import {- compileToAst,- defineQueryFilters,- NIL_UUID,- queryStateFrom,-} from '@app/features/next-soup/filters/filter-store';-import type { ChannelEntity } from '@entity';-import { useSoupAstItemsQuery } from '@queries/soup/items';-import { createMemo } from 'solid-js';--const CHANNEL_LOOKUP_LIMIT = 250;-const CHANNEL_LOOKUP_STALE_MS = 5 * 60 * 1000;--/**- * A best-effort channel-id → channel lookup for labeling timeline rows- * ("… in #general"). Loads the user's most recently active channels in one- * page; rows whose channel falls outside it just render without a location.- */-export function useChannelLookup(): (- channelId: string-) => ChannelEntity | undefined {- const query = useSoupAstItemsQuery(- () => ({- params: { limit: CHANNEL_LOOKUP_LIMIT, sort_method: 'updated_at' },- body: compileToAst(- queryStateFrom(- defineQueryFilters({ exclude: { channelId: [NIL_UUID] } })- )- ),- }),- () => ({ staleTime: CHANNEL_LOOKUP_STALE_MS })- );-- const byId = createMemo(() => {- const map = new Map<string, ChannelEntity>();- for (const entity of query.data?.entities ?? []) {- if (entity.type === 'channel') map.set(entity.id, entity);- }- return map;- });-- return (channelId) => byId().get(channelId);-}diff --git a/apps/web/src/features/activity/entity-mention.tsx b/apps/web/src/features/activity/entity-mention.tsxindex f3f1baa041..962c279e3f 100644--- a/apps/web/src/features/activity/entity-mention.tsx+++ b/apps/web/src/features/activity/entity-mention.tsx@@ -1,32 +1,32 @@import { StaticMarkdown } from '@core/component/LexicalMarkdown/component/core/StaticMarkdown';import { unifiedListMarkdownTheme } from '@core/component/LexicalMarkdown/theme';-import { usePropertyEntityDisplay } from '@property/hooks';-import type { EntityType } from '@service-properties/generated/schemas/entityType';+import type { usePropertyEntityDisplay } from '@property/hooks';import { Show } from 'solid-js';+/** The resolved display accessors for one entity, from the shared resolver. */+export type EntityDisplay = ReturnType<typeof usePropertyEntityDisplay>;+/*** An activity row's entity reference rendered as a real document mention —* the same decorator the editor and notification rows use, with its hover* preview, access states, and click-to-open. Entity kinds without a block* mapping fall back to a plain icon + name chip.*- * Must render under a `<StaticMarkdownContext>` ancestor.+ * Takes the already-resolved display from the row (which also needs it for+ * click-to-open) rather than resolving its own, so each row subscribes to+ * the entity's preview once. Must render under a `<StaticMarkdownContext>`+ * ancestor.*/export function EntityMention(props: {entityId: string;- entityType: EntityType;+ display: EntityDisplay;}) {- const display = usePropertyEntityDisplay(- () => props.entityId,- () => props.entityType- );-const mentionMarkdown = () => {- const blockName = display.blockOrFileType();+ const blockName = props.display.blockOrFileType();if (!blockName) return undefined;return `<m-document-mention>${JSON.stringify({documentId: props.entityId,- documentName: display.name(),+ documentName: props.display.name(),blockName,})}</m-document-mention>`;};@@ -36,8 +36,8 @@ export function EntityMention(props: {when={mentionMarkdown()}fallback={<span class="inline-flex min-w-0 items-center gap-1.5 text-ink">- <span class="flex shrink-0 items-center">{display.icon()}</span>- <span class="truncate">{display.name()}</span>+ <span class="flex shrink-0 items-center">{props.display.icon()}</span>+ <span class="truncate">{props.display.name()}</span></span>}>diff --git a/apps/web/src/features/activity/my-activity-view.tsx b/apps/web/src/features/activity/my-activity-view.tsxnew file mode 100644index 0000000000..d2f2989cee--- /dev/null+++ b/apps/web/src/features/activity/my-activity-view.tsx@@ -0,0 +1,216 @@+import { dateBucket } from '@app/features/next-soup/soup-view/group-by-date';+import { SoupSectionHeader } from '@app/features/next-soup/soup-view/section-header';+import { SplitHeaderLeft } from '@components/app/split-layout/components/SplitHeader';+import { openDocument } from '@core/component/LexicalMarkdown/component/core/BlockLink';+import { StaticMarkdownContext } from '@core/component/LexicalMarkdown/component/core/StaticMarkdown';+import { useSplitNavigationHandler } from '@core/util/useSplitNavigationHandler';+import { formatRelativeTimestamp } from '@entity/utils/timestamp';+import { usePropertyEntityDisplay } from '@property/hooks';+import type { ActivityEvent } from '@queries/activity/graphql/entity';+import { createMyActivityQuery } from '@queries/activity/graphql/feed';+import type { EntityType } from '@service-properties/generated/schemas/entityType';+import type { GraphqlEntityType } from '@service-storage/graphql/generated/graphql';+import { Button } from '@ui';+import { type Component, createMemo, For, Show } from 'solid-js';+import { match } from 'ts-pattern';+import { ActionGlyph } from './action-glyph';+import { ActionPhrase } from './action-phrase';+import { ActorName } from './actor-name';+import {+ actionAsPropertyChange,+ describeActionForEntity,+} from './describe-action';+import { EntityMention } from './entity-mention';+import { PropertyChangeText } from './property-change';++/**+ * Maps an activity event's canonical entity type onto the display vocabulary+ * used by the shared entity name/icon/link resolver. Only types the resolver+ * can actually name are mapped — calls, calendar events, and companies have+ * no preview/name source there and would render as a stuck "Loading…" or a+ * raw id, so they (like teams and static files) return undefined and the row+ * shows without an entity reference.+ */+function displayEntityType(+ entityType: GraphqlEntityType+): EntityType | undefined {+ return match<GraphqlEntityType, EntityType | undefined>(entityType)+ .with('DOCUMENT', () => 'DOCUMENT')+ .with('PROJECT', () => 'PROJECT')+ .with('CHAT', () => 'CHAT')+ .with('EMAIL_THREAD', () => 'THREAD')+ .with('CHANNEL', () => 'CHANNEL')+ .with('USER', () => 'USER')+ .otherwise(() => undefined);+}++type FeedGroup = { key: string; label: string; events: ActivityEvent[] };++/** The user's own activity, newest first, behind the activity-feed flag. */+export function MyActivityView() {+ const feed = createMyActivityQuery({ enabled: () => true });+ const groups = createMemo<FeedGroup[]>(() => {+ const out: FeedGroup[] = [];+ for (const event of feed.data ?? []) {+ const bucket = dateBucket(event.occurredAt);+ const last = out[out.length - 1];+ if (last?.key === bucket.key) {+ last.events.push(event);+ } else {+ out.push({ ...bucket, events: [event] });+ }+ }+ return out;+ });++ return (+ <div class="@container/u-list flex size-full flex-col">+ <SplitHeaderLeft>+ <span class="font-semibold text-sm">Activity</span>+ </SplitHeaderLeft>+ <StaticMarkdownContext>+ <div class="min-h-0 flex-1 overflow-y-auto py-1">+ <Show+ when={groups().length > 0}+ fallback={+ <p class="px-3 py-2 text-ink-muted text-sm">+ {feed.isLoading+ ? 'Loading…'+ : feed.isError+ ? 'Activity is unavailable right now. Try again in a moment.'+ : 'No activity yet.'}+ </p>+ }+ >+ <FeedGroups groups={groups()} row={SentenceTimelineRow} />+ <Show when={feed.hasNextPage}>+ <div class="flex justify-center py-2">+ <Button+ variant="ghost"+ onClick={() => void feed.fetchNextPage()}+ disabled={feed.isFetchingNextPage}+ >+ {feed.isFetchingNextPage ? 'Loading…' : 'Show more'}+ </Button>+ </div>+ </Show>+ </Show>+ </div>+ </StaticMarkdownContext>+ </div>+ );+}++function FeedGroups(props: {+ groups: FeedGroup[];+ row: Component<{ event: ActivityEvent }>;+}) {+ return (+ <For each={props.groups}>+ {(group) => (+ <>+ <SoupSectionHeader>{group.label}</SoupSectionHeader>+ <For each={group.events}>+ {(event) => <props.row event={event} />}+ </For>+ </>+ )}+ </For>+ );+}++function Timestamp(props: { event: ActivityEvent }) {+ return (+ <span class="ml-auto shrink-0 text-right font-medium text-ink-extra-muted text-xs">+ {formatRelativeTimestamp(new Date(props.event.occurredAt), {+ condensed: true,+ })}+ </span>+ );+}++/**+ * "<actor> <action> on <entity>": the glyph rail with a full sentence —+ * actor in medium weight, verb muted, the natural connector per action+ * kind, and the entity as a real mention.+ */+function SentenceTimelineRow(props: { event: ActivityEvent }) {+ const entityType = () => displayEntityType(props.event.entityType);++ return (+ <div class="mx-1 flex w-[calc(100%-0.5rem)] items-stretch gap-1 px-2 text-sm">+ <div class="relative flex w-6 shrink-0 items-center justify-center">+ <div class="absolute inset-y-0 w-px bg-edge-muted" />+ <span class="relative flex size-5 items-center justify-center rounded-full bg-surface ring ring-edge-muted">+ <ActionGlyph+ action={props.event.action}+ class="size-3 text-ink-muted"+ />+ </span>+ </div>+ <Show+ when={entityType()}+ fallback={+ <div class={ROW_BODY_CLASS}>+ <span class="shrink-0 font-medium">+ <ActorName actorId={props.event.actorId} />+ </span>+ <span class="min-w-0 truncate text-ink-muted">+ <ActionPhrase event={props.event} />+ </span>+ <Timestamp event={props.event} />+ </div>+ }+ >+ {(type) => <EntityRow event={props.event} entityType={type()} />}+ </Show>+ </div>+ );+}++const ROW_BODY_CLASS =+ 'flex min-h-10 min-w-0 flex-1 items-center gap-1.5 rounded-lg px-2 py-0.5 hover:bg-hover/30';++/**+ * A feed row that names its entity. Resolves the entity's display once and+ * shares it between the row-wide click-to-open (shift-click for a new split,+ * same target as the inline mention) and the mention itself. Rows whose+ * entity isn't linkable (inaccessible, unmapped type) stay inert.+ */+function EntityRow(props: { event: ActivityEvent; entityType: EntityType }) {+ const parts = () => describeActionForEntity(props.event.action);+ const display = usePropertyEntityDisplay(+ () => props.event.entityId,+ () => props.entityType+ );+ const navHandlers = useSplitNavigationHandler<HTMLDivElement>((e) => {+ const block = display.blockOrFileType();+ if (!block) return;+ openDocument(block, props.event.entityId, display.linkParams(), e.shiftKey);+ });++ return (+ <div {...navHandlers} class={ROW_BODY_CLASS}>+ <span class="shrink-0 font-medium">+ <ActorName actorId={props.event.actorId} />+ </span>+ <span class="min-w-0 text-ink-muted">+ <Show+ when={actionAsPropertyChange(props.event.action)}+ fallback={parts().verb}+ >+ {(change) => <PropertyChangeText action={change()} />}+ </Show>+ </span>+ <Show when={parts().connector}>+ {(connector) => (+ <span class="shrink-0 text-ink-muted">{connector()}</span>+ )}+ </Show>+ <span class="min-w-0 truncate">+ <EntityMention entityId={props.event.entityId} display={display} />+ </span>+ <Timestamp event={props.event} />+ </div>+ );+}diff --git a/apps/web/src/features/activity/use-activity-feed-flag.ts b/apps/web/src/features/activity/use-activity-feed-flag.tsnew file mode 100644index 0000000000..13d7a74ff8--- /dev/null+++ b/apps/web/src/features/activity/use-activity-feed-flag.ts@@ -0,0 +1,18 @@+import { useFeatureFlag } from '@app/lib/analytics/posthog';+import {+ ENABLE_ACTIVITY_FEED_FLAG,+ ENABLE_ACTIVITY_FEED_OVERRIDE,+} from '@core/constant/featureFlags';+import type { Accessor } from 'solid-js';++/**+ * Whether the Activity view (the user's own activity feed) and its sidebar+ * entry are shown. When off, the `/activity` route redirects to the inbox+ * and the feed query is never issued.+ */+export function useActivityFeedFlag(): Accessor<boolean> {+ const flag = useFeatureFlag(ENABLE_ACTIVITY_FEED_FLAG, {+ enabledOverride: ENABLE_ACTIVITY_FEED_OVERRIDE,+ });+ return () => flag().enabled;+}diff --git a/apps/web/src/lib/analytics/posthog.tsx b/apps/web/src/lib/analytics/posthog.tsxindex 084367a2fe..83fcaf921e 100644--- a/apps/web/src/lib/analytics/posthog.tsx+++ b/apps/web/src/lib/analytics/posthog.tsx@@ -16,16 +16,25 @@ export const [PosthogProvider, usePosthog] = createAssertedContextProvider(const analytics = useAnalytics();const [featureFlags, setFeatureFlags] = createSignal<string[]>([]);+ // Distinguishes "flags not fetched yet" from "no flags enabled": both+ // leave featureFlags empty, but destructive flag-off fallbacks (e.g.+ // RedirectSplit) must not fire before the answer arrives. Set even on+ // errorsLoading so a PostHog outage degrades to flags-off, not a hang.+ const [flagsLoaded, setFlagsLoaded] = createSignal(false);const unsub = analytics.posthog.onFeatureFlags((flags, _, ctx) => {- if (ctx?.errorsLoading) return;-- setFeatureFlags(flags);+ // Order matters: signals propagate synchronously, so flagsLoaded must+ // only flip after the flag values are in place — the other way around,+ // flag-off fallbacks fire against the still-empty flag list.+ if (!ctx?.errorsLoading) {+ setFeatureFlags(flags);+ }+ setFlagsLoaded(true);});onCleanup(unsub);- return { instance: analytics.posthog, featureFlags };+ return { instance: analytics.posthog, featureFlags, flagsLoaded };});diff --git a/apps/web/src/lib/core/constant/featureFlags.ts b/apps/web/src/lib/core/constant/featureFlags.tsindex ec4d29a994..64b2d01a6a 100644--- a/apps/web/src/lib/core/constant/featureFlags.ts+++ b/apps/web/src/lib/core/constant/featureFlags.ts@@ -122,14 +122,6 @@ export const ENABLE_MARKDOWN_LIVE_COLLABORATION = resolveFeatureFlag(export const ENABLE_EMAIL = resolveFeatureFlag('ENABLE_EMAIL', true);-// Activity timeline: the Activity sidebar entry and the combined Firehose /-// My Activity view. Keep it dev-only by default while the feature is under-// development; override with VITE_ENABLE_ACTIVITY for controlled testing.-export const ENABLE_ACTIVITY = resolveFeatureFlag(- 'ENABLE_ACTIVITY',- DEV_MODE_ENV-);-// Email signatures: the settings editor, the compose / reply / AI-chat signature// previews, and the per-message include toggle. PostHog-gated with a dev-mode// default; override with VITE_ENABLE_EMAIL_SIGNATURES.@@ -652,3 +644,13 @@ export const ENABLE_ENTITY_ACTIVITY_SECTION_FLAG =export const ENABLE_ENTITY_ACTIVITY_SECTION_OVERRIDE =getFeatureFlagOverride('ENABLE_ENTITY_ACTIVITY_SECTION') ??(DEV_MODE_ENV ? true : undefined);++// The Activity view: the user's own activity feed from the GraphQL activity+// log, replacing the retired soup/notification-derived timeline. Gates the+// view (the /activity route redirects to the inbox when off) and its+// sidebar entry. PostHog-gated with a dev-mode default; override with+// VITE_ENABLE_ACTIVITY_FEED.+export const ENABLE_ACTIVITY_FEED_FLAG = 'enable-activity-feed';+export const ENABLE_ACTIVITY_FEED_OVERRIDE =+ getFeatureFlagOverride('ENABLE_ACTIVITY_FEED') ??+ (DEV_MODE_ENV ? true : undefined);diff --git a/apps/web/src/lib/queries/activity/graphql/feed.ts b/apps/web/src/lib/queries/activity/graphql/feed.tsnew file mode 100644index 0000000000..75bb044622--- /dev/null+++ b/apps/web/src/lib/queries/activity/graphql/feed.ts@@ -0,0 +1,38 @@+import { createUrqlInfiniteQuery } from '@app/lib/urql-solid/create-urql-infinite-query';+import {+ MyActivityDocument,+ type MyActivityQuery,+ type MyActivityQueryVariables,+} from '@service-storage/graphql/generated/graphql';+import { getGraphqlSoupClient } from '@service-storage/graphql-soup';+import type { Accessor } from 'solid-js';+import type { ActivityEvent } from './entity';++/** Rows fetched per feed page. */+export const ACTIVITY_FEED_PAGE_LIMIT = 50;++/**+ * Infinite query over the authenticated user's own activity, newest first.+ * Pages chase the server's opaque keyset cursor until it comes back null.+ */+export function createMyActivityQuery(options: { enabled: Accessor<boolean> }) {+ return createUrqlInfiniteQuery<+ MyActivityQuery,+ MyActivityQueryVariables,+ string | null,+ ActivityEvent[]+ >(() => ({+ query: MyActivityDocument,+ client: getGraphqlSoupClient(),+ initialPageParam: null,+ variables: (cursor) => ({+ input: { limit: ACTIVITY_FEED_PAGE_LIMIT, cursor },+ }),+ getNextPageParam: (lastPage) =>+ lastPage.user.activity.nextCursor ?? undefined,+ enabled: options.enabled(),+ requestPolicy: 'cache-and-network',+ keepPreviousData: true,+ select: ({ pages }) => pages.flatMap((page) => page.user.activity.items),+ }));+}diff --git a/apps/web/src/lib/service-clients/service-storage/client.ts b/apps/web/src/lib/service-clients/service-storage/client.tsindex 307a2b0cd0..413e12fe0b 100644--- a/apps/web/src/lib/service-clients/service-storage/client.ts+++ b/apps/web/src/lib/service-clients/service-storage/client.ts@@ -1148,12 +1148,10 @@ export const storageServiceClient = {).map((result) => result.data);},- async getPins(params?: { limit?: number; offset?: number }) {- return (- await dssFetch<{ data: UserPins }>(- `/pins?limit=${params?.limit ?? 10}&offset=${params?.offset ?? 0}`- )- ).map((result) => result.data);+ async getPins() {+ return (await dssFetch<{ data: UserPins }>('/pins')).map(+ (result) => result.data+ );},async pinItem(params: { id: string } & AddPinRequest) {diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/activity.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/activity.tsdeleted file mode 100644index 828955fe45..0000000000--- a/apps/web/src/lib/service-clients/service-storage/generated/schemas/activity.ts+++ /dev/null@@ -1,10 +0,0 @@-/**- * Generated by orval v7.21.0 🍺- * Do not edit manually.- * document_storage_service- * OpenAPI spec version: 0.1.0- */-import type { ActivityOneOf } from './activityOneOf';-import type { ActivityOneOfTwo } from './activityOneOfTwo';--export type Activity = ActivityOneOf | ActivityOneOfTwo;diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/activityOneOf.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/activityOneOf.tsdeleted file mode 100644index 4e94d42dc3..0000000000--- a/apps/web/src/lib/service-clients/service-storage/generated/schemas/activityOneOf.ts+++ /dev/null@@ -1,11 +0,0 @@-/**- * Generated by orval v7.21.0 🍺- * Do not edit manually.- * document_storage_service- * OpenAPI spec version: 0.1.0- */-import type { BasicDocument } from './basicDocument';--export type ActivityOneOf = {- Document: BasicDocument;-};diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/activityOneOfTwo.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/activityOneOfTwo.tsdeleted file mode 100644index f3cc124986..0000000000--- a/apps/web/src/lib/service-clients/service-storage/generated/schemas/activityOneOfTwo.ts+++ /dev/null@@ -1,11 +0,0 @@-/**- * Generated by orval v7.21.0 🍺- * Do not edit manually.- * document_storage_service- * OpenAPI spec version: 0.1.0- */-import type { Chat } from './chat';--export type ActivityOneOfTwo = {- Chat: Chat;-};diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/getActivitiesResponse.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/getActivitiesResponse.tsdeleted file mode 100644index 249f9322f9..0000000000--- a/apps/web/src/lib/service-clients/service-storage/generated/schemas/getActivitiesResponse.ts+++ /dev/null@@ -1,16 +0,0 @@-/**- * Generated by orval v7.21.0 🍺- * Do not edit manually.- * document_storage_service- * OpenAPI spec version: 0.1.0- */-import type { GetActivitiesResponseData } from './getActivitiesResponseData';--/**- * @deprecated- */-export interface GetActivitiesResponse {- data?: GetActivitiesResponseData;- /** Indicates if an error occurred */- error: boolean;-}diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/getActivitiesResponseData.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/getActivitiesResponseData.tsdeleted file mode 100644index 9b3c610d8f..0000000000--- a/apps/web/src/lib/service-clients/service-storage/generated/schemas/getActivitiesResponseData.ts+++ /dev/null@@ -1,9 +0,0 @@-/**- * Generated by orval v7.21.0 🍺- * Do not edit manually.- * document_storage_service- * OpenAPI spec version: 0.1.0- */-import type { UserActivitiesResponse } from './userActivitiesResponse';--export type GetActivitiesResponseData = null | UserActivitiesResponse;diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/getRecentActivityHandlerParams.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/getRecentActivityHandlerParams.tsdeleted file mode 100644index b8c052327b..0000000000--- a/apps/web/src/lib/service-clients/service-storage/generated/schemas/getRecentActivityHandlerParams.ts+++ /dev/null@@ -1,17 +0,0 @@-/**- * Generated by orval v7.21.0 🍺- * Do not edit manually.- * document_storage_service- * OpenAPI spec version: 0.1.0- */--export type GetRecentActivityHandlerParams = {- /**- * The maximum number of items to retreive. Default 10, max 100.- */- limit: number;- /**- * The offset to start from. Default 0.- */- offset: number;-};diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/index.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/index.tsindex 91e5a68779..4943e2b534 100644--- a/apps/web/src/lib/service-clients/service-storage/generated/schemas/index.ts+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/index.ts@@ -6,9 +6,6 @@*/export * from './accessLevel';-export * from './activity';-export * from './activityOneOf';-export * from './activityOneOfTwo';export * from './activityType';export * from './addFavoriteRequest';export * from './addFavoriteRequestEntityType';@@ -610,8 +607,6 @@ export * from './genericErrorResponse';export * from './genericResponse';export * from './genericResponseMessage';export * from './genericSuccessResponse';-export * from './getActivitiesResponse';-export * from './getActivitiesResponseData';export * from './getAttachmentReferencesResponse';export * from './getBatchCallRecordPreviewRequest';export * from './getBatchCallRecordPreviewResponse';@@ -666,7 +661,6 @@ export * from './getProjectContentResponse';export * from './getProjectResponse';export * from './getProjectResponseData';export * from './getProjectsResponse';-export * from './getRecentActivityHandlerParams';export * from './getSystemSkillsHandler200';export * from './getUserDocumentsHandlerParams';export * from './getUserHistoryResponse';@@ -1168,8 +1162,6 @@ export * from './uploadFolderHandler200DataOneOf';export * from './uploadFolderRequest';export * from './uploadFolderRequestParentId';export * from './upsertUserDocumentViewLocationRequest';-export * from './userActivitiesResponse';-export * from './userActivitiesResponseNextOffset';export * from './userDocumentsResponse';export * from './userDocumentsResponseNextOffset';export * from './userDocumentViewLocation';diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/userActivitiesResponse.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/userActivitiesResponse.tsdeleted file mode 100644index f947f6d544..0000000000--- a/apps/web/src/lib/service-clients/service-storage/generated/schemas/userActivitiesResponse.ts+++ /dev/null@@ -1,21 +0,0 @@-/**- * Generated by orval v7.21.0 🍺- * Do not edit manually.- * document_storage_service- * OpenAPI spec version: 0.1.0- */--import type { Activity } from './activity';-import type { UserActivitiesResponseNextOffset } from './userActivitiesResponseNextOffset';--/**- * @deprecated- */-export interface UserActivitiesResponse {- /** The next offset to be used if there is one */- next_offset?: UserActivitiesResponseNextOffset;- /** The activities returned from the query */- recent: Activity[];- /** The total number of activities the user has */- total: number;-}diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/userActivitiesResponseNextOffset.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/userActivitiesResponseNextOffset.tsdeleted file mode 100644index 010477d681..0000000000--- a/apps/web/src/lib/service-clients/service-storage/generated/schemas/userActivitiesResponseNextOffset.ts+++ /dev/null@@ -1,11 +0,0 @@-/**- * Generated by orval v7.21.0 🍺- * Do not edit manually.- * document_storage_service- * OpenAPI spec version: 0.1.0- */--/**- * The next offset to be used if there is one- */-export type UserActivitiesResponseNextOffset = number | null;diff --git a/apps/web/src/lib/service-clients/service-storage/generated/zod.ts b/apps/web/src/lib/service-clients/service-storage/generated/zod.tsindex b647231e7b..605a21778c 100644--- a/apps/web/src/lib/service-clients/service-storage/generated/zod.ts+++ b/apps/web/src/lib/service-clients/service-storage/generated/zod.ts@@ -6,167 +6,6 @@*/import * as zod from 'zod';-/**- * @deprecated- * @summary Gets the users recent activities- */-export const getRecentActivityHandlerQueryParams = zod.object({- limit: zod- .number()- .describe('The maximum number of items to retreive. Default 10, max 100.'),- offset: zod.number().describe('The offset to start from. Default 0.'),-});--export const getRecentActivityHandlerResponse = zod.object({- data: zod- .union([- zod.null(),- zod.object({- next_offset: zod- .number()- .nullish()- .describe('The next offset to be used if there is one'),- recent: zod- .array(- zod.union([- zod.object({- Document: zod.object({- branchedFromId: zod- .string()- .nullish()- .describe(- 'The id of the document this document branched from'- ),- branchedFromVersionId: zod- .number()- .nullish()- .describe(- 'The id of the version this document branched from\nThis could be either DocumentInstance or DocumentBom id depending on\nthe file type'- ),- createdAt: zod.iso- .datetime({})- .nullish()- .describe('The time the document was created'),- deletedAt: zod.iso- .datetime({})- .nullish()- .describe('The time the document was deleted'),- documentFamilyId: zod- .number()- .nullish()- .describe(- 'The id of the document family this document belongs to'- ),- documentVersionId: zod- .number()- .describe(- 'The version of the document\nThis could be the document_instance_id or document_bom_id depending on\nthe file type'- ),- fileType: zod- .string()- .nullish()- .describe('The file type of the document (e.g. pdf, docx)'),- id: zod.string().describe('The document id'),- name: zod.string().describe('The name of the document'),- owner: zod.string().describe('The owner of the document'),- projectId: zod- .string()- .nullish()- .describe(- 'The id of the project that this document belongs to'- ),- sha: zod- .string()- .nullish()- .describe(- 'If the document is a PDF, this is the SHA of the pdf\nIf the document is a DOCX, this will not be present'- ),- subType: zod- .union([- zod.null(),- zod- .union([- zod- .object({- is_completed: zod- .boolean()- .describe(- 'Whether the task is completed.\nTrue if the Status property is set to \"Completed\".'- ),- type: zod.enum(['task']),- })- .describe(- 'A task document with its associated properties'- ),- zod- .object({- type: zod.enum(['snippet']),- })- .describe('A snippet document — reusable markdown'),- zod- .object({- type: zod.enum(['skill']),- })- .describe(- 'A skill document — markdown instructions for AI'- ),- ])- .describe(- 'Sub type of a document with associated properties encoded in each variant.\nThis ensures type-safety: task properties only exist when the document is a task.'- ),- ])- .optional(),- updatedAt: zod.iso- .datetime({})- .nullish()- .describe(- 'The time the document instance \/ document BOM was updated'- ),- type: zod.enum(['document']),- }),- }),- zod.object({- Chat: zod.object({- createdAt: zod.iso- .datetime({})- .nullish()- .describe('The time the chat was created'),- deletedAt: zod.iso- .datetime({})- .nullish()- .describe('The time the chat was deleted'),- id: zod.string().describe('The chat uuid'),- isPersistent: zod.boolean(),- model: zod- .string()- .nullish()- .describe('The model used to generate the chat'),- name: zod.string().describe('The name of the chat'),- projectId: zod- .string()- .nullish()- .describe('The project id of the chat'),- tokenCount: zod.number().nullish(),- updatedAt: zod.iso- .datetime({})- .nullish()- .describe('The time the chat was last updated'),- userId: zod.string().describe('Who the chat belongs to'),- type: zod.enum(['chat']),- }),- }),- ])- )- .describe('The activities returned from the query'),- total: zod- .number()- .describe('The total number of activities the user has'),- }),- ])- .optional(),- error: zod.boolean().describe('Indicates if an error occurred'),-});-/*** @summary Deletes a single unthreaded anchor for a documentIf you need to delete a threaded anchor, see the delete comment handlerdiff --git a/apps/web/src/lib/service-clients/service-storage/openapi.json b/apps/web/src/lib/service-clients/service-storage/openapi.jsonindex 2d7adb683c..f521f8691e 100644--- a/apps/web/src/lib/service-clients/service-storage/openapi.json+++ b/apps/web/src/lib/service-clients/service-storage/openapi.json@@ -10,78 +10,6 @@"version": "0.1.0"},"paths": {- "/activity": {- "get": {- "tags": ["activity::get_recent_activity"],- "summary": "Gets the users recent activities",- "operationId": "get_recent_activity_handler",- "parameters": [- {- "name": "limit",- "in": "query",- "description": "The maximum number of items to retreive. Default 10, max 100.",- "required": true,- "schema": {- "type": "integer",- "format": "int64"- }- },- {- "name": "offset",- "in": "query",- "description": "The offset to start from. Default 0.",- "required": true,- "schema": {- "type": "integer",- "format": "int64"- }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/GetActivitiesResponse"- }- }- }- },- "400": {- "description": "",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/GenericErrorResponse"- }- }- }- },- "401": {- "description": "",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/GenericErrorResponse"- }- }- }- },- "500": {- "description": "",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/GenericErrorResponse"- }- }- }- }- },- "deprecated": true- }- },"/annotations/anchors": {"delete": {"tags": ["annotations::delete_anchor"],@@ -11068,28 +10996,6 @@"description": "Ordered from least to most access top -> bottom","enum": ["view", "comment", "edit", "owner"]},- "Activity": {- "oneOf": [- {- "type": "object",- "required": ["Document"],- "properties": {- "Document": {- "$ref": "#/components/schemas/BasicDocument"- }- }- },- {- "type": "object",- "required": ["Chat"],- "properties": {- "Chat": {- "$ref": "#/components/schemas/Chat"- }- }- }- ]- },"ActivityType": {"type": "string","description": "The kind of activity a user performs in a channel.",@@ -18566,28 +18472,6 @@}}},- "GetActivitiesResponse": {- "type": "object",- "required": ["error"],- "properties": {- "data": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/UserActivitiesResponse",- "description": "Data to be returned"- }- ]- },- "error": {- "type": "boolean",- "description": "Indicates if an error occurred"- }- },- "deprecated": true- },"GetAttachmentReferencesResponse": {"type": "object","description": "Response from the attachment-references endpoint.",@@ -23924,30 +23808,6 @@}}},- "UserActivitiesResponse": {- "type": "object",- "required": ["recent", "total"],- "properties": {- "next_offset": {- "type": ["integer", "null"],- "format": "int64",- "description": "The next offset to be used if there is one"- },- "recent": {- "type": "array",- "items": {- "$ref": "#/components/schemas/Activity"- },- "description": "The activities returned from the query"- },- "total": {- "type": "integer",- "format": "int64",- "description": "The total number of activities the user has"- }- },- "deprecated": true- },"UserDocumentViewLocation": {"type": "object","description": "The last place a user viewed a particular document at",diff --git a/apps/web/src/lib/service-clients/service-storage/service.ts b/apps/web/src/lib/service-clients/service-storage/service.tsindex c0cefb07ed..6ca7c1c982 100644--- a/apps/web/src/lib/service-clients/service-storage/service.ts+++ b/apps/web/src/lib/service-clients/service-storage/service.ts@@ -390,7 +390,8 @@ export const StorageService = new Svc('Document++ Storage Service API')}).fn('getPins', {description: schemas.getPinsHandlerResponse.description!,- args: schemas.getRecentActivityHandlerQueryParams.shape,+ // The pins handler takes no query params: it always returns all pins.+ args: {},result: schemas.getPinsHandlerResponse.shape.data.unwrap().options[1].shape,throws: withFetchErrors(),})diff --git a/crates/macro_db_client/src/activity/get_recent_activities.rs b/crates/macro_db_client/src/activity/get_recent_activities.rsdeleted file mode 100644index f71007aa66..0000000000--- a/crates/macro_db_client/src/activity/get_recent_activities.rs+++ /dev/null@@ -1,237 +0,0 @@-use document_sub_type::DocumentSubType;-use macro_user_id::{cowlike::CowLike, user_id::MacroUserIdStr};-use model::{- activity::Activity,- chat::Chat,- document::{BasicDocument, BasicDocumentSubType},-};-use sqlx::{Pool, Postgres, Row};-use system_properties::{StatusOption, SystemPropertyKey};--#[tracing::instrument(skip(db))]-#[allow(clippy::disallowed_methods, reason = "legacy code. fix later")]-pub async fn get_recent_activities(- db: Pool<Postgres>,- user_id: &str,- limit: i64,- offset: i64,-) -> anyhow::Result<(Vec<Activity>, i64)> {- let mut transaction = db.begin().await?;- let total_documents = sqlx::query!(- r#"- SELECT COUNT(*) as "count"- FROM "Document"- WHERE owner = $1 AND "deletedAt" IS NULL- "#,- user_id,- )- .fetch_one(&mut *transaction)- .await?- .count- .unwrap_or(0);-- let total_chats = sqlx::query!(- r#"- SELECT COUNT(*) as "count"- FROM "Chat"- WHERE "userId" = $1 AND "deletedAt" IS NULL- "#,- user_id,- )- .fetch_one(&mut *transaction)- .await?- .count- .unwrap_or(0);-- if total_documents == 0 && total_chats == 0 {- return Ok((vec![], 0));- }-- let status_property_id = SystemPropertyKey::STATUS_UUID;- let completed_option_id = StatusOption::COMPLETED_UUID.to_string();-- let query = r#"- SELECT- 'document' as type,- d.id as id,- d.owner as user_id,- d.name as "name",- CAST(COALESCE(db.id, di.id) as TEXT) as "document_version_id",- d."branchedFromId" as "branched_from_id",- d."branchedFromVersionId" as "branched_from_version_id",- d."documentFamilyId" as "document_family_id",- d."fileType" as "file_type",- d."createdAt"::timestamptz as "created_at",- d."updatedAt"::timestamptz as "updated_at",- d."projectId" as "project_id",- NULL as "is_persistent",- di.sha as "sha",- dt.sub_type as "sub_type",- CASE- WHEN dt.sub_type = 'task'- AND ep_status.values->'value' ? $4- THEN true- WHEN dt.sub_type = 'task'- THEN false- ELSE NULL- END as "is_completed"- FROM- "Document" d- LEFT JOIN document_sub_type dt ON dt.document_id = d.id- LEFT JOIN entity_properties ep_status- ON dt.sub_type = 'task'- AND ep_status.entity_id = d.id- AND ep_status.entity_type = 'TASK'- AND ep_status.property_definition_id = $5- LEFT JOIN LATERAL (- SELECT- b.id- FROM- "DocumentBom" b- WHERE- b."documentId" = d.id- ORDER BY- b."createdAt" DESC- LIMIT 1- ) db ON d."fileType" = 'docx'- LEFT JOIN LATERAL (- SELECT- i.id,- i."documentId",- i."sha",- i."createdAt",- i."updatedAt"- FROM- "DocumentInstance" i- WHERE- i."documentId" = d.id- ORDER BY- i."updatedAt" DESC- LIMIT 1- ) di ON d."fileType" IS DISTINCT FROM 'docx'- WHERE- d.owner = $1 AND d."deletedAt" IS NULL- UNION ALL- SELECT- 'chat' as type,- c.id as id,- c."userId" as user_id,- c.name as "name",- NULL as "document_version_id",- NULL as "branched_from_id",- NULL as "branched_from_version_id",- NULL as "document_family_id",- NULL as "file_type",- c."createdAt"::timestamptz as "created_at",- c."updatedAt"::timestamptz as "updated_at",- c."projectId" as "project_id",- c."isPersistent" as "is_persistent",- NULL as "sha",- NULL as "sub_type",- NULL as "is_completed"- FROM "Chat" c- WHERE c."userId" = $1 AND c."deletedAt" IS NULL- ORDER BY updated_at DESC- LIMIT $2 OFFSET $3- "#;-- let rows = sqlx::query(query)- .bind(user_id)- .bind(limit)- .bind(offset)- .bind(&completed_option_id)- .bind(status_property_id)- .fetch_all(&mut *transaction)- .await?;-- let activities: Vec<Activity> = rows- .iter()- .filter_map(|r| {- let row_type: String = r.get("type");- let id: String = r.get("id");- let user_id: String = r.get("user_id");- let name: String = r.get("name");- let created_at: Option<chrono::DateTime<chrono::Utc>> = r.get("created_at");- let updated_at: Option<chrono::DateTime<chrono::Utc>> = r.get("updated_at");- let project_id: Option<String> = r.get("project_id");- let sub_type: Option<DocumentSubType> = r.get("sub_type");-- match row_type.as_ref() {- "document" => {- let document_version_id: String = r.get("document_version_id");- let is_completed: Option<bool> = r.get("is_completed");- Some(Activity::Document(BasicDocument {- document_id: id,- owner: MacroUserIdStr::parse_from_str(&user_id).ok()?.into_owned(),- document_version_id: document_version_id.parse::<i64>().unwrap(),- document_name: name,- created_at,- updated_at,- deleted_at: None, // Don't care about the deleted_at in activity- sha: r.get("sha"),- file_type: r.get("file_type"),- document_family_id: r.get("document_family_id"),- branched_from_id: r.get("branched_from_id"),- branched_from_version_id: r.get("branched_from_version_id"),- project_id,- sub_type: BasicDocumentSubType::from_db(sub_type, is_completed),- }))- }- "chat" => Some(Activity::Chat(Chat {- id,- name,- // Don't care about the model in user history- model: None,- user_id,- created_at,- updated_at,- deleted_at: None, // Don't care about the deleted_at in activity- project_id,- token_count: None,- is_persistent: r.get("is_persistent"),- })),- _ => {- tracing::error!(row_type=?row_type, id=?id, "unexpected activity type");- None- }- }- })- .collect::<Vec<_>>();-- Ok((activities, total_chats + total_documents))-}--#[cfg(test)]-mod tests {- use super::*;- use sqlx::{Pool, Postgres};-- #[sqlx::test(fixtures(path = "../../fixtures", scripts("basic_user_with_lots_of_documents")))]- async fn test_get_recent_actitivties(pool: Pool<Postgres>) {- let result = get_recent_activities(pool.clone(), "no-user", 10, 0)- .await- .unwrap();- assert_eq!(result.0.len(), 0);- assert_eq!(result.1, 0);-- // 7 documents and 3 chats- let recent = get_recent_activities(pool.clone(), "macro|[email protected]", 100, 0)- .await- .unwrap();- assert_eq!(recent.0.len(), 10);- assert_eq!(recent.1, 10);-- match recent.0[0] {- Activity::Chat(_) => (),- _ => panic!("Unexpected activity type 1"),- }- match recent.0[1] {- Activity::Chat(_) => (),- _ => panic!("Unexpected activity type 2"),- }- match recent.0[2] {- Activity::Document(_) => (),- _ => panic!("Unexpected activity type 3"),- }- }-}diff --git a/crates/macro_db_client/src/activity/mod.rs b/crates/macro_db_client/src/activity/mod.rsdeleted file mode 100644index 1bb7712049..0000000000--- a/crates/macro_db_client/src/activity/mod.rs+++ /dev/null@@ -1,3 +0,0 @@-mod get_recent_activities;--pub use get_recent_activities::get_recent_activities;diff --git a/crates/macro_db_client/src/lib.rs b/crates/macro_db_client/src/lib.rsindex b27010286a..80350f6530 100644--- a/crates/macro_db_client/src/lib.rs+++ b/crates/macro_db_client/src/lib.rs@@ -1,6 +1,5 @@#[cfg(feature = "account_merge_request")]pub mod account_merge_request;-pub mod activity;pub mod advisory_lock;pub mod annotations;pub mod blocked_email;diff --git a/crates/model/src/activity/mod.rs b/crates/model/src/activity/mod.rsindex 756c7f9db4..99c396b896 100644--- a/crates/model/src/activity/mod.rs+++ b/crates/model/src/activity/mod.rs@@ -1,62 +1 @@-use std::cmp::Ordering;-pub mod map_item;-use crate::project::Project;--use super::{chat::Chat, document::BasicDocument};-use utoipa::ToSchema;--#[derive(serde::Serialize, serde::Deserialize, Eq, PartialEq, Debug, Clone, ToSchema)]-pub enum Activity {- Document(BasicDocument),- Chat(Chat),-}--impl PartialOrd for Activity {- fn partial_cmp(&self, other: &Self) -> Option<Ordering> {- Some(self.cmp(other))- }-}--impl Ord for Activity {- fn cmp(&self, other: &Self) -> Ordering {- let self_date = match self {- Activity::Document(doc) => &doc.updated_at,- Activity::Chat(chat) => &chat.updated_at,- };- let other_date = match other {- Activity::Document(doc) => &doc.updated_at,- Activity::Chat(chat) => &chat.updated_at,- };- self_date.cmp(other_date)- }-}--#[derive(serde::Serialize, serde::Deserialize, Eq, PartialEq, Debug, Clone, ToSchema)]-pub enum PinnedActivity {- Document(BasicDocument),- Chat(Chat),- Project(Project),-}--impl PartialOrd for PinnedActivity {- fn partial_cmp(&self, other: &Self) -> Option<Ordering> {- Some(self.cmp(other))- }-}--impl Ord for PinnedActivity {- fn cmp(&self, other: &Self) -> Ordering {- let self_date = match self {- PinnedActivity::Document(doc) => &doc.updated_at,- PinnedActivity::Chat(chat) => &chat.updated_at,- PinnedActivity::Project(project) => &project.updated_at,- };- let other_date = match other {- PinnedActivity::Document(doc) => &doc.updated_at,- PinnedActivity::Chat(chat) => &chat.updated_at,- PinnedActivity::Project(project) => &project.updated_at,- };- self_date.cmp(other_date)- }-}diff --git a/packages/sdk/generated/storage/index.ts b/packages/sdk/generated/storage/index.tsindex 1720515c2e..48fda18e8a 100644--- a/packages/sdk/generated/storage/index.ts+++ b/packages/sdk/generated/storage/index.ts@@ -1,4 +1,4 @@// This file is auto-generated by @hey-api/openapi-tsexport { type Options, Sdk } from './sdk.gen';-export type { AccessLevel, Activity, ActivityType, AddFavoriteData, AddFavoriteError, AddFavoriteErrors, AddFavoriteRequest, AddFavoriteResponse, AddFavoriteResponses, AddParticipantsData, AddParticipantsError, AddParticipantsErrors, AddParticipantsRequest, AddParticipantsResponses, AddPinHandlerData, AddPinHandlerError, AddPinHandlerErrors, AddPinHandlerResponse, AddPinHandlerResponses, AddPinRequest, Anchor, AnchorId, AnchorRequest, AnchorResponse, AnnotationIncrementalUpdate, ApiActivity, ApiAttachmentChannelReference, ApiAttachmentEntityReference, ApiAttachmentGenericReference, ApiChannelAttachment, ApiChannelAttachmentsPage, ApiChannelContextMessage, ApiChannelDetail, ApiChannelListMessage, ApiChannelListPage, ApiChannelListParticipant, ApiChannelListType, ApiChannelMessage, ApiChannelMessageKind, ApiChannelMessagesPage, ApiChannelParticipant, ApiChannelWithLatest, ApiCountedReaction, ApiEntityFilterAst, ApiGroupByField, ApiGroupMeta, ApiMessageAttachment, ApiMessageSender, ApiMessageSenderType, ApiParticipantListRole, ApiParticipantRole, ApiPropertyEntityType, ApiResolvedChannelMessage, ApiThreadInfo, ApiThreadReply, AttendeeResponseStatus, BasicDocument, BasicDocumentSubType, BomPart, Bot, BotChannel, BotChannelType, BotId, BotKind, BotOwner, BotToken, BranchNameResponse, BTreeMap, BulkWakeupRequest, BulkWakeupResponse, BulkWakeupSyncServiceDocumentsData, BulkWakeupSyncServiceDocumentsErrors, BulkWakeupSyncServiceDocumentsResponse, BulkWakeupSyncServiceDocumentsResponses, CalendarAttendee, CalendarEvent, CalendarEventFilters, CalendarOccurrence, CalendarOccurrenceItem, CalendarOccurrenceResponse, CalendarSyncStatus, CallActiveResponse, CallFilters, CallRecord, CallRecordParticipant, CallRecordPreview, CallRecordPreviewData, CallRecordTranscriptSegment, CallStatus, CallTokenResponse, CallWebhookData, CallWebhookError, CallWebhookErrors, CallWebhookResponses, Channel, ChannelCreatedMetadata, ChannelDeletedMetadata, ChannelEventAttachment, ChannelFilters, ChannelJoinCodeResponse, ChannelMentionedMetadata, ChannelMessage, ChannelMessageAttachmentCreatedMetadata, ChannelMessageAttachmentRemovedMetadata, ChannelMessageDeletedMetadata, ChannelMessageFilters, ChannelMessagePatchedMetadata, ChannelMessagePostedMetadata, ChannelParticipant, ChannelParticipantAddedMetadata, ChannelParticipantRemovedMetadata, ChannelPreview, ChannelPreviewData, ChannelSender, ChannelSharePermission, ChannelThreadFilters, ChannelTopicEvent, ChannelType, ChannelUpdatedMetadata, ChannelWebhookRequest, ChannelWebhookResponse, ChannelWithParticipants, Chat, ChatFilters, CheckActiveCallData, CheckActiveCallError, CheckActiveCallErrors, CheckActiveCallResponse, CheckActiveCallResponses, ClientOptions, CloudStorageItemType, Comment, CommentThread, ConferenceProvider, CopyDocumentData, CopyDocumentError, CopyDocumentErrors, CopyDocumentQueryParams, CopyDocumentRequest, CopyDocumentResponse, CopyDocumentResponse2, CopyDocumentResponses, CreateAnchorData, CreateAnchorError, CreateAnchorErrors, CreateAnchorResponse, CreateAnchorResponses, CreateBulkDocumentResponse, CreateBulkDocumentResponseData, CreateChannelData, CreateChannelError, CreateChannelErrors, CreateChannelRequest, CreateChannelResponse, CreateChannelResponse2, CreateChannelResponses, CreateChannelScopedBotData, CreateChannelScopedBotError, CreateChannelScopedBotErrors, CreateChannelScopedBotRequest, CreateChannelScopedBotResponse, CreateChannelScopedBotResponse2, CreateChannelScopedBotResponses, CreateCommentData, CreateCommentError, CreateCommentErrors, CreateCommentRequest, CreateCommentResponse, CreateCommentResponse2, CreateCommentResponses, CreateCrmCommentData, CreateCrmCommentError, CreateCrmCommentErrors, CreateCrmCommentRequest, CreateCrmCommentResponse, CreateCrmCommentResponses, CreateCrmCompanyData, CreateCrmCompanyError, CreateCrmCompanyErrors, CreateCrmCompanyRequest, CreateCrmCompanyResponse, CreateCrmCompanyResponses, CreateCrmContactData, CreateCrmContactError, CreateCrmContactErrors, CreateCrmContactRequest, CreateCrmContactResponse, CreateCrmContactResponses, CreateDocumentData, CreateDocumentError, CreateDocumentErrors, CreateDocumentRequest, CreateDocumentResponse, CreateDocumentResponseData, CreateDocumentResponses, CreateEntityMentionData, CreateEntityMentionError, CreateEntityMentionErrors, CreateEntityMentionRequest, CreateEntityMentionResponse, CreateEntityMentionResponse2, CreateEntityMentionResponses, CreateInstructionsDocumentResponse, CreateInstructionsHandlerData, CreateInstructionsHandlerError, CreateInstructionsHandlerErrors, CreateInstructionsHandlerResponse, CreateInstructionsHandlerResponses, CreateMarkdownDocumentRequest, CreateMarkdownDocumentResponse, CreateMarkdownHandlerData, CreateMarkdownHandlerError, CreateMarkdownHandlerErrors, CreateMarkdownHandlerResponse, CreateMarkdownHandlerResponses, CreateProjectHandlerData, CreateProjectHandlerError, CreateProjectHandlerErrors, CreateProjectHandlerResponse, CreateProjectHandlerResponses, CreateProjectRequest, CreateProjectResponse, CreateReminderData, CreateReminderError, CreateReminderErrors, CreateReminderRequest, CreateReminderResponse, CreateReminderResponses, CreateSkillHandlerData, CreateSkillHandlerError, CreateSkillHandlerErrors, CreateSkillHandlerResponse, CreateSkillHandlerResponses, CreateSkillRequest, CreateSkillResponse, CreateSnippetHandlerData, CreateSnippetHandlerError, CreateSnippetHandlerErrors, CreateSnippetHandlerResponse, CreateSnippetHandlerResponses, CreateSnippetRequest, CreateSnippetResponse, CreateTaskHandlerData, CreateTaskHandlerError, CreateTaskHandlerErrors, CreateTaskHandlerResponse, CreateTaskHandlerResponses, CreateTaskRequest, CreateTaskResponse, CreateUnthreadedAnchorRequest, CreateUnthreadedAnchorResponse, CreateUnthreadedPdfAnchorRequest, CreateViewHandlerData, CreateViewHandlerError, CreateViewHandlerErrors, CreateViewHandlerResponse, CreateViewHandlerResponses, CreateViewRequest, CreateWebhookData, CreateWebhookError, CreateWebhookErrors, CreateWebhookRequest, CreateWebhookResponse, CreateWebhookResponse2, CreateWebhookResponses, CrmComment, CrmCommentEntityType, CrmCommentThread, CrmCompanyFilters, CrmCompanyResponse, CrmContactResponse, CrmDomainResponse, CrmPermissionRole, CrmTeamSettingsResponse, CrmThread, CustomSpeakerAssignment, DataType, DeleteAnchorData, DeleteAnchorError, DeleteAnchorErrors, DeleteAnchorInfo, DeleteAnchorResponse, DeleteAnchorResponses, DeleteCallRecordData, DeleteCallRecordError, DeleteCallRecordErrors, DeleteCallRecordResponse, DeleteCallRecordResponses, DeleteChannelData, DeleteChannelError, DeleteChannelErrors, DeleteChannelResponse, DeleteChannelResponses, DeleteCommentData, DeleteCommentError, DeleteCommentErrors, DeleteCommentRequest, DeleteCommentResponse, DeleteCommentResponse2, DeleteCommentResponses, DeleteCrmCommentData, DeleteCrmCommentError, DeleteCrmCommentErrors, DeleteCrmCommentResponse, DeleteCrmCommentResponses, DeleteCrmCommentResult, DeleteDocumentData, DeleteDocumentError, DeleteDocumentErrors, DeleteDocumentResponse, DeleteDocumentResponses, DeleteEntityMentionData, DeleteEntityMentionError, DeleteEntityMentionErrors, DeleteEntityMentionResponse, DeleteEntityMentionResponse2, DeleteEntityMentionResponses, DeleteHistoryHandlerData, DeleteHistoryHandlerError, DeleteHistoryHandlerErrors, DeleteHistoryHandlerResponse, DeleteHistoryHandlerResponses, DeleteMessageData, DeleteMessageError, DeleteMessageErrors, DeleteMessageQuery, DeleteMessageResponse, DeleteMessageResponses, DeleteProjectHandlerData, DeleteProjectHandlerError, DeleteProjectHandlerErrors, DeleteProjectHandlerResponse, DeleteProjectHandlerResponses, DeleteReminderData, DeleteReminderError, DeleteReminderErrors, DeleteReminderResponse, DeleteReminderResponses, DeleteThreadInfo, DeleteUnthreadedAnchorRequest, DeleteUnthreadedAnchorResponse, DeleteUnthreadedPdfAnchorRequest, DeleteUserDocumentViewLocationData, DeleteUserDocumentViewLocationError, DeleteUserDocumentViewLocationErrors, DeleteUserDocumentViewLocationResponse, DeleteUserDocumentViewLocationResponses, DeleteViewHandlerData, DeleteViewHandlerError, DeleteViewHandlerErrors, DeleteViewHandlerResponses, DeleteWebhookData, DeleteWebhookError, DeleteWebhookErrors, DeleteWebhookResponse, DeleteWebhookResponses, DocumentBasic, DocumentContent, DocumentContentLocation, DocumentContentState, DocumentContentUploadedMetadata, DocumentCopiedMetadata, DocumentCreatedMetadata, DocumentDeletedMetadata, DocumentFilters, DocumentInteractionMetadata, DocumentMetadata, DocumentMetadataWithContent, DocumentPermissionsToken, DocumentPermissionsTokenRequest, DocumentPermissionsTokenResponse, DocumentPreview, DocumentPreviewData, DocumentPreviewDataSubType, DocumentPurgedMetadata, DocumentResponse, DocumentResponseMetadata, DocumentResponseMetadataWithContent, DocumentStorageServiceApiVersion, DocumentSubType, DocumentSyncContentUpdatedMetadata, DocumentTeamShareResponse, DocumentTopicEvent, DocumentUpdatedMetadata, EditAnchorData, EditAnchorError, EditAnchorErrors, EditAnchorRequest, EditAnchorResponse, EditAnchorResponse2, EditAnchorResponses, EditCallRecordData, EditCallRecordError, EditCallRecordErrors, EditCallRecordRequest, EditCallRecordResponse, EditCallRecordResponses, EditCallTranscriptData, EditCallTranscriptError, EditCallTranscriptErrors, EditCallTranscriptRequest, EditCallTranscriptResponse, EditCallTranscriptResponses, EditCommentData, EditCommentError, EditCommentErrors, EditCommentRequest, EditCommentResponse, EditCommentResponse2, EditCommentResponses, EditCrmCommentData, EditCrmCommentError, EditCrmCommentErrors, EditCrmCommentRequest, EditCrmCommentResponse, EditCrmCommentResponses, EditDocumentData, EditDocumentError, EditDocumentErrors, EditDocumentResponse, EditDocumentResponse2, EditDocumentResponses, EditDocumentServiceArgs, EditPdfAnchorRequest, EditPdfPlaceableCommentAnchorRequest, EditProjectV2Data, EditProjectV2Error, EditProjectV2Errors, EditProjectV2Response, EditProjectV2Responses, EditThreadV2Data, EditThreadV2Error, EditThreadV2Errors, EditThreadV2Response, EditThreadV2Responses, EmailFilters, EmptyResponse, EntityFilters, EntityPermission, EntityPermissionResponse, EntityReference, EntityType, ErrorResponse, EventReminderOverride, EventReminders, EventStatus, EventTime, EventTransparency, EventVisibility, ExcludedDefaultView, ExcludeDefaultViewHandlerData, ExcludeDefaultViewHandlerError, ExcludeDefaultViewHandlerErrors, ExcludeDefaultViewHandlerResponses, ExcludeDefaultViewRequest, ExportDocumentData, ExportDocumentError, ExportDocumentErrors, ExportDocumentResponse, ExportDocumentResponse2, ExportDocumentResponses, Favorite, FavoriteEntityRef, FavoritesList, FileSystemNodeWithIds, FileType, FileTypeUpdate, FolderItem, ForeignEntity, ForeignEntityFilters, GenericErrorResponse, GenericResponse, GenericSuccessResponse, GetActivitiesResponse, GetActivityData, GetActivityError, GetActivityErrors, GetActivityResponse, GetActivityResponses, GetAttachmentReferencesData, GetAttachmentReferencesError, GetAttachmentReferencesErrors, GetAttachmentReferencesResponse, GetAttachmentReferencesResponse2, GetAttachmentReferencesResponses, GetBatchCallRecordPreviewData, GetBatchCallRecordPreviewError, GetBatchCallRecordPreviewErrors, GetBatchCallRecordPreviewRequest, GetBatchCallRecordPreviewResponse, GetBatchCallRecordPreviewResponse2, GetBatchCallRecordPreviewResponses, GetBatchChannelPreviewData, GetBatchChannelPreviewError, GetBatchChannelPreviewErrors, GetBatchChannelPreviewRequest, GetBatchChannelPreviewResponse, GetBatchChannelPreviewResponse2, GetBatchChannelPreviewResponses, GetBatchPreviewHandlerData, GetBatchPreviewHandlerError, GetBatchPreviewHandlerErrors, GetBatchPreviewHandlerResponse, GetBatchPreviewHandlerResponses, GetBatchPreviewRequest, GetBatchPreviewResponse, GetBatchProjectPreviewData, GetBatchProjectPreviewError, GetBatchProjectPreviewErrors, GetBatchProjectPreviewRequest, GetBatchProjectPreviewResponse, GetBatchProjectPreviewResponse2, GetBatchProjectPreviewResponses, GetCallRecordData, GetCallRecordError, GetCallRecordErrors, GetCallRecordResponse, GetCallRecordResponses, GetChannelAttachmentsData, GetChannelAttachmentsError, GetChannelAttachmentsErrors, GetChannelAttachmentsResponse, GetChannelAttachmentsResponses, GetChannelData, GetChannelError, GetChannelErrors, GetChannelJoinLinkData, GetChannelJoinLinkError, GetChannelJoinLinkErrors, GetChannelJoinLinkResponse, GetChannelJoinLinkResponses, GetChannelMessagesData, GetChannelMessagesError, GetChannelMessagesErrors, GetChannelMessagesResponse, GetChannelMessagesResponses, GetChannelParticipantsData, GetChannelParticipantsError, GetChannelParticipantsErrors, GetChannelParticipantsResponse, GetChannelParticipantsResponses, GetChannelResponse, GetChannelResponses, GetChannelsData, GetChannelsError, GetChannelsErrors, GetChannelsResponse, GetChannelsResponses, GetCompanyData, GetCompanyError, GetCompanyErrors, GetCompanyResponse, GetCompanyResponses, GetContactData, GetContactError, GetContactErrors, GetContactResponse, GetContactResponses, GetCrmTeamSettingsData, GetCrmTeamSettingsError, GetCrmTeamSettingsErrors, GetCrmTeamSettingsResponse, GetCrmTeamSettingsResponses, GetDocumentAnchorsData, GetDocumentAnchorsError, GetDocumentAnchorsErrors, GetDocumentAnchorsResponse, GetDocumentAnchorsResponses, GetDocumentBranchNameData, GetDocumentBranchNameError, GetDocumentBranchNameErrors, GetDocumentBranchNameResponse, GetDocumentBranchNameResponses, GetDocumentByTeamSlugData, GetDocumentByTeamSlugError, GetDocumentByTeamSlugErrors, GetDocumentByTeamSlugResponse, GetDocumentByTeamSlugResponses, GetDocumentCommentsData, GetDocumentCommentsError, GetDocumentCommentsErrors, GetDocumentCommentsResponse, GetDocumentCommentsResponses, GetDocumentData, GetDocumentError, GetDocumentErrors, GetDocumentGithubPullRequestsData, GetDocumentGithubPullRequestsError, GetDocumentGithubPullRequestsErrors, GetDocumentGithubPullRequestsResponse, GetDocumentGithubPullRequestsResponses, GetDocumentKeyResponse, GetDocumentKeyResponseData, GetDocumentListHandlerData, GetDocumentListHandlerError, GetDocumentListHandlerErrors, GetDocumentListHandlerResponse, GetDocumentListHandlerResponses, GetDocumentListResult, GetDocumentLocationV3Data, GetDocumentLocationV3Error, GetDocumentLocationV3Errors, GetDocumentLocationV3Response, GetDocumentLocationV3Responses, GetDocumentPermissionsResponseDataV2, GetDocumentPermissionsTokenData, GetDocumentPermissionsTokenError, GetDocumentPermissionsTokenErrors, GetDocumentPermissionsTokenResponse, GetDocumentPermissionsTokenResponses, GetDocumentPermissionsV2Data, GetDocumentPermissionsV2Error, GetDocumentPermissionsV2Errors, GetDocumentPermissionsV2Response, GetDocumentPermissionsV2Responses, GetDocumentProcessingResult, GetDocumentProcessingResultData, GetDocumentProcessingResultError, GetDocumentProcessingResultErrors, GetDocumentProcessingResultResponse, GetDocumentProcessingResultResponse2, GetDocumentProcessingResultResponses, GetDocumentResponse, GetDocumentResponse2, GetDocumentResponseData, GetDocumentResponses, GetDocumentSearchResponse, GetDocumentShortIdData, GetDocumentShortIdError, GetDocumentShortIdErrors, GetDocumentShortIdResponse, GetDocumentShortIdResponses, GetDocumentsResponse, GetDocumentTeamShareData, GetDocumentTeamShareError, GetDocumentTeamShareErrors, GetDocumentTeamShareResponse, GetDocumentTeamShareResponses, GetDocumentUserAccessLevelResponse, GetDocumentVersionData, GetDocumentVersionError, GetDocumentVersionErrors, GetDocumentVersionResponse, GetDocumentVersionResponses, GetDocumentViewsHandlerData, GetDocumentViewsHandlerError, GetDocumentViewsHandlerErrors, GetDocumentViewsHandlerResponse, GetDocumentViewsHandlerResponses, GetEntityPermissionData, GetEntityPermissionErrors, GetEntityPermissionResponse, GetEntityPermissionResponses, GetForeignEntityData, GetForeignEntityError, GetForeignEntityErrors, GetForeignEntityResponse, GetForeignEntityResponses, GetHistoryHandlerData, GetHistoryHandlerError, GetHistoryHandlerErrors, GetHistoryHandlerResponse, GetHistoryHandlerResponses, GetInstructionsDocumentResponse, GetInstructionsHandlerData, GetInstructionsHandlerError, GetInstructionsHandlerErrors, GetInstructionsHandlerResponse, GetInstructionsHandlerResponses, GetItemsSoupData, GetItemsSoupError, GetItemsSoupErrors, GetItemsSoupResponse, GetItemsSoupResponses, GetLocationHandlerData, GetLocationHandlerError, GetLocationHandlerErrors, GetLocationHandlerResponse, GetLocationHandlerResponses, GetMessageWithContextData, GetMessageWithContextError, GetMessageWithContextErrors, GetMessageWithContextResponse, GetMessageWithContextResponse2, GetMessageWithContextResponses, GetOrCreateAction, GetOrCreateCallData, GetOrCreateCallError, GetOrCreateCallErrors, GetOrCreateCallResponse, GetOrCreateCallResponses, GetOrCreateChannelResponse, GetOrCreateDmData, GetOrCreateDmError, GetOrCreateDmErrors, GetOrCreateDmRequest, GetOrCreateDmResponse, GetOrCreateDmResponses, GetOrCreatePrivateData, GetOrCreatePrivateError, GetOrCreatePrivateErrors, GetOrCreatePrivateRequest, GetOrCreatePrivateResponse, GetOrCreatePrivateResponses, GetPendingProjectsHandlerData, GetPendingProjectsHandlerError, GetPendingProjectsHandlerErrors, GetPendingProjectsHandlerResponse, GetPendingProjectsHandlerResponses, GetPinsHandlerData, GetPinsHandlerError, GetPinsHandlerErrors, GetPinsHandlerResponse, GetPinsHandlerResponses, GetPinsResponse, GetProjectContentHandlerData, GetProjectContentHandlerError, GetProjectContentHandlerErrors, GetProjectContentHandlerResponse, GetProjectContentHandlerResponses, GetProjectContentResponse, GetProjectHandlerData, GetProjectHandlerError, GetProjectHandlerErrors, GetProjectHandlerResponse, GetProjectHandlerResponses, GetProjectPermissionsV2Data, GetProjectPermissionsV2Error, GetProjectPermissionsV2Errors, GetProjectPermissionsV2Response, GetProjectPermissionsV2Responses, GetProjectResponse, GetProjectResponseData, GetProjectsHandlerData, GetProjectsHandlerError, GetProjectsHandlerErrors, GetProjectsHandlerResponse, GetProjectsHandlerResponses, GetProjectsResponse, GetProjectUserAccessLevelData, GetProjectUserAccessLevelError, GetProjectUserAccessLevelErrors, GetProjectUserAccessLevelResponse, GetProjectUserAccessLevelResponses, GetRecentActivityHandlerData, GetRecentActivityHandlerError, GetRecentActivityHandlerErrors, GetRecentActivityHandlerResponse, GetRecentActivityHandlerResponses, GetReminderData, GetReminderError, GetReminderErrors, GetReminderResponse, GetReminderResponses, GetRingStatusData, GetRingStatusError, GetRingStatusErrors, GetRingStatusResponse, GetRingStatusResponses, GetSelfBotData, GetSelfBotError, GetSelfBotErrors, GetSelfBotResponse, GetSelfBotResponses, GetSystemSkillsHandlerData, GetSystemSkillsHandlerError, GetSystemSkillsHandlerErrors, GetSystemSkillsHandlerResponse, GetSystemSkillsHandlerResponses, GetThreadRepliesData, GetThreadRepliesError, GetThreadRepliesErrors, GetThreadRepliesResponse, GetThreadRepliesResponses, GetUserDocumentsHandlerData, GetUserDocumentsHandlerError, GetUserDocumentsHandlerErrors, GetUserDocumentsHandlerResponse, GetUserDocumentsHandlerResponses, GetUserDocumentViewLocationData, GetUserDocumentViewLocationError, GetUserDocumentViewLocationErrors, GetUserDocumentViewLocationResponse, GetUserDocumentViewLocationResponses, GetUserHistoryResponse, GetViewsHandlerData, GetViewsHandlerError, GetViewsHandlerErrors, GetViewsHandlerResponse, GetViewsHandlerResponses, GetWebhookData, GetWebhookError, GetWebhookErrors, GetWebhookResponse, GetWebhookResponses, GithubPullRequest, GithubPullRequestCheckRun, GithubPullRequestComment, GithubPullRequestsResponse, GroupedInitialParams, GroupedPageParams, GroupedSoupGroupPage, GroupedSoupInitialPage, GroupedSoupPage, GroupedSoupSort, HandlerData, HandlerError, HandlerErrors, HandlerResponse, HandlerResponses, HashMap, HealthHandlerData, HealthHandlerResponse, HealthHandlerResponses, HighlightType, IngestTranscriptData, IngestTranscriptError, IngestTranscriptErrors, IngestTranscriptResponses, InitializeUserDocumentsData, InitializeUserDocumentsError, InitializeUserDocumentsErrors, InitializeUserDocumentsResponse, InitializeUserDocumentsResponses, InstallSyncData, InstallSyncErrors, InteractionReason, Item, ItemWithUserAccessLevel, JobProcessingResultHandlerData, JobProcessingResultHandlerError, JobProcessingResultHandlerErrors, JobProcessingResultHandlerResponse, JobProcessingResultHandlerResponses, JoinChannelByCodeData, JoinChannelByCodeError, JoinChannelByCodeErrors, JoinChannelByCodeResponses, JoinChannelData, JoinChannelError, JoinChannelErrors, JoinChannelResponses, LatestMessage, LeaveCallResponse, LeaveChannelData, LeaveChannelError, LeaveChannelErrors, LeaveChannelResponses, LeaveOrEndCallData, LeaveOrEndCallError, LeaveOrEndCallErrors, LeaveOrEndCallResponse, LeaveOrEndCallResponses, LinkShare, ListBotChannelsData, ListBotChannelsError, ListBotChannelsErrors, ListBotChannelsResponse, ListBotChannelsResponses, ListCompanyContactsData, ListCompanyContactsError, ListCompanyContactsErrors, ListCompanyContactsResponse, ListCompanyContactsResponses, ListCrmCommentsData, ListCrmCommentsError, ListCrmCommentsErrors, ListCrmCommentsResponse, ListCrmCommentsResponses, ListFavoritesData, ListFavoritesError, ListFavoritesErrors, ListFavoritesResponse, ListFavoritesResponses, ListOccurrencesData, ListOccurrencesErrors, ListOccurrencesResponse, ListOccurrencesResponses, ListRemindersData, ListRemindersError, ListRemindersErrors, ListRemindersResponse, ListRemindersResponses, ListWebhooksData, ListWebhooksError, ListWebhooksErrors, ListWebhooksResponse, ListWebhooksResponse2, ListWebhooksResponses, LocationResponseData, LocationResponseV3, MacroUserIdStr, Mentions, NewChannelAttachment, NotificationFilters, Params, ParticipantRole, PatchChannelData, PatchChannelError, PatchChannelErrors, PatchChannelRequest, PatchChannelResponse, PatchChannelResponses, PatchMessageData, PatchMessageError, PatchMessageErrors, PatchMessageRequest, PatchMessageResponse, PatchMessageResponses, PatchProjectRequestV2, PatchThreadRequestV2, PatchViewHandlerData, PatchViewHandlerError, PatchViewHandlerErrors, PatchViewHandlerResponses, PatchWebhookData, PatchWebhookError, PatchWebhookErrors, PatchWebhookRequest, PatchWebhookResponse, PatchWebhookResponses, PdfAnchor, PdfAnchorId, PdfAnchorRequest, PdfHighlightAnchor, PdfHighlightAnchorRequest, PdfHighlightRect, PdfHighlightRectAnchorRequest, PdfPlaceableCommentAnchor, PdfPlaceableCommentAnchorRequest, PermanentlyDeleteDocumentData, PermanentlyDeleteDocumentError, PermanentlyDeleteDocumentErrors, PermanentlyDeleteDocumentResponse, PermanentlyDeleteDocumentResponses, PermanentlyDeleteProjectData, PermanentlyDeleteProjectError, PermanentlyDeleteProjectErrors, PermanentlyDeleteProjectResponse, PermanentlyDeleteProjectResponses, PinnedItem, PinRequest, PostActivityData, PostActivityError, PostActivityErrors, PostActivityRequest, PostActivityResponse, PostActivityResponses, PostChannelBotWebhookData, PostChannelBotWebhookError, PostChannelBotWebhookErrors, PostChannelBotWebhookResponse, PostChannelBotWebhookResponses, PostChannelMessagesData, PostChannelMessagesError, PostChannelMessagesErrors, PostChannelMessagesResponse, PostChannelMessagesResponses, PostGroupedSoupAstGroupPageRequest, PostGroupedSoupAstInitialRequest, PostGroupedSoupAstRequest, PostItemsSoupAstData, PostItemsSoupAstError, PostItemsSoupAstErrors, PostItemsSoupAstGroupedData, PostItemsSoupAstGroupedError, PostItemsSoupAstGroupedErrors, PostItemsSoupAstGroupedResponse, PostItemsSoupAstGroupedResponses, PostItemsSoupAstResponse, PostItemsSoupAstResponses, PostItemsSoupData, PostItemsSoupError, PostItemsSoupErrors, PostItemsSoupResponse, PostItemsSoupResponses, PostMessageData, PostMessageError, PostMessageErrors, PostMessageRequest, PostMessageResponse, PostMessageResponse2, PostMessageResponses, PostReactionData, PostReactionError, PostReactionErrors, PostReactionRequest, PostReactionResponse, PostReactionResponses, PostSoupAstRequest, PostSoupRequest, PostTypingData, PostTypingError, PostTypingErrors, PostTypingRequest, PostTypingResponse, PostTypingResponses, PresaveDocumentHandlerData, PresaveDocumentHandlerError, PresaveDocumentHandlerErrors, PresaveDocumentHandlerResponse, PresaveDocumentHandlerResponses, PreSaveDocumentRequest, PreSaveDocumentResponse, PreSaveDocumentResponseData, PresignedUrl, Project, ProjectDeleteResponseData, ProjectDocumentStatus, ProjectFilters, ProjectPreview, ProjectPreviewData, PropertyDefinition, PropertyFilter, PropertyInput, PropertyOwner, PropertyValue, PutCrmTeamSettingsData, PutCrmTeamSettingsError, PutCrmTeamSettingsErrors, PutCrmTeamSettingsResponse, PutCrmTeamSettingsResponses, ReactionAction, RecentlyDeletedData, RecentlyDeletedError, RecentlyDeletedErrors, RecentlyDeletedResponse, RecentlyDeletedResponseData, RecentlyDeletedResponses, Reminder, ReminderFilters, ReminderSchedule, RemindersList, RemoveBotFromChannelByBotData, RemoveBotFromChannelByBotError, RemoveBotFromChannelByBotErrors, RemoveBotFromChannelByBotResponse, RemoveBotFromChannelByBotResponses, RemoveFavoriteByEntityData, RemoveFavoriteByEntityError, RemoveFavoriteByEntityErrors, RemoveFavoriteByEntityResponses, RemoveParticipantsData, RemoveParticipantsError, RemoveParticipantsErrors, RemoveParticipantsRequest, RemoveParticipantsResponses, RemovePinHandlerData, RemovePinHandlerError, RemovePinHandlerErrors, RemovePinHandlerResponse, RemovePinHandlerResponses, ReorderFavoritesData, ReorderFavoritesError, ReorderFavoritesErrors, ReorderFavoritesRequest, ReorderFavoritesResponses, ReorderPinRequest, ReorderPinsHandlerData, ReorderPinsHandlerError, ReorderPinsHandlerErrors, ReorderPinsHandlerResponse, ReorderPinsHandlerResponses, ResolveChannelMessageData, ResolveChannelMessageError, ResolveChannelMessageErrors, ResolveChannelMessageResponse, ResolveChannelMessageResponses, RevertDeleteDocumentData, RevertDeleteDocumentError, RevertDeleteDocumentErrors, RevertDeleteDocumentResponse, RevertDeleteDocumentResponses, RevertDeleteProjectData, RevertDeleteProjectError, RevertDeleteProjectErrors, RevertDeleteProjectResponse, RevertDeleteProjectResponses, RingStatus, RingStatusResponse, S3ObjectInfo, SaveBomPart, SaveDocumentHandlerData, SaveDocumentHandlerError, SaveDocumentHandlerErrors, SaveDocumentHandlerResponse, SaveDocumentHandlerResponses, SaveDocumentRequest, SaveDocumentResponse, SaveDocumentResponseData, SetCompanyHiddenData, SetCompanyHiddenError, SetCompanyHiddenErrors, SetCompanyHiddenRequest, SetCompanyHiddenResponse, SetCompanyHiddenResponses, SetCompanyNameRequest, SetContactHiddenData, SetContactHiddenError, SetContactHiddenErrors, SetContactHiddenRequest, SetContactHiddenResponse, SetContactHiddenResponses, SetContactNameRequest, SetCrmCompanyNameData, SetCrmCompanyNameError, SetCrmCompanyNameErrors, SetCrmCompanyNameResponse, SetCrmCompanyNameResponses, SetCrmContactNameData, SetCrmContactNameError, SetCrmContactNameErrors, SetCrmContactNameResponse, SetCrmContactNameResponses, SetDocumentTeamShareData, SetDocumentTeamShareError, SetDocumentTeamShareErrors, SetDocumentTeamShareRequest, SetDocumentTeamShareResponse, SetDocumentTeamShareResponses, SetEmailSyncData, SetEmailSyncError, SetEmailSyncErrors, SetEmailSyncRequest, SetEmailSyncResponse, SetEmailSyncResponses, SetPropertyValue, SharedEmailFilter, SharePermissionV2, ShortIdResponse, SimpleMention, SimpleSaveData, SimpleSaveError, SimpleSaveErrors, SimpleSaveResponse, SimpleSaveResponses, SoupApiItem, SoupApiSort, SoupApiSortDirection, SoupAttachment, SoupCalendarEventSoupPropertiesField, SoupCalendarEventTime, SoupCallRecordParticipant, SoupCallRecordSoupPropertiesField, SoupChannel, SoupChannelThread, SoupChatSoupPropertiesField, SoupContact, SoupCountedReaction, SoupCrmCompanySoupPropertiesField, SoupCrmDomain, SoupDocumentSoupPropertiesField, SoupDocumentSubType, SoupEmailThreadPreview, SoupEnrichedEmailThreadPreviewSoupPropertiesField, SoupForeignEntity, SoupItem, SoupLabel, SoupLabelListVisibility, SoupLabelType, SoupMessageAttachment, SoupMessageListVisibility, SoupMessageSender, SoupMessageSenderType, SoupPage, SoupProjectSoupPropertiesField, SoupPropertiesField, SoupProperty, SoupReminderReference, SoupReminderSchedule, SoupReminderSoupPropertiesField, SoupThreadInfo, SoupThreadReply, StarterDocumentsResponse, String, SuccessResponse, SyncServiceVersionId, SystemSkillSummary, TagFilterMode, TaskFilters, TeamRole, Thread, ThreadResponse, ToggleShareWithTeamData, ToggleShareWithTeamError, ToggleShareWithTeamErrors, ToggleShareWithTeamResponse, ToggleShareWithTeamResponses, TranscriptSegmentRequest, TypedSuccessResponse, TypedSuccessResponseGetDocumentResponseData, TypingAction, UnthreadedPdfUuidRequest, UpdateChannelSharePermission, UpdateCrmTeamSettingsRequest, UpdateOperation, UpdateReminderData, UpdateReminderError, UpdateReminderErrors, UpdateReminderRequest, UpdateReminderResponse, UpdateReminderResponses, UpdateSharePermissionRequestV2, UploadDocumentStatus, UploadExtractFolderHandlerData, UploadExtractFolderHandlerError, UploadExtractFolderHandlerErrors, UploadExtractFolderHandlerResponse, UploadExtractFolderHandlerResponses, UploadExtractFolderRequest, UploadFolderHandlerData, UploadFolderHandlerError, UploadFolderHandlerErrors, UploadFolderHandlerResponse, UploadFolderHandlerResponses, UploadFolderRequest, UpsertHistoryHandlerData, UpsertHistoryHandlerError, UpsertHistoryHandlerErrors, UpsertHistoryHandlerResponse, UpsertHistoryHandlerResponses, UpsertUserDocumentViewLocationData, UpsertUserDocumentViewLocationError, UpsertUserDocumentViewLocationErrors, UpsertUserDocumentViewLocationRequest, UpsertUserDocumentViewLocationResponse, UpsertUserDocumentViewLocationResponses, UserActivitiesResponse, UserDocumentsResponse, UserDocumentViewLocation, UserDocumentViewLocationResponse, UserPinsResponse, UserViewsResponse, ValidateDocumentPermissionsTokenData, ValidateDocumentPermissionsTokenError, ValidateDocumentPermissionsTokenErrors, ValidateDocumentPermissionsTokenResponse, ValidateDocumentPermissionsTokenResponses, ValidateWebhookData, ValidateWebhookError, ValidateWebhookErrors, ValidateWebhookResponse, ValidateWebhookResponse2, ValidateWebhookResponses, Vec, View, ViewPatch, ViewsResponse, Webhook, WebhookEvent, WebhookFilter, WebhookScope, WebhookStatus, WebhookValidationTestEvent, WithCallId, WithChannelId, WithDocumentId, WithProjectId } from './types.gen';+export type { AccessLevel, ActivityType, AddFavoriteData, AddFavoriteError, AddFavoriteErrors, AddFavoriteRequest, AddFavoriteResponse, AddFavoriteResponses, AddParticipantsData, AddParticipantsError, AddParticipantsErrors, AddParticipantsRequest, AddParticipantsResponses, AddPinHandlerData, AddPinHandlerError, AddPinHandlerErrors, AddPinHandlerResponse, AddPinHandlerResponses, AddPinRequest, Anchor, AnchorId, AnchorRequest, AnchorResponse, AnnotationIncrementalUpdate, ApiActivity, ApiAttachmentChannelReference, ApiAttachmentEntityReference, ApiAttachmentGenericReference, ApiChannelAttachment, ApiChannelAttachmentsPage, ApiChannelContextMessage, ApiChannelDetail, ApiChannelListMessage, ApiChannelListPage, ApiChannelListParticipant, ApiChannelListType, ApiChannelMessage, ApiChannelMessageKind, ApiChannelMessagesPage, ApiChannelParticipant, ApiChannelWithLatest, ApiCountedReaction, ApiEntityFilterAst, ApiGroupByField, ApiGroupMeta, ApiMessageAttachment, ApiMessageSender, ApiMessageSenderType, ApiParticipantListRole, ApiParticipantRole, ApiPropertyEntityType, ApiResolvedChannelMessage, ApiThreadInfo, ApiThreadReply, AttendeeResponseStatus, BasicDocument, BasicDocumentSubType, BomPart, Bot, BotChannel, BotChannelType, BotId, BotKind, BotOwner, BotToken, BranchNameResponse, BTreeMap, BulkWakeupRequest, BulkWakeupResponse, BulkWakeupSyncServiceDocumentsData, BulkWakeupSyncServiceDocumentsErrors, BulkWakeupSyncServiceDocumentsResponse, BulkWakeupSyncServiceDocumentsResponses, CalendarAttendee, CalendarEvent, CalendarEventFilters, CalendarOccurrence, CalendarOccurrenceItem, CalendarOccurrenceResponse, CalendarSyncStatus, CallActiveResponse, CallFilters, CallRecord, CallRecordParticipant, CallRecordPreview, CallRecordPreviewData, CallRecordTranscriptSegment, CallStatus, CallTokenResponse, CallWebhookData, CallWebhookError, CallWebhookErrors, CallWebhookResponses, Channel, ChannelCreatedMetadata, ChannelDeletedMetadata, ChannelEventAttachment, ChannelFilters, ChannelJoinCodeResponse, ChannelMentionedMetadata, ChannelMessage, ChannelMessageAttachmentCreatedMetadata, ChannelMessageAttachmentRemovedMetadata, ChannelMessageDeletedMetadata, ChannelMessageFilters, ChannelMessagePatchedMetadata, ChannelMessagePostedMetadata, ChannelParticipant, ChannelParticipantAddedMetadata, ChannelParticipantRemovedMetadata, ChannelPreview, ChannelPreviewData, ChannelSender, ChannelSharePermission, ChannelThreadFilters, ChannelTopicEvent, ChannelType, ChannelUpdatedMetadata, ChannelWebhookRequest, ChannelWebhookResponse, ChannelWithParticipants, Chat, ChatFilters, CheckActiveCallData, CheckActiveCallError, CheckActiveCallErrors, CheckActiveCallResponse, CheckActiveCallResponses, ClientOptions, CloudStorageItemType, Comment, CommentThread, ConferenceProvider, CopyDocumentData, CopyDocumentError, CopyDocumentErrors, CopyDocumentQueryParams, CopyDocumentRequest, CopyDocumentResponse, CopyDocumentResponse2, CopyDocumentResponses, CreateAnchorData, CreateAnchorError, CreateAnchorErrors, CreateAnchorResponse, CreateAnchorResponses, CreateBulkDocumentResponse, CreateBulkDocumentResponseData, CreateChannelData, CreateChannelError, CreateChannelErrors, CreateChannelRequest, CreateChannelResponse, CreateChannelResponse2, CreateChannelResponses, CreateChannelScopedBotData, CreateChannelScopedBotError, CreateChannelScopedBotErrors, CreateChannelScopedBotRequest, CreateChannelScopedBotResponse, CreateChannelScopedBotResponse2, CreateChannelScopedBotResponses, CreateCommentData, CreateCommentError, CreateCommentErrors, CreateCommentRequest, CreateCommentResponse, CreateCommentResponse2, CreateCommentResponses, CreateCrmCommentData, CreateCrmCommentError, CreateCrmCommentErrors, CreateCrmCommentRequest, CreateCrmCommentResponse, CreateCrmCommentResponses, CreateCrmCompanyData, CreateCrmCompanyError, CreateCrmCompanyErrors, CreateCrmCompanyRequest, CreateCrmCompanyResponse, CreateCrmCompanyResponses, CreateCrmContactData, CreateCrmContactError, CreateCrmContactErrors, CreateCrmContactRequest, CreateCrmContactResponse, CreateCrmContactResponses, CreateDocumentData, CreateDocumentError, CreateDocumentErrors, CreateDocumentRequest, CreateDocumentResponse, CreateDocumentResponseData, CreateDocumentResponses, CreateEntityMentionData, CreateEntityMentionError, CreateEntityMentionErrors, CreateEntityMentionRequest, CreateEntityMentionResponse, CreateEntityMentionResponse2, CreateEntityMentionResponses, CreateInstructionsDocumentResponse, CreateInstructionsHandlerData, CreateInstructionsHandlerError, CreateInstructionsHandlerErrors, CreateInstructionsHandlerResponse, CreateInstructionsHandlerResponses, CreateMarkdownDocumentRequest, CreateMarkdownDocumentResponse, CreateMarkdownHandlerData, CreateMarkdownHandlerError, CreateMarkdownHandlerErrors, CreateMarkdownHandlerResponse, CreateMarkdownHandlerResponses, CreateProjectHandlerData, CreateProjectHandlerError, CreateProjectHandlerErrors, CreateProjectHandlerResponse, CreateProjectHandlerResponses, CreateProjectRequest, CreateProjectResponse, CreateReminderData, CreateReminderError, CreateReminderErrors, CreateReminderRequest, CreateReminderResponse, CreateReminderResponses, CreateSkillHandlerData, CreateSkillHandlerError, CreateSkillHandlerErrors, CreateSkillHandlerResponse, CreateSkillHandlerResponses, CreateSkillRequest, CreateSkillResponse, CreateSnippetHandlerData, CreateSnippetHandlerError, CreateSnippetHandlerErrors, CreateSnippetHandlerResponse, CreateSnippetHandlerResponses, CreateSnippetRequest, CreateSnippetResponse, CreateTaskHandlerData, CreateTaskHandlerError, CreateTaskHandlerErrors, CreateTaskHandlerResponse, CreateTaskHandlerResponses, CreateTaskRequest, CreateTaskResponse, CreateUnthreadedAnchorRequest, CreateUnthreadedAnchorResponse, CreateUnthreadedPdfAnchorRequest, CreateViewHandlerData, CreateViewHandlerError, CreateViewHandlerErrors, CreateViewHandlerResponse, CreateViewHandlerResponses, CreateViewRequest, CreateWebhookData, CreateWebhookError, CreateWebhookErrors, CreateWebhookRequest, CreateWebhookResponse, CreateWebhookResponse2, CreateWebhookResponses, CrmComment, CrmCommentEntityType, CrmCommentThread, CrmCompanyFilters, CrmCompanyResponse, CrmContactResponse, CrmDomainResponse, CrmPermissionRole, CrmTeamSettingsResponse, CrmThread, CustomSpeakerAssignment, DataType, DeleteAnchorData, DeleteAnchorError, DeleteAnchorErrors, DeleteAnchorInfo, DeleteAnchorResponse, DeleteAnchorResponses, DeleteCallRecordData, DeleteCallRecordError, DeleteCallRecordErrors, DeleteCallRecordResponse, DeleteCallRecordResponses, DeleteChannelData, DeleteChannelError, DeleteChannelErrors, DeleteChannelResponse, DeleteChannelResponses, DeleteCommentData, DeleteCommentError, DeleteCommentErrors, DeleteCommentRequest, DeleteCommentResponse, DeleteCommentResponse2, DeleteCommentResponses, DeleteCrmCommentData, DeleteCrmCommentError, DeleteCrmCommentErrors, DeleteCrmCommentResponse, DeleteCrmCommentResponses, DeleteCrmCommentResult, DeleteDocumentData, DeleteDocumentError, DeleteDocumentErrors, DeleteDocumentResponse, DeleteDocumentResponses, DeleteEntityMentionData, DeleteEntityMentionError, DeleteEntityMentionErrors, DeleteEntityMentionResponse, DeleteEntityMentionResponse2, DeleteEntityMentionResponses, DeleteHistoryHandlerData, DeleteHistoryHandlerError, DeleteHistoryHandlerErrors, DeleteHistoryHandlerResponse, DeleteHistoryHandlerResponses, DeleteMessageData, DeleteMessageError, DeleteMessageErrors, DeleteMessageQuery, DeleteMessageResponse, DeleteMessageResponses, DeleteProjectHandlerData, DeleteProjectHandlerError, DeleteProjectHandlerErrors, DeleteProjectHandlerResponse, DeleteProjectHandlerResponses, DeleteReminderData, DeleteReminderError, DeleteReminderErrors, DeleteReminderResponse, DeleteReminderResponses, DeleteThreadInfo, DeleteUnthreadedAnchorRequest, DeleteUnthreadedAnchorResponse, DeleteUnthreadedPdfAnchorRequest, DeleteUserDocumentViewLocationData, DeleteUserDocumentViewLocationError, DeleteUserDocumentViewLocationErrors, DeleteUserDocumentViewLocationResponse, DeleteUserDocumentViewLocationResponses, DeleteViewHandlerData, DeleteViewHandlerError, DeleteViewHandlerErrors, DeleteViewHandlerResponses, DeleteWebhookData, DeleteWebhookError, DeleteWebhookErrors, DeleteWebhookResponse, DeleteWebhookResponses, DocumentBasic, DocumentContent, DocumentContentLocation, DocumentContentState, DocumentContentUploadedMetadata, DocumentCopiedMetadata, DocumentCreatedMetadata, DocumentDeletedMetadata, DocumentFilters, DocumentInteractionMetadata, DocumentMetadata, DocumentMetadataWithContent, DocumentPermissionsToken, DocumentPermissionsTokenRequest, DocumentPermissionsTokenResponse, DocumentPreview, DocumentPreviewData, DocumentPreviewDataSubType, DocumentPurgedMetadata, DocumentResponse, DocumentResponseMetadata, DocumentResponseMetadataWithContent, DocumentStorageServiceApiVersion, DocumentSubType, DocumentSyncContentUpdatedMetadata, DocumentTeamShareResponse, DocumentTopicEvent, DocumentUpdatedMetadata, EditAnchorData, EditAnchorError, EditAnchorErrors, EditAnchorRequest, EditAnchorResponse, EditAnchorResponse2, EditAnchorResponses, EditCallRecordData, EditCallRecordError, EditCallRecordErrors, EditCallRecordRequest, EditCallRecordResponse, EditCallRecordResponses, EditCallTranscriptData, EditCallTranscriptError, EditCallTranscriptErrors, EditCallTranscriptRequest, EditCallTranscriptResponse, EditCallTranscriptResponses, EditCommentData, EditCommentError, EditCommentErrors, EditCommentRequest, EditCommentResponse, EditCommentResponse2, EditCommentResponses, EditCrmCommentData, EditCrmCommentError, EditCrmCommentErrors, EditCrmCommentRequest, EditCrmCommentResponse, EditCrmCommentResponses, EditDocumentData, EditDocumentError, EditDocumentErrors, EditDocumentResponse, EditDocumentResponse2, EditDocumentResponses, EditDocumentServiceArgs, EditPdfAnchorRequest, EditPdfPlaceableCommentAnchorRequest, EditProjectV2Data, EditProjectV2Error, EditProjectV2Errors, EditProjectV2Response, EditProjectV2Responses, EditThreadV2Data, EditThreadV2Error, EditThreadV2Errors, EditThreadV2Response, EditThreadV2Responses, EmailFilters, EmptyResponse, EntityFilters, EntityPermission, EntityPermissionResponse, EntityReference, EntityType, ErrorResponse, EventReminderOverride, EventReminders, EventStatus, EventTime, EventTransparency, EventVisibility, ExcludedDefaultView, ExcludeDefaultViewHandlerData, ExcludeDefaultViewHandlerError, ExcludeDefaultViewHandlerErrors, ExcludeDefaultViewHandlerResponses, ExcludeDefaultViewRequest, ExportDocumentData, ExportDocumentError, ExportDocumentErrors, ExportDocumentResponse, ExportDocumentResponse2, ExportDocumentResponses, Favorite, FavoriteEntityRef, FavoritesList, FileSystemNodeWithIds, FileType, FileTypeUpdate, FolderItem, ForeignEntity, ForeignEntityFilters, GenericErrorResponse, GenericResponse, GenericSuccessResponse, GetActivityData, GetActivityError, GetActivityErrors, GetActivityResponse, GetActivityResponses, GetAttachmentReferencesData, GetAttachmentReferencesError, GetAttachmentReferencesErrors, GetAttachmentReferencesResponse, GetAttachmentReferencesResponse2, GetAttachmentReferencesResponses, GetBatchCallRecordPreviewData, GetBatchCallRecordPreviewError, GetBatchCallRecordPreviewErrors, GetBatchCallRecordPreviewRequest, GetBatchCallRecordPreviewResponse, GetBatchCallRecordPreviewResponse2, GetBatchCallRecordPreviewResponses, GetBatchChannelPreviewData, GetBatchChannelPreviewError, GetBatchChannelPreviewErrors, GetBatchChannelPreviewRequest, GetBatchChannelPreviewResponse, GetBatchChannelPreviewResponse2, GetBatchChannelPreviewResponses, GetBatchPreviewHandlerData, GetBatchPreviewHandlerError, GetBatchPreviewHandlerErrors, GetBatchPreviewHandlerResponse, GetBatchPreviewHandlerResponses, GetBatchPreviewRequest, GetBatchPreviewResponse, GetBatchProjectPreviewData, GetBatchProjectPreviewError, GetBatchProjectPreviewErrors, GetBatchProjectPreviewRequest, GetBatchProjectPreviewResponse, GetBatchProjectPreviewResponse2, GetBatchProjectPreviewResponses, GetCallRecordData, GetCallRecordError, GetCallRecordErrors, GetCallRecordResponse, GetCallRecordResponses, GetChannelAttachmentsData, GetChannelAttachmentsError, GetChannelAttachmentsErrors, GetChannelAttachmentsResponse, GetChannelAttachmentsResponses, GetChannelData, GetChannelError, GetChannelErrors, GetChannelJoinLinkData, GetChannelJoinLinkError, GetChannelJoinLinkErrors, GetChannelJoinLinkResponse, GetChannelJoinLinkResponses, GetChannelMessagesData, GetChannelMessagesError, GetChannelMessagesErrors, GetChannelMessagesResponse, GetChannelMessagesResponses, GetChannelParticipantsData, GetChannelParticipantsError, GetChannelParticipantsErrors, GetChannelParticipantsResponse, GetChannelParticipantsResponses, GetChannelResponse, GetChannelResponses, GetChannelsData, GetChannelsError, GetChannelsErrors, GetChannelsResponse, GetChannelsResponses, GetCompanyData, GetCompanyError, GetCompanyErrors, GetCompanyResponse, GetCompanyResponses, GetContactData, GetContactError, GetContactErrors, GetContactResponse, GetContactResponses, GetCrmTeamSettingsData, GetCrmTeamSettingsError, GetCrmTeamSettingsErrors, GetCrmTeamSettingsResponse, GetCrmTeamSettingsResponses, GetDocumentAnchorsData, GetDocumentAnchorsError, GetDocumentAnchorsErrors, GetDocumentAnchorsResponse, GetDocumentAnchorsResponses, GetDocumentBranchNameData, GetDocumentBranchNameError, GetDocumentBranchNameErrors, GetDocumentBranchNameResponse, GetDocumentBranchNameResponses, GetDocumentByTeamSlugData, GetDocumentByTeamSlugError, GetDocumentByTeamSlugErrors, GetDocumentByTeamSlugResponse, GetDocumentByTeamSlugResponses, GetDocumentCommentsData, GetDocumentCommentsError, GetDocumentCommentsErrors, GetDocumentCommentsResponse, GetDocumentCommentsResponses, GetDocumentData, GetDocumentError, GetDocumentErrors, GetDocumentGithubPullRequestsData, GetDocumentGithubPullRequestsError, GetDocumentGithubPullRequestsErrors, GetDocumentGithubPullRequestsResponse, GetDocumentGithubPullRequestsResponses, GetDocumentKeyResponse, GetDocumentKeyResponseData, GetDocumentListHandlerData, GetDocumentListHandlerError, GetDocumentListHandlerErrors, GetDocumentListHandlerResponse, GetDocumentListHandlerResponses, GetDocumentListResult, GetDocumentLocationV3Data, GetDocumentLocationV3Error, GetDocumentLocationV3Errors, GetDocumentLocationV3Response, GetDocumentLocationV3Responses, GetDocumentPermissionsResponseDataV2, GetDocumentPermissionsTokenData, GetDocumentPermissionsTokenError, GetDocumentPermissionsTokenErrors, GetDocumentPermissionsTokenResponse, GetDocumentPermissionsTokenResponses, GetDocumentPermissionsV2Data, GetDocumentPermissionsV2Error, GetDocumentPermissionsV2Errors, GetDocumentPermissionsV2Response, GetDocumentPermissionsV2Responses, GetDocumentProcessingResult, GetDocumentProcessingResultData, GetDocumentProcessingResultError, GetDocumentProcessingResultErrors, GetDocumentProcessingResultResponse, GetDocumentProcessingResultResponse2, GetDocumentProcessingResultResponses, GetDocumentResponse, GetDocumentResponse2, GetDocumentResponseData, GetDocumentResponses, GetDocumentSearchResponse, GetDocumentShortIdData, GetDocumentShortIdError, GetDocumentShortIdErrors, GetDocumentShortIdResponse, GetDocumentShortIdResponses, GetDocumentsResponse, GetDocumentTeamShareData, GetDocumentTeamShareError, GetDocumentTeamShareErrors, GetDocumentTeamShareResponse, GetDocumentTeamShareResponses, GetDocumentUserAccessLevelResponse, GetDocumentVersionData, GetDocumentVersionError, GetDocumentVersionErrors, GetDocumentVersionResponse, GetDocumentVersionResponses, GetDocumentViewsHandlerData, GetDocumentViewsHandlerError, GetDocumentViewsHandlerErrors, GetDocumentViewsHandlerResponse, GetDocumentViewsHandlerResponses, GetEntityPermissionData, GetEntityPermissionErrors, GetEntityPermissionResponse, GetEntityPermissionResponses, GetForeignEntityData, GetForeignEntityError, GetForeignEntityErrors, GetForeignEntityResponse, GetForeignEntityResponses, GetHistoryHandlerData, GetHistoryHandlerError, GetHistoryHandlerErrors, GetHistoryHandlerResponse, GetHistoryHandlerResponses, GetInstructionsDocumentResponse, GetInstructionsHandlerData, GetInstructionsHandlerError, GetInstructionsHandlerErrors, GetInstructionsHandlerResponse, GetInstructionsHandlerResponses, GetItemsSoupData, GetItemsSoupError, GetItemsSoupErrors, GetItemsSoupResponse, GetItemsSoupResponses, GetLocationHandlerData, GetLocationHandlerError, GetLocationHandlerErrors, GetLocationHandlerResponse, GetLocationHandlerResponses, GetMessageWithContextData, GetMessageWithContextError, GetMessageWithContextErrors, GetMessageWithContextResponse, GetMessageWithContextResponse2, GetMessageWithContextResponses, GetOrCreateAction, GetOrCreateCallData, GetOrCreateCallError, GetOrCreateCallErrors, GetOrCreateCallResponse, GetOrCreateCallResponses, GetOrCreateChannelResponse, GetOrCreateDmData, GetOrCreateDmError, GetOrCreateDmErrors, GetOrCreateDmRequest, GetOrCreateDmResponse, GetOrCreateDmResponses, GetOrCreatePrivateData, GetOrCreatePrivateError, GetOrCreatePrivateErrors, GetOrCreatePrivateRequest, GetOrCreatePrivateResponse, GetOrCreatePrivateResponses, GetPendingProjectsHandlerData, GetPendingProjectsHandlerError, GetPendingProjectsHandlerErrors, GetPendingProjectsHandlerResponse, GetPendingProjectsHandlerResponses, GetPinsHandlerData, GetPinsHandlerError, GetPinsHandlerErrors, GetPinsHandlerResponse, GetPinsHandlerResponses, GetPinsResponse, GetProjectContentHandlerData, GetProjectContentHandlerError, GetProjectContentHandlerErrors, GetProjectContentHandlerResponse, GetProjectContentHandlerResponses, GetProjectContentResponse, GetProjectHandlerData, GetProjectHandlerError, GetProjectHandlerErrors, GetProjectHandlerResponse, GetProjectHandlerResponses, GetProjectPermissionsV2Data, GetProjectPermissionsV2Error, GetProjectPermissionsV2Errors, GetProjectPermissionsV2Response, GetProjectPermissionsV2Responses, GetProjectResponse, GetProjectResponseData, GetProjectsHandlerData, GetProjectsHandlerError, GetProjectsHandlerErrors, GetProjectsHandlerResponse, GetProjectsHandlerResponses, GetProjectsResponse, GetProjectUserAccessLevelData, GetProjectUserAccessLevelError, GetProjectUserAccessLevelErrors, GetProjectUserAccessLevelResponse, GetProjectUserAccessLevelResponses, GetReminderData, GetReminderError, GetReminderErrors, GetReminderResponse, GetReminderResponses, GetRingStatusData, GetRingStatusError, GetRingStatusErrors, GetRingStatusResponse, GetRingStatusResponses, GetSelfBotData, GetSelfBotError, GetSelfBotErrors, GetSelfBotResponse, GetSelfBotResponses, GetSystemSkillsHandlerData, GetSystemSkillsHandlerError, GetSystemSkillsHandlerErrors, GetSystemSkillsHandlerResponse, GetSystemSkillsHandlerResponses, GetThreadRepliesData, GetThreadRepliesError, GetThreadRepliesErrors, GetThreadRepliesResponse, GetThreadRepliesResponses, GetUserDocumentsHandlerData, GetUserDocumentsHandlerError, GetUserDocumentsHandlerErrors, GetUserDocumentsHandlerResponse, GetUserDocumentsHandlerResponses, GetUserDocumentViewLocationData, GetUserDocumentViewLocationError, GetUserDocumentViewLocationErrors, GetUserDocumentViewLocationResponse, GetUserDocumentViewLocationResponses, GetUserHistoryResponse, GetViewsHandlerData, GetViewsHandlerError, GetViewsHandlerErrors, GetViewsHandlerResponse, GetViewsHandlerResponses, GetWebhookData, GetWebhookError, GetWebhookErrors, GetWebhookResponse, GetWebhookResponses, GithubPullRequest, GithubPullRequestCheckRun, GithubPullRequestComment, GithubPullRequestsResponse, GroupedInitialParams, GroupedPageParams, GroupedSoupGroupPage, GroupedSoupInitialPage, GroupedSoupPage, GroupedSoupSort, HandlerData, HandlerError, HandlerErrors, HandlerResponse, HandlerResponses, HashMap, HealthHandlerData, HealthHandlerResponse, HealthHandlerResponses, HighlightType, IngestTranscriptData, IngestTranscriptError, IngestTranscriptErrors, IngestTranscriptResponses, InitializeUserDocumentsData, InitializeUserDocumentsError, InitializeUserDocumentsErrors, InitializeUserDocumentsResponse, InitializeUserDocumentsResponses, InstallSyncData, InstallSyncErrors, InteractionReason, Item, ItemWithUserAccessLevel, JobProcessingResultHandlerData, JobProcessingResultHandlerError, JobProcessingResultHandlerErrors, JobProcessingResultHandlerResponse, JobProcessingResultHandlerResponses, JoinChannelByCodeData, JoinChannelByCodeError, JoinChannelByCodeErrors, JoinChannelByCodeResponses, JoinChannelData, JoinChannelError, JoinChannelErrors, JoinChannelResponses, LatestMessage, LeaveCallResponse, LeaveChannelData, LeaveChannelError, LeaveChannelErrors, LeaveChannelResponses, LeaveOrEndCallData, LeaveOrEndCallError, LeaveOrEndCallErrors, LeaveOrEndCallResponse, LeaveOrEndCallResponses, LinkShare, ListBotChannelsData, ListBotChannelsError, ListBotChannelsErrors, ListBotChannelsResponse, ListBotChannelsResponses, ListCompanyContactsData, ListCompanyContactsError, ListCompanyContactsErrors, ListCompanyContactsResponse, ListCompanyContactsResponses, ListCrmCommentsData, ListCrmCommentsError, ListCrmCommentsErrors, ListCrmCommentsResponse, ListCrmCommentsResponses, ListFavoritesData, ListFavoritesError, ListFavoritesErrors, ListFavoritesResponse, ListFavoritesResponses, ListOccurrencesData, ListOccurrencesErrors, ListOccurrencesResponse, ListOccurrencesResponses, ListRemindersData, ListRemindersError, ListRemindersErrors, ListRemindersResponse, ListRemindersResponses, ListWebhooksData, ListWebhooksError, ListWebhooksErrors, ListWebhooksResponse, ListWebhooksResponse2, ListWebhooksResponses, LocationResponseData, LocationResponseV3, MacroUserIdStr, Mentions, NewChannelAttachment, NotificationFilters, Params, ParticipantRole, PatchChannelData, PatchChannelError, PatchChannelErrors, PatchChannelRequest, PatchChannelResponse, PatchChannelResponses, PatchMessageData, PatchMessageError, PatchMessageErrors, PatchMessageRequest, PatchMessageResponse, PatchMessageResponses, PatchProjectRequestV2, PatchThreadRequestV2, PatchViewHandlerData, PatchViewHandlerError, PatchViewHandlerErrors, PatchViewHandlerResponses, PatchWebhookData, PatchWebhookError, PatchWebhookErrors, PatchWebhookRequest, PatchWebhookResponse, PatchWebhookResponses, PdfAnchor, PdfAnchorId, PdfAnchorRequest, PdfHighlightAnchor, PdfHighlightAnchorRequest, PdfHighlightRect, PdfHighlightRectAnchorRequest, PdfPlaceableCommentAnchor, PdfPlaceableCommentAnchorRequest, PermanentlyDeleteDocumentData, PermanentlyDeleteDocumentError, PermanentlyDeleteDocumentErrors, PermanentlyDeleteDocumentResponse, PermanentlyDeleteDocumentResponses, PermanentlyDeleteProjectData, PermanentlyDeleteProjectError, PermanentlyDeleteProjectErrors, PermanentlyDeleteProjectResponse, PermanentlyDeleteProjectResponses, PinnedItem, PinRequest, PostActivityData, PostActivityError, PostActivityErrors, PostActivityRequest, PostActivityResponse, PostActivityResponses, PostChannelBotWebhookData, PostChannelBotWebhookError, PostChannelBotWebhookErrors, PostChannelBotWebhookResponse, PostChannelBotWebhookResponses, PostChannelMessagesData, PostChannelMessagesError, PostChannelMessagesErrors, PostChannelMessagesResponse, PostChannelMessagesResponses, PostGroupedSoupAstGroupPageRequest, PostGroupedSoupAstInitialRequest, PostGroupedSoupAstRequest, PostItemsSoupAstData, PostItemsSoupAstError, PostItemsSoupAstErrors, PostItemsSoupAstGroupedData, PostItemsSoupAstGroupedError, PostItemsSoupAstGroupedErrors, PostItemsSoupAstGroupedResponse, PostItemsSoupAstGroupedResponses, PostItemsSoupAstResponse, PostItemsSoupAstResponses, PostItemsSoupData, PostItemsSoupError, PostItemsSoupErrors, PostItemsSoupResponse, PostItemsSoupResponses, PostMessageData, PostMessageError, PostMessageErrors, PostMessageRequest, PostMessageResponse, PostMessageResponse2, PostMessageResponses, PostReactionData, PostReactionError, PostReactionErrors, PostReactionRequest, PostReactionResponse, PostReactionResponses, PostSoupAstRequest, PostSoupRequest, PostTypingData, PostTypingError, PostTypingErrors, PostTypingRequest, PostTypingResponse, PostTypingResponses, PresaveDocumentHandlerData, PresaveDocumentHandlerError, PresaveDocumentHandlerErrors, PresaveDocumentHandlerResponse, PresaveDocumentHandlerResponses, PreSaveDocumentRequest, PreSaveDocumentResponse, PreSaveDocumentResponseData, PresignedUrl, Project, ProjectDeleteResponseData, ProjectDocumentStatus, ProjectFilters, ProjectPreview, ProjectPreviewData, PropertyDefinition, PropertyFilter, PropertyInput, PropertyOwner, PropertyValue, PutCrmTeamSettingsData, PutCrmTeamSettingsError, PutCrmTeamSettingsErrors, PutCrmTeamSettingsResponse, PutCrmTeamSettingsResponses, ReactionAction, RecentlyDeletedData, RecentlyDeletedError, RecentlyDeletedErrors, RecentlyDeletedResponse, RecentlyDeletedResponseData, RecentlyDeletedResponses, Reminder, ReminderFilters, ReminderSchedule, RemindersList, RemoveBotFromChannelByBotData, RemoveBotFromChannelByBotError, RemoveBotFromChannelByBotErrors, RemoveBotFromChannelByBotResponse, RemoveBotFromChannelByBotResponses, RemoveFavoriteByEntityData, RemoveFavoriteByEntityError, RemoveFavoriteByEntityErrors, RemoveFavoriteByEntityResponses, RemoveParticipantsData, RemoveParticipantsError, RemoveParticipantsErrors, RemoveParticipantsRequest, RemoveParticipantsResponses, RemovePinHandlerData, RemovePinHandlerError, RemovePinHandlerErrors, RemovePinHandlerResponse, RemovePinHandlerResponses, ReorderFavoritesData, ReorderFavoritesError, ReorderFavoritesErrors, ReorderFavoritesRequest, ReorderFavoritesResponses, ReorderPinRequest, ReorderPinsHandlerData, ReorderPinsHandlerError, ReorderPinsHandlerErrors, ReorderPinsHandlerResponse, ReorderPinsHandlerResponses, ResolveChannelMessageData, ResolveChannelMessageError, ResolveChannelMessageErrors, ResolveChannelMessageResponse, ResolveChannelMessageResponses, RevertDeleteDocumentData, RevertDeleteDocumentError, RevertDeleteDocumentErrors, RevertDeleteDocumentResponse, RevertDeleteDocumentResponses, RevertDeleteProjectData, RevertDeleteProjectError, RevertDeleteProjectErrors, RevertDeleteProjectResponse, RevertDeleteProjectResponses, RingStatus, RingStatusResponse, S3ObjectInfo, SaveBomPart, SaveDocumentHandlerData, SaveDocumentHandlerError, SaveDocumentHandlerErrors, SaveDocumentHandlerResponse, SaveDocumentHandlerResponses, SaveDocumentRequest, SaveDocumentResponse, SaveDocumentResponseData, SetCompanyHiddenData, SetCompanyHiddenError, SetCompanyHiddenErrors, SetCompanyHiddenRequest, SetCompanyHiddenResponse, SetCompanyHiddenResponses, SetCompanyNameRequest, SetContactHiddenData, SetContactHiddenError, SetContactHiddenErrors, SetContactHiddenRequest, SetContactHiddenResponse, SetContactHiddenResponses, SetContactNameRequest, SetCrmCompanyNameData, SetCrmCompanyNameError, SetCrmCompanyNameErrors, SetCrmCompanyNameResponse, SetCrmCompanyNameResponses, SetCrmContactNameData, SetCrmContactNameError, SetCrmContactNameErrors, SetCrmContactNameResponse, SetCrmContactNameResponses, SetDocumentTeamShareData, SetDocumentTeamShareError, SetDocumentTeamShareErrors, SetDocumentTeamShareRequest, SetDocumentTeamShareResponse, SetDocumentTeamShareResponses, SetEmailSyncData, SetEmailSyncError, SetEmailSyncErrors, SetEmailSyncRequest, SetEmailSyncResponse, SetEmailSyncResponses, SetPropertyValue, SharedEmailFilter, SharePermissionV2, ShortIdResponse, SimpleMention, SimpleSaveData, SimpleSaveError, SimpleSaveErrors, SimpleSaveResponse, SimpleSaveResponses, SoupApiItem, SoupApiSort, SoupApiSortDirection, SoupAttachment, SoupCalendarEventSoupPropertiesField, SoupCalendarEventTime, SoupCallRecordParticipant, SoupCallRecordSoupPropertiesField, SoupChannel, SoupChannelThread, SoupChatSoupPropertiesField, SoupContact, SoupCountedReaction, SoupCrmCompanySoupPropertiesField, SoupCrmDomain, SoupDocumentSoupPropertiesField, SoupDocumentSubType, SoupEmailThreadPreview, SoupEnrichedEmailThreadPreviewSoupPropertiesField, SoupForeignEntity, SoupItem, SoupLabel, SoupLabelListVisibility, SoupLabelType, SoupMessageAttachment, SoupMessageListVisibility, SoupMessageSender, SoupMessageSenderType, SoupPage, SoupProjectSoupPropertiesField, SoupPropertiesField, SoupProperty, SoupReminderReference, SoupReminderSchedule, SoupReminderSoupPropertiesField, SoupThreadInfo, SoupThreadReply, StarterDocumentsResponse, String, SuccessResponse, SyncServiceVersionId, SystemSkillSummary, TagFilterMode, TaskFilters, TeamRole, Thread, ThreadResponse, ToggleShareWithTeamData, ToggleShareWithTeamError, ToggleShareWithTeamErrors, ToggleShareWithTeamResponse, ToggleShareWithTeamResponses, TranscriptSegmentRequest, TypedSuccessResponse, TypedSuccessResponseGetDocumentResponseData, TypingAction, UnthreadedPdfUuidRequest, UpdateChannelSharePermission, UpdateCrmTeamSettingsRequest, UpdateOperation, UpdateReminderData, UpdateReminderError, UpdateReminderErrors, UpdateReminderRequest, UpdateReminderResponse, UpdateReminderResponses, UpdateSharePermissionRequestV2, UploadDocumentStatus, UploadExtractFolderHandlerData, UploadExtractFolderHandlerError, UploadExtractFolderHandlerErrors, UploadExtractFolderHandlerResponse, UploadExtractFolderHandlerResponses, UploadExtractFolderRequest, UploadFolderHandlerData, UploadFolderHandlerError, UploadFolderHandlerErrors, UploadFolderHandlerResponse, UploadFolderHandlerResponses, UploadFolderRequest, UpsertHistoryHandlerData, UpsertHistoryHandlerError, UpsertHistoryHandlerErrors, UpsertHistoryHandlerResponse, UpsertHistoryHandlerResponses, UpsertUserDocumentViewLocationData, UpsertUserDocumentViewLocationError, UpsertUserDocumentViewLocationErrors, UpsertUserDocumentViewLocationRequest, UpsertUserDocumentViewLocationResponse, UpsertUserDocumentViewLocationResponses, UserDocumentsResponse, UserDocumentViewLocation, UserDocumentViewLocationResponse, UserPinsResponse, UserViewsResponse, ValidateDocumentPermissionsTokenData, ValidateDocumentPermissionsTokenError, ValidateDocumentPermissionsTokenErrors, ValidateDocumentPermissionsTokenResponse, ValidateDocumentPermissionsTokenResponses, ValidateWebhookData, ValidateWebhookError, ValidateWebhookErrors, ValidateWebhookResponse, ValidateWebhookResponse2, ValidateWebhookResponses, Vec, View, ViewPatch, ViewsResponse, Webhook, WebhookEvent, WebhookFilter, WebhookScope, WebhookStatus, WebhookValidationTestEvent, WithCallId, WithChannelId, WithDocumentId, WithProjectId } from './types.gen';diff --git a/packages/sdk/generated/storage/sdk.gen.ts b/packages/sdk/generated/storage/sdk.gen.tsindex a5b935e2d9..006946ee41 100644--- a/packages/sdk/generated/storage/sdk.gen.ts+++ b/packages/sdk/generated/storage/sdk.gen.ts@@ -2,7 +2,7 @@import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client';import { client } from './client.gen';-import type { AddFavoriteData, AddFavoriteErrors, AddFavoriteResponses, AddParticipantsData, AddParticipantsErrors, AddParticipantsResponses, AddPinHandlerData, AddPinHandlerErrors, AddPinHandlerResponses, BulkWakeupSyncServiceDocumentsData, BulkWakeupSyncServiceDocumentsErrors, BulkWakeupSyncServiceDocumentsResponses, CallWebhookData, CallWebhookErrors, CallWebhookResponses, CheckActiveCallData, CheckActiveCallErrors, CheckActiveCallResponses, CopyDocumentData, CopyDocumentErrors, CopyDocumentResponses, CreateAnchorData, CreateAnchorErrors, CreateAnchorResponses, CreateChannelData, CreateChannelErrors, CreateChannelResponses, CreateChannelScopedBotData, CreateChannelScopedBotErrors, CreateChannelScopedBotResponses, CreateCommentData, CreateCommentErrors, CreateCommentResponses, CreateCrmCommentData, CreateCrmCommentErrors, CreateCrmCommentResponses, CreateCrmCompanyData, CreateCrmCompanyErrors, CreateCrmCompanyResponses, CreateCrmContactData, CreateCrmContactErrors, CreateCrmContactResponses, CreateDocumentData, CreateDocumentErrors, CreateDocumentResponses, CreateEntityMentionData, CreateEntityMentionErrors, CreateEntityMentionResponses, CreateInstructionsHandlerData, CreateInstructionsHandlerErrors, CreateInstructionsHandlerResponses, CreateMarkdownHandlerData, CreateMarkdownHandlerErrors, CreateMarkdownHandlerResponses, CreateProjectHandlerData, CreateProjectHandlerErrors, CreateProjectHandlerResponses, CreateReminderData, CreateReminderErrors, CreateReminderResponses, CreateSkillHandlerData, CreateSkillHandlerErrors, CreateSkillHandlerResponses, CreateSnippetHandlerData, CreateSnippetHandlerErrors, CreateSnippetHandlerResponses, CreateTaskHandlerData, CreateTaskHandlerErrors, CreateTaskHandlerResponses, CreateViewHandlerData, CreateViewHandlerErrors, CreateViewHandlerResponses, CreateWebhookData, CreateWebhookErrors, CreateWebhookResponses, DeleteAnchorData, DeleteAnchorErrors, DeleteAnchorResponses, DeleteCallRecordData, DeleteCallRecordErrors, DeleteCallRecordResponses, DeleteChannelData, DeleteChannelErrors, DeleteChannelResponses, DeleteCommentData, DeleteCommentErrors, DeleteCommentResponses, DeleteCrmCommentData, DeleteCrmCommentErrors, DeleteCrmCommentResponses, DeleteDocumentData, DeleteDocumentErrors, DeleteDocumentResponses, DeleteEntityMentionData, DeleteEntityMentionErrors, DeleteEntityMentionResponses, DeleteHistoryHandlerData, DeleteHistoryHandlerErrors, DeleteHistoryHandlerResponses, DeleteMessageData, DeleteMessageErrors, DeleteMessageResponses, DeleteProjectHandlerData, DeleteProjectHandlerErrors, DeleteProjectHandlerResponses, DeleteReminderData, DeleteReminderErrors, DeleteReminderResponses, DeleteUserDocumentViewLocationData, DeleteUserDocumentViewLocationErrors, DeleteUserDocumentViewLocationResponses, DeleteViewHandlerData, DeleteViewHandlerErrors, DeleteViewHandlerResponses, DeleteWebhookData, DeleteWebhookErrors, DeleteWebhookResponses, EditAnchorData, EditAnchorErrors, EditAnchorResponses, EditCallRecordData, EditCallRecordErrors, EditCallRecordResponses, EditCallTranscriptData, EditCallTranscriptErrors, EditCallTranscriptResponses, EditCommentData, EditCommentErrors, EditCommentResponses, EditCrmCommentData, EditCrmCommentErrors, EditCrmCommentResponses, EditDocumentData, EditDocumentErrors, EditDocumentResponses, EditProjectV2Data, EditProjectV2Errors, EditProjectV2Responses, EditThreadV2Data, EditThreadV2Errors, EditThreadV2Responses, ExcludeDefaultViewHandlerData, ExcludeDefaultViewHandlerErrors, ExcludeDefaultViewHandlerResponses, ExportDocumentData, ExportDocumentErrors, ExportDocumentResponses, GetActivityData, GetActivityErrors, GetActivityResponses, GetAttachmentReferencesData, GetAttachmentReferencesErrors, GetAttachmentReferencesResponses, GetBatchCallRecordPreviewData, GetBatchCallRecordPreviewErrors, GetBatchCallRecordPreviewResponses, GetBatchChannelPreviewData, GetBatchChannelPreviewErrors, GetBatchChannelPreviewResponses, GetBatchPreviewHandlerData, GetBatchPreviewHandlerErrors, GetBatchPreviewHandlerResponses, GetBatchProjectPreviewData, GetBatchProjectPreviewErrors, GetBatchProjectPreviewResponses, GetCallRecordData, GetCallRecordErrors, GetCallRecordResponses, GetChannelAttachmentsData, GetChannelAttachmentsErrors, GetChannelAttachmentsResponses, GetChannelData, GetChannelErrors, GetChannelJoinLinkData, GetChannelJoinLinkErrors, GetChannelJoinLinkResponses, GetChannelMessagesData, GetChannelMessagesErrors, GetChannelMessagesResponses, GetChannelParticipantsData, GetChannelParticipantsErrors, GetChannelParticipantsResponses, GetChannelResponses, GetChannelsData, GetChannelsErrors, GetChannelsResponses, GetCompanyData, GetCompanyErrors, GetCompanyResponses, GetContactData, GetContactErrors, GetContactResponses, GetCrmTeamSettingsData, GetCrmTeamSettingsErrors, GetCrmTeamSettingsResponses, GetDocumentAnchorsData, GetDocumentAnchorsErrors, GetDocumentAnchorsResponses, GetDocumentBranchNameData, GetDocumentBranchNameErrors, GetDocumentBranchNameResponses, GetDocumentByTeamSlugData, GetDocumentByTeamSlugErrors, GetDocumentByTeamSlugResponses, GetDocumentCommentsData, GetDocumentCommentsErrors, GetDocumentCommentsResponses, GetDocumentData, GetDocumentErrors, GetDocumentGithubPullRequestsData, GetDocumentGithubPullRequestsErrors, GetDocumentGithubPullRequestsResponses, GetDocumentListHandlerData, GetDocumentListHandlerErrors, GetDocumentListHandlerResponses, GetDocumentLocationV3Data, GetDocumentLocationV3Errors, GetDocumentLocationV3Responses, GetDocumentPermissionsTokenData, GetDocumentPermissionsTokenErrors, GetDocumentPermissionsTokenResponses, GetDocumentPermissionsV2Data, GetDocumentPermissionsV2Errors, GetDocumentPermissionsV2Responses, GetDocumentProcessingResultData, GetDocumentProcessingResultErrors, GetDocumentProcessingResultResponses, GetDocumentResponses, GetDocumentShortIdData, GetDocumentShortIdErrors, GetDocumentShortIdResponses, GetDocumentTeamShareData, GetDocumentTeamShareErrors, GetDocumentTeamShareResponses, GetDocumentVersionData, GetDocumentVersionErrors, GetDocumentVersionResponses, GetDocumentViewsHandlerData, GetDocumentViewsHandlerErrors, GetDocumentViewsHandlerResponses, GetEntityPermissionData, GetEntityPermissionErrors, GetEntityPermissionResponses, GetForeignEntityData, GetForeignEntityErrors, GetForeignEntityResponses, GetHistoryHandlerData, GetHistoryHandlerErrors, GetHistoryHandlerResponses, GetInstructionsHandlerData, GetInstructionsHandlerErrors, GetInstructionsHandlerResponses, GetItemsSoupData, GetItemsSoupErrors, GetItemsSoupResponses, GetLocationHandlerData, GetLocationHandlerErrors, GetLocationHandlerResponses, GetMessageWithContextData, GetMessageWithContextErrors, GetMessageWithContextResponses, GetOrCreateCallData, GetOrCreateCallErrors, GetOrCreateCallResponses, GetOrCreateDmData, GetOrCreateDmErrors, GetOrCreateDmResponses, GetOrCreatePrivateData, GetOrCreatePrivateErrors, GetOrCreatePrivateResponses, GetPendingProjectsHandlerData, GetPendingProjectsHandlerErrors, GetPendingProjectsHandlerResponses, GetPinsHandlerData, GetPinsHandlerErrors, GetPinsHandlerResponses, GetProjectContentHandlerData, GetProjectContentHandlerErrors, GetProjectContentHandlerResponses, GetProjectHandlerData, GetProjectHandlerErrors, GetProjectHandlerResponses, GetProjectPermissionsV2Data, GetProjectPermissionsV2Errors, GetProjectPermissionsV2Responses, GetProjectsHandlerData, GetProjectsHandlerErrors, GetProjectsHandlerResponses, GetProjectUserAccessLevelData, GetProjectUserAccessLevelErrors, GetProjectUserAccessLevelResponses, GetRecentActivityHandlerData, GetRecentActivityHandlerErrors, GetRecentActivityHandlerResponses, GetReminderData, GetReminderErrors, GetReminderResponses, GetRingStatusData, GetRingStatusErrors, GetRingStatusResponses, GetSelfBotData, GetSelfBotErrors, GetSelfBotResponses, GetSystemSkillsHandlerData, GetSystemSkillsHandlerErrors, GetSystemSkillsHandlerResponses, GetThreadRepliesData, GetThreadRepliesErrors, GetThreadRepliesResponses, GetUserDocumentsHandlerData, GetUserDocumentsHandlerErrors, GetUserDocumentsHandlerResponses, GetUserDocumentViewLocationData, GetUserDocumentViewLocationErrors, GetUserDocumentViewLocationResponses, GetViewsHandlerData, GetViewsHandlerErrors, GetViewsHandlerResponses, GetWebhookData, GetWebhookErrors, GetWebhookResponses, HandlerData, HandlerErrors, HandlerResponses, HealthHandlerData, HealthHandlerResponses, IngestTranscriptData, IngestTranscriptErrors, IngestTranscriptResponses, InitializeUserDocumentsData, InitializeUserDocumentsErrors, InitializeUserDocumentsResponses, InstallSyncData, InstallSyncErrors, JobProcessingResultHandlerData, JobProcessingResultHandlerErrors, JobProcessingResultHandlerResponses, JoinChannelByCodeData, JoinChannelByCodeErrors, JoinChannelByCodeResponses, JoinChannelData, JoinChannelErrors, JoinChannelResponses, LeaveChannelData, LeaveChannelErrors, LeaveChannelResponses, LeaveOrEndCallData, LeaveOrEndCallErrors, LeaveOrEndCallResponses, ListBotChannelsData, ListBotChannelsErrors, ListBotChannelsResponses, ListCompanyContactsData, ListCompanyContactsErrors, ListCompanyContactsResponses, ListCrmCommentsData, ListCrmCommentsErrors, ListCrmCommentsResponses, ListFavoritesData, ListFavoritesErrors, ListFavoritesResponses, ListOccurrencesData, ListOccurrencesErrors, ListOccurrencesResponses, ListRemindersData, ListRemindersErrors, ListRemindersResponses, ListWebhooksData, ListWebhooksErrors, ListWebhooksResponses, PatchChannelData, PatchChannelErrors, PatchChannelResponses, PatchMessageData, PatchMessageErrors, PatchMessageResponses, PatchViewHandlerData, PatchViewHandlerErrors, PatchViewHandlerResponses, PatchWebhookData, PatchWebhookErrors, PatchWebhookResponses, PermanentlyDeleteDocumentData, PermanentlyDeleteDocumentErrors, PermanentlyDeleteDocumentResponses, PermanentlyDeleteProjectData, PermanentlyDeleteProjectErrors, PermanentlyDeleteProjectResponses, PostActivityData, PostActivityErrors, PostActivityResponses, PostChannelBotWebhookData, PostChannelBotWebhookErrors, PostChannelBotWebhookResponses, PostChannelMessagesData, PostChannelMessagesErrors, PostChannelMessagesResponses, PostItemsSoupAstData, PostItemsSoupAstErrors, PostItemsSoupAstGroupedData, PostItemsSoupAstGroupedErrors, PostItemsSoupAstGroupedResponses, PostItemsSoupAstResponses, PostItemsSoupData, PostItemsSoupErrors, PostItemsSoupResponses, PostMessageData, PostMessageErrors, PostMessageResponses, PostReactionData, PostReactionErrors, PostReactionResponses, PostTypingData, PostTypingErrors, PostTypingResponses, PresaveDocumentHandlerData, PresaveDocumentHandlerErrors, PresaveDocumentHandlerResponses, PutCrmTeamSettingsData, PutCrmTeamSettingsErrors, PutCrmTeamSettingsResponses, RecentlyDeletedData, RecentlyDeletedErrors, RecentlyDeletedResponses, RemoveBotFromChannelByBotData, RemoveBotFromChannelByBotErrors, RemoveBotFromChannelByBotResponses, RemoveFavoriteByEntityData, RemoveFavoriteByEntityErrors, RemoveFavoriteByEntityResponses, RemoveParticipantsData, RemoveParticipantsErrors, RemoveParticipantsResponses, RemovePinHandlerData, RemovePinHandlerErrors, RemovePinHandlerResponses, ReorderFavoritesData, ReorderFavoritesErrors, ReorderFavoritesResponses, ReorderPinsHandlerData, ReorderPinsHandlerErrors, ReorderPinsHandlerResponses, ResolveChannelMessageData, ResolveChannelMessageErrors, ResolveChannelMessageResponses, RevertDeleteDocumentData, RevertDeleteDocumentErrors, RevertDeleteDocumentResponses, RevertDeleteProjectData, RevertDeleteProjectErrors, RevertDeleteProjectResponses, SaveDocumentHandlerData, SaveDocumentHandlerErrors, SaveDocumentHandlerResponses, SetCompanyHiddenData, SetCompanyHiddenErrors, SetCompanyHiddenResponses, SetContactHiddenData, SetContactHiddenErrors, SetContactHiddenResponses, SetCrmCompanyNameData, SetCrmCompanyNameErrors, SetCrmCompanyNameResponses, SetCrmContactNameData, SetCrmContactNameErrors, SetCrmContactNameResponses, SetDocumentTeamShareData, SetDocumentTeamShareErrors, SetDocumentTeamShareResponses, SetEmailSyncData, SetEmailSyncErrors, SetEmailSyncResponses, SimpleSaveData, SimpleSaveErrors, SimpleSaveResponses, ToggleShareWithTeamData, ToggleShareWithTeamErrors, ToggleShareWithTeamResponses, UpdateReminderData, UpdateReminderErrors, UpdateReminderResponses, UploadExtractFolderHandlerData, UploadExtractFolderHandlerErrors, UploadExtractFolderHandlerResponses, UploadFolderHandlerData, UploadFolderHandlerErrors, UploadFolderHandlerResponses, UpsertHistoryHandlerData, UpsertHistoryHandlerErrors, UpsertHistoryHandlerResponses, UpsertUserDocumentViewLocationData, UpsertUserDocumentViewLocationErrors, UpsertUserDocumentViewLocationResponses, ValidateDocumentPermissionsTokenData, ValidateDocumentPermissionsTokenErrors, ValidateDocumentPermissionsTokenResponses, ValidateWebhookData, ValidateWebhookErrors, ValidateWebhookResponses } from './types.gen';+import type { AddFavoriteData, AddFavoriteErrors, AddFavoriteResponses, AddParticipantsData, AddParticipantsErrors, AddParticipantsResponses, AddPinHandlerData, AddPinHandlerErrors, AddPinHandlerResponses, BulkWakeupSyncServiceDocumentsData, BulkWakeupSyncServiceDocumentsErrors, BulkWakeupSyncServiceDocumentsResponses, CallWebhookData, CallWebhookErrors, CallWebhookResponses, CheckActiveCallData, CheckActiveCallErrors, CheckActiveCallResponses, CopyDocumentData, CopyDocumentErrors, CopyDocumentResponses, CreateAnchorData, CreateAnchorErrors, CreateAnchorResponses, CreateChannelData, CreateChannelErrors, CreateChannelResponses, CreateChannelScopedBotData, CreateChannelScopedBotErrors, CreateChannelScopedBotResponses, CreateCommentData, CreateCommentErrors, CreateCommentResponses, CreateCrmCommentData, CreateCrmCommentErrors, CreateCrmCommentResponses, CreateCrmCompanyData, CreateCrmCompanyErrors, CreateCrmCompanyResponses, CreateCrmContactData, CreateCrmContactErrors, CreateCrmContactResponses, CreateDocumentData, CreateDocumentErrors, CreateDocumentResponses, CreateEntityMentionData, CreateEntityMentionErrors, CreateEntityMentionResponses, CreateInstructionsHandlerData, CreateInstructionsHandlerErrors, CreateInstructionsHandlerResponses, CreateMarkdownHandlerData, CreateMarkdownHandlerErrors, CreateMarkdownHandlerResponses, CreateProjectHandlerData, CreateProjectHandlerErrors, CreateProjectHandlerResponses, CreateReminderData, CreateReminderErrors, CreateReminderResponses, CreateSkillHandlerData, CreateSkillHandlerErrors, CreateSkillHandlerResponses, CreateSnippetHandlerData, CreateSnippetHandlerErrors, CreateSnippetHandlerResponses, CreateTaskHandlerData, CreateTaskHandlerErrors, CreateTaskHandlerResponses, CreateViewHandlerData, CreateViewHandlerErrors, CreateViewHandlerResponses, CreateWebhookData, CreateWebhookErrors, CreateWebhookResponses, DeleteAnchorData, DeleteAnchorErrors, DeleteAnchorResponses, DeleteCallRecordData, DeleteCallRecordErrors, DeleteCallRecordResponses, DeleteChannelData, DeleteChannelErrors, DeleteChannelResponses, DeleteCommentData, DeleteCommentErrors, DeleteCommentResponses, DeleteCrmCommentData, DeleteCrmCommentErrors, DeleteCrmCommentResponses, DeleteDocumentData, DeleteDocumentErrors, DeleteDocumentResponses, DeleteEntityMentionData, DeleteEntityMentionErrors, DeleteEntityMentionResponses, DeleteHistoryHandlerData, DeleteHistoryHandlerErrors, DeleteHistoryHandlerResponses, DeleteMessageData, DeleteMessageErrors, DeleteMessageResponses, DeleteProjectHandlerData, DeleteProjectHandlerErrors, DeleteProjectHandlerResponses, DeleteReminderData, DeleteReminderErrors, DeleteReminderResponses, DeleteUserDocumentViewLocationData, DeleteUserDocumentViewLocationErrors, DeleteUserDocumentViewLocationResponses, DeleteViewHandlerData, DeleteViewHandlerErrors, DeleteViewHandlerResponses, DeleteWebhookData, DeleteWebhookErrors, DeleteWebhookResponses, EditAnchorData, EditAnchorErrors, EditAnchorResponses, EditCallRecordData, EditCallRecordErrors, EditCallRecordResponses, EditCallTranscriptData, EditCallTranscriptErrors, EditCallTranscriptResponses, EditCommentData, EditCommentErrors, EditCommentResponses, EditCrmCommentData, EditCrmCommentErrors, EditCrmCommentResponses, EditDocumentData, EditDocumentErrors, EditDocumentResponses, EditProjectV2Data, EditProjectV2Errors, EditProjectV2Responses, EditThreadV2Data, EditThreadV2Errors, EditThreadV2Responses, ExcludeDefaultViewHandlerData, ExcludeDefaultViewHandlerErrors, ExcludeDefaultViewHandlerResponses, ExportDocumentData, ExportDocumentErrors, ExportDocumentResponses, GetActivityData, GetActivityErrors, GetActivityResponses, GetAttachmentReferencesData, GetAttachmentReferencesErrors, GetAttachmentReferencesResponses, GetBatchCallRecordPreviewData, GetBatchCallRecordPreviewErrors, GetBatchCallRecordPreviewResponses, GetBatchChannelPreviewData, GetBatchChannelPreviewErrors, GetBatchChannelPreviewResponses, GetBatchPreviewHandlerData, GetBatchPreviewHandlerErrors, GetBatchPreviewHandlerResponses, GetBatchProjectPreviewData, GetBatchProjectPreviewErrors, GetBatchProjectPreviewResponses, GetCallRecordData, GetCallRecordErrors, GetCallRecordResponses, GetChannelAttachmentsData, GetChannelAttachmentsErrors, GetChannelAttachmentsResponses, GetChannelData, GetChannelErrors, GetChannelJoinLinkData, GetChannelJoinLinkErrors, GetChannelJoinLinkResponses, GetChannelMessagesData, GetChannelMessagesErrors, GetChannelMessagesResponses, GetChannelParticipantsData, GetChannelParticipantsErrors, GetChannelParticipantsResponses, GetChannelResponses, GetChannelsData, GetChannelsErrors, GetChannelsResponses, GetCompanyData, GetCompanyErrors, GetCompanyResponses, GetContactData, GetContactErrors, GetContactResponses, GetCrmTeamSettingsData, GetCrmTeamSettingsErrors, GetCrmTeamSettingsResponses, GetDocumentAnchorsData, GetDocumentAnchorsErrors, GetDocumentAnchorsResponses, GetDocumentBranchNameData, GetDocumentBranchNameErrors, GetDocumentBranchNameResponses, GetDocumentByTeamSlugData, GetDocumentByTeamSlugErrors, GetDocumentByTeamSlugResponses, GetDocumentCommentsData, GetDocumentCommentsErrors, GetDocumentCommentsResponses, GetDocumentData, GetDocumentErrors, GetDocumentGithubPullRequestsData, GetDocumentGithubPullRequestsErrors, GetDocumentGithubPullRequestsResponses, GetDocumentListHandlerData, GetDocumentListHandlerErrors, GetDocumentListHandlerResponses, GetDocumentLocationV3Data, GetDocumentLocationV3Errors, GetDocumentLocationV3Responses, GetDocumentPermissionsTokenData, GetDocumentPermissionsTokenErrors, GetDocumentPermissionsTokenResponses, GetDocumentPermissionsV2Data, GetDocumentPermissionsV2Errors, GetDocumentPermissionsV2Responses, GetDocumentProcessingResultData, GetDocumentProcessingResultErrors, GetDocumentProcessingResultResponses, GetDocumentResponses, GetDocumentShortIdData, GetDocumentShortIdErrors, GetDocumentShortIdResponses, GetDocumentTeamShareData, GetDocumentTeamShareErrors, GetDocumentTeamShareResponses, GetDocumentVersionData, GetDocumentVersionErrors, GetDocumentVersionResponses, GetDocumentViewsHandlerData, GetDocumentViewsHandlerErrors, GetDocumentViewsHandlerResponses, GetEntityPermissionData, GetEntityPermissionErrors, GetEntityPermissionResponses, GetForeignEntityData, GetForeignEntityErrors, GetForeignEntityResponses, GetHistoryHandlerData, GetHistoryHandlerErrors, GetHistoryHandlerResponses, GetInstructionsHandlerData, GetInstructionsHandlerErrors, GetInstructionsHandlerResponses, GetItemsSoupData, GetItemsSoupErrors, GetItemsSoupResponses, GetLocationHandlerData, GetLocationHandlerErrors, GetLocationHandlerResponses, GetMessageWithContextData, GetMessageWithContextErrors, GetMessageWithContextResponses, GetOrCreateCallData, GetOrCreateCallErrors, GetOrCreateCallResponses, GetOrCreateDmData, GetOrCreateDmErrors, GetOrCreateDmResponses, GetOrCreatePrivateData, GetOrCreatePrivateErrors, GetOrCreatePrivateResponses, GetPendingProjectsHandlerData, GetPendingProjectsHandlerErrors, GetPendingProjectsHandlerResponses, GetPinsHandlerData, GetPinsHandlerErrors, GetPinsHandlerResponses, GetProjectContentHandlerData, GetProjectContentHandlerErrors, GetProjectContentHandlerResponses, GetProjectHandlerData, GetProjectHandlerErrors, GetProjectHandlerResponses, GetProjectPermissionsV2Data, GetProjectPermissionsV2Errors, GetProjectPermissionsV2Responses, GetProjectsHandlerData, GetProjectsHandlerErrors, GetProjectsHandlerResponses, GetProjectUserAccessLevelData, GetProjectUserAccessLevelErrors, GetProjectUserAccessLevelResponses, GetReminderData, GetReminderErrors, GetReminderResponses, GetRingStatusData, GetRingStatusErrors, GetRingStatusResponses, GetSelfBotData, GetSelfBotErrors, GetSelfBotResponses, GetSystemSkillsHandlerData, GetSystemSkillsHandlerErrors, GetSystemSkillsHandlerResponses, GetThreadRepliesData, GetThreadRepliesErrors, GetThreadRepliesResponses, GetUserDocumentsHandlerData, GetUserDocumentsHandlerErrors, GetUserDocumentsHandlerResponses, GetUserDocumentViewLocationData, GetUserDocumentViewLocationErrors, GetUserDocumentViewLocationResponses, GetViewsHandlerData, GetViewsHandlerErrors, GetViewsHandlerResponses, GetWebhookData, GetWebhookErrors, GetWebhookResponses, HandlerData, HandlerErrors, HandlerResponses, HealthHandlerData, HealthHandlerResponses, IngestTranscriptData, IngestTranscriptErrors, IngestTranscriptResponses, InitializeUserDocumentsData, InitializeUserDocumentsErrors, InitializeUserDocumentsResponses, InstallSyncData, InstallSyncErrors, JobProcessingResultHandlerData, JobProcessingResultHandlerErrors, JobProcessingResultHandlerResponses, JoinChannelByCodeData, JoinChannelByCodeErrors, JoinChannelByCodeResponses, JoinChannelData, JoinChannelErrors, JoinChannelResponses, LeaveChannelData, LeaveChannelErrors, LeaveChannelResponses, LeaveOrEndCallData, LeaveOrEndCallErrors, LeaveOrEndCallResponses, ListBotChannelsData, ListBotChannelsErrors, ListBotChannelsResponses, ListCompanyContactsData, ListCompanyContactsErrors, ListCompanyContactsResponses, ListCrmCommentsData, ListCrmCommentsErrors, ListCrmCommentsResponses, ListFavoritesData, ListFavoritesErrors, ListFavoritesResponses, ListOccurrencesData, ListOccurrencesErrors, ListOccurrencesResponses, ListRemindersData, ListRemindersErrors, ListRemindersResponses, ListWebhooksData, ListWebhooksErrors, ListWebhooksResponses, PatchChannelData, PatchChannelErrors, PatchChannelResponses, PatchMessageData, PatchMessageErrors, PatchMessageResponses, PatchViewHandlerData, PatchViewHandlerErrors, PatchViewHandlerResponses, PatchWebhookData, PatchWebhookErrors, PatchWebhookResponses, PermanentlyDeleteDocumentData, PermanentlyDeleteDocumentErrors, PermanentlyDeleteDocumentResponses, PermanentlyDeleteProjectData, PermanentlyDeleteProjectErrors, PermanentlyDeleteProjectResponses, PostActivityData, PostActivityErrors, PostActivityResponses, PostChannelBotWebhookData, PostChannelBotWebhookErrors, PostChannelBotWebhookResponses, PostChannelMessagesData, PostChannelMessagesErrors, PostChannelMessagesResponses, PostItemsSoupAstData, PostItemsSoupAstErrors, PostItemsSoupAstGroupedData, PostItemsSoupAstGroupedErrors, PostItemsSoupAstGroupedResponses, PostItemsSoupAstResponses, PostItemsSoupData, PostItemsSoupErrors, PostItemsSoupResponses, PostMessageData, PostMessageErrors, PostMessageResponses, PostReactionData, PostReactionErrors, PostReactionResponses, PostTypingData, PostTypingErrors, PostTypingResponses, PresaveDocumentHandlerData, PresaveDocumentHandlerErrors, PresaveDocumentHandlerResponses, PutCrmTeamSettingsData, PutCrmTeamSettingsErrors, PutCrmTeamSettingsResponses, RecentlyDeletedData, RecentlyDeletedErrors, RecentlyDeletedResponses, RemoveBotFromChannelByBotData, RemoveBotFromChannelByBotErrors, RemoveBotFromChannelByBotResponses, RemoveFavoriteByEntityData, RemoveFavoriteByEntityErrors, RemoveFavoriteByEntityResponses, RemoveParticipantsData, RemoveParticipantsErrors, RemoveParticipantsResponses, RemovePinHandlerData, RemovePinHandlerErrors, RemovePinHandlerResponses, ReorderFavoritesData, ReorderFavoritesErrors, ReorderFavoritesResponses, ReorderPinsHandlerData, ReorderPinsHandlerErrors, ReorderPinsHandlerResponses, ResolveChannelMessageData, ResolveChannelMessageErrors, ResolveChannelMessageResponses, RevertDeleteDocumentData, RevertDeleteDocumentErrors, RevertDeleteDocumentResponses, RevertDeleteProjectData, RevertDeleteProjectErrors, RevertDeleteProjectResponses, SaveDocumentHandlerData, SaveDocumentHandlerErrors, SaveDocumentHandlerResponses, SetCompanyHiddenData, SetCompanyHiddenErrors, SetCompanyHiddenResponses, SetContactHiddenData, SetContactHiddenErrors, SetContactHiddenResponses, SetCrmCompanyNameData, SetCrmCompanyNameErrors, SetCrmCompanyNameResponses, SetCrmContactNameData, SetCrmContactNameErrors, SetCrmContactNameResponses, SetDocumentTeamShareData, SetDocumentTeamShareErrors, SetDocumentTeamShareResponses, SetEmailSyncData, SetEmailSyncErrors, SetEmailSyncResponses, SimpleSaveData, SimpleSaveErrors, SimpleSaveResponses, ToggleShareWithTeamData, ToggleShareWithTeamErrors, ToggleShareWithTeamResponses, UpdateReminderData, UpdateReminderErrors, UpdateReminderResponses, UploadExtractFolderHandlerData, UploadExtractFolderHandlerErrors, UploadExtractFolderHandlerResponses, UploadFolderHandlerData, UploadFolderHandlerErrors, UploadFolderHandlerResponses, UpsertHistoryHandlerData, UpsertHistoryHandlerErrors, UpsertHistoryHandlerResponses, UpsertUserDocumentViewLocationData, UpsertUserDocumentViewLocationErrors, UpsertUserDocumentViewLocationResponses, ValidateDocumentPermissionsTokenData, ValidateDocumentPermissionsTokenErrors, ValidateDocumentPermissionsTokenResponses, ValidateWebhookData, ValidateWebhookErrors, ValidateWebhookResponses } from './types.gen';export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {/**@@ -57,15 +57,6 @@ export class Sdk extends HeyApiClient {Sdk.__registry.set(this, args?.key);}- /**- * Gets the users recent activities- *- * @deprecated- */- public getRecentActivityHandler<ThrowOnError extends boolean = false>(options: Options<GetRecentActivityHandlerData, ThrowOnError>): RequestResult<GetRecentActivityHandlerResponses, GetRecentActivityHandlerErrors, ThrowOnError> {- return (options.client ?? this.client).get<GetRecentActivityHandlerResponses, GetRecentActivityHandlerErrors, ThrowOnError>({ url: '/activity', ...options });- }-/*** Deletes a single unthreaded anchor for a document* If you need to delete a threaded anchor, see the delete comment handlerdiff --git a/packages/sdk/generated/storage/types.gen.ts b/packages/sdk/generated/storage/types.gen.tsindex 26305c6c5f..dc371d35ee 100644--- a/packages/sdk/generated/storage/types.gen.ts+++ b/packages/sdk/generated/storage/types.gen.ts@@ -9,12 +9,6 @@ export type ClientOptions = {*/export type AccessLevel = 'view' | 'comment' | 'edit' | 'owner';-export type Activity = {- Document: BasicDocument;-} | {- Chat: Chat;-};-/*** The kind of activity a user performs in a channel.*/@@ -4777,17 +4771,6 @@ export type GenericSuccessResponse = {success: boolean;};-/**- * @deprecated- */-export type GetActivitiesResponse = {- data?: null | UserActivitiesResponse;- /**- * Indicates if an error occurred- */- error: boolean;-};-/*** Response from the attachment-references endpoint.*/@@ -8002,24 +7985,6 @@ export type UpsertUserDocumentViewLocationRequest = {location: string;};-/**- * @deprecated- */-export type UserActivitiesResponse = {- /**- * The next offset to be used if there is one- */- next_offset?: number | null;- /**- * The activities returned from the query- */- recent: Array<Activity>;- /**- * The total number of activities the user has- */- total: number;-};-/*** The last place a user viewed a particular document at*/@@ -8261,36 +8226,6 @@ export type WithProjectId = {id: string;};-export type GetRecentActivityHandlerData = {- body?: never;- path?: never;- query: {- /**- * The maximum number of items to retreive. Default 10, max 100.- */- limit: number;- /**- * The offset to start from. Default 0.- */- offset: number;- };- url: '/activity';-};--export type GetRecentActivityHandlerErrors = {- 400: GenericErrorResponse;- 401: GenericErrorResponse;- 500: GenericErrorResponse;-};--export type GetRecentActivityHandlerError = GetRecentActivityHandlerErrors[keyof GetRecentActivityHandlerErrors];--export type GetRecentActivityHandlerResponses = {- 200: GetActivitiesResponse;-};--export type GetRecentActivityHandlerResponse = GetRecentActivityHandlerResponses[keyof GetRecentActivityHandlerResponses];-export type DeleteAnchorData = {body: DeleteUnthreadedAnchorRequest;path?: never;diff --git a/packages/sdk/specs/storage.json b/packages/sdk/specs/storage.jsonindex 2d7adb683c..f521f8691e 100644--- a/packages/sdk/specs/storage.json+++ b/packages/sdk/specs/storage.json@@ -10,78 +10,6 @@"version": "0.1.0"},"paths": {- "/activity": {- "get": {- "tags": ["activity::get_recent_activity"],- "summary": "Gets the users recent activities",- "operationId": "get_recent_activity_handler",- "parameters": [- {- "name": "limit",- "in": "query",- "description": "The maximum number of items to retreive. Default 10, max 100.",- "required": true,- "schema": {- "type": "integer",- "format": "int64"- }- },- {- "name": "offset",- "in": "query",- "description": "The offset to start from. Default 0.",- "required": true,- "schema": {- "type": "integer",- "format": "int64"- }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/GetActivitiesResponse"- }- }- }- },- "400": {- "description": "",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/GenericErrorResponse"- }- }- }- },- "401": {- "description": "",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/GenericErrorResponse"- }- }- }- },- "500": {- "description": "",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/GenericErrorResponse"- }- }- }- }- },- "deprecated": true- }- },"/annotations/anchors": {"delete": {"tags": ["annotations::delete_anchor"],@@ -11068,28 +10996,6 @@"description": "Ordered from least to most access top -> bottom","enum": ["view", "comment", "edit", "owner"]},- "Activity": {- "oneOf": [- {- "type": "object",- "required": ["Document"],- "properties": {- "Document": {- "$ref": "#/components/schemas/BasicDocument"- }- }- },- {- "type": "object",- "required": ["Chat"],- "properties": {- "Chat": {- "$ref": "#/components/schemas/Chat"- }- }- }- ]- },"ActivityType": {"type": "string","description": "The kind of activity a user performs in a channel.",@@ -18566,28 +18472,6 @@}}},- "GetActivitiesResponse": {- "type": "object",- "required": ["error"],- "properties": {- "data": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/UserActivitiesResponse",- "description": "Data to be returned"- }- ]- },- "error": {- "type": "boolean",- "description": "Indicates if an error occurred"- }- },- "deprecated": true- },"GetAttachmentReferencesResponse": {"type": "object","description": "Response from the attachment-references endpoint.",@@ -23924,30 +23808,6 @@}}},- "UserActivitiesResponse": {- "type": "object",- "required": ["recent", "total"],- "properties": {- "next_offset": {- "type": ["integer", "null"],- "format": "int64",- "description": "The next offset to be used if there is one"- },- "recent": {- "type": "array",- "items": {- "$ref": "#/components/schemas/Activity"- },- "description": "The activities returned from the query"- },- "total": {- "type": "integer",- "format": "int64",- "description": "The total number of activities the user has"- }- },- "deprecated": true- },"UserDocumentViewLocation": {"type": "object","description": "The last place a user viewed a particular document at",diff --git a/packages/sdk/src/coverage/skipped.ts b/packages/sdk/src/coverage/skipped.tsindex 5bb6096e5b..875f1fdd60 100644--- a/packages/sdk/src/coverage/skipped.ts+++ b/packages/sdk/src/coverage/skipped.ts@@ -304,7 +304,6 @@ export const storageBacklog = ['getEntityPermission','getProjectPermissionsV2','getProjectUserAccessLevel',- 'getRecentActivityHandler','getReminder','listOccurrences','listReminders',diff --git a/services/document_storage_service/src/api/activity/get_recent_activity.rs b/services/document_storage_service/src/api/activity/get_recent_activity.rsdeleted file mode 100644index a3cb65251e..0000000000--- a/services/document_storage_service/src/api/activity/get_recent_activity.rs+++ /dev/null@@ -1,90 +0,0 @@-#![allow(- deprecated,- reason = "allow GetActivitiesResponse & UserActivitiesResponse and mark get_recent_activity_handler for utoipa"-)]-use axum::{- extract::{Query, State},- http::StatusCode,- response::IntoResponse,-};--use crate::{- api::context::{ApiContext, AuthorizationService},- model::response::activity::{GetActivitiesResponse, UserActivitiesResponse},-};-use macro_authorization::{MacroAuthorizationExtractor, UserOrInternal};-use model::{- request::pagination::{Pagination, PaginationQueryParams},- response::{GenericErrorResponse, GenericResponse},-};--/// Gets the users recent activities-#[utoipa::path(- get,- path = "/activity",- params(- ("limit" = i64, Query, description = "The maximum number of items to retreive. Default 10, max 100."),- ("offset" = i64, Query, description = "The offset to start from. Default 0."),- ),- responses(- (status = 200, body=GetActivitiesResponse),- (status = 401, body=GenericErrorResponse),- (status = 400, body=GenericErrorResponse),- (status = 500, body=GenericErrorResponse),- )- )]-#[tracing::instrument(skip(ctx, user, pagination_query), fields(user_id=?user.authorization.user.macro_user_id))]-#[deprecated]-pub async fn get_recent_activity_handler(- State(ctx): State<ApiContext>,- user: MacroAuthorizationExtractor<AuthorizationService, UserOrInternal>,- Query(pagination_query): Query<PaginationQueryParams>,-) -> impl IntoResponse {- if let Some(limit) = pagination_query.limit- && limit > 100- {- tracing::warn!("exceeded max value for limit on activity limit={}", limit);- return GenericResponse::builder()- .message("limit must be less than or equal to 100")- .is_error(true)- .send(StatusCode::BAD_REQUEST);- }-- // Create the pagination object from the query parameters- let pagination = Pagination::from_query_params(pagination_query);-- let result = match macro_db_client::activity::get_recent_activities(- ctx.db.clone(),- user.authorization.user.macro_user_id.as_ref(),- pagination.limit,- pagination.offset,- )- .await- {- Ok(result) => result,- Err(e) => {- tracing::error!(error=?e, "error getting recent activities");- return GenericResponse::builder()- .message("error getting recent activity")- .is_error(true)- .send(StatusCode::INTERNAL_SERVER_ERROR);- }- };-- // Only include the next offset if there are more documents to fetch- let next_offset = if pagination.offset + pagination.limit < result.1 {- Some(pagination.offset + pagination.limit)- } else {- None- };-- let response_data = UserActivitiesResponse {- recent: result.0,- total: result.1,- next_offset,- };-- GenericResponse::builder()- .data(&response_data)- .send(StatusCode::OK)-}diff --git a/services/document_storage_service/src/api/activity/mod.rs b/services/document_storage_service/src/api/activity/mod.rsdeleted file mode 100644index 0111acb892..0000000000--- a/services/document_storage_service/src/api/activity/mod.rs+++ /dev/null@@ -1,12 +0,0 @@-use crate::api::context::ApiContext;-use axum::{Router, routing::get};--pub(in crate::api) mod get_recent_activity;--pub fn router() -> Router<ApiContext> {- Router::new().route(- "/",- #[expect(deprecated, reason = "get_recent_activity_handler")]- get(get_recent_activity::get_recent_activity_handler),- )-}diff --git a/services/document_storage_service/src/api/mod.rs b/services/document_storage_service/src/api/mod.rsindex 2b892f127a..d940221306 100644--- a/services/document_storage_service/src/api/mod.rs+++ b/services/document_storage_service/src/api/mod.rs@@ -25,7 +25,6 @@ pub(crate) mod util;mod middleware;// Routes-mod activity;mod annotations;mod documents;mod graphql_soup;@@ -151,7 +150,6 @@ fn api_router(state: ApiContext) -> Router {macro_middleware::connection_drop_prevention_handler,)),)- .nest("/activity", activity::router()).nest("/pins",pins::router().layer(axum::middleware::from_fn(diff --git a/services/document_storage_service/src/api/swagger.rs b/services/document_storage_service/src/api/swagger.rsindex 7ccefdc205..260c65ed17 100644--- a/services/document_storage_service/src/api/swagger.rs+++ b/services/document_storage_service/src/api/swagger.rs@@ -8,7 +8,7 @@ use crate::api::saved_views::{};use crate::{api::{- activity, annotations,+ annotations,documents::{self,export_document::ExportDocumentResponse,@@ -34,7 +34,6 @@ use crate::{pins::{AddPinRequest, PinRequest},},response::{- activity::{GetActivitiesResponse, UserActivitiesResponse},documents::{create::{CreateBulkDocumentResponse, CreateBulkDocumentResponseData},get::{@@ -83,7 +82,6 @@ use model::document::response::{DocumentResponseMetadata,};use model::{- activity::Activity,annotations::AnnotationIncrementalUpdate,chat::Chat,document::{@@ -144,9 +142,6 @@ use utoipa::OpenApi;health::health_handler,calendar_events::inbound::axum_router::list_occurrences,- // activity- activity::get_recent_activity::get_recent_activity_handler,-// annotationsannotations::get::get_document_comments_handler,annotations::get::get_document_anchors_handler,@@ -413,9 +408,6 @@ use utoipa::OpenApi;PreSaveDocumentRequest,PreSaveDocumentResponseData,PreSaveDocumentResponse, // pre save- GetActivitiesResponse,- UserActivitiesResponse,- Activity, // Get recent ativityPinnedItem,PinRequest, // Generic pinsAddPinRequest, // Add pindiff --git a/services/document_storage_service/src/model/response/activity/mod.rs b/services/document_storage_service/src/model/response/activity/mod.rsdeleted file mode 100644index 8ff8bbdc68..0000000000--- a/services/document_storage_service/src/model/response/activity/mod.rs+++ /dev/null@@ -1,26 +0,0 @@-#![allow(deprecated)]-use utoipa::ToSchema;--use model::activity::Activity;--#[derive(serde::Serialize, serde::Deserialize, Eq, PartialEq, Debug, ToSchema)]-#[deprecated]-pub struct UserActivitiesResponse {- /// The activities returned from the query- pub recent: Vec<Activity>,- /// The total number of activities the user has- pub total: i64,- /// The next offset to be used if there is one- #[serde(skip_serializing_if = "Option::is_none")]- pub next_offset: Option<i64>,-}--#[derive(serde::Serialize, serde::Deserialize, Debug, ToSchema)]-#[deprecated]-pub struct GetActivitiesResponse {- /// Indicates if an error occurred- pub error: bool,- /// Data to be returned- #[serde(skip_serializing_if = "Option::is_none")]- pub data: Option<UserActivitiesResponse>,-}diff --git a/services/document_storage_service/src/model/response/mod.rs b/services/document_storage_service/src/model/response/mod.rsindex 55644930e8..d33841ee76 100644--- a/services/document_storage_service/src/model/response/mod.rs+++ b/services/document_storage_service/src/model/response/mod.rs@@ -1,4 +1,3 @@-pub mod activity;pub mod annotations;pub mod documents;pub mod history;