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(notifications-inbox): add the unified Notifications view behind a flag (#8719)
teo45d9102dd4d9
diff --git a/apps/web/src/components/app/app-sidebar/sidebar-links.test.ts b/apps/web/src/components/app/app-sidebar/sidebar-links.test.tsnew file mode 100644index 0000000000..8dbe547d2c--- /dev/null+++ b/apps/web/src/components/app/app-sidebar/sidebar-links.test.ts@@ -0,0 +1,37 @@+import type { ValidHotkey } from '@core/hotkey/types';+import { describe, expect, it } from 'vitest';+import { buildSidebarLinks, type SidebarItem } from './sidebar';++const linksOnKey = (links: SidebarItem[], key: ValidHotkey) =>+ links+ .filter((link) => [link.hotkey].flat().includes(key))+ .map((link) => link.id);++describe('buildSidebarLinks', () => {+ it('sends g i to Notifications when it is on the rail', () => {+ const links = buildSidebarLinks(+ false,+ false,+ false,+ false,+ true,+ false,+ false+ );+ expect(linksOnKey(links, 'i')).toEqual(['notifications']);+ expect(linksOnKey(links, 'h')).toEqual(['home']);+ });++ it('keeps g i on Home without Notifications', () => {+ const links = buildSidebarLinks(+ false,+ false,+ false,+ false,+ false,+ false,+ false+ );+ expect(linksOnKey(links, 'i')).toEqual(['home']);+ });+});diff --git a/apps/web/src/components/app/app-sidebar/sidebar.tsx b/apps/web/src/components/app/app-sidebar/sidebar.tsxindex 00989f9b01..de53854642 100644--- a/apps/web/src/components/app/app-sidebar/sidebar.tsx+++ b/apps/web/src/components/app/app-sidebar/sidebar.tsx@@ -10,6 +10,7 @@ import { calendarPath } from '@app/features/calendar-view/calendar-url';import { CALENDAR_VIEW_ID } from '@app/features/calendar-view/types';import { requestSearchFocus } from '@app/features/next-soup/soup-view/search-controllers';import { useRecentViewFlag } from '@app/features/next-soup/use-recent-view-flag';+import { useUnifiedNotificationsFlag } from '@app/features/notifications-inbox/use-unified-notifications-flag';import {InviteModal,setInviteModalOpen,@@ -71,19 +72,25 @@ export interface SidebarItem {standaloneHotkey?: boolean;}-const SIDEBAR_LINKS = [- {- id: 'home',- get label() {- return isTouchDevice() ? t('nav.notifications') : t('nav.home');- },- href: LIST_VIEW_PATHS.home,- get icon() {- return isTouchDevice() ? BellIcon : HomeIcon;- },- hotkey: ['h', 'i'],- hotkeyToken: TOKENS.sidebar.goTo.home,+/**+ * Home answers `g i` too, unless the Notifications link is on the rail: two+ * links on one key run only the first, so `i` belongs to Notifications then.+ */+const homeLink = (hotkey: ValidHotkey | ValidHotkey[]): SidebarItem => ({+ id: 'home',+ get label() {+ return isTouchDevice() ? t('nav.notifications') : t('nav.home');},+ href: LIST_VIEW_PATHS.home,+ get icon() {+ return isTouchDevice() ? BellIcon : HomeIcon;+ },+ hotkey,+ hotkeyToken: TOKENS.sidebar.goTo.home,+});++const SIDEBAR_LINKS = [+ homeLink(['h', 'i']),{id: 'search',get label() {@@ -253,6 +260,7 @@ export const GoToHotkeys = () => {const activityFeedEnabled = useActivityFeedFlag();const recentViewEnabled = useRecentViewFlag();const reviews = useFeatureFlag(enableTasksReviews);+ const notificationsEnabled = useUnifiedNotificationsFlag();const external = useFeatureFlag(enableWhatsappLinked);const crm = useFeatureFlag(enableCrm);const links = createMemo((): SidebarItem[] =>@@ -261,6 +269,7 @@ export const GoToHotkeys = () => {activityFeedEnabled(),recentViewEnabled(),reviews().enabled,+ notificationsEnabled(),external().enabled,crm().enabled)@@ -419,6 +428,17 @@ const COMPANIES_LINK: SidebarItem = {hotkeyToken: TOKENS.sidebar.goTo.companies,};+const NOTIFICATIONS_LINK: SidebarItem = {+ id: 'notifications',+ get label() {+ return t('nav.notifications');+ },+ href: '/notifications',+ icon: BellIcon,+ hotkey: 'i',+ hotkeyToken: TOKENS.sidebar.goTo.notifications,+};+const ACTIVITY_LINK: SidebarItem = {id: 'activity',get label() {@@ -468,15 +488,17 @@ const EXTERNAL_LINK: SidebarItem = {/*** Assemble the ordered sidebar link list: the static links plus the- * flag-gated Recent, Activity, Calendar, Calls, Reviews, CRM, and External- * entries in their correct positions. Callers subscribe to the flags and pass- * them in, so a flag that resolves after mount still rebuilds the list.+ * flag-gated Notifications, Recent, Activity, Calendar, Calls, Reviews, CRM,+ * and External entries in their correct positions. Callers subscribe to the+ * flags and pass them in, so a flag that resolves after mount still rebuilds+ * the list.*/-const buildSidebarLinks = (+export const buildSidebarLinks = (showCalendar: boolean,showActivity: boolean,showRecent: boolean,showReviews: boolean,+ showNotifications: boolean,showExternal: boolean,showCustomers: boolean): SidebarItem[] => {@@ -489,8 +511,13 @@ const buildSidebarLinks = (links = [...links.slice(0, idx + 1), link, ...links.slice(idx + 1)];};- // Home leads; Recent and Activity follow it in that order.+ // Home leads; Notifications, Recent and Activity follow it in that order.let anchorId = 'home';+ if (showNotifications) {+ links = links.map((link) => (link.id === 'home' ? homeLink('h') : link));+ insertAfter(anchorId, NOTIFICATIONS_LINK);+ anchorId = 'notifications';+ }if (showRecent) {insertAfter(anchorId, RECENT_LINK);anchorId = 'recent';diff --git a/apps/web/src/components/app/mobile/use-mobile-nav.ts b/apps/web/src/components/app/mobile/use-mobile-nav.tsindex 4835284133..ed201422b4 100644--- a/apps/web/src/components/app/mobile/use-mobile-nav.ts+++ b/apps/web/src/components/app/mobile/use-mobile-nav.ts@@ -1,6 +1,7 @@import type { ListView } from '@app/constants/list-views';import { CALENDAR_VIEW_ID } from '@app/features/calendar-view/types';import type { MobileSearchRouteState } from '@app/features/command/mobile/mobile-search-route-state';+import { useUnifiedNotificationsFlag } from '@app/features/notifications-inbox/use-unified-notifications-flag';import {reviewsTabSearch,reviewsTabSearchCodec,@@ -67,6 +68,8 @@ export function useForegroundMobileView(): Accessor<const content = globalSplitManager()?.activeSplit()?.content();if (!content) return undefined;if (content.type !== 'component') return undefined;+ // The unified Notifications view is the dock's bell.+ if (content.id === 'notifications') return 'home';return isMobileNavViewId(content.id) ? content.id : undefined;});}@@ -81,13 +84,18 @@ export function useForegroundMobileView(): Accessor<export function useMobileNavNavigate(): (id: MobileDockNavId) => void {const { openWithSplit, replaceAllSplits } = useSplitLayout();const { toggleSettings } = useSettingsState();+ const unifiedNotifications = useUnifiedNotificationsFlag();return (id) => {if (id === 'settings') {toggleSettings();return;}- const content = mobileNavContent(id);+ // The bell labelled Notifications opens the unified view when it's on.+ const content =+ id === 'home' && unifiedNotifications()+ ? { type: 'component' as const, id: 'notifications' }+ : mobileNavContent(id);if (isNativeMobilePlatform()) {const routeState: MobileSearchRouteState | undefined =id === 'search' ? { sessionId: crypto.randomUUID() } : undefined;diff --git a/apps/web/src/components/app/sidebar-next/customize-sidebar-modal.test.tsx b/apps/web/src/components/app/sidebar-next/customize-sidebar-modal.test.tsxindex 81fd539098..272e0165c4 100644--- a/apps/web/src/components/app/sidebar-next/customize-sidebar-modal.test.tsx+++ b/apps/web/src/components/app/sidebar-next/customize-sidebar-modal.test.tsx@@ -43,6 +43,7 @@ function Modal() {openonOpenChange={() => {}}gates={{+ showNotifications: false,showCalendar: true,showScheduling: true,showCustomers: true,diff --git a/apps/web/src/components/app/sidebar-next/nav-items.test.ts b/apps/web/src/components/app/sidebar-next/nav-items.test.tsindex f6f11507f7..737b1654db 100644--- a/apps/web/src/components/app/sidebar-next/nav-items.test.ts+++ b/apps/web/src/components/app/sidebar-next/nav-items.test.ts@@ -16,6 +16,7 @@ const defaultPrefs = (overrides: Partial<SidebarPrefs> = {}): SidebarPrefs => ({});const defaultGates = (overrides: Partial<NavItemGates> = {}): NavItemGates => ({+ showNotifications: true,showCalendar: true,showScheduling: true,showCustomers: true,diff --git a/apps/web/src/components/app/sidebar-next/nav-items.ts b/apps/web/src/components/app/sidebar-next/nav-items.tsindex d6ef2ed615..ce10554ee3 100644--- a/apps/web/src/components/app/sidebar-next/nav-items.ts+++ b/apps/web/src/components/app/sidebar-next/nav-items.ts@@ -3,6 +3,7 @@ import { calendarPath } from '@app/features/calendar-view/calendar-url';import { t } from '@app/lib/i18n';import type { SidebarItem } from '@components/app/app-sidebar/sidebar';import { TOKENS } from '@core/hotkey/tokens';+import BellFillIcon from '@icon/system/fill/bell-fill.svg';import BuildingsFillIcon from '@icon/system/fill/buildings-fill.svg';import CalendarBlankFillIcon from '@icon/system/fill/calendar-blank-fill.svg';import ChatsCircleFillIcon from '@icon/system/fill/chats-circle-fill.svg';@@ -14,6 +15,7 @@ import ListChecksFillIcon from '@icon/system/fill/list-checks-fill.svg';import PhoneCallFillIcon from '@icon/system/fill/phone-call-fill.svg';import PlugFillIcon from '@icon/system/fill/plug-fill.svg';import AgentFillIcon from '@icon/system/fill/sparkle-fill.svg';+import BellIcon from '@icon/system/regular/bell.svg';import BuildingsIcon from '@icon/system/regular/buildings.svg';import CalendarBlankIcon from '@icon/system/regular/calendar-blank.svg';import CalendarCheckIcon from '@icon/system/regular/calendar-check.svg';@@ -72,6 +74,17 @@ export const SIDEBAR_NEXT_NAV_ITEMS = [hotkey: 'h',hotkeyToken: TOKENS.sidebar.goTo.home,},+ {+ id: 'notifications',+ get label() {+ return t('nav.notifications');+ },+ href: '/notifications',+ icon: BellIcon,+ iconActive: BellFillIcon,+ hotkey: 'i',+ hotkeyToken: TOKENS.sidebar.goTo.notifications,+ },{id: 'documents',get label() {@@ -204,6 +217,7 @@ export const SIDEBAR_NEXT_NAV_ITEMS = [/** Feature flag gates for sidebar destinations. */export type NavItemGates = {+ showNotifications: boolean;showCalendar: boolean;showScheduling: boolean;showCustomers: boolean;@@ -220,6 +234,7 @@ export const isNavItemAvailable = (item: SidebarNextNavItem,gates: NavItemGates): boolean => {+ if (item.id === 'notifications') return gates.showNotifications;if (item.id === 'calendar') return gates.showCalendar;if (item.id === 'booking-links') return gates.showScheduling;if (item.id === 'companies') return gates.showCustomers;diff --git a/apps/web/src/components/app/sidebar-next/use-nav-item-gates.ts b/apps/web/src/components/app/sidebar-next/use-nav-item-gates.tsindex 3ba317b335..2c06be817b 100644--- a/apps/web/src/components/app/sidebar-next/use-nav-item-gates.ts+++ b/apps/web/src/components/app/sidebar-next/use-nav-item-gates.ts@@ -1,5 +1,6 @@import { useActivityFeedFlag } from '@app/features/activity/use-activity-feed-flag';import { useCalendarUiFlag } from '@app/features/calendar/hooks/use-calendar-ui-flag';+import { useUnifiedNotificationsFlag } from '@app/features/notifications-inbox/use-unified-notifications-flag';import { useFeatureFlag } from '@app/lib/analytics/posthog';import {ENABLE_CALLS,@@ -18,6 +19,7 @@ import { useSidebarPrefs } from './use-sidebar-prefs';* agree about which apps exist.*/export function useNavItemGates(): Accessor<NavItemGates> {+ const notifications = useUnifiedNotificationsFlag();const calendar = useCalendarUiFlag();const scheduling = useFeatureFlag(enableCalendarScheduling);const crm = useFeatureFlag(enableCrm);@@ -27,6 +29,7 @@ export function useNavItemGates(): Accessor<NavItemGates> {const { prefs } = useSidebarPrefs();return createMemo(() => ({+ showNotifications: notifications(),showCalendar: calendar(),showScheduling: scheduling().enabled,showCustomers: crm().enabled,diff --git a/apps/web/src/components/app/split-layout/componentRegistry.tsx b/apps/web/src/components/app/split-layout/componentRegistry.tsxindex 8b98b3d5a1..e3c895f301 100644--- a/apps/web/src/components/app/split-layout/componentRegistry.tsx+++ b/apps/web/src/components/app/split-layout/componentRegistry.tsx@@ -42,6 +42,10 @@ const ActivityRouteView = lazyNamed(() => import('@app/features/activity/route-views'),'ActivityRouteView');+const NotificationsRouteView = lazyNamed(+ () => import('@app/features/notifications-inbox/route-views'),+ 'NotificationsRouteView'+);const AgentsRouteView = lazyNamed(() => import('@app/features/agents-view/route-views'),'AgentsRouteView'@@ -324,6 +328,11 @@ registerComponent(registerComponent(NOT_FOUND_ROUTE_ID, () => <NotFound />);registerComponent('recent', () => <RecentRouteView />);registerComponent('activity', () => <ActivityRouteView />);+registerComponent(+ 'notifications',+ () => <NotificationsRouteView />,+ () => composableLayout()+);registerComponent('routines',() => <AgentsRouteView />,diff --git a/apps/web/src/components/app/use-navigation-unread.ts b/apps/web/src/components/app/use-navigation-unread.tsindex 876915a111..966621d488 100644--- a/apps/web/src/components/app/use-navigation-unread.ts+++ b/apps/web/src/components/app/use-navigation-unread.ts@@ -98,7 +98,9 @@ export function useNavigationUnread() {});return (id: string): boolean => {- if (id === 'home') return homeUnread();+ // Notifications reads the same attention as Home's unread witness; a+ // second live feed here would only duplicate it.+ if (id === 'home' || id === 'notifications') return homeUnread();if (id === 'mail') return emailUnread();if (id === 'channels') return channelsUnread();return false;diff --git a/apps/web/src/features/home/work-feed/primitives/work-feed.test.ts b/apps/web/src/features/home/work-feed/primitives/work-feed.test.tsindex d244c1b668..08e993ac47 100644--- a/apps/web/src/features/home/work-feed/primitives/work-feed.test.ts+++ b/apps/web/src/features/home/work-feed/primitives/work-feed.test.ts@@ -1,8 +1,9 @@import type { EntityData } from '@entity';+import { ATTENTION_FEED_RESUBSCRIBE_DELAY_MS } from '@queries/attention-feed/live-attention-feed';+import { createFakeAttentionFeedClient } from '@queries/attention-feed/tests/fake-client';import { createRoot } from 'solid-js';import { afterEach, describe, expect, it, vi } from 'vitest';import type { WorkFeedPageState, WorkFeedScope } from '../core/work-feed';-import { createFakeWorkFeedClient } from '../tests/fake-client';import {documentEntry,invalidatedPatch,@@ -10,7 +11,7 @@ import {upsertedPatch,workFeedPage,} from '../tests/wire';-import { createWorkFeed, WORK_FEED_RESUBSCRIBE_DELAY_MS } from './work-feed';+import { createWorkFeed } from './work-feed';// Row mapping imports allBlocks, which loads every block module; one of them// opens a websocket that jsdom rejects after the test ends.@@ -50,7 +51,7 @@ function setup(mutationData: Record<string, unknown> = {},options: { cache?: boolean; state?: WorkFeedPageState } = {}) {- const fake = createFakeWorkFeedClient(mutationData);+ const fake = createFakeAttentionFeedClient(mutationData);const revalidateNotifications = vi.fn(async () => {});let feed!: ReturnType<typeof createWorkFeed>;const dispose = createRoot((rootDispose) => {@@ -307,7 +308,7 @@ describe('createWorkFeed', () => {await flush();fake.subscriptions[0].fail('work feed subscription ended');- await vi.advanceTimersByTimeAsync(WORK_FEED_RESUBSCRIBE_DELAY_MS - 1);+ await vi.advanceTimersByTimeAsync(ATTENTION_FEED_RESUBSCRIBE_DELAY_MS - 1);expect(fake.subscriptions).toHaveLength(1);const reads = fake.queries.length;diff --git a/apps/web/src/features/home/work-feed/primitives/work-feed.ts b/apps/web/src/features/home/work-feed/primitives/work-feed.tsindex 7e18b4a685..a0ba9a78b8 100644--- a/apps/web/src/features/home/work-feed/primitives/work-feed.ts+++ b/apps/web/src/features/home/work-feed/primitives/work-feed.ts@@ -6,16 +6,14 @@ import { fireAndForget } from '@core/util/fireAndForget';import type { EntityData } from '@entity';import type { CacheHost } from '@graphql-cache/host/types';import { setDoneOverride } from '@notifications/notification-source';-import type { WorkFeedPatchFieldsFragment } from '@service-storage/graphql/generated/graphql';-import type { Client } from '@urql/core';+import { createLiveAttentionFeed } from '@queries/attention-feed/live-attention-feed';import {- type Accessor,- createEffect,- createMemo,- createSignal,- on,- onCleanup,-} from 'solid-js';+ WorkFeedDocument,+ type WorkFeedPatchFieldsFragment,+ WorkFeedUpdatesDocument,+} from '@service-storage/graphql/generated/graphql';+import { type Client, stringifyDocument } from '@urql/core';+import { type Accessor, createMemo, createSignal } from 'solid-js';import {markWorkFeedDone,settleWorkFeedDone,@@ -27,7 +25,7 @@ import {withoutDoneWorkFeedEntries,workFeedEntityKey,} from '../core/work-feed';-import { writeWorkFeedPatches } from '../queries/work-feed-cache';+import { encodeWorkFeedScope } from '../queries/decode';import {markWorkFeedItemsDone,undoWorkFeedItemsDone,@@ -36,12 +34,7 @@ import {createWorkFeedQuery,workFeedPageVariables,} from '../queries/work-feed-query';-import { subscribeToWorkFeedUpdates } from '../queries/work-feed-updates';--/** First delay before following a feed again after its live stream ended. */-export const WORK_FEED_RESUBSCRIBE_DELAY_MS = 3_000;-/** Longest delay between attempts while the live stream keeps failing. */-export const WORK_FEED_MAX_RESUBSCRIBE_DELAY_MS = 60_000;+import { workFeedShape } from '../queries/work-feed-shape';export type WorkFeedOptions = {client: Accessor<Client>;@@ -57,6 +50,11 @@ export type WorkFeedOptions = {revalidateNotifications?: (client: Client) => Promise<void>;};+const workFeedCachedQuery = {+ query: stringifyDocument(WorkFeedDocument),+ operationName: 'WorkFeed',+};+/** Raw notification ids an entry's row shows, for local done overrides. */function notificationIds(entry: WorkFeedEntry): string[] {const notifications = entry.entity.notifications;@@ -66,10 +64,7 @@ function notificationIds(entry: WorkFeedEntry): string[] {}/**- * One live work feed. The server sends each change already placed in the- * feed, and the change is written into the cached pages, so the paged query- * shows it without a network read. The feed reads again only when changes- * may have been missed. Its `markDone` delegate completes rows as feed+ * One live Home work feed. Its `markDone` delegate completes rows as feed* items, hiding them until their removal arrives, with undo.*/export function createWorkFeed(options: WorkFeedOptions) {@@ -77,130 +72,44 @@ export function createWorkFeed(options: WorkFeedOptions) {const [done, setDone] = createSignal<WorkFeedDone>(new Map());const loaded = () => query.data?.entries ?? [];- // A read requested while one runs is followed by one more.- let refetching = false;- let refetchAgain = false;- const refetch = async () => {- if (refetching) {- refetchAgain = true;- return;- }- refetching = true;- try {- do {- refetchAgain = false;- await query.refetch({ requestPolicy: 'network-only' });- setDone((current) => settleWorkFeedDone(current, loaded()));- } while (refetchAgain);- } catch (error) {- console.warn('Work feed refresh failed', error);- } finally {- refetching = false;- }- };-- // Batches are written in arrival order, and only between page reads, so a- // read that started before a batch cannot land over it.- let pending: WorkFeedPatchFieldsFragment[] = [];- let writing = false;- const writePending = async () => {- if (writing || pending.length === 0 || query.isFetching) return;- const host = options.cacheHost();- const batch = pending;- pending = [];- // Without the cache there are no pages to place changes in.- if (!host) {- fireAndForget(refetch(), 'home');- return;- }- writing = true;- try {- const pages = query.data?.cursors ?? [];- const placed = await writeWorkFeedPatches(- host,- pages.map((cursor) =>- workFeedPageVariables(options.scope(), options.state(), cursor)- ),- batch- );- if (!placed) fireAndForget(refetch(), 'home');- } catch (error) {- console.warn('Work feed update failed', error);- fireAndForget(refetch(), 'home');- } finally {- writing = false;- fireAndForget(writePending(), 'home');- }- };- createEffect(- on(- () => query.isFetching,- (fetching) => {- if (!fetching) fireAndForget(writePending(), 'home');- }- )- );-- const applyPatches = (patches: readonly WorkFeedPatchFieldsFragment[]) => {+ const live = createLiveAttentionFeed({+ client: options.client,+ cacheHost: options.cacheHost,+ enabled: options.enabled,+ shape: workFeedShape,+ query,+ pages: {+ cachedQuery: workFeedCachedQuery,+ variables: (cursor) =>+ workFeedPageVariables(options.scope(), options.state(), cursor),+ },+ updates: {+ document: WorkFeedUpdatesDocument,+ patches: (data) => data.workFeedUpdates,+ variables: () => ({ scope: encodeWorkFeedScope(options.scope()) }),+ },+ onReconnected: options.onReconnected,// A done item that left the feed and returns with the reasons it// acknowledged was reopened, so it shows again; while it is still// loaded, the same revision is a change computed before the done.- const present = new Set(loaded().map((entry) => entry.itemId));- const reopened = patches.flatMap((patch) => {- if (patch.__typename !== 'WorkFeedEntryUpserted') return [];- const { item, revision } = patch.entry;- const acknowledged = done().get(item.id);- return acknowledged !== undefined &&- (acknowledged !== revision || !present.has(item.id))- ? [item.id]- : [];- });- if (reopened.length > 0) {- setDone((current) => unmarkWorkFeedDone(current, reopened));- }- pending.push(...patches);- fireAndForget(writePending(), 'home');- };-- // The live stream is an external system: follow it while the feed is- // enabled, and again with each new client or scope.- createEffect(() => {- if (!options.enabled()) return;- const client = options.client();- const scope = options.scope();- let disposed = false;- let retry: ReturnType<typeof setTimeout> | undefined;- let delay = WORK_FEED_RESUBSCRIBE_DELAY_MS;- let unsubscribe = () => {};- const follow = () => {- unsubscribe = subscribeToWorkFeedUpdates(client, scope, {- patches: (patches) => {- delay = WORK_FEED_RESUBSCRIBE_DELAY_MS;- applyPatches(patches);- },- interrupted: () => {- if (disposed) return;- retry = setTimeout(() => {- if (disposed) return;- follow();- // Changes made while the stream was down are only in a read.- fireAndForget(refetch(), 'home');- }, delay);- delay = Math.min(delay * 2, WORK_FEED_MAX_RESUBSCRIBE_DELAY_MS);- },+ onPatches: (patches) => {+ const present = new Set(loaded().map((entry) => entry.itemId));+ const reopened = patches.flatMap((patch) => {+ if (patch.__typename !== 'WorkFeedEntryUpserted') return [];+ const { item, revision } = patch.entry;+ const acknowledged = done().get(item.id);+ return acknowledged !== undefined &&+ (acknowledged !== revision || !present.has(item.id))+ ? [item.id]+ : [];});- };- follow();- const stopReconnects = options.onReconnected?.(() =>- fireAndForget(refetch(), 'home')- );- onCleanup(() => {- disposed = true;- pending = [];- if (retry !== undefined) clearTimeout(retry);- unsubscribe();- stopReconnects?.();- });+ if (reopened.length > 0) {+ setDone((current) => unmarkWorkFeedDone(current, reopened));+ }+ },+ onRefetched: () =>+ setDone((current) => settleWorkFeedDone(current, loaded())),+ surface: 'home',});const entries = createMemo(() =>@@ -261,14 +170,11 @@ export function createWorkFeed(options: WorkFeedOptions) {fireAndForget(options.revalidateNotifications?.(client), 'home');return {undo: async () => {- const patches = await undoWorkFeedItemsDone(- client,- undoToken,- scope- );+ const patches: WorkFeedPatchFieldsFragment[] =+ await undoWorkFeedItemsDone(client, undoToken, scope);fireAndForget(options.revalidateNotifications?.(client), 'home');// The restored places land now rather than with the stream.- applyPatches(patches);+ live.applyPatches(patches);},};},@@ -276,5 +182,5 @@ export function createWorkFeed(options: WorkFeedOptions) {};const markDone: MarkDoneDelegate = { canComplete, prepare };- return { query, entries, refetch, markDone };+ return { query, entries, refetch: live.refetch, markDone };}diff --git a/apps/web/src/features/home/work-feed/queries/decode.ts b/apps/web/src/features/home/work-feed/queries/decode.tsindex 876b2968ae..a029a8daab 100644--- a/apps/web/src/features/home/work-feed/queries/decode.ts+++ b/apps/web/src/features/home/work-feed/queries/decode.ts@@ -1,19 +1,13 @@import type { UnifiedNotification } from '@notifications/types';-import {- isDisplayableSoupItem,- mapApiSoupItemToEntity,-} from '@queries/soup/transform-utils';+import { attentionFeedSoupItem } from '@queries/attention-feed/attention-feed-entity';+import { mapApiSoupItemToEntity } from '@queries/soup/transform-utils';import type {WorkFeedItemState as GraphqlWorkFeedItemState,WorkFeedItemType as GraphqlWorkFeedItemType,WorkFeedEntryFieldsFragment,WorkFeedScopeInput,} from '@service-storage/graphql/generated/graphql';-import {- type GraphqlSoupItem,- mapGraphqlNotification,- mapGraphqlSoupItem,-} from '@service-storage/graphql-soup';+import { mapGraphqlNotification } from '@service-storage/graphql-soup';import { match } from 'ts-pattern';import type {WorkFeedEntry,@@ -63,13 +57,8 @@ export function decodeWorkFeedEntry(): WorkFeedEntry | null {const { item } = entry;const notifications = stackNotifications(item);- // The stacks replace the entity's own notification edge, which would- // read every notification of a channel, including its threads'.- const soupItem = mapGraphqlSoupItem({- ...item.entity,- notifications: [],- } as GraphqlSoupItem);- if (!soupItem || !isDisplayableSoupItem(soupItem)) return null;+ const soupItem = attentionFeedSoupItem(item.entity);+ if (!soupItem) return null;const sortAt = toTimestamp(entry.sortAt);if (sortAt === undefined) return null;diff --git a/apps/web/src/features/home/work-feed/queries/work-feed-cache.test.ts b/apps/web/src/features/home/work-feed/queries/work-feed-cache.test.tsdeleted file mode 100644index e3aa67a7c3..0000000000--- a/apps/web/src/features/home/work-feed/queries/work-feed-cache.test.ts+++ /dev/null@@ -1,180 +0,0 @@-import type { WorkFeedEntryFieldsFragment } from '@service-storage/graphql/generated/graphql';-import { describe, expect, it } from 'vitest';-import { createFakeWorkFeedClient } from '../tests/fake-client';-import {- documentEntry,- invalidatedPatch,- removedPatch,- upsertedPatch,- workFeedPage,-} from '../tests/wire';-import {- compareWorkFeedEntries,- placeWorkFeedPatches,- writeWorkFeedPatches,-} from './work-feed-cache';--const at = (docId: string, minute: number) =>- documentEntry({- docId,- sortAt: `2026-02-01T10:${String(minute).padStart(2, '0')}:00Z`,- });--const ids = (pages: WorkFeedEntryFieldsFragment[][] | undefined) =>- pages?.map((page) => page.map((entry) => entry.item.id.split(':')[1]));--describe('compareWorkFeedEntries', () => {- it('orders newest first, then by entity id descending', () => {- const sorted = [- documentEntry({ docId: 'a', sortAt: '2026-02-01T10:00:00.000001Z' }),- documentEntry({ docId: 'b', sortAt: '2026-02-01T10:00:00Z' }),- documentEntry({ docId: 'c', sortAt: '2026-02-01T10:00:00Z' }),- documentEntry({ docId: 'd', sortAt: '2026-02-01T10:00:00.000002Z' }),- ].sort(compareWorkFeedEntries);- expect(sorted.map((entry) => entry.item.id)).toEqual([- 'document:d',- 'document:a',- 'document:c',- 'document:b',- ]);- });-});--describe('placeWorkFeedPatches', () => {- const pages = [- [at('p1-a', 50), at('p1-b', 40)],- [at('p2-a', 30), at('p2-b', 20)],- ];- // The last page's read stopped at its last row.- const more = { sortAt: '2026-02-01T10:20:00Z', entityId: 'p2-b' };-- it('removes an item from whichever page holds it', () => {- expect(- ids(placeWorkFeedPatches(pages, [removedPatch('document:p2-a')], more))- ).toEqual([['p1-a', 'p1-b'], ['p2-b']]);- });-- it('places a new entry at its time and moves an existing one', () => {- const placed = placeWorkFeedPatches(- pages,- [upsertedPatch(at('new', 45)), upsertedPatch(at('p2-b', 55))],- more- );- expect(ids(placed)).toEqual([['p2-b', 'p1-a', 'new', 'p1-b'], ['p2-a']]);- });-- it('leaves an entry older than every loaded row to its page', () => {- expect(- ids(placeWorkFeedPatches(pages, [upsertedPatch(at('old', 10))], more))- ).toEqual([- ['p1-a', 'p1-b'],- ['p2-a', 'p2-b'],- ]);- expect(- ids(placeWorkFeedPatches(pages, [upsertedPatch(at('old', 10))], null))- ).toEqual([- ['p1-a', 'p1-b'],- ['p2-a', 'p2-b', 'old'],- ]);- });-- it('keeps an entry the last page read past its rows', () => {- // A filtered page read on to minute 5 after its last row at minute 20.- const readPast = { sortAt: '2026-02-01T10:05:00Z', entityId: 'skipped' };- expect(- ids(placeWorkFeedPatches(pages, [upsertedPatch(at('gap', 10))], readPast))- ).toEqual([- ['p1-a', 'p1-b'],- ['p2-a', 'p2-b', 'gap'],- ]);- expect(- ids(- placeWorkFeedPatches(pages, [upsertedPatch(at('later', 1))], readPast)- )- ).toEqual([- ['p1-a', 'p1-b'],- ['p2-a', 'p2-b'],- ]);- });-- it('drops an entry that moved below the loaded rows', () => {- expect(- ids(placeWorkFeedPatches(pages, [upsertedPatch(at('p1-a', 10))], more))- ).toEqual([['p1-b'], ['p2-a', 'p2-b']]);- });-- it('gives up on an invalidated batch', () => {- expect(- placeWorkFeedPatches(- pages,- [upsertedPatch(at('new', 45)), invalidatedPatch()],- more- )- ).toBeUndefined();- });-});--describe('writeWorkFeedPatches', () => {- const firstPage = { input: { cursor: null } };- const secondPage = { input: { cursor: 'cursor-2' } };-- it('writes only the cached pages the batch changed', async () => {- const fake = createFakeWorkFeedClient();- for (const variables of [firstPage, secondPage]) {- fake.client.executeQuery({ variables } as never);- }- fake.queries[0].resolve(workFeedPage([at('a', 50)], 'cursor-2'));- fake.queries[1].resolve(workFeedPage([at('b', 30)]));-- const placed = await writeWorkFeedPatches(- fake.host,- [firstPage, secondPage],- [upsertedPatch(at('new', 40))]- );-- expect(placed).toBe(true);- // Older than the first page's last row, it belongs to the second page.- expect(fake.writes).toHaveLength(1);- expect(fake.writes[0].variables).toEqual(secondPage);- expect(fake.writes[0].data).toEqual(- workFeedPage([at('new', 40), at('b', 30)])- );- });-- it('writes an entry the last cached page read past into it', async () => {- const fake = createFakeWorkFeedClient();- fake.client.executeQuery({ variables: firstPage } as never);- fake.queries[0].resolve(- workFeedPage([at('a', 50)], 'cursor-2', {- sortAt: '2026-02-01T10:05:00Z',- entityId: 'skipped',- })- );-- expect(- await writeWorkFeedPatches(- fake.host,- [firstPage],- [upsertedPatch(at('gap', 20))]- )- ).toBe(true);- expect(fake.writes[0].data).toEqual(- workFeedPage([at('a', 50), at('gap', 20)], 'cursor-2', {- sortAt: '2026-02-01T10:05:00Z',- entityId: 'skipped',- })- );- });-- it('asks for a read when a page is not cached', async () => {- const fake = createFakeWorkFeedClient();- expect(- await writeWorkFeedPatches(- fake.host,- [firstPage],- [upsertedPatch(at('new', 40))]- )- ).toBe(false);- expect(fake.writes).toHaveLength(0);- });-});diff --git a/apps/web/src/features/home/work-feed/queries/work-feed-cache.ts b/apps/web/src/features/home/work-feed/queries/work-feed-cache.tsdeleted file mode 100644index 3a59cb2c7f..0000000000--- a/apps/web/src/features/home/work-feed/queries/work-feed-cache.ts+++ /dev/null@@ -1,138 +0,0 @@-import type { CacheHost } from '@graphql-cache/host/types';-import {- WorkFeedDocument,- type WorkFeedEntryFieldsFragment,- type WorkFeedPatchFieldsFragment,- type WorkFeedQuery,- type WorkFeedQueryVariables,-} from '@service-storage/graphql/generated/graphql';-import { stringifyDocument } from '@urql/core';--type Entry = WorkFeedEntryFieldsFragment;-/** A place in the feed's order; a page's `nextPosition` is where its read stopped. */-type Position = NonNullable<WorkFeedQuery['user']['workFeed']['nextPosition']>;--const workFeedQuery = stringifyDocument(WorkFeedDocument);--/** Sub-millisecond digits of an RFC 3339 time, which `Date.parse` drops. */-function subMillis(time: string): number {- const fraction = /\.(\d+)/.exec(time)?.[1] ?? '';- return Number(fraction.padEnd(9, '0').slice(3, 9));-}--/** `<entity type>:<entity id>` item ids end in the server's tiebreaker. */-const entityIdOf = (itemId: string) => itemId.slice(itemId.indexOf(':') + 1);--/** The server's feed order: newest `sortAt` first, then entity id descending. */-function comparePositions(a: Position, b: Position): number {- const millis = Date.parse(b.sortAt) - Date.parse(a.sortAt);- if (millis !== 0) return millis;- const sub = subMillis(b.sortAt) - subMillis(a.sortAt);- if (sub !== 0) return sub;- return a.entityId < b.entityId ? 1 : a.entityId > b.entityId ? -1 : 0;-}--const positionOf = (entry: Entry): Position => ({- sortAt: entry.sortAt,- entityId: entityIdOf(entry.item.id),-});--/** Entries in the server's feed order. */-export const compareWorkFeedEntries = (a: Entry, b: Entry): number =>- comparePositions(positionOf(a), positionOf(b));--/** Insert an entry before the first loaded row it sorts ahead of. */-function insertEntry(pages: Entry[][], entry: Entry, next: Position | null) {- for (const page of pages) {- const index = page.findIndex(- (row) => compareWorkFeedEntries(entry, row) < 0- );- if (index !== -1) {- page.splice(index, 0, entry);- return;- }- }- // Older than every loaded row. The last page's read may have gone past- // its last row, so the entry is its own while it falls within that read;- // past it, the entry arrives with a later page.- if (!next || comparePositions(positionOf(entry), next) <= 0) {- pages.at(-1)?.push(entry);- }-}--/**- * Apply one server batch to a feed's loaded pages, in order. A removed item- * leaves whichever page holds it; an upserted entry moves to its place in- * the server's order. Keyset cursors are positions in that order, so a row- * inserted into one page leaves no gap before the next. `next` is where the- * last loaded page's read stopped, null once the feed is exhausted. Returns- * undefined when the batch invalidates the feed.- */-export function placeWorkFeedPatches(- pages: readonly (readonly Entry[])[],- patches: readonly WorkFeedPatchFieldsFragment[],- next: Position | null-): Entry[][] | undefined {- let placed = pages.map((page) => [...page]);- for (const patch of patches) {- if (patch.__typename === 'WorkFeedInvalidated') return undefined;- const itemId =- patch.__typename === 'WorkFeedEntryRemoved'- ? patch.itemId- : patch.entry.item.id;- placed = placed.map((page) => page.filter((row) => row.item.id !== itemId));- if (patch.__typename === 'WorkFeedEntryUpserted') {- insertEntry(placed, patch.entry, next);- }- }- return placed;-}--const sameEntries = (a: readonly Entry[], b: readonly Entry[]) =>- a.length === b.length && a.every((entry, index) => entry === b[index]);--/**- * Write one server batch into a feed's cached pages, so every query reading- * them updates without a network read. Resolves false when the batch cannot- * be placed — an invalidation, or a page the cache no longer holds — and the- * feed must be read again.- */-export async function writeWorkFeedPatches(- host: Pick<CacheHost, 'readQuery' | 'writeQuery'>,- pageVariables: readonly WorkFeedQueryVariables[],- patches: readonly WorkFeedPatchFieldsFragment[]-): Promise<boolean> {- if (pageVariables.length === 0) return false;- const pages: WorkFeedQuery[] = [];- for (const variables of pageVariables) {- const read = await host.readQuery({- query: workFeedQuery,- operationName: 'WorkFeed',- variables,- priority: 'user-visible',- });- if (read.kind !== 'hit') return false;- // The generated document defines the normalized cache result's shape.- pages.push(read.data as WorkFeedQuery);- }- const placed = placeWorkFeedPatches(- pages.map((page) => page.user.workFeed.entries),- patches,- pages.at(-1)?.user.workFeed.nextPosition ?? null- );- if (!placed) return false;- for (const [index, entries] of placed.entries()) {- const page = pages[index];- if (sameEntries(entries, page.user.workFeed.entries)) continue;- await host.writeQuery({- query: workFeedQuery,- operationName: 'WorkFeed',- variables: pageVariables[index],- data: {- ...page,- user: { ...page.user, workFeed: { ...page.user.workFeed, entries } },- } satisfies WorkFeedQuery,- });- }- return true;-}diff --git a/apps/web/src/features/home/work-feed/queries/work-feed-shape.ts b/apps/web/src/features/home/work-feed/queries/work-feed-shape.tsnew file mode 100644index 0000000000..f406a13f48--- /dev/null+++ b/apps/web/src/features/home/work-feed/queries/work-feed-shape.ts@@ -0,0 +1,39 @@+import type { AttentionFeedShape } from '@queries/attention-feed/attention-feed-types';+import type {+ WorkFeedEntryFieldsFragment,+ WorkFeedPatchFieldsFragment,+ WorkFeedQuery,+} from '@service-storage/graphql/generated/graphql';+import { match } from 'ts-pattern';++/** How Home's work feed documents fit the shared attention feed client. */+export const workFeedShape: AttentionFeedShape<+ WorkFeedQuery,+ WorkFeedEntryFieldsFragment,+ WorkFeedPatchFieldsFragment+> = {+ key: (entry) => entry.item.id,+ sortAt: (entry) => entry.sortAt,+ change: (patch) =>+ match(patch)+ .returnType<ReturnType<typeof workFeedShape.change>>()+ .with({ __typename: 'WorkFeedEntryUpserted' }, ({ entry }) => ({+ kind: 'upserted',+ entry,+ }))+ .with({ __typename: 'WorkFeedEntryRemoved' }, ({ itemId }) => ({+ kind: 'removed',+ key: itemId,+ }))+ .with({ __typename: 'WorkFeedInvalidated' }, () => ({+ kind: 'invalidated',+ }))+ // A change this build does not know can only be caught up by a read.+ .exhaustive(() => ({ kind: 'invalidated' })),+ entries: (page) => page.user.workFeed.entries,+ nextPosition: (page) => page.user.workFeed.nextPosition,+ withEntries: (page, entries) => ({+ ...page,+ user: { ...page.user, workFeed: { ...page.user.workFeed, entries } },+ }),+};diff --git a/apps/web/src/features/home/work-feed/queries/work-feed-updates.ts b/apps/web/src/features/home/work-feed/queries/work-feed-updates.tsdeleted file mode 100644index 10acd9f8f6..0000000000--- a/apps/web/src/features/home/work-feed/queries/work-feed-updates.ts+++ /dev/null@@ -1,50 +0,0 @@-import {- type WorkFeedPatchFieldsFragment,- WorkFeedUpdatesDocument,- type WorkFeedUpdatesSubscription,- type WorkFeedUpdatesSubscriptionVariables,-} from '@service-storage/graphql/generated/graphql';-import type { Client } from '@urql/core';-import { pipe, subscribe } from 'wonka';-import type { WorkFeedScope } from '../core/work-feed';-import { encodeWorkFeedScope } from './decode';--export type WorkFeedUpdatesHandlers = {- /** One server batch, to apply together. */- patches: (patches: WorkFeedPatchFieldsFragment[]) => void;- /** The stream errored or ended: changes may be missed until resubscribed. */- interrupted: () => void;-};--/** Follow one feed's live changes; returns the unsubscribe function. */-export function subscribeToWorkFeedUpdates(- client: Client,- scope: WorkFeedScope,- handlers: WorkFeedUpdatesHandlers-): () => void {- let ended = false;- const end = () => {- if (ended) return;- ended = true;- handlers.interrupted();- };- const { unsubscribe } = pipe(- client.subscription<- WorkFeedUpdatesSubscription,- WorkFeedUpdatesSubscriptionVariables- >(WorkFeedUpdatesDocument, { scope: encodeWorkFeedScope(scope) }),- subscribe((result) => {- if (result.error) {- end();- return;- }- const patches = result.data?.workFeedUpdates;- if (!patches || patches.length === 0) return;- handlers.patches(patches);- })- );- return () => {- ended = true;- unsubscribe();- };-}diff --git a/apps/web/src/features/notifications-inbox/components/inbox-date-header.tsx b/apps/web/src/features/notifications-inbox/components/inbox-date-header.tsxnew file mode 100644index 0000000000..e18d8ecc8e--- /dev/null+++ b/apps/web/src/features/notifications-inbox/components/inbox-date-header.tsx@@ -0,0 +1,25 @@+import { cn } from '@ui';++/**+ * Names when the rows below it arrived: Home's section heading, with its label+ * starting where the inbox cards' text does.+ */+export function InboxDateHeader(props: {+ id: string;+ label: string;+ isFirst: boolean;+}) {+ return (+ <div id={props.id} role="row">+ <div+ role="gridcell"+ class={cn(+ 'truncate px-[25px] pt-1 pb-2.5 text-xs font-semibold tracking-tight text-ink-extra-muted/80 mobile:pb-1.5',+ !props.isFirst && 'pt-4 mobile:pt-3'+ )}+ >+ {props.label}+ </div>+ </div>+ );+}diff --git a/apps/web/src/features/notifications-inbox/components/inbox-filter-drawer.tsx b/apps/web/src/features/notifications-inbox/components/inbox-filter-drawer.tsxnew file mode 100644index 0000000000..8139aecd16--- /dev/null+++ b/apps/web/src/features/notifications-inbox/components/inbox-filter-drawer.tsx@@ -0,0 +1,55 @@+import { MobileFilterDrawer } from '@app/components/view-shell';+import { t } from '@app/lib/i18n';+import { Accordion } from '@kobalte/core/accordion';+import { For } from 'solid-js';+import type { InboxCategory } from '../core/inbox-filters';+import { INBOX_FILTER_GROUPS } from './inbox-filter-groups';++/** The touch counterpart of the filter menu: Type in a sheet. */+export function InboxFilterDrawer(props: {+ isShown: (category: InboxCategory) => boolean;+ activeCount: number;+ onShownChange: (category: InboxCategory, shown: boolean) => void;+ onReset: () => void;+}) {+ return (+ <MobileFilterDrawer+ triggerLabel={t('notificationsInbox.filter')}+ label={t('notificationsInbox.filters')}+ activeCount={props.activeCount}+ onClear={props.onReset}+ >+ <Accordion multiple collapsible defaultValue={['type']}>+ <div class="flex flex-col">+ <For each={INBOX_FILTER_GROUPS}>+ {(group) => (+ <MobileFilterDrawer.Section+ value={group.id}+ label={group.label}+ activeCount={props.activeCount}+ class="mb-3"+ >+ <div role="group" aria-label={group.label}>+ <For each={group.options}>+ {(option) => (+ <MobileFilterDrawer.Option+ selectionMode={group.selectionMode}+ checked={props.isShown(option.id)}+ onChange={(checked) =>+ props.onShownChange(option.id, checked)+ }+ icon={option.icon?.()}+ >+ {option.label}+ </MobileFilterDrawer.Option>+ )}+ </For>+ </div>+ </MobileFilterDrawer.Section>+ )}+ </For>+ </div>+ </Accordion>+ </MobileFilterDrawer>+ );+}diff --git a/apps/web/src/features/notifications-inbox/components/inbox-filter-groups.tsx b/apps/web/src/features/notifications-inbox/components/inbox-filter-groups.tsxnew file mode 100644index 0000000000..de0e983cc9--- /dev/null+++ b/apps/web/src/features/notifications-inbox/components/inbox-filter-groups.tsx@@ -0,0 +1,66 @@+import type { ListFilterGroup } from '@app/components/view-shell';+import { t } from '@app/lib/i18n';+import { match } from 'ts-pattern';+import { INBOX_CATEGORIES, type InboxCategory } from '../core/inbox-filters';+import type { InboxRowType } from '../core/inbox-row';+import { InboxRowIcon } from './inbox-row-icon';++const categoryLabel = (category: InboxCategory) =>+ match(category)+ .with('mentions', () => t('notificationsInbox.categoryMentions'))+ .with('replies', () => t('notificationsInbox.categoryReplies'))+ .with('messages', () => t('notificationsInbox.categoryMessages'))+ .with('comments', () => t('notificationsInbox.categoryComments'))+ .with('email', () => t('notificationsInbox.categoryEmail'))+ .with('tasks', () => t('notificationsInbox.categoryTasks'))+ .with('pull_requests', () => t('notificationsInbox.categoryPullRequests'))+ .with('calendar', () => t('notificationsInbox.categoryCalendar'))+ .with('access', () => t('notificationsInbox.categoryAccess'))+ .with('agents', () => t('notificationsInbox.categoryAgents'))+ .exhaustive();++/** The glyph a category's rows show. */+const categoryRowType = (category: InboxCategory): InboxRowType =>+ match(category)+ .with('mentions', () => 'channel_mention' as const)+ .with('replies', () => 'channel_thread' as const)+ .with('messages', () => 'channel_messages' as const)+ .with('comments', () => 'discussion_messages' as const)+ .with('email', () => 'email' as const)+ .with('tasks', () => 'task' as const)+ .with('pull_requests', () => 'pull_request' as const)+ .with('calendar', () => 'calendar_event' as const)+ .with('access', () => 'access_requested' as const)+ .with('agents', () => 'agent' as const)+ .exhaustive();++export type InboxFilterGroupId = 'type';+export type InboxFilterOptionId = InboxCategory;++/**+ * The Type group, shared by the desktop menu and the touch drawer. Labels are+ * getters so a module constant follows the interface language.+ */+export const INBOX_FILTER_GROUPS: ListFilterGroup<+ InboxFilterGroupId,+ InboxFilterOptionId+>[] = [+ {+ id: 'type',+ get label() {+ return t('notificationsInbox.type');+ },+ options: INBOX_CATEGORIES.map((category) => ({+ id: category,+ get label() {+ return categoryLabel(category);+ },+ icon: () => (+ <InboxRowIcon+ type={categoryRowType(category)}+ class="size-4 text-ink-muted"+ />+ ),+ })),+ },+];diff --git a/apps/web/src/features/notifications-inbox/components/inbox-filter-menu.tsx b/apps/web/src/features/notifications-inbox/components/inbox-filter-menu.tsxnew file mode 100644index 0000000000..6359e1d228--- /dev/null+++ b/apps/web/src/features/notifications-inbox/components/inbox-filter-menu.tsx@@ -0,0 +1,36 @@+import { ListFilterDropdown } from '@app/components/view-shell';+import { t } from '@app/lib/i18n';+import { INBOX_CATEGORIES, type InboxCategory } from '../core/inbox-filters';+import { INBOX_FILTER_GROUPS } from './inbox-filter-groups';++/**+ * Filter notifications by kind. Kinds are checkboxes that start checked;+ * unchecking hides that kind.+ */+export function InboxFilterMenu(props: {+ open: boolean;+ onOpenChange: (open: boolean) => void;+ isShown: (category: InboxCategory) => boolean;+ activeCount: number;+ onShownChange: (category: InboxCategory, shown: boolean) => void;+ onReset: () => void;+}) {+ return (+ <ListFilterDropdown+ label={t('notificationsInbox.filter')}+ groups={INBOX_FILTER_GROUPS}+ open={props.open}+ onOpenChange={props.onOpenChange}+ activeCount={props.activeCount}+ isSelected={(_group, option) => props.isShown(option)}+ isGroupActive={() =>+ INBOX_CATEGORIES.some((category) => !props.isShown(category))+ }+ onSelectionChange={(_group, option, selected) =>+ props.onShownChange(option, selected)+ }+ onClear={props.onReset}+ clearLabel={t('notificationsInbox.resetFilters')}+ />+ );+}diff --git a/apps/web/src/features/notifications-inbox/components/inbox-kind-icon.test.ts b/apps/web/src/features/notifications-inbox/components/inbox-kind-icon.test.tsnew file mode 100644index 0000000000..1cd0f485b9--- /dev/null+++ b/apps/web/src/features/notifications-inbox/components/inbox-kind-icon.test.ts@@ -0,0 +1,34 @@+import type { EntityData } from '@entity';+import { describe, expect, it } from 'vitest';+import { inboxEntityColor } from './inbox-kind-icon';++const entity = (fields: Record<string, unknown>) =>+ ({ id: 'entity', name: 'Entity', ...fields }) as unknown as EntityData;++describe('inboxEntityColor', () => {+ it('colors by what the notification is on', () => {+ const email = inboxEntityColor(entity({ type: 'email', isRead: false }));+ const agent = inboxEntityColor(entity({ type: 'agent_session' }));+ expect(email).not.toBe(agent);+ });++ it('keeps an email’s color once it is read', () => {+ expect(inboxEntityColor(entity({ type: 'email', isRead: true }))).toBe(+ inboxEntityColor(entity({ type: 'email', isRead: false }))+ );+ });++ it('gives every kind of channel the same color', () => {+ const channel = inboxEntityColor(+ entity({ type: 'channel', channelType: 'public' })+ );+ expect(+ inboxEntityColor(entity({ type: 'channel', channelType: 'private' }))+ ).toBe(channel);+ expect(+ inboxEntityColor(+ entity({ type: 'channel', channelType: 'direct_message' })+ )+ ).toBe(channel);+ });+});diff --git a/apps/web/src/features/notifications-inbox/components/inbox-kind-icon.tsx b/apps/web/src/features/notifications-inbox/components/inbox-kind-icon.tsxnew file mode 100644index 0000000000..794b5ed7e8--- /dev/null+++ b/apps/web/src/features/notifications-inbox/components/inbox-kind-icon.tsx@@ -0,0 +1,79 @@+import { t } from '@app/lib/i18n';+import { getEntityIconType, getIconConfig } from '@core/component/EntityIcon';+import type { EntityData } from '@entity';+import ArrowBendUpLeftIcon from '@icon/system/regular/arrow-bend-up-left.svg';+import AtIcon from '@icon/system/regular/at.svg';+import BellIcon from '@icon/system/regular/bell.svg';+import CalendarBlankIcon from '@icon/system/regular/calendar-blank.svg';+import ChatTeardropIcon from '@icon/system/regular/chat-teardrop.svg';+import ChatsCircleIcon from '@icon/system/regular/chats-circle.svg';+import CheckSquareIcon from '@icon/system/regular/check-square.svg';+import EnvelopeIcon from '@icon/system/regular/envelope.svg';+import GitPullRequestIcon from '@icon/system/regular/git-pull-request.svg';+import HashIcon from '@icon/system/regular/hash.svg';+import LockKeyIcon from '@icon/system/regular/lock-key.svg';+import RobotIcon from '@icon/system/regular/robot.svg';+import SmileyIcon from '@icon/system/regular/smiley.svg';+import UserPlusIcon from '@icon/system/regular/user-plus.svg';+import { Dynamic } from 'solid-js/web';+import { match } from 'ts-pattern';+import type { InboxCardKind } from '../core/inbox-row';++const iconFor = (kind: InboxCardKind) =>+ match(kind)+ .with('channel', () => HashIcon)+ .with('message', () => ChatsCircleIcon)+ .with('mention', () => AtIcon)+ .with('reply', () => ArrowBendUpLeftIcon)+ .with('reaction', () => SmileyIcon)+ .with('email', () => EnvelopeIcon)+ .with('comment', () => ChatTeardropIcon)+ .with('invite', () => UserPlusIcon)+ .with('access', () => LockKeyIcon)+ .with('agent', () => RobotIcon)+ .with('task', () => CheckSquareIcon)+ .with('pull_request', () => GitPullRequestIcon)+ .with('event', () => CalendarBlankIcon)+ .with('reminder', 'other', () => BellIcon)+ .exhaustive();++/** Names a kind of notification: Channel, Email, Comment, Invite… */+export const inboxKindLabel = (kind: InboxCardKind) =>+ match(kind)+ .with('channel', () => t('notificationsInbox.kindChannel'))+ .with('message', () => t('notificationsInbox.kindMessage'))+ .with('mention', () => t('notificationsInbox.kindMention'))+ .with('reply', () => t('notificationsInbox.kindReply'))+ .with('reaction', () => t('notificationsInbox.kindReaction'))+ .with('email', () => t('notificationsInbox.kindEmail'))+ .with('comment', () => t('notificationsInbox.kindComment'))+ .with('invite', () => t('notificationsInbox.kindInvite'))+ .with('access', () => t('notificationsInbox.kindAccess'))+ .with('agent', () => t('notificationsInbox.kindAgent'))+ .with('task', () => t('notificationsInbox.kindTask'))+ .with('pull_request', () => t('notificationsInbox.kindPullRequest'))+ .with('event', () => t('notificationsInbox.kindEvent'))+ .with('reminder', () => t('notificationsInbox.kindReminder'))+ .with('other', () => t('notificationsInbox.kindOther'))+ .exhaustive();++/**+ * The app's color for what a notification is on, such as a document, an email or+ * an agent session, which follows the theme. An email keeps its color once read:+ * the card says that itself.+ */+export const inboxEntityColor = (entity: EntityData) => {+ const type = getEntityIconType(entity);+ return getIconConfig(type === 'emailRead' ? 'email' : type).foreground;+};++/** The glyph for a kind of notification. */+export function InboxKindIcon(props: { kind: InboxCardKind; class?: string }) {+ return (+ <Dynamic+ component={iconFor(props.kind)}+ class={props.class}+ aria-hidden="true"+ />+ );+}diff --git a/apps/web/src/features/notifications-inbox/components/inbox-row-icon.tsx b/apps/web/src/features/notifications-inbox/components/inbox-row-icon.tsxnew file mode 100644index 0000000000..2f0e722e2a--- /dev/null+++ b/apps/web/src/features/notifications-inbox/components/inbox-row-icon.tsx@@ -0,0 +1,46 @@+import ArrowBendUpLeftIcon from '@icon/system/regular/arrow-bend-up-left.svg';+import AtIcon from '@icon/system/regular/at.svg';+import BellIcon from '@icon/system/regular/bell.svg';+import CalendarBlankIcon from '@icon/system/regular/calendar-blank.svg';+import ChatCircleIcon from '@icon/system/regular/chat-circle.svg';+import ChatsCircleIcon from '@icon/system/regular/chats-circle.svg';+import CheckSquareIcon from '@icon/system/regular/check-square.svg';+import EnvelopeIcon from '@icon/system/regular/envelope.svg';+import GitPullRequestIcon from '@icon/system/regular/git-pull-request.svg';+import LockKeyIcon from '@icon/system/regular/lock-key.svg';+import LockKeyOpenIcon from '@icon/system/regular/lock-key-open.svg';+import RobotIcon from '@icon/system/regular/robot.svg';+import UserPlusIcon from '@icon/system/regular/user-plus.svg';+import { Dynamic } from 'solid-js/web';+import { match } from 'ts-pattern';+import type { InboxRow } from '../core/inbox-row';++type RowType = InboxRow<unknown>['type'];++const iconFor = (type: RowType) =>+ match(type)+ .with('agent', () => RobotIcon)+ .with('email', () => EnvelopeIcon)+ .with('channel_mention', 'discussion_mention', () => AtIcon)+ .with('channel_thread', 'discussion_thread', () => ArrowBendUpLeftIcon)+ .with('channel_messages', () => ChatsCircleIcon)+ .with('discussion_messages', () => ChatCircleIcon)+ .with('task', () => CheckSquareIcon)+ .with('pull_request', () => GitPullRequestIcon)+ .with('calendar_event', () => CalendarBlankIcon)+ .with('calendar_join_request', () => UserPlusIcon)+ .with('access_requested', () => LockKeyIcon)+ .with('access_granted', () => LockKeyOpenIcon)+ .with('other', () => BellIcon)+ .exhaustive();++/** The glyph for a kind of notification: reply, mention, task, email… */+export function InboxRowIcon(props: { type: RowType; class?: string }) {+ return (+ <Dynamic+ component={iconFor(props.type)}+ class={props.class}+ aria-hidden="true"+ />+ );+}diff --git a/apps/web/src/features/notifications-inbox/components/inbox-sender-avatar.tsx b/apps/web/src/features/notifications-inbox/components/inbox-sender-avatar.tsxnew file mode 100644index 0000000000..da3ab189e9--- /dev/null+++ b/apps/web/src/features/notifications-inbox/components/inbox-sender-avatar.tsx@@ -0,0 +1,136 @@+import { isMobile } from '@core/mobile/isMobile';+import type { EntityData } from '@entity';+import {+ getGithubSenderAvatarUrl,+ isGithubNotificationType,+} from '@entity/extractors-notification/notification-description-helpers';+import { NotificationSenderIcon } from '@entity/extractors-notification/notification-sender-icon';+import {+ getNotificationAgentSender,+ getNotificationSenderFallbackName,+} from '@notifications/notification-sender';+import type { UnifiedNotification } from '@notifications/types';+import { Avatar, cn, Tooltip } from '@ui';+import { type JSX, Match, Show, Switch } from 'solid-js';+import type { InboxCardKind } from '../core/inbox-row';+import {+ InboxKindIcon,+ inboxEntityColor,+ inboxKindLabel,+} from './inbox-kind-icon';++/** Whether Macro knows a picture for who sent a notification. */+const hasKnownSender = (notification: UnifiedNotification) =>+ Boolean(+ notification.sender_id ||+ getNotificationAgentSender(notification) ||+ (isGithubNotificationType(notification.notification_metadata.tag) &&+ getGithubSenderAvatarUrl(notification))+ );++/**+ * Who a notification is from: their avatar, an initial for a sender Macro only+ * knows by name, such as an email's, or the kind of notification for one that+ * comes from no one, such as a reminder. With `badged`, a person's avatar also+ * says what kind of notification it is on its corner, in the color of the entity+ * it is on. A phone shows it larger, and `compact` smaller, for inside a stack.+ */+export function InboxSenderAvatar(props: {+ notification: UnifiedNotification | undefined;+ kind: InboxCardKind;+ /** What the notification is on, which colors its kind. */+ entity: EntityData;+ badged?: boolean;+ compact?: boolean;+}) {+ const known = () =>+ props.notification && hasKnownSender(props.notification)+ ? props.notification+ : undefined;+ const initial = () =>+ props.notification &&+ getNotificationSenderFallbackName(props.notification)+ ?.trim()+ .charAt(0)+ .toUpperCase();+ const size = () => {+ if (props.compact) return isMobile() ? 'md' : 'sm';+ return isMobile() ? 'lg' : 'md';+ };+ const frame = () =>+ props.compact ? 'size-4 mobile:size-6' : 'size-6 mobile:size-10';++ const Person = (person: { children: JSX.Element }) => (+ <span class={cn('relative block', frame())}>+ {person.children}+ <Show when={props.badged}>+ <Tooltip+ as="span"+ label={inboxKindLabel(props.kind)}+ class="absolute -right-1.5 -bottom-1.5 mobile:-right-[7px] mobile:-bottom-[7px]"+ >+ <span+ role="img"+ aria-label={inboxKindLabel(props.kind)}+ data-kind-badge={props.kind}+ // Cuts the badge out of the avatar, in the color of the card behind it.+ class={cn(+ 'flex size-[18px] items-center justify-center rounded-full bg-control-raised ring-2 ring-(--inbox-card-surface) mobile:size-6',+ inboxEntityColor(props.entity)+ )}+ >+ <InboxKindIcon+ kind={props.kind}+ class="size-[11px] mobile:size-3.5"+ />+ </span>+ </Tooltip>+ </Show>+ </span>+ );++ return (+ <Switch+ fallback={+ <span+ class={cn(+ 'flex items-center justify-center rounded-full border border-edge-button',+ frame(),+ inboxEntityColor(props.entity)+ )}+ >+ <InboxKindIcon+ kind={props.kind}+ class={+ props.compact+ ? 'size-2.5 mobile:size-3.5'+ : 'size-3.5 mobile:size-5'+ }+ />+ </span>+ }+ >+ <Match when={known()}>+ {(notification) => (+ <Person>+ <NotificationSenderIcon+ notification={notification()}+ size={size()}+ />+ </Person>+ )}+ </Match>+ <Match when={initial()}>+ {(letter) => (+ <Person>+ <Avatar size={size()}>+ <Avatar.Fallback class="font-semibold">+ {letter()}+ </Avatar.Fallback>+ </Avatar>+ </Person>+ )}+ </Match>+ </Switch>+ );+}diff --git a/apps/web/src/features/notifications-inbox/components/inbox-status-tabs.tsx b/apps/web/src/features/notifications-inbox/components/inbox-status-tabs.tsxnew file mode 100644index 0000000000..f78ea23f14--- /dev/null+++ b/apps/web/src/features/notifications-inbox/components/inbox-status-tabs.tsx@@ -0,0 +1,48 @@+import { t } from '@app/lib/i18n';+import { PillTabs } from '@components/app/mobile/PillTabs';+import { Tabs } from '@ui';+import type { JSX } from 'solid-js';+import type { InboxStatus } from '../core/inbox-filters';++const statusOptions = () => [+ { value: 'all' as const, label: t('notificationsInbox.statusAll') },+ { value: 'unread' as const, label: t('notificationsInbox.statusUnread') },+];++/** All and Unread, as the side panel's view tabs. */+export function InboxStatusTabs(props: {+ status: InboxStatus;+ onChange: (status: InboxStatus) => void;+}) {+ return (+ <Tabs+ aria-label={t('notificationsInbox.status')}+ fullWidth+ options={statusOptions()}+ value={props.status}+ onChange={props.onChange}+ />+ );+}++/** All and Unread on touch: the pills every view's floating header uses. */+export function InboxStatusPills(props: {+ status: InboxStatus;+ onChange: (status: InboxStatus) => void;+ /** The control ahead of the pills: the filter drawer. */+ leading: JSX.Element;+}) {+ return (+ <div class="h-10 min-w-0 flex-1">+ <PillTabs+ scrollable+ class="-ml-(--mobile-chrome-gutter) w-[calc(100%+2*var(--mobile-chrome-gutter))] max-w-none flex-none"+ contentClass="px-(--mobile-chrome-gutter)"+ leading={props.leading}+ items={statusOptions()}+ value={props.status}+ onChange={props.onChange}+ />+ </div>+ );+}diff --git a/apps/web/src/features/notifications-inbox/components/notification-row.test.tsx b/apps/web/src/features/notifications-inbox/components/notification-row.test.tsxnew file mode 100644index 0000000000..baa2d51aa3--- /dev/null+++ b/apps/web/src/features/notifications-inbox/components/notification-row.test.tsx@@ -0,0 +1,95 @@+import { fireEvent, render, screen } from '@solidjs/testing-library';+import { createSignal } from 'solid-js';+import { describe, expect, it, vi } from 'vitest';+import { NotificationRow, type NotificationRowProps } from './notification-row';++const setup = (overrides: Partial<NotificationRowProps> = {}) => {+ const onClick = vi.fn();+ const [unfolded, setUnfolded] = createSignal(false);+ const onToggleStack = vi.fn(() => setUnfolded((open) => !open));+ render(() => (+ <NotificationRow+ id="row"+ icon={<span />}+ who="Sam and Ana commented"+ what="Launch plan"+ body="Can we move the date?"+ time="2m"+ count={3}+ unfolded={unfolded()}+ unseen+ highlighted={false}+ onClick={onClick}+ onHover={() => {}}+ onDone={() => {}}+ onToggleStack={onToggleStack}+ {...overrides}+ />+ ));+ return { onClick, onToggleStack };+};++const toggle = () => screen.getByRole('button', { name: /3 notifications/ });++describe('NotificationRow', () => {+ it('opens when chosen and leaves its stack folded', () => {+ const { onClick, onToggleStack } = setup();++ fireEvent.click(screen.getByText('Launch plan'));++ expect(onClick).toHaveBeenCalledOnce();+ expect(onToggleStack).not.toHaveBeenCalled();+ expect(toggle().getAttribute('aria-expanded')).toBe('false');+ });++ it('unfolds and folds from its own button without opening', () => {+ const { onClick, onToggleStack } = setup();++ fireEvent.click(toggle());+ expect(toggle().getAttribute('aria-expanded')).toBe('true');++ fireEvent.click(toggle());+ expect(toggle().getAttribute('aria-expanded')).toBe('false');++ expect(onToggleStack).toHaveBeenCalledTimes(2);+ expect(onClick).not.toHaveBeenCalled();+ });++ it('says the same thing whether its stack is open or not', () => {+ setup();++ fireEvent.click(toggle());++ expect(screen.getByText('Sam and Ana commented')).toBeTruthy();+ expect(screen.getByText('Launch plan')).toBeTruthy();+ expect(screen.getByText('Can we move the date?')).toBeTruthy();+ });++ it('says only what it has to say', () => {+ render(() => (+ <NotificationRow+ id="row"+ icon={<span />}+ who="Dana assigned you a task"+ time="2m"+ count={1}+ unfolded={false}+ unseen+ highlighted={false}+ onClick={() => {}}+ onHover={() => {}}+ onDone={() => {}}+ onToggleStack={() => {}}+ />+ ));++ expect(screen.getByText('Dana assigned you a task')).toBeTruthy();+ expect(document.querySelector('[data-card-what]')).toBeNull();+ expect(document.querySelector('[data-card-body]')).toBeNull();+ });++ it('offers no button for a single notification', () => {+ setup({ count: 1 });+ expect(screen.queryByRole('button', { name: /notifications/ })).toBeNull();+ });+});diff --git a/apps/web/src/features/notifications-inbox/components/notification-row.tsx b/apps/web/src/features/notifications-inbox/components/notification-row.tsxnew file mode 100644index 0000000000..3f03faa9dd--- /dev/null+++ b/apps/web/src/features/notifications-inbox/components/notification-row.tsx@@ -0,0 +1,247 @@+import { t } from '@app/lib/i18n';+import { StaticMarkdown } from '@core/component/LexicalMarkdown/component/core/StaticMarkdown';+import {+ twoLineClampMarkdownTheme,+ unifiedListMarkdownTheme,+} from '@core/component/LexicalMarkdown/theme';+import CaretDownIcon from '@icon/system/regular/caret-down.svg';+import CheckIcon from '@icon/system/regular/check.svg';+import { Button, cn } from '@ui';+import { type JSX, Show } from 'solid-js';++export type NotificationRowProps = {+ /** The row's element id, for `aria-activedescendant`. */+ id: string;+ /** Who it is from. */+ icon: JSX.Element;+ /** Who did it. */+ who: string;+ /** What it is about: a subject, channel, document, session or task. */+ what?: string;+ /** What was said, as Markdown; at most two lines show. */+ body?: string;+ /** When the newest notification arrived, already formatted. */+ time: string;+ /** How many notifications the row stands for. */+ count: number;+ unfolded: boolean;+ unseen: boolean;+ highlighted: boolean;+ /** Another stack is open, so this card steps back. */+ receded?: boolean;+ /** Buttons that act on the notification, below its text. */+ actions?: JSX.Element;+ onClick: (event: MouseEvent) => void;+ onHover: () => void;+ onDone: () => void;+ onToggleStack: () => void;+};++/**+ * One notification inbox row, as a card as tall as it has something to say: who+ * did it, what it is about, and what was said. Choosing it opens it. Several+ * notifications show as a stack with paper edges, and its own button spreads them+ * into small cards below it, leaving this card as it was.+ * With a pointer, Mark done takes the time's+ * place on hover and nothing else moves; touch marks done by swiping the row. A+ * phone shows larger text, and a read card gives up its fill and fades, so unread+ * ones stand out at a glance.+ */+export function NotificationRow(props: NotificationRowProps) {+ const isStack = () => props.count > 1;+ const isOpen = () => isStack() && props.unfolded;+ return (+ <div+ id={props.id}+ role="row"+ aria-selected={props.highlighted}+ data-notification-row=""+ data-stack={isStack() ? '' : undefined}+ data-unfolded={isOpen() ? '' : undefined}+ class={cn(+ 'group/notification relative w-full min-w-0 flex-1 px-3 transition-opacity',+ props.receded && 'opacity-40 not-touch:hover:opacity-100',+ isStack() && !props.unfolded && 'pb-5 mobile:pb-5.5',+ !isStack() && 'pb-2.5 mobile:pb-3'+ )}+ onMouseMove={() => props.onHover()}+ onClick={(event) => props.onClick(event)}+ >+ <div+ role="gridcell"+ class={cn(+ // The avatar's badge cuts itself out in this color.+ 'relative z-1 border bg-(--inbox-card-surface)',+ 'rounded-xl',+ props.highlighted+ ? 'border-edge-frame [--inbox-card-surface:var(--color-control-raised)]'+ : 'border-edge-button [--inbox-card-surface:var(--color-control)] not-touch:hover:[--inbox-card-surface:var(--color-surface-3)]',+ // A tap leaves the card focused, which mustn't look like unread.+ 'mobile:border-edge-button',+ props.unseen+ ? 'mobile:[--inbox-card-surface:var(--color-control)]'+ : 'mobile:[--inbox-card-surface:var(--color-panel)]'+ )}+ >+ <div class="flex gap-3 px-3 py-3 touch:min-h-[44px]">+ <span+ class={cn('shrink-0', !props.unseen && 'mobile:opacity-60')}+ data-card-avatar=""+ >+ {props.icon}+ </span>+ <div class="min-w-0 flex-1">+ <div class="flex min-w-0 items-center gap-2">+ <span+ data-card-who=""+ class={cn(+ 'min-w-0 flex-1 truncate text-sm mobile:text-base mobile:leading-[22px]',+ props.unseen+ ? 'font-medium text-ink'+ : 'text-ink-muted mobile:text-ink-extra-muted'+ )}+ >+ {/* Message and comment text carries mention and link markup. */}+ <StaticMarkdown+ markdown={props.who}+ singleLine+ theme={unifiedListMarkdownTheme}+ />+ </span>+ {/* On hover Mark done takes the time's place, so nothing moves. */}+ <span class="relative shrink-0">+ <span+ data-card-time=""+ class={cn(+ 'block text-xs not-touch:group-hover/notification:invisible mobile:text-[13px] mobile:leading-[18px]',+ props.unseen+ ? 'text-ink-extra-muted mobile:text-ink-muted'+ : 'text-ink-extra-muted/80'+ )}+ >+ {props.time}+ </span>+ {/* Touch marks done by swiping the row instead. */}+ <span class="absolute top-1/2 -right-1.5 hidden -translate-y-1/2 not-touch:group-hover/notification:block">+ <Button+ size="icon-sm"+ variant="ghost"+ aria-label={t('notificationsInbox.markDone')}+ tooltip={t('notificationsInbox.markDone')}+ onClick={(event) => {+ event.stopPropagation();+ props.onDone();+ }}+ >+ <CheckIcon class="size-4" />+ </Button>+ </span>+ </span>+ <Show when={isStack()}>+ <Button+ size="icon-xs"+ variant="ghost"+ // Its frame is taller than the line; it shouldn't grow the card.+ class="-my-1 -mr-1 shrink-0 touch:-my-3"+ data-stack-toggle=""+ aria-expanded={props.unfolded}+ aria-label={t('notificationsInbox.stackToggle', {+ count: props.count,+ })}+ tooltip={+ props.unfolded+ ? t('notificationsInbox.stackHide')+ : t('notificationsInbox.stackShow')+ }+ onClick={(event) => {+ event.stopPropagation();+ props.onToggleStack();+ }}+ >+ <CaretDownIcon+ class={cn(+ 'size-3.5 text-ink-extra-muted',+ props.unfolded && 'rotate-180'+ )}+ />+ </Button>+ </Show>+ <Show when={props.unseen}>+ <span+ aria-label={t('notificationsInbox.unread')}+ data-unread-dot=""+ class="size-1.5 shrink-0 rounded-full bg-accent mobile:size-2"+ />+ </Show>+ </div>+ <Show when={props.what}>+ {(what) => (+ <div+ data-card-what=""+ class={cn(+ 'mt-px truncate text-[13px] leading-[18px] mobile:text-sm mobile:leading-5',+ props.unseen+ ? 'text-ink'+ : 'text-ink-muted mobile:text-ink-extra-muted'+ )}+ >+ <StaticMarkdown+ markdown={what()}+ singleLine+ theme={unifiedListMarkdownTheme}+ />+ </div>+ )}+ </Show>+ <Show when={props.body}>+ {(body) => (+ <div+ data-card-body=""+ class={cn(+ 'mt-0.5 text-xs mobile:text-[13px] mobile:leading-[18px]',+ props.unseen+ ? 'text-ink-extra-muted'+ : 'text-ink-extra-muted/80'+ )}+ >+ {/* An agent's message can run to many paragraphs and lists. */}+ <StaticMarkdown+ markdown={body()}+ singleLine+ theme={twoLineClampMarkdownTheme}+ />+ </div>+ )}+ </Show>+ <Show when={props.actions}>+ <div+ class="mt-2.5 flex flex-wrap gap-2"+ onClick={(event) => event.stopPropagation()}+ >+ {props.actions}+ </div>+ </Show>+ </div>+ </div>+ </div>+ <Show when={isStack() && !props.unfolded}>+ <div+ aria-hidden="true"+ data-stack-edge=""+ class={cn(+ 'absolute inset-x-[19px] h-[5px] rounded-b-[9px] border border-t-0 border-edge-button bg-control/60',+ !props.unseen && 'mobile:bg-transparent'+ )}+ />+ <div+ aria-hidden="true"+ data-stack-edge=""+ class={cn(+ 'absolute inset-x-[26px] mt-[5px] h-[5px] rounded-b-[9px] border border-t-0 border-edge-button bg-control/30',+ !props.unseen && 'mobile:bg-transparent'+ )}+ />+ </Show>+ </div>+ );+}diff --git a/apps/web/src/features/notifications-inbox/components/notification-stack-item.tsx b/apps/web/src/features/notifications-inbox/components/notification-stack-item.tsxnew file mode 100644index 0000000000..51edc922ef--- /dev/null+++ b/apps/web/src/features/notifications-inbox/components/notification-stack-item.tsx@@ -0,0 +1,103 @@+import { t } from '@app/lib/i18n';+import { StaticMarkdown } from '@core/component/LexicalMarkdown/component/core/StaticMarkdown';+import { twoLineClampMarkdownTheme } from '@core/component/LexicalMarkdown/theme';+import { cn } from '@ui';+import { type JSX, Show } from 'solid-js';++export type NotificationStackItemProps = {+ /** The item's element id, for `aria-activedescendant`. */+ id: string;+ /** Who it is from. */+ icon: JSX.Element;+ /** Who did what. */+ by: string;+ /** What was said, as Markdown. */+ text: string;+ /** When it arrived, already formatted. */+ time: string;+ /** The bottom of the stack, which spaces it from the next card. */+ last: boolean;+ /** Notifications past the last one shown; said under the last item. */+ more: number;+ /** Whether its stack is unread, which it looks like. */+ unseen: boolean;+ highlighted: boolean;+ onClick: (event: MouseEvent) => void;+ onHover: () => void;+};++/**+ * One notification of an open stack: a sheet of the stack spread into its own+ * small card, inset evenly where its paper edge sat, and looking as read or unread+ * as the card it came from. Choosing it opens that notification.+ */+export function NotificationStackItem(props: NotificationStackItemProps) {+ return (+ <div+ id={props.id}+ role="row"+ aria-selected={props.highlighted}+ data-stack-item=""+ class={cn(+ 'relative w-full min-w-0 flex-1 px-[19px] pt-1.5',+ props.last && 'pb-2.5 mobile:pb-3'+ )}+ onMouseMove={() => props.onHover()}+ onClick={(event) => props.onClick(event)}+ >+ <div+ role="gridcell"+ class={cn(+ 'overflow-hidden rounded-xl border',+ props.highlighted+ ? 'border-edge-frame bg-control-raised'+ : 'border-edge-button bg-control not-touch:hover:bg-surface-3',+ 'mobile:border-edge-button',+ props.unseen ? 'mobile:bg-control' : 'mobile:bg-transparent'+ )}+ >+ <div class="flex gap-2.5 px-3 py-2.5 touch:min-h-[44px]">+ <span class={cn('shrink-0', !props.unseen && 'mobile:opacity-60')}>+ {props.icon}+ </span>+ <div class="min-w-0 flex-1">+ <div class="flex gap-2 text-xs mobile:text-[13px] mobile:leading-[18px]">+ <span+ class={cn(+ 'min-w-0 flex-1 truncate',+ props.unseen+ ? 'text-ink-muted'+ : 'text-ink-muted mobile:text-ink-extra-muted'+ )}+ >+ {props.by}+ </span>+ <span class="shrink-0 text-ink-extra-muted/80">{props.time}</span>+ </div>+ <div+ data-stack-item-text=""+ class={cn(+ 'mt-0.5 text-[13px] leading-[18px] mobile:text-sm mobile:leading-5',+ props.unseen+ ? 'text-ink'+ : 'text-ink-muted mobile:text-ink-extra-muted'+ )}+ >+ {/* An agent's message can run to many paragraphs and lists. */}+ <StaticMarkdown+ markdown={props.text}+ singleLine+ theme={twoLineClampMarkdownTheme}+ />+ </div>+ </div>+ </div>+ <Show when={props.more > 0}>+ <div class="border-t border-edge-button px-3 py-2 text-xs text-ink-extra-muted/80">+ {t('notificationsInbox.stackMore', { count: props.more })}+ </div>+ </Show>+ </div>+ </div>+ );+}diff --git a/apps/web/src/features/notifications-inbox/components/row-action-buttons.tsx b/apps/web/src/features/notifications-inbox/components/row-action-buttons.tsxnew file mode 100644index 0000000000..42e0aa8e2c--- /dev/null+++ b/apps/web/src/features/notifications-inbox/components/row-action-buttons.tsx@@ -0,0 +1,46 @@+import { t } from '@app/lib/i18n';+import { Button } from '@ui';+import { For } from 'solid-js';+import { match } from 'ts-pattern';+import type { InboxDecision, InboxRowAction } from '../core/inbox-row';++const actionLabel = (action: InboxRowAction) =>+ match(action.kind)+ .with('open', () => t('notificationsInbox.actionOpen'))+ .with('answer', () => t('notificationsInbox.actionAnswer'))+ .with('review', () => t('notificationsInbox.actionReview'))+ .with('approve', () => t('notificationsInbox.actionApprove'))+ .with('deny', () => t('notificationsInbox.actionDeny'))+ .with('accept', () => t('notificationsInbox.actionAccept'))+ .with('decline', () => t('notificationsInbox.actionDecline'))+ .exhaustive();++/**+ * What the viewer can do from a notification, the main action first. All are+ * quiet, so a list of cards doesn't turn into a list of black buttons. While a+ * decision is in flight every button is disabled and the chosen one says so.+ */+export function RowActionButtons(props: {+ actions: readonly InboxRowAction[];+ pending: InboxDecision | undefined;+ onChoose: (action: InboxRowAction) => void;+}) {+ return (+ <For each={props.actions}>+ {(action) => (+ <Button+ size="sm"+ variant="secondary"+ disabled={props.pending !== undefined}+ aria-busy={props.pending === action.kind}+ onClick={(event) => {+ event.stopPropagation();+ props.onChoose(action);+ }}+ >+ {actionLabel(action)}+ </Button>+ )}+ </For>+ );+}diff --git a/apps/web/src/features/notifications-inbox/context/notifications-inbox-context.ts b/apps/web/src/features/notifications-inbox/context/notifications-inbox-context.tsnew file mode 100644index 0000000000..fa1f0bf75c--- /dev/null+++ b/apps/web/src/features/notifications-inbox/context/notifications-inbox-context.ts@@ -0,0 +1,118 @@+import type { EntityWithRawNotifications } from '@app/features/soup/entity-notifications';+import type { EntityData } from '@entity';+import type { UnifiedNotification } from '@notifications/types';+import { type Accessor, createContext, useContext } from 'solid-js';+import type { InboxRow, InboxRowType } from '../core/inbox-row';++/** What one inbox row presents. */+export type InboxRowContent = {+ /** The row's entity, carrying only the row's notifications. */+ entity: EntityWithRawNotifications<EntityData>;+ /** The row's notifications, newest first; the first names the row. */+ notifications: UnifiedNotification[];+ /** The row's entity, opening at one of its notifications. */+ entityAt: (+ notification: UnifiedNotification+ ) => EntityWithRawNotifications<EntityData>;+};++export type NotificationInboxRow = InboxRow<InboxRowContent>;++/** Which rows a feed shows; with no row types it shows and reads nothing. */+export type InboxScope = {+ rowTypes: readonly InboxRowType[];+};++/** A completed done, which the caller can reverse once. */+export type InboxDoneResult = { undo: () => Promise<void> };++/** One live inbox feed for a scope. */+export type InboxFeedSource = {+ /**+ * The loaded rows, newest first, without rows hidden as done. Undefined+ * until the first page is available; [] is a loaded empty inbox.+ */+ rows: Accessor<readonly NotificationInboxRow[] | undefined>;+ /** The first page is loading. */+ isLoading: Accessor<boolean>;+ /** The last read failed; may coexist with rows already loaded. */+ error: Accessor<Error | undefined>;+ hasMore: Accessor<boolean>;+ isLoadingMore: Accessor<boolean>;+ loadMore: () => Promise<void>;+ refresh: () => Promise<void>;+ /**+ * Hide rows now and complete them. Rejects, showing the rows again, when+ * the done fails; resolves to the undo otherwise.+ */+ markDone: (rows: readonly NotificationInboxRow[]) => Promise<InboxDoneResult>;+ /**+ * Read rows as seen now and mark them seen, hidden notifications included;+ * they read as unseen again when that fails.+ */+ markSeen: (rows: readonly NotificationInboxRow[]) => Promise<void>;+};++/** A pending request to access an entity the viewer can share. */+export type AccessRequest = {+ kind: 'access_request';+ entityType: string;+ entityId: string;+ requestId: string;+ revision: number;+ /** What approving grants: the level asked for. */+ level: 'view' | 'comment' | 'edit';+};++/** A request to join a calendar event the viewer shared. */+export type JoinRequest = {+ kind: 'join_request';+ requestId: string;+ eventId: string;+};++/** A request a row's answers resolve. */+export type InboxRequest = AccessRequest | JoinRequest;++/** How row answers reach the server; each rejects when it fails. */+export type InboxRequests = {+ resolveAccessRequest: (+ request: AccessRequest,+ approve: boolean+ ) => Promise<void>;+ answerJoinRequest: (request: JoinRequest, accept: boolean) => Promise<void>;+};++export type NotificationsInboxContext = {+ /** Answer what a row asks for: approve access, answer a join request. */+ requests: InboxRequests;+ /** Create a feed for `scope` under the caller's owner. */+ createFeed: (scope: Accessor<InboxScope>) => InboxFeedSource;+ /**+ * A Macro user's short name: their first name. Read reactively; it+ * resolves after it loads.+ */+ userName: (userId: string) => string | undefined;+ /**+ * The sender a notification names itself, which outranks a Macro user's+ * name: a GitHub login, or a discussion's sender display name.+ */+ senderName: (notification: UnifiedNotification) => string | undefined;+ /** Open a page outside Macro, such as a pull request. */+ openUrl: (url: string) => void;+ /** Where the reader's filters are kept between visits. */+ filterStorage: {+ read: () => string | null;+ write: (value: string) => void;+ };+};++const Context = createContext<NotificationsInboxContext>();++export const NotificationsInboxProvider = Context.Provider;++export function useNotificationsInboxContext(): NotificationsInboxContext {+ const context = useContext(Context);+ if (!context) throw new Error('NotificationsInboxProvider is required');+ return context;+}diff --git a/apps/web/src/features/notifications-inbox/core/inbox-filters.test.ts b/apps/web/src/features/notifications-inbox/core/inbox-filters.test.tsnew file mode 100644index 0000000000..0923a758b0--- /dev/null+++ b/apps/web/src/features/notifications-inbox/core/inbox-filters.test.ts@@ -0,0 +1,70 @@+import { describe, expect, it } from 'vitest';+import {+ ALL_INBOX_ROW_TYPES,+ activeFilterCount,+ parseInboxFilters,+ rowTypesFor,+ statusIncludes,+} from './inbox-filters';++describe('rowTypesFor', () => {+ it('reads every row type until a category is hidden', () => {+ expect(rowTypesFor({ status: 'all', hiddenCategories: [] })).toEqual(+ ALL_INBOX_ROW_TYPES+ );+ });++ it('drops both channel and discussion rows of a hidden category', () => {+ const types = rowTypesFor({+ status: 'all',+ hiddenCategories: ['mentions', 'calendar'],+ });+ expect(types).not.toContain('channel_mention');+ expect(types).not.toContain('discussion_mention');+ expect(types).not.toContain('calendar_event');+ expect(types).not.toContain('calendar_join_request');+ expect(types).toContain('channel_thread');+ });+});++describe('statusIncludes', () => {+ it('narrows to unread rows', () => {+ expect(+ [true, false].filter((unseen) => statusIncludes('unread', unseen))+ ).toEqual([true]);+ expect(+ [true, false].filter((unseen) => statusIncludes('all', unseen))+ ).toEqual([true, false]);+ });+});++describe('saved filters', () => {+ it('counts hidden categories, not the toggle that shows its own state', () => {+ expect(+ activeFilterCount({ status: 'unread', hiddenCategories: ['email'] })+ ).toBe(1);+ expect(activeFilterCount({ status: 'unread', hiddenCategories: [] })).toBe(+ 0+ );+ });++ it('keeps only what this build understands', () => {+ expect(+ parseInboxFilters(+ JSON.stringify({+ status: 'unread',+ hiddenCategories: ['email', 'retired-kind'],+ })+ )+ ).toEqual({ status: 'unread', hiddenCategories: ['email'] });+ expect(parseInboxFilters('not json')).toEqual({+ status: 'all',+ hiddenCategories: [],+ });+ // A read-only filter saved by an earlier build opens at All.+ expect(parseInboxFilters(JSON.stringify({ status: 'read' }))).toEqual({+ status: 'all',+ hiddenCategories: [],+ });+ });+});diff --git a/apps/web/src/features/notifications-inbox/core/inbox-filters.ts b/apps/web/src/features/notifications-inbox/core/inbox-filters.tsnew file mode 100644index 0000000000..2aa023a10d--- /dev/null+++ b/apps/web/src/features/notifications-inbox/core/inbox-filters.ts@@ -0,0 +1,122 @@+import { match } from 'ts-pattern';+import type { InboxRowType } from './inbox-row';++/** Every row type this build knows. */+export const ALL_INBOX_ROW_TYPES: readonly InboxRowType[] = [+ 'agent',+ 'email',+ 'channel_mention',+ 'channel_messages',+ 'channel_thread',+ 'discussion_mention',+ 'discussion_messages',+ 'discussion_thread',+ 'task',+ 'pull_request',+ 'calendar_event',+ 'calendar_join_request',+ 'access_requested',+ 'access_granted',+];++/** The kinds of notification a reader filters by. */+export type InboxCategory =+ | 'agents'+ | 'mentions'+ | 'replies'+ | 'messages'+ | 'comments'+ | 'email'+ | 'tasks'+ | 'pull_requests'+ | 'calendar'+ | 'access';++/** Categories in menu order. */+export const INBOX_CATEGORIES: readonly InboxCategory[] = [+ 'mentions',+ 'replies',+ 'messages',+ 'comments',+ 'email',+ 'tasks',+ 'pull_requests',+ 'calendar',+ 'access',+ 'agents',+];++/** The category a row type is filtered under. */+export const rowCategory = (type: InboxRowType): InboxCategory =>+ match(type)+ .with('agent', () => 'agents' as const)+ .with('channel_mention', 'discussion_mention', () => 'mentions' as const)+ .with('channel_thread', 'discussion_thread', () => 'replies' as const)+ .with('channel_messages', () => 'messages' as const)+ .with('discussion_messages', () => 'comments' as const)+ .with('email', () => 'email' as const)+ .with('task', () => 'tasks' as const)+ .with('pull_request', () => 'pull_requests' as const)+ .with('calendar_event', 'calendar_join_request', () => 'calendar' as const)+ .with('access_requested', 'access_granted', () => 'access' as const)+ .exhaustive();++/** Which rows a reader wants: by read state, and the categories they hide. */+export type InboxStatus = 'all' | 'unread';++export type InboxFilters = {+ status: InboxStatus;+ /** Hidden rather than shown, so a category added later starts visible. */+ hiddenCategories: readonly InboxCategory[];+};++export const DEFAULT_INBOX_FILTERS: InboxFilters = {+ status: 'all',+ hiddenCategories: [],+};++/** The row types to read for these filters; [] when every category is hidden. */+export function rowTypesFor(filters: InboxFilters): InboxRowType[] {+ return ALL_INBOX_ROW_TYPES.filter(+ (type) => !filters.hiddenCategories.includes(rowCategory(type))+ );+}++/** Whether a row's read state passes the status filter. */+export function statusIncludes(status: InboxStatus, unseen: boolean): boolean {+ return match(status)+ .with('all', () => true)+ .with('unread', () => unseen)+ .exhaustive();+}++/**+ * How many kinds of notification are hidden, for the filter trigger's badge.+ * The All and Unread toggle shows its own state.+ */+export function activeFilterCount(filters: InboxFilters): number {+ return filters.hiddenCategories.length;+}++const isStatus = (value: unknown): value is InboxStatus =>+ value === 'all' || value === 'unread';+const isCategory = (value: unknown): value is InboxCategory =>+ INBOX_CATEGORIES.some((category) => category === value);++/** Read saved filters, keeping only what this build understands. */+export function parseInboxFilters(raw: string | null): InboxFilters {+ if (!raw) return DEFAULT_INBOX_FILTERS;+ let value: unknown;+ try {+ value = JSON.parse(raw);+ } catch {+ return DEFAULT_INBOX_FILTERS;+ }+ if (typeof value !== 'object' || value === null) return DEFAULT_INBOX_FILTERS;+ const status = 'status' in value ? value.status : undefined;+ const hidden = 'hiddenCategories' in value ? value.hiddenCategories : [];+ return {+ status: isStatus(status) ? status : 'all',+ hiddenCategories: Array.isArray(hidden) ? hidden.filter(isCategory) : [],+ };+}diff --git a/apps/web/src/features/notifications-inbox/core/inbox-row.test.ts b/apps/web/src/features/notifications-inbox/core/inbox-row.test.tsnew file mode 100644index 0000000000..6e86933ddf--- /dev/null+++ b/apps/web/src/features/notifications-inbox/core/inbox-row.test.ts@@ -0,0 +1,77 @@+import { describe, expect, it } from 'vitest';+import {+ compareInboxRows,+ type InboxRow,+ markRows,+ settleRowMarks,+ unmarkRows,+ withoutDoneRows,+ withSeenRows,+} from './inbox-row';++const row = (+ id: string,+ latestAt: number,+ revision = `rev-${id}`+): InboxRow<null> => ({+ id,+ type: 'channel_messages',+ revision,+ latestAt,+ actions: [],+ unseen: true,+ count: 1,+ content: null,+});++const ids = (rows: InboxRow<null>[]) => rows.map((r) => r.id);++describe('compareInboxRows', () => {+ it('orders rows newest first, breaking ties by id', () => {+ const rows = [row('a#task', 20), row('c#task', 30), row('b#task', 20)];+ expect(ids(rows.sort(compareInboxRows))).toEqual([+ 'c#task',+ 'b#task',+ 'a#task',+ ]);+ });+});++describe('done rows', () => {+ const rows = [row('a#task', 30), row('b#task', 20)];++ it('hides a row only while it shows the acknowledged revision', () => {+ const done = markRows(new Map(), [rows[0]]);+ expect(ids(withoutDoneRows(rows, done))).toEqual(['b#task']);+ // A newer notification changes the revision and shows the row again.+ const newer = [row('a#task', 40, 'rev-newer'), rows[1]];+ expect(ids(withoutDoneRows(newer, done))).toEqual(['a#task', 'b#task']);+ });++ it('shows a row again when its done is undone', () => {+ const done = unmarkRows(markRows(new Map(), rows), ['a#task']);+ expect(ids(withoutDoneRows(rows, done))).toEqual(['a#task']);+ });++ it('forgets rows a fresh read removed or advanced', () => {+ const done = markRows(new Map(), rows);+ const settled = settleRowMarks(done, [row('a#task', 30)]);+ expect([...settled.keys()]).toEqual(['a#task']);+ expect(settleRowMarks(done, [row('a#task', 40, 'rev-newer')]).size).toBe(0);+ });+});++describe('seen rows', () => {+ it('reads a row as seen only while it shows the acknowledged revision', () => {+ const seen = markRows(new Map(), [row('a#task', 30)]);+ expect(+ withSeenRows([row('a#task', 30), row('b#task', 20)], seen).map(+ (r) => r.unseen+ )+ ).toEqual([false, true]);+ // A newer notification changes the revision and reads as unseen again.+ expect(+ withSeenRows([row('a#task', 40, 'rev-newer')], seen).map((r) => r.unseen)+ ).toEqual([true]);+ });+});diff --git a/apps/web/src/features/notifications-inbox/core/inbox-row.ts b/apps/web/src/features/notifications-inbox/core/inbox-row.tsnew file mode 100644index 0000000000..349b3fd7a5--- /dev/null+++ b/apps/web/src/features/notifications-inbox/core/inbox-row.ts@@ -0,0 +1,177 @@+/** The kinds of notification inbox row this build knows. */+export type InboxRowType =+ | 'agent'+ | 'email'+ | 'channel_mention'+ | 'channel_messages'+ | 'channel_thread'+ | 'discussion_mention'+ | 'discussion_messages'+ | 'discussion_thread'+ | 'task'+ | 'pull_request'+ | 'calendar_event'+ | 'calendar_join_request'+ | 'access_requested'+ | 'access_granted';++/** Who a row is from, per its newest notification. */+export type InboxActor =+ | { kind: 'user'; id: string }+ | { kind: 'agent'; name?: string }+ | { kind: 'macro' }+ /** A kind this build doesn't know; the row names no author. */+ | { kind: 'other' };++/** A decision on the access or join request a row carries. */+export type InboxDecision = 'approve' | 'deny' | 'accept' | 'decline';++/** Something the viewer can do from a row. */+export type InboxRowAction =+ /** Open what the row is about. */+ | { kind: 'open' }+ /** Answer the agent waiting for the viewer. */+ | { kind: 'answer' }+ /** Review the pull request at `url`, outside Macro. */+ | { kind: 'review'; url: string }+ /** Approve or deny an access request, accept or decline a join request. */+ | { kind: InboxDecision; targetId: string };++export type InboxDecisionAction = Extract<InboxRowAction, { targetId: string }>;++/**+ * One notification inbox row: the notifications that present together, such+ * as one thread or one access request. `Content` is what the row shows; the+ * data source's adapter decides its shape.+ */+export type InboxRow<Content> = {+ /** Stable, opaque row id. */+ id: string;+ /** `other` for a kind this build doesn't know, shown as a generic row. */+ type: InboxRowType | 'other';+ /** What a done of this row acknowledges. */+ revision: string;+ /** When the row's newest notification was created, epoch milliseconds. */+ latestAt: number;+ /** For a thread row, the top-level message it is about. */+ threadId?: string;+ /** Absent when the row is from no one in Macro, such as an email sender. */+ actor?: InboxActor;+ /** What the viewer can do from the row, in button order. */+ actions: readonly InboxRowAction[];+ unseen: boolean;+ /** How many notifications the row shows. */+ count: number;+ content: Content;+};++/** The kind of notification a card names on its avatar. */+export type InboxCardKind =+ | 'channel'+ | 'message'+ | 'mention'+ | 'reply'+ | 'reaction'+ | 'email'+ | 'comment'+ | 'invite'+ | 'access'+ | 'agent'+ | 'task'+ | 'pull_request'+ | 'event'+ | 'reminder'+ | 'other';++/** One notification inside an unfolded stack. */+export type InboxStackItem = {+ id: string;+ /** Who did what, without the place the card already names. */+ by: string;+ /** What was said, as Markdown. */+ text: string;+ /** When it arrived. */+ at: Date;+};++export const isDecisionAction = (+ action: InboxRowAction+): action is InboxDecisionAction =>+ action.kind === 'approve' ||+ action.kind === 'deny' ||+ action.kind === 'accept' ||+ action.kind === 'decline';++/** Newest first; equal times keep a stable order by row id. */+export function compareInboxRows<Content>(+ a: InboxRow<Content>,+ b: InboxRow<Content>+): number {+ if (a.latestAt !== b.latestAt) return b.latestAt - a.latestAt;+ return a.id < b.id ? 1 : a.id > b.id ? -1 : 0;+}++/**+ * Rows the viewer marked done or seen here, with the revision each+ * acknowledged. The mark holds while a loaded row still shows that revision,+ * until the server's change lands; a newer notification lifts it.+ */+export type RowMarks = ReadonlyMap<string, string>;++/** The rows without the ones marked done. */+export function withoutDoneRows<Content>(+ rows: readonly InboxRow<Content>[],+ done: RowMarks+): InboxRow<Content>[] {+ return rows.filter((row) => done.get(row.id) !== row.revision);+}++/** The rows, with the ones marked seen read. */+export function withSeenRows<Content>(+ rows: readonly InboxRow<Content>[],+ seen: RowMarks+): InboxRow<Content>[] {+ if (seen.size === 0) return [...rows];+ return rows.map((row) =>+ row.unseen && seen.get(row.id) === row.revision+ ? { ...row, unseen: false }+ : row+ );+}++/** Mark rows at the revision each acknowledged. */+export function markRows(+ marks: RowMarks,+ rows: readonly Pick<InboxRow<unknown>, 'id' | 'revision'>[]+): RowMarks {+ const next = new Map(marks);+ for (const row of rows) next.set(row.id, row.revision);+ return next;+}++/** Lift marks after an undone or failed change. */+export function unmarkRows(+ marks: RowMarks,+ rowIds: readonly string[]+): RowMarks {+ const next = new Map(marks);+ for (const rowId of rowIds) next.delete(rowId);+ return next;+}++/**+ * Forget marks a fresh read settled: the feed no longer holds the row, or+ * holds it with newer notifications. Only rows still shown at the+ * acknowledged revision stay marked.+ */+export function settleRowMarks<Content>(+ marks: RowMarks,+ rows: readonly InboxRow<Content>[]+): RowMarks {+ if (marks.size === 0) return marks;+ const next = new Map<string, string>();+ for (const row of rows) {+ if (marks.get(row.id) === row.revision) next.set(row.id, row.revision);+ }+ return next;+}diff --git a/apps/web/src/features/notifications-inbox/notifications-inbox.tsx b/apps/web/src/features/notifications-inbox/notifications-inbox.tsxnew file mode 100644index 0000000000..0e6bc4b182--- /dev/null+++ b/apps/web/src/features/notifications-inbox/notifications-inbox.tsx@@ -0,0 +1,114 @@+import { useSplitPanelOrThrow } from '@components/app/split-layout/layoutUtils';+import { useSettingsState } from '@core/constant/SettingsState';+import { useUserId } from '@core/context/user';+import { getDisplayNameParts, tryMacroId } from '@core/user';+import { openExternalUrl } from '@core/util/url';+import { createUserScopedStorage } from '@core/util/userScopedStorage';+import {+ getGithubSenderLogin,+ isGithubNotificationType,+} from '@entity/extractors-notification/notification-description-helpers';+import { setDoneOverride } from '@notifications/notification-source';+import type { UnifiedNotification } from '@notifications/types';+import { useRespondToCalendarJoinRequestMutation } from '@queries/calendar/join-requests';+import { revalidateNotificationReaders } from '@queries/notification/revalidation';+import {+ getGraphqlCacheHost,+ getGraphqlSoupClient,+ subscribeGraphqlSoupReconnected,+} from '@service-storage/graphql-soup';+import { Show } from 'solid-js';+import {+ type NotificationsInboxContext,+ NotificationsInboxProvider,+} from './context/notifications-inbox-context';+import { openNotificationInSplit } from './open-notification-in-split';+import { createNotificationInboxSource } from './queries/notification-inbox-source';+import { resolveAccessRequest } from './queries/row-actions';+import { NotificationsView } from './views/notifications-view';++const filterStorage = createUserScopedStorage('macro:notifications:filters:v1');++function userName(userId: string): string | undefined {+ const parts = getDisplayNameParts(tryMacroId(userId), {+ emailFallback: 'local-part',+ });+ return parts.firstName || parts.fullName || undefined;+}++function senderName(notification: UnifiedNotification): string | undefined {+ const metadata = notification.notification_metadata;+ // Bots and agents have no user id; they name themselves in the metadata.+ if (+ 'senderDisplayName' in metadata.content &&+ metadata.content.senderDisplayName+ ) {+ return metadata.content.senderDisplayName;+ }+ // GitHub senders keep their GitHub login, even when linked to Macro.+ if (isGithubNotificationType(metadata.tag)) {+ return getGithubSenderLogin(notification);+ }+ return undefined;+}++function createAppNotificationsInboxContext(+ userId: string,+ answerJoinRequest: NotificationsInboxContext['requests']['answerJoinRequest']+): NotificationsInboxContext {+ return {+ requests: { resolveAccessRequest, answerJoinRequest },+ createFeed: (scope) =>+ createNotificationInboxSource({+ client: getGraphqlSoupClient,+ cacheHost: getGraphqlCacheHost,+ scope,+ enabled: () => true,+ onReconnected: subscribeGraphqlSoupReconnected,+ overrideNotificationsDone: (ids) => setDoneOverride(ids, true),+ revalidateNotifications: revalidateNotificationReaders,+ }),+ userName,+ senderName,+ openUrl: openExternalUrl,+ filterStorage: {+ read: () => filterStorage.read(userId),+ write: (value) => filterStorage.write(userId, value),+ },+ };+}++/** The Notifications view with the app's feed, notification state and navigation. */+export function NotificationsInbox() {+ const panel = useSplitPanelOrThrow();+ const userId = useUserId();+ const { openSettings } = useSettingsState();+ const respondToJoinRequest = useRespondToCalendarJoinRequestMutation();+ const answerJoinRequest: NotificationsInboxContext['requests']['answerJoinRequest'] =+ async (request, accept) => {+ await respondToJoinRequest.mutateAsync({+ request: { id: request.requestId, eventId: request.eventId },+ decision: accept ? 'accept' : 'decline',+ });+ };+ return (+ <Show when={userId()} keyed>+ {(id) => (+ <NotificationsInboxProvider+ value={createAppNotificationsInboxContext(id, answerJoinRequest)}+ >+ <NotificationsView+ onOpenSettings={() => openSettings('Notifications')}+ onOpen={(row, { newSplit, notification }) =>+ openNotificationInSplit(row, {+ newSplit,+ notification,+ splitHandle: panel.handle,+ })+ }+ />+ </NotificationsInboxProvider>+ )}+ </Show>+ );+}diff --git a/apps/web/src/features/notifications-inbox/open-notification-in-split.ts b/apps/web/src/features/notifications-inbox/open-notification-in-split.tsnew file mode 100644index 0000000000..0452faf971--- /dev/null+++ b/apps/web/src/features/notifications-inbox/open-notification-in-split.ts@@ -0,0 +1,69 @@+import { openEntityInSplitFromUnifiedList } from '@app/features/next-soup/utils';+import { globalSplitManager } from '@app/signal/splitLayout';+import type { SplitHandle } from '@components/app/split-layout/layoutManager';+import { fireAndForget } from '@core/util/fireAndForget';+import { openNotification } from '@notifications';+import type { UnifiedNotification } from '@notifications/types';+import type { NotificationInboxRow } from './context/notifications-inbox-context';+import { agentTurnParams } from './primitives/notification-location';++type OpenOptions = { newSplit: boolean; splitHandle: SplitHandle };++/**+ * Open one notification of a stack at its own location, as the app's other+ * notification lists do; one with nowhere of its own opens what its row is+ * about. An agent's turn is applied after the session opens.+ */+async function openStackNotification(+ row: NotificationInboxRow,+ notification: UnifiedNotification,+ options: OpenOptions+) {+ const entity = row.content.entity;+ const manager = globalSplitManager();+ const opened =+ manager &&+ (await openNotification(+ notification,+ manager,+ options.newSplit,+ {+ fileType: 'fileType' in entity ? entity.fileType : undefined,+ subType: 'subType' in entity ? entity.subType : undefined,+ },+ options.splitHandle+ ));+ if (!opened || opened.isErr()) {+ await openEntityInSplitFromUnifiedList(row.content.entityAt(notification), {+ openInNewSplit: options.newSplit,+ splitHandle: options.splitHandle,+ });+ return;+ }+ const params = agentTurnParams(notification);+ if (!params) return;+ const handle = await manager+ .getOrchestrator()+ ?.getBlockHandle(entity.id, 'agent');+ await handle?.goToLocationFromParams(params);+}++/**+ * Open what a notification row is about, at the notification's location+ * (the thread, comment or message the row's newest notification names), or at+ * one of its notifications when one is named, in this split or a new one.+ */+export function openNotificationInSplit(+ row: NotificationInboxRow,+ options: OpenOptions & { notification?: UnifiedNotification }+) {+ fireAndForget(+ options.notification+ ? openStackNotification(row, options.notification, options)+ : openEntityInSplitFromUnifiedList(row.content.entity, {+ openInNewSplit: options.newSplit,+ splitHandle: options.splitHandle,+ }),+ 'notifications-inbox'+ );+}diff --git a/apps/web/src/features/notifications-inbox/primitives/describe-row.test.ts b/apps/web/src/features/notifications-inbox/primitives/describe-row.test.tsnew file mode 100644index 0000000000..5960046998--- /dev/null+++ b/apps/web/src/features/notifications-inbox/primitives/describe-row.test.ts@@ -0,0 +1,442 @@+import type { UnifiedNotification } from '@notifications/types';+import { describe, expect, it } from 'vitest';+import type { NotificationInboxRow } from '../context/notifications-inbox-context';+import type { InboxActor } from '../core/inbox-row';+import {+ describeInboxCard,+ describeInboxRow,+ describeStackItem,+ inboxCardKind,+} from './describe-row';++const taskAssigned = {+ id: 'n-1',+ entity_type: 'task',+ entity_id: 'task-a',+ sender_id: 'macro|[email protected]',+ notification_metadata: {+ tag: 'task_assigned',+ content: { taskName: 'Ship the inbox' },+ },+} as unknown as UnifiedNotification;++const email = {+ id: 'n-2',+ entity_type: 'email_thread',+ entity_id: 'thread-a',+ sender_id: null,+ notification_metadata: {+ tag: 'new_email',+ content: { sender: 'Dana', subject: 'Quarterly numbers' },+ },+} as unknown as UnifiedNotification;++const row = (+ actor: InboxActor | undefined,+ notification: UnifiedNotification = taskAssigned+): NotificationInboxRow => ({+ id: 'row',+ type: 'task',+ revision: 'rev',+ latestAt: 1,+ actor,+ actions: [],+ unseen: true,+ count: 1,+ content: {+ entity: { type: 'task', id: 'task-a', name: 'Task' } as never,+ notifications: [notification],+ entityAt: () => ({}) as never,+ },+});++type Names = Parameters<typeof describeInboxRow>[1];++const names: Names = {+ userName: (id) => (id === 'macro|[email protected]' ? 'Ana' : 'Bo'),+ senderName: () => undefined,+};++const action = (+ actor: InboxActor | undefined,+ senderName: Names['senderName'] = names.senderName+) => describeInboxRow(row(actor), { ...names, senderName }).action;++describe('describeInboxRow', () => {+ it('names the row’s author from its actor', () => {+ expect(action({ kind: 'user', id: 'macro|[email protected]' })).toBe(+ 'Ana assigned you a task'+ );+ expect(action({ kind: 'agent', name: 'Builder' })).toBe(+ 'Builder assigned you a task'+ );+ expect(action({ kind: 'macro' })).toBe('Macro assigned you a task');+ });++ it('keeps the sender a notification names itself, such as a GitHub login', () => {+ expect(+ action({ kind: 'user', id: 'macro|[email protected]' }, () => 'octocat')+ ).toBe('octocat assigned you a task');+ });++ it('names no author for an actor kind this build doesn’t know', () => {+ expect(action({ kind: 'other' })).toBe('assigned you a task');+ });++ it('names an outside sender from the notification', () => {+ expect(describeInboxRow(row(undefined, email), names)).toEqual({+ action: 'Dana sent you an email',+ subject: 'Quarterly numbers',+ });+ });+});++const sent = (+ id: string,+ tag: string,+ sender: string,+ content: Record<string, unknown>+) =>+ ({+ id,+ entity_type: 'channel',+ entity_id: 'channel-a',+ sender_id: sender,+ created_at: '2026-03-01T10:00:00Z',+ notification_metadata: { tag, content },+ }) as unknown as UnifiedNotification;++const stack = (+ type: NotificationInboxRow['type'],+ notifications: UnifiedNotification[],+ threadId?: string+): NotificationInboxRow => ({+ id: 'stack',+ type,+ threadId,+ revision: 'rev',+ latestAt: 1,+ actions: [],+ unseen: true,+ count: notifications.length,+ content: {+ entity: { type: 'channel', id: 'entity', name: 'The entity' } as never,+ notifications,+ entityAt: () => ({}) as never,+ },+});++const people: Names = {+ userName: (id) => id,+ senderName: () => undefined,+};++const channel = { channelType: 'public', channelName: 'launch' };++const itemsOf = (row: NotificationInboxRow) =>+ row.content.notifications.map((notification) =>+ describeStackItem(row, notification, people)+ );++describe('describeInboxCard', () => {+ it('gives an email row its sender, subject and snippet', () => {+ const card = describeInboxCard(+ {+ ...stack('email', [+ {+ ...email,+ notification_metadata: {+ tag: 'new_email',+ content: {+ sender: 'Dana',+ subject: 'Quarterly numbers',+ snippet: 'They look good.',+ },+ },+ } as unknown as UnifiedNotification,+ ]),+ },+ { ...people, userName: () => 'Dana' }+ );+ expect(card).toEqual({+ who: 'Dana',+ what: 'Quarterly numbers',+ body: 'They look good.',+ });+ });++ it('gives a message in a channel no middle line', () => {+ const card = describeInboxCard(+ stack('channel_messages', [+ sent('1', 'channel_message_send', 'Sam', {+ ...channel,+ messageContent: 'Ship it',+ }),+ ]),+ people+ );+ expect(card).toEqual({+ who: 'Sam in #launch',+ what: undefined,+ body: 'Ship it',+ });+ });++ it('names what a reply did, and leaves a direct message to the person', () => {+ const reply = describeInboxCard(+ stack('channel_thread', [+ sent('1', 'channel_message_reply', 'Sam', {+ ...channel,+ messageContent: 'On it',+ }),+ ]),+ people+ );+ expect(reply.who).toBe('Sam replied in #launch');++ const direct = describeInboxCard(+ stack('channel_messages', [+ sent('1', 'channel_message_send', 'Dana', {+ channelType: 'directMessage',+ messageContent: 'Hello',+ }),+ ]),+ people+ );+ expect(direct).toMatchObject({ who: 'Dana', body: 'Hello' });+ });++ it('says who invited you, to where, and what they said', () => {+ const card = describeInboxCard(+ stack('channel_messages', [+ sent('1', 'channel_invite', 'Ben', {+ channelName: 'partner-beta',+ isDirectMessage: false,+ messageContent: 'Have a look',+ }),+ ]),+ people+ );+ expect(card).toEqual({+ who: 'Ben invited you',+ what: 'partner-beta',+ body: 'Have a look',+ });+ });++ it('shows a thread stack its top-level message and who said the newest line', () => {+ const row = stack(+ 'channel_thread',+ [+ sent('3', 'channel_message_reply', 'Ana', {+ ...channel,+ messageId: 'reply',+ threadId: 'root',+ messageContent: 'On it',+ }),+ sent('2', 'channel_message_reaction', 'Leo', {+ ...channel,+ messageId: 'root',+ messageContent: 'Can we ship Friday?',+ emoji: '+1',+ }),+ ],+ 'root'+ );+ expect(describeInboxCard(row, people)).toEqual({+ who: 'Ana and Leo in #launch',+ what: 'Can we ship Friday?',+ body: 'Ana: On it',+ });+ expect(itemsOf(row).map((item) => item.by)).toEqual([+ 'Ana replied',+ 'Leo reacted',+ ]);+ });++ it('skips the middle line when no notification carries the root', () => {+ const card = describeInboxCard(+ stack(+ 'channel_thread',+ [+ sent('2', 'channel_message_reply', 'Ana', {+ ...channel,+ messageId: 'b',+ threadId: 'root',+ messageContent: 'Newest',+ }),+ sent('1', 'channel_message_reply', 'Sam', {+ ...channel,+ messageId: 'a',+ threadId: 'root',+ messageContent: 'Older',+ }),+ ],+ 'root'+ ),+ people+ );+ expect(card.what).toBeUndefined();+ expect(card.body).toBe('Ana: Newest');+ });++ it('shows a channel stack the channel, who posted and the newest line', () => {+ const row = stack(+ 'channel_messages',+ ['Sam', 'Noor', 'Sam', 'Mara', 'Leo'].map((sender, index) =>+ sent(String(index), 'channel_message_send', sender, {+ ...channel,+ messageId: `m-${index}`,+ messageContent: `Message ${index}`,+ })+ )+ );+ expect(describeInboxCard(row, people)).toEqual({+ who: 'Sam, Noor and 2 others',+ what: '#launch',+ body: 'Sam: Message 0',+ });+ expect(itemsOf(row).map((item) => item.text)).toContain('Message 3');+ });++ it('shows a direct message stack the person and the newest message', () => {+ const card = describeInboxCard(+ stack('channel_messages', [+ sent('2', 'channel_message_send', 'Dana', {+ channelType: 'directMessage',+ messageContent: 'Newest',+ }),+ sent('1', 'channel_message_send', 'Dana', {+ channelType: 'directMessage',+ messageContent: 'Older',+ }),+ ]),+ people+ );+ expect(card).toEqual({ who: 'Dana', what: undefined, body: 'Newest' });+ });++ it('shows a document stack the document', () => {+ const comment = (id: string, sender: string) =>+ sent(id, 'commented_on_document', sender, {+ documentName: 'Launch plan',+ commentId: id,+ threadId: id,+ text: `Comment ${id}`,+ });+ const row = stack('discussion_messages', [+ comment('2', 'Sam'),+ comment('1', 'Ana'),+ ]);+ expect(describeInboxCard(row, people)).toEqual({+ who: 'Sam and Ana commented',+ what: 'Launch plan',+ body: 'Sam: Comment 2',+ });+ expect(itemsOf(row).map((item) => item.by)).toEqual([+ 'Sam commented',+ 'Ana commented',+ ]);+ });++ it('doesn’t repeat a line, such as a mention naming only its document', () => {+ const card = describeInboxCard(+ stack('discussion_mention', [+ sent('1', 'document_mention', 'Sam', { documentName: 'Launch plan' }),+ ]),+ people+ );+ expect(card.what).toBe('Launch plan');+ expect(card.body).toBeUndefined();+ });++ it('shows an agent stack its session and newest update', () => {+ const settled = (id: string) =>+ ({+ id,+ entity_type: 'agent_session',+ entity_id: 'session',+ sender_id: null,+ created_at: '2026-03-01T10:00:00Z',+ notification_metadata: {+ tag: 'agent_session_settled',+ content: {+ sessionName: 'Build the tracker',+ botName: 'Macro',+ excerpt: `Update ${id}`,+ },+ },+ }) as unknown as UnifiedNotification;+ const row: NotificationInboxRow = {+ ...stack('agent', [settled('2'), settled('1')]),+ actor: { kind: 'agent', name: 'Macro' },+ };+ expect(describeInboxCard(row, people)).toEqual({+ who: 'Macro finished',+ what: 'Build the tracker',+ body: 'Update 2',+ });+ expect(itemsOf(row).map((item) => item.text)).toEqual([+ 'Update 2',+ 'Update 1',+ ]);+ });++ it('never leaves the first line empty', () => {+ const card = describeInboxCard(+ {+ ...row({ kind: 'other' }),+ content: { ...row(undefined).content, notifications: [] },+ },+ names+ );+ expect(card).toEqual({ who: 'Task' });+ });+});++describe('inboxCardKind', () => {+ const kindOf = (+ type: NotificationInboxRow['type'],+ tag: string,+ content: Record<string, unknown> = {}+ ) => inboxCardKind(stack(type, [sent('1', tag, 'Sam', content)]));++ it('tells a channel from a direct message, an invite and a reaction', () => {+ expect(kindOf('channel_messages', 'channel_message_send', channel)).toBe(+ 'channel'+ );+ expect(+ kindOf('channel_messages', 'channel_message_send', {+ channelType: 'directMessage',+ })+ ).toBe('message');+ expect(kindOf('channel_messages', 'channel_invite')).toBe('invite');+ expect(kindOf('channel_thread', 'channel_message_reaction')).toBe(+ 'reaction'+ );+ });++ it('keeps a mention a mention whatever arrived after it', () => {+ expect(kindOf('channel_mention', 'channel_message_reply', channel)).toBe(+ 'mention'+ );+ });++ it('tells a comment from a reply on a document', () => {+ expect(kindOf('discussion_messages', 'commented_on_document')).toBe(+ 'comment'+ );+ expect(+ kindOf('discussion_thread', 'replied_to_document_comment_thread')+ ).toBe('reply');+ });++ it('tells a reminder from an email, though they share a row', () => {+ expect(kindOf('email', 'new_email')).toBe('email');+ expect(kindOf('email', 'reminder')).toBe('reminder');+ });++ it('keeps a kind this build doesn’t know generic', () => {+ expect(kindOf('other', 'something_new')).toBe('other');+ });+});diff --git a/apps/web/src/features/notifications-inbox/primitives/describe-row.ts b/apps/web/src/features/notifications-inbox/primitives/describe-row.tsnew file mode 100644index 0000000000..b5e3948eb4--- /dev/null+++ b/apps/web/src/features/notifications-inbox/primitives/describe-row.ts@@ -0,0 +1,470 @@+import {+ getNotificationAction,+ getNotificationContent,+ getNotificationTargetName,+} from '@notifications/notification-metadata';+import { getNotificationSenderFallbackName } from '@notifications/notification-sender';+import type { UnifiedNotification } from '@notifications/types';+import { match, P } from 'ts-pattern';+import type {+ NotificationInboxRow,+ NotificationsInboxContext,+} from '../context/notifications-inbox-context';+import type { InboxCardKind, InboxStackItem } from '../core/inbox-row';++/**+ * What a row says: a muted "actor verb place" line and its subject. The line+ * shares `getNotificationAction`'s vocabulary with the other notification+ * surfaces, which isn't translated yet, so it stays in English with them.+ */+export type InboxRowDisplay = {+ action: string;+ subject: string;+};++/** What a card says, in as many lines as it has something to say. */+export type InboxCardDisplay = {+ /** Who did it, and what they did when that isn't obvious. */+ who: string;+ /** What it is about: a subject, channel, document, session or task. */+ what?: string;+ /** What was said, as Markdown. */+ body?: string;+};++type Names = Pick<NotificationsInboxContext, 'userName' | 'senderName'>;++/**+ * The name a row shows for who it is from. A row from no one in Macro names+ * the sender its notification carries; an unknown kind of actor names no one.+ */+function actorName(+ row: NotificationInboxRow,+ latest: UnifiedNotification,+ names: Names+): string | undefined {+ return match(row.actor)+ .with(+ undefined,+ () =>+ names.senderName(latest) ?? getNotificationSenderFallbackName(latest)+ )+ .with(+ { kind: 'user' },+ (actor) => names.senderName(latest) ?? names.userName(actor.id)+ )+ .with(+ { kind: 'agent' },+ (actor) => actor.name ?? getNotificationSenderFallbackName(latest)+ )+ .with({ kind: 'macro' }, () => 'Macro')+ .with({ kind: 'other' }, () => undefined)+ .exhaustive();+}++const join = (...parts: (string | undefined)[]) =>+ parts.filter((part) => part !== undefined && part !== '').join(' ');++type ChannelContent = { channelType?: string; channelName?: string };++/** Where a channel event happened; a DM says nothing, a channel names itself. */+const channelPlace = (content: ChannelContent) => {+ if (content.channelType === 'directMessage' || !content.channelName) return;+ return content.channelType === 'public' || content.channelType === 'team'+ ? `#${content.channelName}`+ : content.channelName;+};++/** Channel verbs drop their preposition in a DM, which needs no place. */+function channelAction(+ actor: string | undefined,+ notification: UnifiedNotification,+ content: ChannelContent+) {+ const place = channelPlace(content);+ if (place) return join(actor, getNotificationAction(notification), place);+ const dmVerb = match(notification.notification_metadata.tag)+ .with('channel_mention', () => 'mentioned you')+ .with('channel_message_reply', () => 'replied')+ .with('channel_message_reaction', () => 'reacted to your message')+ .otherwise(() => 'sent you a message');+ return join(actor, dmVerb);+}++/**+ * Describe a row from its newest notification: who did what, where, and the+ * subject a reader scans for — the email subject, the message or comment,+ * the task, pull request, event, or item.+ */+export function describeInboxRow(+ row: NotificationInboxRow,+ names: Names+): InboxRowDisplay {+ const latest = row.content.notifications[0];+ if (!latest) return { action: '', subject: row.content.entity.name };+ return describeNotification(row, latest, actorName(row, latest, names));+}++function describeNotification(+ row: NotificationInboxRow,+ latest: UnifiedNotification,+ actor: string | undefined+): InboxRowDisplay {+ const entityName = row.content.entity.name;+ const content = getNotificationContent(latest);+ const target = getNotificationTargetName(latest);++ return match(latest.notification_metadata)+ .with(+ {+ tag: P.union(+ 'channel_mention',+ 'channel_message_send',+ 'channel_message_reply',+ 'channel_message_reaction'+ ),+ },+ (metadata) => ({+ action: channelAction(actor, latest, metadata.content),+ subject: content ?? entityName,+ })+ )+ .with({ tag: 'channel_invite' }, (metadata) => ({+ action: metadata.content.isDirectMessage+ ? join(actor, 'started a conversation')+ : join(actor, 'invited you to', metadata.content.channelName),+ subject:+ metadata.content.messageContent ||+ metadata.content.channelName ||+ entityName,+ }))+ .with({ tag: 'new_email' }, (metadata) => ({+ action: join(+ actor,+ row.count > 1 ? 'responded to thread' : 'sent you an email'+ ),+ subject: metadata.content.subject || entityName,+ }))+ .with({ tag: 'task_assigned' }, (metadata) => ({+ action: join(actor, 'assigned you a task'),+ subject: metadata.content.taskName ?? entityName,+ }))+ .with({ tag: 'entity_access_requested' }, (metadata) => ({+ action: join(actor, `requested ${metadata.content.accessLevel} access`),+ subject: metadata.content.entityName || entityName,+ }))+ .with({ tag: 'entity_access_granted' }, (metadata) => ({+ action: join(actor, `granted you ${metadata.content.accessLevel} access`),+ subject: metadata.content.entityName || entityName,+ }))+ .with({ tag: 'reminder' }, () => ({+ action: 'Reminder',+ subject: content || entityName,+ }))+ .with({ tag: 'calendar_event_reminder' }, () => ({+ action: join('Upcoming event', content ? `· ${content}` : undefined),+ subject: target ?? entityName,+ }))+ .with({ tag: 'calendar_event_join_request' }, () => ({+ action: join(actor, 'asked to join'),+ subject: target ?? entityName,+ }))+ .with({ tag: 'ai_response' }, () => ({+ action: 'Macro responded',+ subject: content ?? entityName,+ }))+ .with(+ {+ tag: P.union(+ 'agent_session_settled',+ 'agent_session_waiting_for_input',+ 'agent_session_mentioned'+ ),+ },+ (metadata) => ({+ action: join(actor, getNotificationAction(latest), target),+ subject: content ?? metadata.content.sessionName,+ })+ )+ .otherwise(() => ({+ // Discussions, comments, pull requests, document mentions: the+ // verb names the place, and the content is what was said.+ action: join(actor, getNotificationAction(latest), target),+ subject: content ?? target ?? entityName,+ }));+}++/**+ * Who sent one notification of a stack. The row's actor speaks for its newest+ * notification only, so the older ones name their own sender.+ */+const senderOf = (+ row: NotificationInboxRow,+ notification: UnifiedNotification,+ names: Names+) =>+ (notification === row.content.notifications[0]+ ? actorName(row, notification, names)+ : undefined) ??+ names.senderName(notification) ??+ (notification.sender_id+ ? names.userName(notification.sender_id)+ : undefined) ??+ getNotificationSenderFallbackName(notification);++/** "Sam", "Sam and Noor", "Sam, Noor and Mara", "Sam, Noor and 3 others". */+const nameList = (all: readonly string[]) => {+ const unique = [...new Set(all)];+ const [first = '', second, third] = unique;+ if (unique.length <= 1) return first;+ if (unique.length === 2) return `${first} and ${second}`;+ if (unique.length === 3) return `${first}, ${second} and ${third}`;+ return `${first}, ${second} and ${unique.length - 2} others`;+};++/** What one notification did, for a stack that already names its place. */+const stackVerb = (notification: UnifiedNotification) =>+ match(notification.notification_metadata)+ .with({ tag: P.union('channel_message_send', 'new_email') }, () => '')+ .with(+ {+ tag: P.union(+ 'channel_mention',+ 'mentioned_in_document_comment',+ 'github_pr_mention',+ 'agent_session_mentioned'+ ),+ },+ () => 'mentioned you'+ )+ .with(+ {+ tag: P.union(+ 'channel_message_reply',+ 'replied_to_document_comment_thread'+ ),+ },+ () => 'replied'+ )+ .with({ tag: 'channel_message_reaction' }, () => 'reacted')+ .with(+ { tag: P.union('commented_on_document', 'github_pr_comment') },+ () => 'commented'+ )+ .with(+ { tag: P.union('initiative_discussion', 'crm_discussion') },+ ({ content }) =>+ match(content.reason as string)+ .with('mention', () => 'mentioned you')+ .with('reply', () => 'replied')+ .otherwise(() => 'commented')+ )+ .with({ tag: 'agent_session_settled' }, () => 'finished')+ .with({ tag: 'agent_session_waiting_for_input' }, () => 'needs your answer')+ .with({ tag: 'ai_response' }, () => 'responded')+ .with({ tag: 'github_pr_status_changed' }, () => 'updated')+ .with({ tag: 'github_review_requested' }, () => 'wants your review')+ .with({ tag: 'github_pr_review' }, () => 'reviewed')+ .otherwise(() =>+ getNotificationAction(notification).replace(/ (in|on|to)$/, '')+ );++/** The top-level message a thread row is about, when one of its notifications carries it. */+const rootMessage = (row: NotificationInboxRow) => {+ if (!row.threadId) return undefined;+ for (const { notification_metadata: metadata } of row.content.notifications) {+ const root = match(metadata)+ .with(+ {+ tag: P.union(+ 'channel_message_send',+ 'channel_mention',+ 'channel_message_reaction'+ ),+ },+ ({ content }) =>+ content.messageId === row.threadId+ ? content.messageContent+ : undefined+ )+ .otherwise(() => undefined);+ if (root) return root;+ }+ return undefined;+};++/** What a notification says, beyond what its card already names. */+const spokenText = (notification: UnifiedNotification) =>+ match(notification.notification_metadata)+ .with({ tag: 'new_email' }, ({ content }) => content.snippet)+ .with(+ { tag: 'channel_invite' },+ ({ content }) => content.messageContent ?? undefined+ )+ .otherwise(() => getNotificationContent(notification));++/** Drops a line that repeats one above it, and never leaves the first empty. */+const withoutRepeats = (+ card: { who: string; what?: string; body?: string },+ fallback: string+): InboxCardDisplay => {+ const what = card.what && card.what !== card.who ? card.what : undefined;+ const body =+ card.body && card.body !== card.who && card.body !== card.what+ ? card.body+ : undefined;+ if (card.who) return { who: card.who, what, body };+ return what ? { who: what, body } : { who: body ?? fallback };+};++/**+ * Describe a row's card, as a stack or one notification: who did it, what it is+ * about when that isn't who, and what was said. Cards are only as tall as they+ * have something to say: an email has all three lines, a message in a channel+ * has no middle one, and a task has no last one.+ */+export function describeInboxCard(+ row: NotificationInboxRow,+ names: Names+): InboxCardDisplay {+ const entityName = row.content.entity.name;+ const latest = row.content.notifications[0];+ if (!latest) return { who: entityName };++ const single = describeInboxRow(row, names);+ const metadata = latest.notification_metadata;+ const isStack = row.count > 1;+ const sender = senderOf(row, latest, names);+ const senders = row.content.notifications+ .map((notification) => senderOf(row, notification, names) ?? '')+ .filter((name) => name !== '');+ const who = isStack ? nameList(senders) : (sender ?? '');+ const spoken = spokenText(latest);+ // A stack with several people says who said its newest line.+ const body =+ spoken && sender && new Set(senders).size > 1+ ? `${sender}: ${spoken}`+ : spoken;+ const place = channelPlace(metadata.content as ChannelContent);+ const target = getNotificationTargetName(latest);+ const inPlace = (text: string) => (place ? `${text} in ${place}` : text);+ // A message says itself, and its badge says when it is a mention.+ const channelDeed = () =>+ metadata.tag === 'channel_message_send' ||+ metadata.tag === 'channel_mention'+ ? who+ : join(who, stackVerb(latest));++ const card = match(row.type)+ .with('channel_thread', 'channel_mention', () =>+ isStack+ ? { who: inPlace(who), what: rootMessage(row), body }+ : { who: inPlace(channelDeed()), body }+ )+ .with('channel_messages', () => {+ if (isStack) {+ return place ? { who, what: place, body } : { who, body };+ }+ if (metadata.tag !== 'channel_invite') {+ return { who: inPlace(channelDeed()), body };+ }+ return metadata.content.isDirectMessage+ ? { who: single.action, body }+ : {+ who: join(who, 'invited you'),+ what: metadata.content.channelName,+ body,+ };+ })+ .with(+ 'discussion_mention',+ 'discussion_messages',+ 'discussion_thread',+ () => ({+ who: isStack ? `${who} commented` : join(who, stackVerb(latest)),+ what: target ?? entityName,+ body,+ })+ )+ .with('agent', () => ({+ who: join(who, stackVerb(latest)),+ what: target ?? entityName,+ body,+ }))+ .with('pull_request', () => ({+ who: join(who, stackVerb(latest)),+ what: entityName,+ // Its status repeats the title, so it names the pull request instead.+ body: spoken && spoken !== entityName ? body : target,+ }))+ .with('email', () =>+ metadata.tag === 'reminder'+ ? { who: single.action, what: single.subject }+ : { who, what: single.subject, body }+ )+ .with('calendar_event', () =>+ metadata.tag === 'calendar_event_reminder'+ ? { who: 'Upcoming event', what: single.subject, body: spoken }+ : { who: single.action, what: single.subject }+ )+ .with(+ 'task',+ 'calendar_join_request',+ 'access_requested',+ 'access_granted',+ () => ({ who: single.action, what: single.subject })+ )+ .with('other', () => ({ who: single.action, body: single.subject }))+ .exhaustive();++ return withoutRepeats(card, entityName);+}++/**+ * The kind of notification a row is. A stack's newest notification decides,+ * except that a mention stays one: it is why the row is there.+ */+export function inboxCardKind(row: NotificationInboxRow): InboxCardKind {+ const metadata = row.content.notifications[0]?.notification_metadata;+ const isDirect =+ (metadata?.content as ChannelContent | undefined)?.channelType ===+ 'directMessage';+ return match(row.type)+ .returnType<InboxCardKind>()+ .with('channel_mention', 'discussion_mention', () => 'mention')+ .with('channel_thread', () =>+ metadata?.tag === 'channel_message_reaction' ? 'reaction' : 'reply'+ )+ .with('channel_messages', () => {+ if (metadata?.tag === 'channel_invite') return 'invite';+ if (metadata?.tag === 'channel_message_reaction') return 'reaction';+ return isDirect ? 'message' : 'channel';+ })+ .with('discussion_thread', () => 'reply')+ .with('discussion_messages', () => 'comment')+ .with('email', () => (metadata?.tag === 'reminder' ? 'reminder' : 'email'))+ .with('agent', () => 'agent')+ .with('task', () => 'task')+ .with('pull_request', () => 'pull_request')+ .with('calendar_event', 'calendar_join_request', () => 'event')+ .with('access_requested', 'access_granted', () => 'access')+ .with('other', () =>+ metadata?.tag === 'invite_to_team' ? 'invite' : 'other'+ )+ .exhaustive();+}++/** Describe one notification of a stack, without the place its card names. */+export function describeStackItem(+ row: NotificationInboxRow,+ notification: UnifiedNotification,+ names: Names+): InboxStackItem {+ const sender = senderOf(row, notification, names);+ return {+ id: notification.id,+ by: join(sender, stackVerb(notification)),+ text: describeNotification(row, notification, sender).subject,+ at: new Date(notification.created_at),+ };+}diff --git a/apps/web/src/features/notifications-inbox/primitives/inbox-date-headers.test.ts b/apps/web/src/features/notifications-inbox/primitives/inbox-date-headers.test.tsnew file mode 100644index 0000000000..5dd03c3dbf--- /dev/null+++ b/apps/web/src/features/notifications-inbox/primitives/inbox-date-headers.test.ts@@ -0,0 +1,200 @@+import { createRoot, createSignal } from 'solid-js';+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';+import type { NotificationInboxRow } from '../context/notifications-inbox-context';+import {+ createInboxListItems,+ dateHeaderLabel,+ type InboxListItem,+ isInboxNotification,+} from './inbox-date-headers';++const NOW = new Date(2026, 8, 14, 20, 0);++const row = (id: string, latestAt: Date): NotificationInboxRow => ({+ id,+ type: 'task',+ revision: `rev-${id}`,+ latestAt: latestAt.getTime(),+ actions: [],+ unseen: true,+ count: 1,+ content: {+ entity: { type: 'document', id, name: 'Plan' } as never,+ notifications: [],+ entityAt: () => ({}) as never,+ },+});++const todayAt = (hour: number, minute = 0) =>+ new Date(2026, 8, 14, hour, minute);++/** Headers by label and rows by id, in list order. */+const shape = (items: readonly InboxListItem[]) =>+ items.map((item) =>+ item.type === 'date_header' ? dateHeaderLabel(item) : item.id+ );++const stack = (id: string, latestAt: Date, notifications: string[]) => {+ const base = row(id, latestAt);+ return {+ ...base,+ count: notifications.length,+ content: {+ ...base.content,+ notifications: notifications.map(+ (notification) => ({ id: notification }) as never+ ),+ },+ };+};++describe('createInboxListItems', () => {+ beforeEach(() => {+ vi.useFakeTimers();+ vi.setSystemTime(NOW);+ });+ afterEach(() => vi.useRealTimers());++ it('lists an unfolded stack under its row and leaves folded ones alone', () => {+ createRoot((dispose) => {+ const [open, setOpen] = createSignal<string>();+ const items = createInboxListItems(+ () => [+ stack('a', todayAt(19, 58), ['a1', 'a2']),+ stack('b', todayAt(19, 57), ['b1', 'b2']),+ row('c', todayAt(19, 56)),+ ],+ (id) => id === open()+ );+ const ids = () =>+ items()+ .filter(isInboxNotification)+ .map((item) => item.id);+ expect(ids()).toEqual(['a', 'b', 'c']);++ setOpen('b');+ expect(ids()).toEqual(['a', 'b', 'b/b1', 'b/b2', 'c']);+ dispose();+ });+ });++ it('keeps an unfolded notification in place as its stack grows', () => {+ createRoot((dispose) => {+ const [notifications, setNotifications] = createSignal(['a1']);+ const items = createInboxListItems(+ () => [stack('a', todayAt(19, 58), ['new', ...notifications()])],+ () => true+ );+ const place = () => items().find((item) => item.id === 'a/a1');+ const before = place();+ expect(before).toBeDefined();++ setNotifications(['newer', 'a1']);+ expect(place()).toBe(before);+ dispose();+ });+ });++ it('puts a divider above the first row of each section', () => {+ createRoot((dispose) => {+ const items = createInboxListItems(() => [+ row('a', todayAt(19, 58)),+ row('b', todayAt(19, 57)),+ row('c', todayAt(19, 30)),+ row('d', todayAt(13)),+ row('e', todayAt(8)),+ row('f', new Date(2026, 8, 13, 12)),+ row('g', new Date(2026, 8, 10, 12)),+ row('h', new Date(2026, 8, 2, 12)),+ row('i', new Date(2026, 7, 20, 12)),+ row('j', new Date(2026, 5, 1, 12)),+ ]);+ expect(shape(items())).toEqual([+ 'Last few minutes',+ 'a',+ 'b',+ 'Last hour',+ 'c',+ 'This afternoon',+ 'd',+ 'This morning',+ 'e',+ 'Yesterday',+ 'f',+ 'Last 7 days',+ 'g',+ 'Earlier this month',+ 'h',+ 'Last month',+ 'i',+ 'Older',+ 'j',+ ]);+ dispose();+ });+ });++ it('shows no divider for a section with no rows', () => {+ createRoot((dispose) => {+ const [rows, setRows] = createSignal<NotificationInboxRow[]>([+ row('a', todayAt(19, 58)),+ row('b', todayAt(13)),+ ]);+ const items = createInboxListItems(rows);+ expect(shape(items())).toEqual([+ 'Last few minutes',+ 'a',+ 'This afternoon',+ 'b',+ ]);++ setRows([row('b', todayAt(13))]);+ expect(shape(items())).toEqual(['This afternoon', 'b']);++ setRows([]);+ expect(items()).toEqual([]);+ dispose();+ });+ });++ it('keeps its objects as the clock ticks, and moves rows between sections', () => {+ const { items, dispose } = createRoot((dispose) => {+ const recent = row('a', todayAt(19, 58));+ const items = createInboxListItems(() => [recent]);+ return { items, dispose };+ });+ const before = items();+ expect(shape(before)).toEqual(['Last few minutes', 'a']);++ vi.advanceTimersByTime(60_000);+ const after = items();+ expect(after).not.toBe(before);+ expect(after[0]).toBe(before[0]);+ expect(after[1]).toBe(before[1]);++ vi.advanceTimersByTime(4 * 60_000);+ expect(shape(items())).toEqual(['Last hour', 'a']);+ expect(items()[1]).toBe(before[1]);+ dispose();+ });++ it('keeps a row’s place when its data changes or it moves', () => {+ createRoot((dispose) => {+ const [rows, setRows] = createSignal([+ row('a', todayAt(19, 58)),+ row('b', todayAt(19, 57)),+ ]);+ const items = createInboxListItems(rows);+ const [, placeOfA, placeOfB] = items();++ setRows([+ { ...row('b', todayAt(19, 59)), count: 2 },+ row('a', todayAt(19, 58)),+ ]);+ const [, movedB, movedA] = items();+ expect(movedB).toBe(placeOfB);+ expect(movedA).toBe(placeOfA);+ dispose();+ });+ });+});diff --git a/apps/web/src/features/notifications-inbox/primitives/inbox-date-headers.ts b/apps/web/src/features/notifications-inbox/primitives/inbox-date-headers.tsnew file mode 100644index 0000000000..cd8cd27a08--- /dev/null+++ b/apps/web/src/features/notifications-inbox/primitives/inbox-date-headers.ts@@ -0,0 +1,138 @@+import {+ homeClock,+ homeDateBucket,+} from '@app/features/home/queries/home-date-buckets';+import { t } from '@app/lib/i18n';+import {+ type Accessor,+ createMemo,+ createSignal,+ onCleanup,+ onMount,+} from 'solid-js';+import { match } from 'ts-pattern';+import type { NotificationInboxRow } from '../context/notifications-inbox-context';++/** A divider naming when the rows below it arrived, in Home's sections. */+type InboxDateHeaderItem = {+ type: 'date_header';+ id: string;+ bucket: { key: string; label: string };+};++/**+ * A row's place in the list, one object per row id. The virtual list keys items+ * by object and a live change replaces a row's data, so the place stays and the+ * card reads the row's latest data by id: nothing remounts as rows change.+ */+type InboxRowItem = { type: 'row'; id: string };++/**+ * One notification of an unfolded stack, listed under its row so the keyboard,+ * hover and the virtual list treat it as a place of its own.+ */+export type InboxStackItemPlace = {+ type: 'stack_item';+ id: string;+ rowId: string;+ notificationId: string;+};++export type InboxListItem =+ | InboxRowItem+ | InboxStackItemPlace+ | InboxDateHeaderItem;++export const isInboxRow = (item: InboxListItem): item is InboxRowItem =>+ item.type === 'row';++export const isInboxStackItem = (+ item: InboxListItem+): item is InboxStackItemPlace => item.type === 'stack_item';++/** Whether an item stands for a notification rather than dividing the list. */+export const isInboxNotification = (item: InboxListItem) =>+ item.type !== 'date_header';++export const dateHeaderLabel = (header: InboxDateHeaderItem) =>+ match(header.bucket.key)+ .with('last-few-minutes', () => t('notificationsInbox.dateLastFewMinutes'))+ .with('last-hour', () => t('notificationsInbox.dateLastHour'))+ .with('this-evening', () => t('notificationsInbox.dateThisEvening'))+ .with('this-afternoon', () => t('notificationsInbox.dateThisAfternoon'))+ .with('this-morning', () => t('notificationsInbox.dateThisMorning'))+ .with('earlier-today', () => t('notificationsInbox.dateEarlierToday'))+ .with('yesterday', () => t('notificationsInbox.dateYesterday'))+ .with('last-7-days', () => t('notificationsInbox.dateLast7Days'))+ .with('earlier-this-month', () =>+ t('notificationsInbox.dateEarlierThisMonth')+ )+ .with('last-month', () => t('notificationsInbox.dateLastMonth'))+ .with('older', () => t('notificationsInbox.dateOlder'))+ // A section Home adds later keeps its own name until it's translated here.+ .otherwise(() => header.bucket.label);++/**+ * A place for each row, with a divider above each date section and an unfolded+ * stack's notifications below its row. Rows arrive newest first, so a section+ * is one run of rows. Dividers are derived from the rows shown, so a section+ * whose rows are filtered out or done has none.+ */+export function createInboxListItems(+ rows: Accessor<readonly NotificationInboxRow[]>,+ isUnfolded: (rowId: string) => boolean = () => false+): Accessor<readonly InboxListItem[]> {+ const [now, setNow] = createSignal(homeClock());+ onMount(() => {+ const timer = setInterval(() => setNow(homeClock()), 30_000);+ onCleanup(() => clearInterval(timer));+ });++ // The virtual list keys items by object, so each section keeps one divider+ // and nothing remounts as the clock ticks.+ const headers = new Map<string, InboxDateHeaderItem>();+ const headerFor = (bucket: InboxDateHeaderItem['bucket']) => {+ const existing = headers.get(bucket.key);+ if (existing) return existing;+ const header: InboxDateHeaderItem = {+ type: 'date_header',+ id: `date-header:${bucket.key}`,+ bucket,+ };+ headers.set(bucket.key, header);+ return header;+ };++ let places = new Map<string, InboxRowItem | InboxStackItemPlace>();++ return createMemo(() => {+ const reference = new Date(now());+ const items: InboxListItem[] = [];+ const shown = new Map<string, InboxRowItem | InboxStackItemPlace>();+ let section: string | undefined;+ for (const row of rows()) {+ const bucket = homeDateBucket(row.latestAt, reference);+ if (bucket.key !== section) {+ items.push(headerFor(bucket));+ section = bucket.key;+ }+ const place = places.get(row.id) ?? { type: 'row', id: row.id };+ shown.set(row.id, place);+ items.push(place);+ if (row.count <= 1 || !isUnfolded(row.id)) continue;+ for (const notification of row.content.notifications) {+ const id = `${row.id}/${notification.id}`;+ const stackItem = places.get(id) ?? {+ type: 'stack_item',+ id,+ rowId: row.id,+ notificationId: notification.id,+ };+ shown.set(id, stackItem);+ items.push(stackItem);+ }+ }+ places = shown;+ return items;+ });+}diff --git a/apps/web/src/features/notifications-inbox/primitives/inbox-filters.test.ts b/apps/web/src/features/notifications-inbox/primitives/inbox-filters.test.tsnew file mode 100644index 0000000000..b6a02eed68--- /dev/null+++ b/apps/web/src/features/notifications-inbox/primitives/inbox-filters.test.ts@@ -0,0 +1,74 @@+import { createRoot } from 'solid-js';+import { describe, expect, it } from 'vitest';+import { createInboxFilters } from './inbox-filters';++const memoryStorage = () => {+ let saved: string | null = null;+ return {+ read: () => saved,+ write: (value: string) => {+ saved = value;+ },+ };+};++const unread = { id: 'a', unseen: true };+const read = { id: 'a', unseen: false };++describe('createInboxFilters', () => {+ it('opens at the choice saved on the last visit', () => {+ createRoot((dispose) => {+ const storage = memoryStorage();+ expect(createInboxFilters(storage).filters().status).toBe('all');++ createInboxFilters(storage).setStatus('unread');+ expect(createInboxFilters(storage).filters().status).toBe('unread');++ createInboxFilters(storage).setStatus('all');+ expect(createInboxFilters(storage).filters().status).toBe('all');+ dispose();+ });+ });++ it('shows only unread rows under Unread, and every row under All', () => {+ createRoot((dispose) => {+ const filters = createInboxFilters(memoryStorage());+ expect(filters.includesRow(read)).toBe(true);++ filters.setStatus('unread');+ expect(filters.includesRow(unread)).toBe(true);+ expect(filters.includesRow(read)).toBe(false);+ dispose();+ });+ });++ it('keeps a row read under Unread until the reader next switches', () => {+ createRoot((dispose) => {+ const filters = createInboxFilters(memoryStorage());+ filters.setStatus('unread');++ filters.keepRead('a');+ expect(filters.includesRow(read)).toBe(true);+ expect(filters.includesRow({ id: 'b', unseen: false })).toBe(false);++ filters.setStatus('all');+ filters.setStatus('unread');+ expect(filters.includesRow(read)).toBe(false);+ dispose();+ });+ });++ it('resets the kinds shown and leaves the All or Unread choice', () => {+ createRoot((dispose) => {+ const filters = createInboxFilters(memoryStorage());+ filters.setStatus('unread');+ filters.setShown('email', false);+ expect(filters.isShown('email')).toBe(false);++ filters.reset();+ expect(filters.isShown('email')).toBe(true);+ expect(filters.filters().status).toBe('unread');+ dispose();+ });+ });+});diff --git a/apps/web/src/features/notifications-inbox/primitives/inbox-filters.ts b/apps/web/src/features/notifications-inbox/primitives/inbox-filters.tsnew file mode 100644index 0000000000..575c7c7a72--- /dev/null+++ b/apps/web/src/features/notifications-inbox/primitives/inbox-filters.ts@@ -0,0 +1,63 @@+import { createSignal } from 'solid-js';+import {+ activeFilterCount,+ DEFAULT_INBOX_FILTERS,+ type InboxCategory,+ type InboxFilters,+ type InboxStatus,+ parseInboxFilters,+ rowTypesFor,+ statusIncludes,+} from '../core/inbox-filters';++/** The reader's inbox filters, kept in `storage` between visits. */+export function createInboxFilters(storage: {+ read: () => string | null;+ write: (value: string) => void;+}) {+ const [filters, setFilters] = createSignal<InboxFilters>(+ parseInboxFilters(storage.read())+ );+ const save = (next: InboxFilters) => {+ setFilters(next);+ storage.write(JSON.stringify(next));+ };+ // Opening a row reads it, and it shouldn't vanish from Unread while the reader+ // is on it or its stack. It leaves when they next choose All or Unread.+ const [readHere, setReadHere] = createSignal<ReadonlySet<string>>(new Set());++ return {+ filters,+ rowTypes: () => rowTypesFor(filters()),+ activeCount: () => activeFilterCount(filters()),+ isShown: (category: InboxCategory) =>+ !filters().hiddenCategories.includes(category),+ /** Every category is hidden, so nothing can show. */+ showsNothing: () => rowTypesFor(filters()).length === 0,+ /** Whether a row shows under the chosen read state. */+ includesRow: (row: { id: string; unseen: boolean }) =>+ statusIncludes(filters().status, row.unseen) || readHere().has(row.id),+ /** Keep a row the reader just read showing until they next switch. */+ keepRead: (rowId: string) =>+ setReadHere((kept) => new Set(kept).add(rowId)),+ setStatus: (status: InboxStatus) => {+ setReadHere(new Set<string>());+ save({ ...filters(), status });+ },+ setShown: (category: InboxCategory, shown: boolean) => {+ const hidden = filters().hiddenCategories.filter(+ (hiddenCategory) => hiddenCategory !== category+ );+ save({+ ...filters(),+ hiddenCategories: shown ? hidden : [...hidden, category],+ });+ },+ /** Show every kind again; the All and Unread choice stays. */+ reset: () =>+ save({+ ...filters(),+ hiddenCategories: DEFAULT_INBOX_FILTERS.hiddenCategories,+ }),+ };+}diff --git a/apps/web/src/features/notifications-inbox/primitives/inbox-list.test.ts b/apps/web/src/features/notifications-inbox/primitives/inbox-list.test.tsnew file mode 100644index 0000000000..120a5fb0b9--- /dev/null+++ b/apps/web/src/features/notifications-inbox/primitives/inbox-list.test.ts@@ -0,0 +1,158 @@+import { createRoot, createSignal } from 'solid-js';+import { describe, expect, it, vi } from 'vitest';+import type {+ InboxFeedSource,+ NotificationInboxRow,+} from '../context/notifications-inbox-context';+import { createInboxList, type InboxDoneNotices } from './inbox-list';++const entityAt = () => ({}) as never;++const row = (id: string): NotificationInboxRow => ({+ id,+ type: 'task',+ revision: `rev-${id}`,+ latestAt: 1,+ actions: [],+ unseen: true,+ count: 1,+ content: {+ entity: { type: 'document', id, name: 'Plan' } as never,+ notifications: [],+ entityAt,+ },+});++function fakeFeed(overrides: Partial<InboxFeedSource> = {}) {+ const [rows, setRows] = createSignal<NotificationInboxRow[] | undefined>();+ const [error, setError] = createSignal<Error>();+ const [hasMore, setHasMore] = createSignal(false);+ const feed: InboxFeedSource = {+ rows,+ isLoading: () => rows() === undefined,+ error,+ hasMore,+ isLoadingMore: () => false,+ loadMore: vi.fn(async () => {}),+ refresh: vi.fn(async () => {}),+ markDone: vi.fn(async () => ({ undo: vi.fn(async () => {}) })),+ markSeen: vi.fn(async () => {}),+ ...overrides,+ };+ return { feed, setRows, setError, setHasMore };+}++function notices() {+ const dismiss = vi.fn();+ const undoEntries: { undo: () => Promise<void>; onUndone: () => void }[] = [];+ return {+ dismiss,+ undoEntries,+ value: {+ pushUndo: vi.fn((entry: (typeof undoEntries)[number]) => {+ undoEntries.push(entry);+ return {+ undo: async () => {+ await entry.undo();+ entry.onUndone();+ },+ };+ }),+ announceDone: vi.fn<InboxDoneNotices['announceDone']>(() => dismiss),+ announceFailure: vi.fn(),+ },+ };+}++describe('createInboxList', () => {+ it('moves from loading to rows, and keeps rows through a failed refresh', () => {+ createRoot((dispose) => {+ const { feed, setRows, setError } = fakeFeed();+ const list = createInboxList(feed, notices().value);+ expect(list.view().t).toBe('loading');++ setRows([row('a#task')]);+ expect(list.view()).toMatchObject({ t: 'ready', stale: false });++ setError(new Error('offline'));+ expect(list.view()).toMatchObject({ t: 'ready', stale: true });+ dispose();+ });+ });++ it('is empty only when nothing is left to load', () => {+ createRoot((dispose) => {+ const { feed, setRows, setHasMore } = fakeFeed();+ const list = createInboxList(feed, notices().value);+ setRows([]);+ setHasMore(true);+ // Every row of the loaded page waits for the next one: keep paging.+ expect(list.view()).toMatchObject({ t: 'ready', rows: [] });++ setHasMore(false);+ expect(list.view()).toEqual({ t: 'empty', filtered: false });+ dispose();+ });+ });++ it('shows only the rows the filter admits, and says when it hid them all', () => {+ createRoot((dispose) => {+ const { feed, setRows } = fakeFeed();+ const [unreadOnly, setUnreadOnly] = createSignal(false);+ const read = { ...row('b#task'), unseen: false };+ const list = createInboxList(+ feed,+ notices().value,+ (candidate) => !unreadOnly() || candidate.unseen+ );+ setRows([row('a#task'), read]);+ setUnreadOnly(true);+ expect(list.view()).toMatchObject({ t: 'ready', rows: [row('a#task')] });++ setRows([read]);+ expect(list.view()).toEqual({ t: 'empty', filtered: true });+ dispose();+ });+ });++ it('fails to an error state before any rows load', () => {+ createRoot((dispose) => {+ const { feed, setError } = fakeFeed();+ const list = createInboxList(feed, notices().value);+ setError(new Error('offline'));+ expect(list.view().t).toBe('error');+ dispose();+ });+ });++ it('announces a done with an undo that reverses it and dismisses the notice', async () => {+ const undo = vi.fn(async () => {});+ const { feed } = fakeFeed({ markDone: vi.fn(async () => ({ undo })) });+ const n = notices();+ const list = createInboxList(feed, n.value);++ await list.markDone([row('a#task')]);+ expect(n.value.announceDone).toHaveBeenCalledWith(1, expect.any(Function));++ const announcedUndo = vi.mocked(n.value.announceDone).mock.calls[0][1];+ await announcedUndo();+ expect(undo).toHaveBeenCalledOnce();+ expect(n.dismiss).toHaveBeenCalled();+ });++ it('announces a failed done instead of an undo', async () => {+ const { feed } = fakeFeed({+ markDone: vi.fn(async () => {+ throw new Error('offline');+ }),+ });+ const n = notices();+ const list = createInboxList(feed, n.value);++ await list.markDone([row('a#task')]);++ expect(n.value.announceFailure).toHaveBeenCalled();+ expect(n.value.announceDone).not.toHaveBeenCalled();+ expect(n.value.pushUndo).not.toHaveBeenCalled();+ });+});diff --git a/apps/web/src/features/notifications-inbox/primitives/inbox-list.ts b/apps/web/src/features/notifications-inbox/primitives/inbox-list.tsnew file mode 100644index 0000000000..30ca68b24c--- /dev/null+++ b/apps/web/src/features/notifications-inbox/primitives/inbox-list.ts@@ -0,0 +1,108 @@+import { t } from '@app/lib/i18n';+import type {+ InboxFeedSource,+ NotificationInboxRow,+} from '../context/notifications-inbox-context';+import { traceInboxRows } from './inbox-telemetry';++/** What the inbox list shows. */+export type InboxListView =+ | { t: 'loading' }+ | { t: 'error' }+ /** `filtered` when rows exist but the status filter hides them all. */+ | { t: 'empty'; filtered: boolean }+ | {+ t: 'ready';+ rows: readonly NotificationInboxRow[];+ hasMore: boolean;+ loadingMore: boolean;+ /** A refresh failed while earlier rows stay on screen. */+ stale: boolean;+ };++/** How completed and failed dones are announced and reversed. */+export type InboxDoneNotices = {+ /**+ * Put a done on the app's undo stack; the handle's `undo` reverses it and+ * the entry's `onUndone` runs however it was undone.+ */+ pushUndo: (entry: {+ label: string;+ undo: () => Promise<void>;+ onUndone: () => void;+ }) => { undo: () => Promise<void> };+ /** Announce a completed done with an Undo action; returns its dismissal. */+ announceDone: (count: number, undo: () => Promise<void>) => () => void;+ announceFailure: (message: string) => void;+};++/**+ * The inbox list's state and actions over one feed, showing the rows+ * `include` admits. Loaded rows stay on screen through a failed refresh,+ * and an empty page that has more to load is still ready so the view keeps+ * paging.+ */+export function createInboxList(+ feed: InboxFeedSource,+ notices: InboxDoneNotices,+ include: (row: NotificationInboxRow) => boolean = () => true+) {+ const view = (): InboxListView => {+ const loaded = feed.rows();+ const error = feed.error();+ if (loaded === undefined) {+ return error ? { t: 'error' } : { t: 'loading' };+ }+ const rows = loaded.filter(include);+ if (rows.length === 0 && !feed.hasMore()) {+ return error+ ? { t: 'error' }+ : { t: 'empty', filtered: loaded.length > 0 };+ }+ return {+ t: 'ready',+ rows,+ hasMore: feed.hasMore(),+ loadingMore: feed.isLoadingMore(),+ stale: error !== undefined,+ };+ };++ const markDone = async (rows: readonly NotificationInboxRow[]) => {+ if (rows.length === 0) return;+ let result: Awaited<ReturnType<InboxFeedSource['markDone']>>;+ try {+ result = await traceInboxRows('notifications_inbox.row_done', rows, () =>+ feed.markDone(rows)+ );+ } catch {+ notices.announceFailure(+ t('notificationsInbox.markDoneFailed', { count: rows.length })+ );+ return;+ }+ let dismiss = () => {};+ const handle = notices.pushUndo({+ label: t('notificationsInbox.markDone'),+ undo: async () => {+ try {+ await traceInboxRows('notifications_inbox.row_undo', rows, () =>+ result.undo()+ );+ } catch (error) {+ notices.announceFailure(t('notificationsInbox.undoFailed'));+ throw error;+ }+ },+ onUndone: () => dismiss(),+ });+ dismiss = notices.announceDone(rows.length, handle.undo);+ };++ return {+ view,+ markDone,+ loadMore: feed.loadMore,+ refresh: feed.refresh,+ };+}diff --git a/apps/web/src/features/notifications-inbox/primitives/inbox-selection.test.ts b/apps/web/src/features/notifications-inbox/primitives/inbox-selection.test.tsnew file mode 100644index 0000000000..d0ef7fcdd4--- /dev/null+++ b/apps/web/src/features/notifications-inbox/primitives/inbox-selection.test.ts@@ -0,0 +1,108 @@+import { createRoot, createSignal } from 'solid-js';+import { describe, expect, it } from 'vitest';+import type { NotificationInboxRow } from '../context/notifications-inbox-context';+import { createInboxSelection } from './inbox-selection';++const row = (id: string, revision = 'r1'): NotificationInboxRow => ({+ id,+ type: 'task',+ revision,+ latestAt: 1,+ actions: [],+ unseen: true,+ count: 1,+ content: {+ entity: { type: 'document', id, name: id } as never,+ notifications: [],+ entityAt: () => ({}) as never,+ },+});++const stack = (+ id: string,+ notificationIds: string[]+): NotificationInboxRow => ({+ ...row(id),+ count: notificationIds.length,+ content: {+ ...row(id).content,+ notifications: notificationIds.map(+ (notification) => ({ id: notification }) as never+ ),+ },+});++describe('createInboxSelection', () => {+ it('shows a stack at one of its notifications until another is chosen', () => {+ createRoot((dispose) => {+ const selection = createInboxSelection(() => [stack('a', ['1', '2'])]);++ selection.select(stack('a', ['1', '2']), '2');+ expect(selection.selectedNotification()?.id).toBe('2');+ expect(selection.navigationRequest()).toBe(0);++ selection.select(stack('a', ['1', '2']), '2');+ expect(selection.navigationRequest()).toBe(1);++ selection.select(stack('a', ['1', '2']));+ expect(selection.selectedNotification()).toBeUndefined();+ expect(selection.navigationRequest()).toBe(1);+ dispose();+ });+ });++ it('opens where the row does once the chosen notification leaves the row', () => {+ createRoot((dispose) => {+ const [rows, setRows] = createSignal([stack('a', ['1', '2'])]);+ const selection = createInboxSelection(rows);+ selection.select(stack('a', ['1', '2']), '1');++ setRows([stack('a', ['3', '2'])]);+ expect(selection.selected()?.id).toBe('a');+ expect(selection.selectedNotification()).toBeUndefined();+ dispose();+ });+ });++ it('follows the shown row and keeps it once it leaves the list', () => {+ createRoot((dispose) => {+ const [rows, setRows] = createSignal([row('a'), row('b')]);+ const selection = createInboxSelection(rows);+ selection.select(row('a'));++ setRows([row('a', 'r2'), row('b')]);+ expect(selection.selected()?.revision).toBe('r2');++ setRows([row('b')]);+ expect(selection.selected()?.id).toBe('a');+ dispose();+ });+ });++ it('re-aims when the shown row is chosen again', () => {+ createRoot((dispose) => {+ const selection = createInboxSelection(() => [row('a')]);+ selection.select(row('a'));+ expect(selection.navigationRequest()).toBe(0);+ selection.select(row('a'));+ expect(selection.navigationRequest()).toBe(1);+ dispose();+ });+ });++ it('moves to the next row that stays when the shown row leaves', () => {+ createRoot((dispose) => {+ const rows = () => [row('a'), row('b'), row('c'), row('d')];+ const selection = createInboxSelection(rows);+ selection.select(row('b'));++ expect(selection.afterLeaving(['c'])).toBe('stay');+ expect(selection.afterLeaving(['b', 'c'])).toMatchObject({ id: 'd' });+ expect(selection.afterLeaving(['b', 'c', 'd'])).toMatchObject({+ id: 'a',+ });+ expect(selection.afterLeaving(['a', 'b', 'c', 'd'])).toBe('none');+ dispose();+ });+ });+});diff --git a/apps/web/src/features/notifications-inbox/primitives/inbox-selection.ts b/apps/web/src/features/notifications-inbox/primitives/inbox-selection.tsnew file mode 100644index 0000000000..e6cc44e83a--- /dev/null+++ b/apps/web/src/features/notifications-inbox/primitives/inbox-selection.ts@@ -0,0 +1,84 @@+import { type Accessor, batch, createSignal } from 'solid-js';+import type { NotificationInboxRow } from '../context/notifications-inbox-context';++/**+ * The row shown in the preview, and which of its notifications when one was+ * chosen from its stack. It follows the row's latest version while the list+ * holds it, and keeps its last version once it leaves, so the preview doesn't+ * vanish under the reader.+ */+export function createInboxSelection(+ rows: Accessor<readonly NotificationInboxRow[]>+) {+ const [snapshot, setSnapshot] = createSignal<NotificationInboxRow>();+ const [notificationId, setNotificationId] = createSignal<string>();+ const [request, setRequest] = createSignal(0);++ const selected = () => {+ const current = snapshot();+ if (!current) return undefined;+ return rows().find((row) => row.id === current.id) ?? current;+ };++ /**+ * The chosen notification of the shown row, while the row still holds it.+ * Without one the preview opens where the row does.+ */+ const selectedNotification = () => {+ const id = notificationId();+ if (!id) return undefined;+ return selected()?.content.notifications.find(+ (notification) => notification.id === id+ );+ };++ /**+ * Show `row`, at one of its notifications when one is named; choosing what's+ * shown again re-aims it at its location.+ */+ const select = (row: NotificationInboxRow, notification?: string) => {+ batch(() => {+ if (snapshot()?.id === row.id && notificationId() === notification) {+ setRequest((count) => count + 1);+ }+ setSnapshot(row);+ setNotificationId(notification);+ });+ };++ const clear = () =>+ batch(() => {+ setSnapshot(undefined);+ setNotificationId(undefined);+ });++ /**+ * Where to go when `leaving` rows leave the list while one of them is+ * shown: the next row that stays, else the nearest earlier one. `stay` when+ * the shown row isn't leaving; `none` when nothing is left.+ */+ const afterLeaving = (+ leaving: readonly string[]+ ): NotificationInboxRow | 'stay' | 'none' => {+ const current = snapshot();+ if (!current || !leaving.includes(current.id)) return 'stay';+ const list = rows();+ const index = list.findIndex((row) => row.id === current.id);+ const stays = (row: NotificationInboxRow) => !leaving.includes(row.id);+ return (+ list.slice(index + 1).find(stays) ??+ list.slice(0, Math.max(index, 0)).reverse().find(stays) ??+ 'none'+ );+ };++ return {+ selected,+ selectedNotification,+ /** Bumped when what's shown is chosen again. */+ navigationRequest: request,+ select,+ clear,+ afterLeaving,+ };+}diff --git a/apps/web/src/features/notifications-inbox/primitives/inbox-telemetry.test.ts b/apps/web/src/features/notifications-inbox/primitives/inbox-telemetry.test.tsnew file mode 100644index 0000000000..83278574bd--- /dev/null+++ b/apps/web/src/features/notifications-inbox/primitives/inbox-telemetry.test.ts@@ -0,0 +1,97 @@+import { afterEach, describe, expect, it, vi } from 'vitest';+import type { NotificationInboxRow } from '../context/notifications-inbox-context';+import { traceInboxRows } from './inbox-telemetry';++const telemetry = vi.hoisted(() => {+ type Recorded = {+ name: string;+ attributes: Record<string, unknown>;+ errors: unknown[];+ };+ const spans: Recorded[] = [];+ return {+ spans,+ span: (name: string, work: (span: unknown) => Promise<unknown>) => {+ const recorded: Recorded = { name, attributes: {}, errors: [] };+ spans.push(recorded);+ return work({+ setAttr: (key: string, value: unknown) => {+ recorded.attributes[key] = value;+ },+ error: (error: unknown) => recorded.errors.push(error),+ });+ },+ };+});++vi.mock('@macro-inc/observability', () => ({+ Telemetry: { span: telemetry.span },+}));++const row = (id: string): NotificationInboxRow => ({+ id,+ type: 'access_requested',+ revision: 'rev',+ latestAt: 1,+ actions: [],+ unseen: true,+ count: 1,+ content: {+ entity: {} as never,+ notifications: [],+ entityAt: () => ({}) as never,+ },+});++afterEach(() => {+ telemetry.spans.length = 0;+});++describe('traceInboxRows', () => {+ it('records the row and a success', async () => {+ const result = await traceInboxRows(+ 'notifications_inbox.row_done',+ [row('document:a#access_requested:r')],+ async () => 'ok'+ );+ expect(result).toBe('ok');+ expect(telemetry.spans).toEqual([+ {+ name: 'notifications_inbox.row_done',+ attributes: {+ 'inbox.rows': 1,+ 'inbox.row_types': 'access_requested',+ 'inbox.row_id': 'document:a#access_requested:r',+ 'inbox.outcome': 'succeeded',+ },+ errors: [],+ },+ ]);+ });++ it('records the count and types, not ids, for several rows', async () => {+ await traceInboxRows(+ 'notifications_inbox.row_done',+ [row('a#task'), row('b#task')],+ async () => undefined+ );+ expect(telemetry.spans[0]?.attributes).toEqual({+ 'inbox.rows': 2,+ 'inbox.row_types': 'access_requested',+ 'inbox.outcome': 'succeeded',+ });+ });++ it('marks a failure without the error message and rethrows', async () => {+ const failure = new Error('Plan for Acme could not be updated');+ await expect(+ traceInboxRows('notifications_inbox.row_undo', [row('a#task')], () =>+ Promise.reject(failure)+ )+ ).rejects.toBe(failure);+ expect(telemetry.spans[0]?.attributes['inbox.outcome']).toBe('failed');+ expect(telemetry.spans[0]?.errors).toEqual([+ 'notifications_inbox.row_undo failed',+ ]);+ });+});diff --git a/apps/web/src/features/notifications-inbox/primitives/inbox-telemetry.ts b/apps/web/src/features/notifications-inbox/primitives/inbox-telemetry.tsnew file mode 100644index 0000000000..9063ae40ee--- /dev/null+++ b/apps/web/src/features/notifications-inbox/primitives/inbox-telemetry.ts@@ -0,0 +1,32 @@+import { type Span, Telemetry } from '@macro-inc/observability';+import type { NotificationInboxRow } from '../context/notifications-inbox-context';++/**+ * Run an operation on inbox rows in its own span, recording the rows by their+ * opaque ids and types, never their content, and whether it succeeded.+ */+export function traceInboxRows<T>(+ name: string,+ rows: readonly NotificationInboxRow[],+ operation: (span: Span) => Promise<T>+): Promise<T> {+ return Telemetry.span(name, async (span) => {+ span.setAttr('inbox.rows', rows.length);+ span.setAttr(+ 'inbox.row_types',+ [...new Set(rows.map((row) => row.type))].join(',')+ );+ const [row] = rows;+ if (row && rows.length === 1) span.setAttr('inbox.row_id', row.id);+ try {+ const result = await operation(span);+ span.setAttr('inbox.outcome', 'succeeded');+ return result;+ } catch (error) {+ span.setAttr('inbox.outcome', 'failed');+ // Server messages can quote names; record only which step failed.+ span.error(`${name} failed`);+ throw error;+ }+ });+}diff --git a/apps/web/src/features/notifications-inbox/primitives/notification-location.test.ts b/apps/web/src/features/notifications-inbox/primitives/notification-location.test.tsnew file mode 100644index 0000000000..27caef05ac--- /dev/null+++ b/apps/web/src/features/notifications-inbox/primitives/notification-location.test.ts@@ -0,0 +1,49 @@+import { COMMENT_LINK_PARAM } from '@core/messages/comment-link';+import type { UnifiedNotification } from '@notifications/types';+import { describe, expect, it } from 'vitest';+import { agentTurnParams, crmCommentParams } from './notification-location';++const notification = (tag: string, content: Record<string, unknown>) =>+ ({+ notification_metadata: { tag, content },+ }) as unknown as UnifiedNotification;++describe('agentTurnParams', () => {+ it('points an agent notification at the turn it is about', () => {+ expect(+ agentTurnParams(notification('agent_session_settled', { turn: 4 }))+ ).toEqual({ agent_message_turn: '4', agent_message_author: 'agent' });+ expect(+ agentTurnParams(+ notification('agent_session_waiting_for_input', { turn: 0 })+ )+ ).toEqual({ agent_message_turn: '0', agent_message_author: 'agent' });+ });++ it('has nothing to add for a notification without a turn', () => {+ expect(+ agentTurnParams(notification('agent_session_mentioned', {}))+ ).toBeUndefined();+ expect(+ agentTurnParams(notification('channel_message_send', {}))+ ).toBeUndefined();+ });+});++describe('crmCommentParams', () => {+ const on = (tag: string) =>+ ({+ notification_metadata: { tag, content: { messageId: 'comment-1' } },+ }) as unknown as UnifiedNotification;++ it('finds the comment a notification on a record is about', () => {+ expect(crmCommentParams(on('crm_discussion'))).toEqual({+ [COMMENT_LINK_PARAM]: 'comment-1',+ });+ });++ it('has nothing to find on anything else, or with no notification', () => {+ expect(crmCommentParams(on('task_assigned'))).toBeUndefined();+ expect(crmCommentParams(undefined)).toBeUndefined();+ });+});diff --git a/apps/web/src/features/notifications-inbox/primitives/notification-location.ts b/apps/web/src/features/notifications-inbox/primitives/notification-location.tsnew file mode 100644index 0000000000..d1339d6856--- /dev/null+++ b/apps/web/src/features/notifications-inbox/primitives/notification-location.ts@@ -0,0 +1,35 @@+import { agentMessageParams } from '@app/features/block-agent/core/search-location';+import { COMMENT_LINK_PARAM } from '@core/messages/comment-link';+import type { UnifiedNotification } from '@notifications/types';+import { match, P } from 'ts-pattern';++/**+ * Where inside its session an agent notification points, which the session's+ * own entity can't say: the turn that finished or is waiting for an answer.+ */+export const agentTurnParams = (notification: UnifiedNotification) =>+ match(notification.notification_metadata)+ .with(+ {+ tag: P.union(+ 'agent_session_settled',+ 'agent_session_waiting_for_input'+ ),+ },+ ({ content }) =>+ agentMessageParams({ messageTurn: content.turn, author: 'agent' })+ )+ .otherwise(() => undefined);++/**+ * The comment a notification on a company or contact is about, which the record+ * alone can't say.+ */+export const crmCommentParams = (+ notification: UnifiedNotification | undefined+) => {+ const metadata = notification?.notification_metadata;+ return metadata?.tag === 'crm_discussion'+ ? { [COMMENT_LINK_PARAM]: metadata.content.messageId }+ : undefined;+};diff --git a/apps/web/src/features/notifications-inbox/primitives/row-actions.test.ts b/apps/web/src/features/notifications-inbox/primitives/row-actions.test.tsnew file mode 100644index 0000000000..7b6d9070a3--- /dev/null+++ b/apps/web/src/features/notifications-inbox/primitives/row-actions.test.ts@@ -0,0 +1,205 @@+import type { UnifiedNotification } from '@notifications/types';+import { afterEach, describe, expect, it, vi } from 'vitest';+import type {+ InboxRequests,+ NotificationInboxRow,+} from '../context/notifications-inbox-context';+import type { InboxRowAction } from '../core/inbox-row';+import { createRowActions, decisionRequest, rowButtons } from './row-actions';++const telemetry = vi.hoisted(() => {+ const spans: { name: string; attributes: Record<string, unknown> }[] = [];+ return {+ spans,+ span: (name: string, work: (span: unknown) => Promise<unknown>) => {+ const recorded = { name, attributes: {} as Record<string, unknown> };+ spans.push(recorded);+ return work({+ setAttr: (key: string, value: unknown) => {+ recorded.attributes[key] = value;+ },+ error: () => {},+ });+ },+ };+});++vi.mock('@macro-inc/observability', () => ({+ Telemetry: { span: telemetry.span },+}));++afterEach(() => {+ telemetry.spans.length = 0;+});++const accessRequest = {+ id: 'n-1',+ entity_type: 'document',+ entity_id: 'doc-a',+ notification_metadata: {+ tag: 'entity_access_requested',+ content: {+ requestId: 'req-1',+ revision: 3,+ accessLevel: 'edit',+ entityName: 'Plan',+ },+ },+} as unknown as UnifiedNotification;++const approve: InboxRowAction = { kind: 'approve', targetId: 'req-1' };+const deny: InboxRowAction = { kind: 'deny', targetId: 'req-1' };++const row = (+ actions: InboxRowAction[],+ notifications: UnifiedNotification[] = [accessRequest]+): NotificationInboxRow => ({+ id: 'document:doc-a#access_requested:req-1',+ type: 'access_requested',+ revision: 'rev',+ latestAt: 1,+ actions,+ unseen: true,+ count: notifications.length,+ content: {+ entity: { type: 'document', id: 'doc-a', name: 'Plan' } as never,+ notifications,+ entityAt: () => ({}) as never,+ },+});++function setup(requests: Partial<InboxRequests> = {}) {+ const complete = vi.fn(async () => {});+ const open = vi.fn();+ const review = vi.fn();+ const notices = { succeeded: vi.fn(), failed: vi.fn() };+ const rowActions = createRowActions({+ requests: {+ resolveAccessRequest: vi.fn(async () => {}),+ answerJoinRequest: vi.fn(async () => {}),+ ...requests,+ },+ open,+ review,+ complete,+ notices,+ });+ return { rowActions, complete, open, review, notices };+}++describe('rowButtons', () => {+ it('offers the server’s actions in order', () => {+ const review: InboxRowAction = {+ kind: 'review',+ url: 'https://github.com/macro-inc/macro/pull/1',+ };+ expect(rowButtons(row([approve, deny]))).toEqual([approve, deny]);+ expect(rowButtons(row([{ kind: 'answer' }]))).toEqual([{ kind: 'answer' }]);+ expect(rowButtons(row([review]))).toEqual([review]);+ });++ it('skips a decision on a request the row doesn’t show', () => {+ const other: InboxRowAction = { kind: 'approve', targetId: 'req-2' };+ const accept: InboxRowAction = { kind: 'accept', targetId: 'req-1' };+ expect(rowButtons(row([other, { kind: 'open' }]))).toEqual([+ { kind: 'open' },+ ]);+ expect(rowButtons(row([accept]))).toEqual([]);+ });+});++describe('decisionRequest', () => {+ it('reads the request from the notification that carries it', () => {+ expect(decisionRequest(row([approve]), { ...approve })).toEqual({+ kind: 'access_request',+ entityType: 'document',+ entityId: 'doc-a',+ requestId: 'req-1',+ revision: 3,+ level: 'edit',+ });+ });+});++describe('createRowActions', () => {+ it('approves at the requested level, then completes the row', async () => {+ const resolveAccessRequest = vi.fn(async () => {});+ const { rowActions, complete, notices } = setup({ resolveAccessRequest });+ const target = row([approve, deny]);++ await rowActions.run(target, approve);++ expect(resolveAccessRequest).toHaveBeenCalledWith(+ expect.objectContaining({ requestId: 'req-1', level: 'edit' }),+ true+ );+ expect(notices.succeeded).toHaveBeenCalledWith('approve');+ expect(complete).toHaveBeenCalledWith(target);+ expect(rowActions.pending(target.id)).toBeUndefined();+ });++ it('traces the decision by its request, with completing the row as a step', async () => {+ const { rowActions } = setup();++ await rowActions.run(row([approve, deny]), approve);++ expect(telemetry.spans.map((span) => span.name)).toEqual([+ 'notifications_inbox.row_answer',+ 'notifications_inbox.row_done',+ ]);+ expect(telemetry.spans[0]?.attributes).toMatchObject({+ 'inbox.answer': 'approve',+ 'access_request.id': 'req-1',+ 'entity.type': 'document',+ 'entity.id': 'doc-a',+ 'inbox.outcome': 'succeeded',+ });+ });++ it('leaves the row when the decision fails', async () => {+ const { rowActions, complete, notices } = setup({+ resolveAccessRequest: vi.fn(async () => {+ throw new Error('stale revision');+ }),+ });+ const target = row([approve, deny]);++ await rowActions.run(target, deny);++ expect(notices.failed).toHaveBeenCalledWith('deny');+ expect(complete).not.toHaveBeenCalled();+ expect(rowActions.pending(target.id)).toBeUndefined();+ });++ it('runs one decision per row at a time', async () => {+ let finish!: () => void;+ const resolveAccessRequest = vi.fn(+ () => new Promise<void>((resolve) => (finish = resolve))+ );+ const { rowActions } = setup({ resolveAccessRequest });+ const target = row([approve, deny]);++ const first = rowActions.run(target, approve);+ expect(rowActions.pending(target.id)).toBe('approve');+ await rowActions.run(target, deny);+ finish();+ await first;++ expect(resolveAccessRequest).toHaveBeenCalledOnce();+ });++ it('opens the row for Open and Answer, and the pull request for Review', async () => {+ const { rowActions, open, review, complete } = setup();+ const url = 'https://github.com/macro-inc/macro/pull/1';+ const target = row([{ kind: 'answer' }]);++ await rowActions.run(target, { kind: 'answer' });+ await rowActions.run(target, { kind: 'open' });+ await rowActions.run(target, { kind: 'review', url });++ expect(open).toHaveBeenCalledTimes(2);+ expect(review).toHaveBeenCalledWith(target, url);+ expect(complete).not.toHaveBeenCalled();+ expect(telemetry.spans).toEqual([]);+ });+});diff --git a/apps/web/src/features/notifications-inbox/primitives/row-actions.ts b/apps/web/src/features/notifications-inbox/primitives/row-actions.tsnew file mode 100644index 0000000000..d15d382b82--- /dev/null+++ b/apps/web/src/features/notifications-inbox/primitives/row-actions.ts@@ -0,0 +1,170 @@+import type { Span } from '@macro-inc/observability';+import type { UnifiedNotification } from '@notifications/types';+import { createSignal } from 'solid-js';+import { match } from 'ts-pattern';+import type {+ InboxRequest,+ InboxRequests,+ NotificationInboxRow,+} from '../context/notifications-inbox-context';+import {+ type InboxDecision,+ type InboxDecisionAction,+ type InboxRowAction,+ isDecisionAction,+} from '../core/inbox-row';+import { traceInboxRows } from './inbox-telemetry';++/** The request a notification asks the viewer to decide, if any. */+const requestIn = (+ notification: UnifiedNotification+): InboxRequest | undefined =>+ match(notification.notification_metadata)+ .returnType<InboxRequest | undefined>()+ .with({ tag: 'entity_access_requested' }, (metadata) => ({+ kind: 'access_request',+ entityType: notification.entity_type,+ entityId: notification.entity_id,+ requestId: metadata.content.requestId,+ revision: metadata.content.revision,+ level: metadata.content.accessLevel,+ }))+ .with({ tag: 'calendar_event_join_request' }, (metadata) => ({+ kind: 'join_request',+ requestId: metadata.content.requestId,+ eventId: metadata.content.eventId,+ }))+ .otherwise(() => undefined);++const decides = (request: InboxRequest, decision: InboxDecision) =>+ match(request.kind)+ .with('access_request', () => decision === 'approve' || decision === 'deny')+ .with('join_request', () => decision === 'accept' || decision === 'decline')+ .exhaustive();++/**+ * The request a decision resolves, read from the row's notification that+ * carries it; undefined when the row doesn't show that request.+ */+export const decisionRequest = (+ row: NotificationInboxRow,+ action: InboxDecisionAction+): InboxRequest | undefined =>+ row.content.notifications+ .map(requestIn)+ .find(+ (request) =>+ request?.requestId === action.targetId && decides(request, action.kind)+ );++/** The row's actions this build can carry out, in button order. */+export const rowButtons = (row: NotificationInboxRow): InboxRowAction[] =>+ row.actions.filter(+ (action) =>+ !isDecisionAction(action) || decisionRequest(row, action) !== undefined+ );++/** Record the ids a request is searched by. */+const traceRequest = (span: Span, request: InboxRequest) =>+ match(request)+ .with({ kind: 'access_request' }, (access) => {+ span.setAttr('access_request.id', access.requestId);+ span.setAttr('entity.type', access.entityType);+ span.setAttr('entity.id', access.entityId);+ })+ .with({ kind: 'join_request' }, (join) => {+ span.setAttr('calendar_join_request.id', join.requestId);+ span.setAttr('calendar.event_id', join.eventId);+ })+ .exhaustive();++export type InboxRowActionNotices = {+ succeeded: (decision: InboxDecision) => void;+ failed: (decision: InboxDecision) => void;+};++/**+ * Runs a row's buttons. Open and Answer open the row, Review opens the pull+ * request. A decision runs one at a time per row, then completes the row,+ * which the decision resolved; a failed decision leaves the row as it was.+ */+export function createRowActions(options: {+ requests: InboxRequests;+ /** Open what a row is about, as activating the row does. */+ open: (row: NotificationInboxRow) => void;+ /** Open a pull request to review outside Macro. */+ review: (row: NotificationInboxRow, url: string) => void;+ complete: (row: NotificationInboxRow) => Promise<unknown>;+ notices: InboxRowActionNotices;+}) {+ const [pending, setPending] = createSignal<+ ReadonlyMap<string, InboxDecision>+ >(new Map());+ const setRowPending = (rowId: string, decision: InboxDecision | undefined) =>+ setPending((current) => {+ const next = new Map(current);+ if (decision) next.set(rowId, decision);+ else next.delete(rowId);+ return next;+ });++ const send = (request: InboxRequest, decision: InboxDecision) =>+ match(request)+ .with({ kind: 'access_request' }, (access) =>+ options.requests.resolveAccessRequest(access, decision === 'approve')+ )+ .with({ kind: 'join_request' }, (join) =>+ options.requests.answerJoinRequest(join, decision === 'accept')+ )+ .exhaustive();++ const complete = async (row: NotificationInboxRow) => {+ try {+ await traceInboxRows('notifications_inbox.row_done', [row], () =>+ options.complete(row)+ );+ } catch {+ // The decision stands; the row leaves when the server's change lands.+ }+ };++ const decide = async (+ row: NotificationInboxRow,+ action: InboxDecisionAction+ ) => {+ const request = decisionRequest(row, action);+ if (!request || pending().has(row.id)) return;+ setRowPending(row.id, action.kind);+ try {+ await traceInboxRows(+ 'notifications_inbox.row_answer',+ [row],+ async (span) => {+ span.setAttr('inbox.row_type', row.type);+ span.setAttr('inbox.answer', action.kind);+ traceRequest(span, request);+ await send(request, action.kind);+ options.notices.succeeded(action.kind);+ await complete(row);+ }+ );+ } catch {+ options.notices.failed(action.kind);+ }+ setRowPending(row.id, undefined);+ };++ const run = async (row: NotificationInboxRow, action: InboxRowAction) => {+ if (isDecisionAction(action)) return decide(row, action);+ match(action)+ .with({ kind: 'open' }, { kind: 'answer' }, () => options.open(row))+ .with({ kind: 'review' }, ({ url }) => options.review(row, url))+ .exhaustive();+ };++ return {+ /** The decision in flight for a row, if any. */+ pending: (rowId: string) => pending().get(rowId),+ run,+ };+}diff --git a/apps/web/src/features/notifications-inbox/queries/decode.test.ts b/apps/web/src/features/notifications-inbox/queries/decode.test.tsnew file mode 100644index 0000000000..6f00a811b6--- /dev/null+++ b/apps/web/src/features/notifications-inbox/queries/decode.test.ts@@ -0,0 +1,301 @@+import { isWithNotification } from '@entity/types/notification';+import type {+ NotificationInboxActorKind,+ NotificationInboxEntryFieldsFragment,+ NotificationInboxRowActionKind,+ NotificationInboxRowType,+} from '@service-storage/graphql/generated/graphql';+import { describe, expect, it, vi } from 'vitest';+import { ALL_INBOX_ROW_TYPES } from '../core/inbox-filters';+import { commentNotification, inboxEntry } from '../tests/wire';+import { encodeInboxScope, toInboxGroup } from './decode';++// Row mapping imports allBlocks, which loads every block module; one of them+// opens a websocket that jsdom rejects after the test ends.+vi.mock('@core/constant/allBlocks', () => ({+ blockNameToDefaultFile: () => 'Untitled',+ itemToSafeName: (item: { name?: string }) => item.name ?? 'Untitled',+}));++/** A channel's inbox entry holding one thread row with one reply. */+const threadRowEntry = () =>+ ({+ groupId: 'channel:ch-a',+ sortAt: '2026-02-01T10:09:00Z',+ entity: {+ __typename: 'GraphqlSoupChannel',+ id: 'ch-a',+ entityType: 'CHANNEL',+ channelName: 'General',+ channelType: 'PUBLIC',+ ownerId: 'macro|[email protected]',+ createdAt: '2026-01-01T00:00:00Z',+ updatedAt: '2026-01-01T00:00:00Z',+ participants: [],+ },+ rows: [+ {+ id: 'channel:ch-a#thread:root',+ rowType: 'CHANNEL_THREAD',+ revision: 'rev',+ latestAt: '2026-02-01T10:09:00Z',+ unseen: true,+ count: 1,+ actor: null,+ actions: [],+ notifications: [+ {+ ...commentNotification('ch-a', 'n-1', '2026-02-01T10:09:00Z'),+ eventType: 'channel_message_reply',+ entityType: 'CHANNEL',+ targetEntityType: 'CHANNEL',+ metadata: {+ __typename: 'GraphqlChannelReplyMetadata',+ channelReplyThreadId: 'root',+ channelReplyMessageId: 'reply',+ channelReplyUserId: 'macro|[email protected]',+ channelReplySenderDisplayName: null,+ channelReplyMessageContent: 'on it',+ channelReplyHasAttachments: false,+ channelReplyThreadParentSenderId: null,+ channelReplyChannelType: 'PUBLIC',+ channelReplyChannelName: 'General',+ channelReplySenderProfilePictureUrl: null,+ },+ },+ ],+ },+ ],+ }) as unknown as NotificationInboxEntryFieldsFragment;++describe('toInboxGroup', () => {+ it('gives a row’s entity the accessor that navigation helpers read', () => {+ const [row] =+ toInboxGroup(+ inboxEntry({+ docId: 'doc-a',+ sortAt: '2026-02-01T10:09:00Z',+ rows: [+ {+ id: 'document:doc-a#discussion_thread:c1',+ rowType: 'DISCUSSION_THREAD',+ latestAt: '2026-02-01T10:09:00Z',+ notificationIds: ['c1'],+ },+ ],+ })+ )?.rows ?? [];++ expect(row && isWithNotification(row.content.entity)).toBe(true);+ });++ it('points a channel row at the message its newest notification names', () => {+ const [row] = toInboxGroup(threadRowEntry())?.rows ?? [];++ expect(row?.content.entity).toMatchObject({+ type: 'channel',+ target: { messageId: 'reply', threadId: 'root' },+ });+ });++ it('aims a row’s entity at one of its notifications', () => {+ const entry = threadRowEntry();+ const [row] = entry.rows;+ const older = {+ ...row.notifications[0],+ id: 'n-0',+ metadata: {+ ...row.notifications[0].metadata,+ channelReplyMessageId: 'older-reply',+ },+ };+ const group = toInboxGroup({+ ...entry,+ rows: [+ { ...row, count: 2, notifications: [row.notifications[0], older] },+ ],+ } as unknown as NotificationInboxEntryFieldsFragment);+ const decoded = group?.rows[0];+ if (!decoded) throw new Error('row missing');+ expect(decoded.content.entity).toMatchObject({+ target: { messageId: 'reply', threadId: 'root' },+ });++ const aimed = decoded.content.entityAt(decoded.content.notifications[1]);++ expect(aimed).toMatchObject({+ target: { messageId: 'older-reply', threadId: 'root' },+ });+ expect(isWithNotification(aimed) && aimed.notifications?.()).toEqual([+ decoded.content.notifications[1],+ ]);+ });++ it('turns each row into an inbox row whose entity carries only its notifications', () => {+ const group = toInboxGroup(+ inboxEntry({+ docId: 'doc-a',+ sortAt: '2026-02-01T10:09:00Z',+ rows: [+ {+ id: 'document:doc-a#discussion_mention:t1',+ rowType: 'DISCUSSION_MENTION',+ latestAt: '2026-02-01T10:09:00Z',+ notificationIds: ['n-1', 'n-2'],+ },+ {+ id: 'document:doc-a#task',+ rowType: 'TASK',+ latestAt: '2026-02-01T10:01:00Z',+ unseen: false,+ },+ ],+ })+ );++ expect(group?.groupId).toBe('document:doc-a');+ expect(group?.sortAt).toBe(Date.parse('2026-02-01T10:09:00Z'));+ expect(+ group?.rows.map((row) => ({+ id: row.id,+ type: row.type,+ unseen: row.unseen,+ count: row.count,+ notifications: row.content.notifications.map((n) => n.id),+ entityNotifications: (+ row.content.entity.notifications as () => { id: string }[]+ )().map((n) => n.id),+ }))+ ).toEqual([+ {+ id: 'document:doc-a#discussion_mention:t1',+ type: 'discussion_mention',+ unseen: true,+ count: 2,+ notifications: ['n-1', 'n-2'],+ entityNotifications: ['n-1', 'n-2'],+ },+ {+ id: 'document:doc-a#task',+ type: 'task',+ unseen: false,+ count: 1,+ notifications: ['n-document:doc-a#task'],+ entityNotifications: ['n-document:doc-a#task'],+ },+ ]);+ });++ it('reads who a row is from and what the viewer can do', () => {+ const group = toInboxGroup(+ inboxEntry({+ docId: 'doc-a',+ sortAt: '2026-02-01T10:09:00Z',+ rows: [+ {+ id: 'document:doc-a#access_requested:r1',+ rowType: 'ACCESS_REQUESTED',+ latestAt: '2026-02-01T10:09:00Z',+ actor: {+ kind: 'USER',+ principalId: 'macro|[email protected]',+ name: null,+ },+ actions: [+ { kind: 'APPROVE', targetId: 'r1', url: null },+ { kind: 'DENY', targetId: 'r1', url: null },+ ],+ },+ {+ id: 'document:doc-a#agent',+ rowType: 'AGENT',+ latestAt: '2026-02-01T10:08:00Z',+ actor: { kind: 'AGENT', principalId: 'bot-1', name: 'Builder' },+ actions: [{ kind: 'ANSWER', targetId: null, url: null }],+ },+ {+ id: 'document:doc-a#email',+ rowType: 'EMAIL',+ latestAt: '2026-02-01T10:07:00Z',+ actor: null,+ },+ ],+ })+ );++ expect(+ group?.rows.map((row) => ({ actor: row.actor, actions: row.actions }))+ ).toEqual([+ {+ actor: { kind: 'user', id: 'macro|[email protected]' },+ actions: [+ { kind: 'approve', targetId: 'r1' },+ { kind: 'deny', targetId: 'r1' },+ ],+ },+ {+ actor: { kind: 'agent', name: 'Builder' },+ actions: [{ kind: 'answer' }],+ },+ { actor: undefined, actions: [] },+ ]);+ });++ it('shows values a newer server adds as a generic row, with no author and no button', () => {+ const group = toInboxGroup(+ inboxEntry({+ docId: 'doc-a',+ sortAt: '2026-02-01T10:09:00Z',+ rows: [+ {+ id: 'document:doc-a#suggestion:s1',+ rowType: 'SUGGESTION' as NotificationInboxRowType,+ latestAt: '2026-02-01T10:09:00Z',+ actor: {+ kind: 'TEAM' as NotificationInboxActorKind,+ principalId: null,+ name: null,+ },+ actions: [+ {+ kind: 'SEND' as NotificationInboxRowActionKind,+ targetId: 's1',+ url: null,+ },+ { kind: 'APPROVE', targetId: null, url: null },+ { kind: 'REVIEW', targetId: null, url: null },+ { kind: 'OPEN', targetId: null, url: null },+ ],+ },+ ],+ })+ );++ expect(group?.rows).toHaveLength(1);+ expect(group?.rows[0]).toMatchObject({+ type: 'other',+ actor: { kind: 'other' },+ actions: [{ kind: 'open' }],+ });+ });++ it('drops an entry without a valid place', () => {+ expect(+ toInboxGroup(inboxEntry({ docId: 'doc-a', sortAt: 'never', rows: [] }))+ ).toBeNull();+ });+});++describe('encodeInboxScope', () => {+ it('reads every row, new types included, when every type is chosen', () => {+ expect(encodeInboxScope({ rowTypes: ALL_INBOX_ROW_TYPES })).toEqual({+ rowTypes: [],+ });+ });++ it('narrows the inbox to the chosen rows', () => {+ expect(encodeInboxScope({ rowTypes: ['email', 'channel_thread'] })).toEqual(+ { rowTypes: ['EMAIL', 'CHANNEL_THREAD'] }+ );+ });+});diff --git a/apps/web/src/features/notifications-inbox/queries/decode.ts b/apps/web/src/features/notifications-inbox/queries/decode.tsnew file mode 100644index 0000000000..c2f217b30e--- /dev/null+++ b/apps/web/src/features/notifications-inbox/queries/decode.ts@@ -0,0 +1,190 @@+import type { EntityData } from '@entity';+import { getChannelNotificationParams } from '@notifications/notification-navigation';+import type { UnifiedNotification } from '@notifications/types';+import { attentionFeedSoupItem } from '@queries/attention-feed/attention-feed-entity';+import { mapApiSoupItemToEntity } from '@queries/soup/transform-utils';+import type {+ NotificationInboxEntryFieldsFragment,+ NotificationInboxRowType,+ NotificationInboxScopeInput,+} from '@service-storage/graphql/generated/graphql';+import { mapGraphqlNotification } from '@service-storage/graphql-soup';+import { match } from 'ts-pattern';+import type {+ InboxRowContent,+ InboxScope,+ NotificationInboxRow,+} from '../context/notifications-inbox-context';+import { ALL_INBOX_ROW_TYPES } from '../core/inbox-filters';+import type {+ InboxActor,+ InboxRowAction,+ InboxRowType,+} from '../core/inbox-row';+import type { NotificationInboxGroup } from './notification-inbox-groups';++type WireRow = NotificationInboxEntryFieldsFragment['rows'][number];++/** The server's row types only grow; a newer one shows as a generic row. */+const toRowType = (+ type: NotificationInboxRowType+): NotificationInboxRow['type'] =>+ match<NotificationInboxRowType, NotificationInboxRow['type']>(type)+ .with('AGENT', () => 'agent' as const)+ .with('EMAIL', () => 'email' as const)+ .with('CHANNEL_MENTION', () => 'channel_mention' as const)+ .with('CHANNEL_MESSAGES', () => 'channel_messages' as const)+ .with('CHANNEL_THREAD', () => 'channel_thread' as const)+ .with('DISCUSSION_MENTION', () => 'discussion_mention' as const)+ .with('DISCUSSION_MESSAGES', () => 'discussion_messages' as const)+ .with('DISCUSSION_THREAD', () => 'discussion_thread' as const)+ .with('TASK', () => 'task' as const)+ .with('PULL_REQUEST', () => 'pull_request' as const)+ .with('CALENDAR_EVENT', () => 'calendar_event' as const)+ .with('CALENDAR_JOIN_REQUEST', () => 'calendar_join_request' as const)+ .with('ACCESS_REQUESTED', () => 'access_requested' as const)+ .with('ACCESS_GRANTED', () => 'access_granted' as const)+ .exhaustive(() => 'other' as const);++/** An actor kind this build doesn't know names no author. */+const toActor = (actor: WireRow['actor']): InboxActor | undefined => {+ if (!actor) return undefined;+ return match(actor.kind)+ .returnType<InboxActor>()+ .with('USER', () =>+ actor.principalId+ ? { kind: 'user', id: actor.principalId }+ : { kind: 'other' }+ )+ .with('AGENT', () => ({ kind: 'agent', name: actor.name ?? undefined }))+ .with('MACRO', () => ({ kind: 'macro' }))+ .exhaustive(() => ({ kind: 'other' }));+};++/**+ * The actions this build can offer. An unknown kind, or one missing the+ * target or url it acts on, is skipped.+ */+const toActions = (actions: WireRow['actions']): InboxRowAction[] =>+ actions.flatMap(({ kind, targetId, url }) =>+ match(kind)+ .returnType<InboxRowAction[]>()+ .with('OPEN', () => [{ kind: 'open' }])+ .with('ANSWER', () => [{ kind: 'answer' }])+ .with('REVIEW', () => (url ? [{ kind: 'review', url }] : []))+ .with('APPROVE', () => (targetId ? [{ kind: 'approve', targetId }] : []))+ .with('DENY', () => (targetId ? [{ kind: 'deny', targetId }] : []))+ .with('ACCEPT', () => (targetId ? [{ kind: 'accept', targetId }] : []))+ .with('DECLINE', () => (targetId ? [{ kind: 'decline', targetId }] : []))+ .exhaustive(() => [])+ );++const toGraphqlRowType = (type: InboxRowType): NotificationInboxRowType =>+ match(type)+ .with('agent', () => 'AGENT' as const)+ .with('email', () => 'EMAIL' as const)+ .with('channel_mention', () => 'CHANNEL_MENTION' as const)+ .with('channel_messages', () => 'CHANNEL_MESSAGES' as const)+ .with('channel_thread', () => 'CHANNEL_THREAD' as const)+ .with('discussion_mention', () => 'DISCUSSION_MENTION' as const)+ .with('discussion_messages', () => 'DISCUSSION_MESSAGES' as const)+ .with('discussion_thread', () => 'DISCUSSION_THREAD' as const)+ .with('task', () => 'TASK' as const)+ .with('pull_request', () => 'PULL_REQUEST' as const)+ .with('calendar_event', () => 'CALENDAR_EVENT' as const)+ .with('calendar_join_request', () => 'CALENDAR_JOIN_REQUEST' as const)+ .with('access_requested', () => 'ACCESS_REQUESTED' as const)+ .with('access_granted', () => 'ACCESS_GRANTED' as const)+ .exhaustive(() => {+ throw new Error(`Unknown inbox row type: ${type}`);+ });++/**+ * Encode an inbox scope for the server. Every known type reads every row,+ * including row types a newer server adds.+ */+export function encodeInboxScope(+ scope: InboxScope+): NotificationInboxScopeInput {+ const everyType = ALL_INBOX_ROW_TYPES.every((type) =>+ scope.rowTypes.includes(type)+ );+ return { rowTypes: everyType ? [] : scope.rowTypes.map(toGraphqlRowType) };+}++/**+ * The entity one row opens: it carries only the row's notifications, and a+ * channel row names the message its newest notification is about, since a+ * thread row's channel entity would otherwise open at the channel's latest.+ */+function rowEntity(+ entity: EntityData,+ notifications: UnifiedNotification[]+): InboxRowContent['entity'] {+ const read = () => notifications;+ const [newest] = notifications;+ if (!newest || entity.type !== 'channel') {+ return { ...entity, notifications: read };+ }+ const { messageId, threadId } = getChannelNotificationParams(newest);+ return messageId+ ? { ...entity, notifications: read, target: { messageId, threadId } }+ : { ...entity, notifications: read };+}++/** Rows decoded by an earlier read, with the wire data each came from. */+export type InboxRowMemo = {+ previous: ReadonlyMap<string, { wire: string; row: NotificationInboxRow }>;+ next: Map<string, { wire: string; row: NotificationInboxRow }>;+};++/**+ * Project one inbox entry into rows. Each row's entity carries only that+ * row's notifications, so entity-based helpers (icons, preview targets) see+ * what the row shows. An entity the app does not list, or an entry without a+ * valid place, is dropped. With a memo, a row that did not change keeps its+ * object.+ */+export function toInboxGroup(+ entry: NotificationInboxEntryFieldsFragment,+ memo?: InboxRowMemo+): NotificationInboxGroup | null {+ const sortAt = Date.parse(entry.sortAt);+ const soupItem = attentionFeedSoupItem(entry.entity);+ if (!soupItem || Number.isNaN(sortAt)) return null;+ const entity = mapApiSoupItemToEntity(soupItem);+ const entityWire = memo ? JSON.stringify(entry.entity) : '';+ return {+ groupId: entry.groupId,+ sortAt,+ rows: entry.rows.flatMap((row) => {+ const latestAt = Date.parse(row.latestAt);+ if (Number.isNaN(latestAt)) return [];+ const wire = memo ? `${entityWire}${JSON.stringify(row)}` : '';+ const known = memo?.previous.get(row.id);+ if (memo && known?.wire === wire) {+ memo.next.set(row.id, known);+ return [known.row];+ }+ const notifications = row.notifications.map(mapGraphqlNotification);+ const decoded: NotificationInboxRow = {+ id: row.id,+ type: toRowType(row.rowType),+ threadId: row.threadId ?? undefined,+ revision: row.revision,+ latestAt,+ actor: toActor(row.actor),+ actions: toActions(row.actions),+ unseen: row.unseen,+ count: row.count,+ content: {+ entity: rowEntity(entity, notifications),+ notifications,+ entityAt: (notification) => rowEntity(entity, [notification]),+ },+ };+ memo?.next.set(row.id, { wire, row: decoded });+ return [decoded];+ }),+ };+}diff --git a/apps/web/src/features/notifications-inbox/queries/notification-inbox-groups.test.ts b/apps/web/src/features/notifications-inbox/queries/notification-inbox-groups.test.tsnew file mode 100644index 0000000000..baf7794a91--- /dev/null+++ b/apps/web/src/features/notifications-inbox/queries/notification-inbox-groups.test.ts@@ -0,0 +1,82 @@+import { describe, expect, it } from 'vitest';+import type { NotificationInboxRow } from '../context/notifications-inbox-context';+import {+ type NotificationInboxGroup,+ orderInboxRows,+} from './notification-inbox-groups';++const row = (id: string, latestAt: number): NotificationInboxRow => ({+ id,+ type: 'channel_messages',+ revision: `rev-${id}`,+ latestAt,+ actions: [],+ unseen: true,+ count: 1,+ content: {+ entity: {} as never,+ notifications: [],+ entityAt: () => ({}) as never,+ },+});++const group = (+ groupId: string,+ sortAt: number,+ rows: NotificationInboxRow[]+): NotificationInboxGroup => ({ groupId, sortAt, rows });++const ids = (rows: NotificationInboxRow[]) => rows.map((r) => r.id);++describe('orderInboxRows', () => {+ it('lists every row of the loaded groups newest first', () => {+ const groups = [+ group('channel:a', 50, [+ row('channel:a#top_level', 50),+ row('channel:a#thread:m', 45),+ ]),+ group('document:b', 48, [row('document:b#task', 48)]),+ ];+ expect(ids(orderInboxRows(groups, true))).toEqual([+ 'channel:a#top_level',+ 'document:b#task',+ 'channel:a#thread:m',+ ]);+ });++ it('holds back rows an unloaded page could outrank until it loads', () => {+ const groups = [+ group('channel:a', 50, [+ row('channel:a#top_level', 50),+ row('channel:a#thread:m', 10),+ ]),+ group('document:b', 30, [row('document:b#task', 30)]),+ ];+ // The next page holds groups placed at or before 30, so the thread at+ // 10 may not be next yet.+ expect(ids(orderInboxRows(groups, false))).toEqual([+ 'channel:a#top_level',+ 'document:b#task',+ ]);+ expect(ids(orderInboxRows(groups, true))).toEqual([+ 'channel:a#top_level',+ 'document:b#task',+ 'channel:a#thread:m',+ ]);+ });++ it('shows nothing before the first page loads', () => {+ expect(orderInboxRows([], false)).toEqual([]);+ });++ it('keeps rows at the same time in a stable order', () => {+ const groups = [+ group('document:b', 20, [row('document:b#task', 20)]),+ group('document:a', 20, [row('document:a#task', 20)]),+ ];+ expect(ids(orderInboxRows(groups, true))).toEqual([+ 'document:b#task',+ 'document:a#task',+ ]);+ });+});diff --git a/apps/web/src/features/notifications-inbox/queries/notification-inbox-groups.ts b/apps/web/src/features/notifications-inbox/queries/notification-inbox-groups.tsnew file mode 100644index 0000000000..632c8438c6--- /dev/null+++ b/apps/web/src/features/notifications-inbox/queries/notification-inbox-groups.ts@@ -0,0 +1,30 @@+import type { NotificationInboxRow } from '../context/notifications-inbox-context';+import { compareInboxRows } from '../core/inbox-row';++/** One loaded inbox entry: the rows filed under one entity. */+export type NotificationInboxGroup = {+ /** `<entity type>:<entity id>`; live changes replace a group's rows. */+ groupId: string;+ /** The group's newest pending notification, epoch milliseconds. */+ sortAt: number;+ rows: NotificationInboxRow[];+};++/**+ * The rows of the loaded groups, newest first. The inbox pages by group, and+ * no row is newer than its group's place, so a row older than the last+ * loaded group could still be outranked by a row on a page not loaded yet:+ * those rows wait for the next page, unless the inbox is exhausted.+ */+export function orderInboxRows(+ groups: readonly NotificationInboxGroup[],+ exhausted: boolean+): NotificationInboxRow[] {+ const boundary = exhausted+ ? Number.NEGATIVE_INFINITY+ : (groups.at(-1)?.sortAt ?? Number.POSITIVE_INFINITY);+ return groups+ .flatMap((group) => group.rows)+ .filter((row) => row.latestAt >= boundary)+ .sort(compareInboxRows);+}diff --git a/apps/web/src/features/notifications-inbox/queries/notification-inbox-mutations.ts b/apps/web/src/features/notifications-inbox/queries/notification-inbox-mutations.tsnew file mode 100644index 0000000000..e827122169--- /dev/null+++ b/apps/web/src/features/notifications-inbox/queries/notification-inbox-mutations.ts@@ -0,0 +1,67 @@+import {+ MarkNotificationInboxRowsDoneDocument,+ MarkNotificationInboxRowsSeenDocument,+ type NotificationInboxPatchFieldsFragment,+ type NotificationInboxScopeInput,+ UndoNotificationInboxRowsDoneDocument,+} from '@service-storage/graphql/generated/graphql';+import type { Client } from '@urql/core';++/** A row and the revision the viewer saw, which done acknowledges. */+export type InboxRowTarget = { id: string; revision: string };++/** Mark rows done; resolves to the token that reverses exactly this done. */+export async function markInboxRowsDone(+ client: Client,+ rows: readonly InboxRowTarget[]+): Promise<{ undoToken: string }> {+ const result = await client+ .mutation(MarkNotificationInboxRowsDoneDocument, {+ input: { rows: rows.map(({ id, revision }) => ({ id, revision })) },+ })+ .toPromise();+ const payload = result.data?.markNotificationInboxRowsDone;+ if (result.error || !payload) {+ throw result.error ?? new Error('Marking inbox rows done failed');+ }+ return { undoToken: payload.undoToken };+}++/** Reverse one done; resolves to the restored entries' places in `scope`. */+export async function undoInboxRowsDone(+ client: Client,+ undoToken: string,+ scope: NotificationInboxScopeInput+): Promise<NotificationInboxPatchFieldsFragment[]> {+ const result = await client+ .mutation(UndoNotificationInboxRowsDoneDocument, {+ input: { undoToken, scope },+ })+ .toPromise();+ const payload = result.data?.undoNotificationInboxRowsDone;+ if (result.error || !payload) {+ throw result.error ?? new Error('Undoing inbox done failed');+ }+ return payload.patches;+}++/**+ * Mark rows seen, hidden notifications included; resolves to the changed+ * entries in `scope`.+ */+export async function markInboxRowsSeen(+ client: Client,+ rowIds: readonly string[],+ scope: NotificationInboxScopeInput+): Promise<NotificationInboxPatchFieldsFragment[]> {+ const result = await client+ .mutation(MarkNotificationInboxRowsSeenDocument, {+ input: { rowIds: [...rowIds], scope },+ })+ .toPromise();+ const payload = result.data?.markNotificationInboxRowsSeen;+ if (result.error || !payload) {+ throw result.error ?? new Error('Marking inbox rows seen failed');+ }+ return payload.patches;+}diff --git a/apps/web/src/features/notifications-inbox/queries/notification-inbox-shape.ts b/apps/web/src/features/notifications-inbox/queries/notification-inbox-shape.tsnew file mode 100644index 0000000000..616c7e2222--- /dev/null+++ b/apps/web/src/features/notifications-inbox/queries/notification-inbox-shape.ts@@ -0,0 +1,42 @@+import type { AttentionFeedShape } from '@queries/attention-feed/attention-feed-types';+import type {+ NotificationInboxEntryFieldsFragment,+ NotificationInboxPatchFieldsFragment,+ NotificationInboxQuery,+} from '@service-storage/graphql/generated/graphql';+import { match } from 'ts-pattern';++/** How the inbox's documents fit the shared attention feed client. */+export const notificationInboxShape: AttentionFeedShape<+ NotificationInboxQuery,+ NotificationInboxEntryFieldsFragment,+ NotificationInboxPatchFieldsFragment+> = {+ key: (entry) => entry.groupId,+ sortAt: (entry) => entry.sortAt,+ change: (patch) =>+ match(patch)+ .returnType<ReturnType<typeof notificationInboxShape.change>>()+ .with({ __typename: 'NotificationInboxEntryUpserted' }, ({ entry }) => ({+ kind: 'upserted',+ entry,+ }))+ .with({ __typename: 'NotificationInboxEntryRemoved' }, ({ groupId }) => ({+ kind: 'removed',+ key: groupId,+ }))+ .with({ __typename: 'NotificationInboxInvalidated' }, () => ({+ kind: 'invalidated',+ }))+ // A change this build does not know can only be caught up by a read.+ .exhaustive(() => ({ kind: 'invalidated' })),+ entries: (page) => page.user.notificationInbox.entries,+ nextPosition: (page) => page.user.notificationInbox.nextPosition,+ withEntries: (page, entries) => ({+ ...page,+ user: {+ ...page.user,+ notificationInbox: { ...page.user.notificationInbox, entries },+ },+ }),+};diff --git a/apps/web/src/features/notifications-inbox/queries/notification-inbox-source.test.ts b/apps/web/src/features/notifications-inbox/queries/notification-inbox-source.test.tsnew file mode 100644index 0000000000..c667ff5350--- /dev/null+++ b/apps/web/src/features/notifications-inbox/queries/notification-inbox-source.test.ts@@ -0,0 +1,392 @@+import { createFakeAttentionFeedClient } from '@queries/attention-feed/tests/fake-client';+import { createRoot, createSignal } from 'solid-js';+import { afterEach, describe, expect, it, vi } from 'vitest';+import type {+ InboxFeedSource,+ InboxScope,+} from '../context/notifications-inbox-context';+import { ALL_INBOX_ROW_TYPES } from '../core/inbox-filters';+import {+ inboxEntry,+ inboxPage,+ removedPatch,+ upsertedPatch,+} from '../tests/wire';+import { createNotificationInboxSource } from './notification-inbox-source';++// Row mapping imports allBlocks, which loads every block module; one of them+// opens a websocket that jsdom rejects after the test ends.+vi.mock('@core/constant/allBlocks', () => ({+ blockNameToDefaultFile: () => 'Untitled',+ itemToSafeName: (item: { name?: string }) => item.name ?? 'Untitled',+}));++const disposals: Array<() => void> = [];+afterEach(() => {+ for (const dispose of disposals.splice(0)) dispose();+ vi.useRealTimers();+});++/** Let timers at zero and the cache's promise chains run out. */+const flush = async () => {+ for (let i = 0; i < 5; i++) await vi.advanceTimersByTimeAsync(0);+};++const WIRE_SCOPE = { rowTypes: [] };++const docA = inboxEntry({+ docId: 'doc-a',+ sortAt: '2026-02-01T10:09:00Z',+ rows: [+ {+ id: 'document:doc-a#top_level',+ latestAt: '2026-02-01T10:09:00Z',+ },+ {+ id: 'document:doc-a#task',+ rowType: 'TASK',+ latestAt: '2026-02-01T10:08:00Z',+ },+ ],+});+const docB = inboxEntry({+ docId: 'doc-b',+ sortAt: '2026-02-01T10:05:00Z',+ rows: [+ {+ id: 'document:doc-b#top_level',+ latestAt: '2026-02-01T10:05:00Z',+ },+ ],+});+const docC = inboxEntry({+ docId: 'doc-c',+ sortAt: '2026-02-01T10:07:00Z',+ rows: [+ {+ id: 'document:doc-c#top_level',+ latestAt: '2026-02-01T10:07:00Z',+ },+ ],+});++function setup(+ mutationData: Record<string, unknown> = {},+ scope: () => InboxScope = () => ({ rowTypes: ALL_INBOX_ROW_TYPES })+) {+ const fake = createFakeAttentionFeedClient(mutationData);+ const revalidateNotifications = vi.fn(async () => {});+ const restoreNotifications = vi.fn();+ const overrideNotificationsDone = vi.fn(() => restoreNotifications);+ let feed!: InboxFeedSource;+ const dispose = createRoot((rootDispose) => {+ feed = createNotificationInboxSource({+ client: () => fake.client,+ cacheHost: () => fake.host,+ scope,+ enabled: () => true,+ overrideNotificationsDone,+ revalidateNotifications,+ });+ return rootDispose;+ });+ disposals.push(dispose);+ const rowIds = () => feed.rows()?.map((row) => row.id);+ const row = (id: string) => {+ const found = feed.rows()?.find((candidate) => candidate.id === id);+ if (!found) throw new Error(`${id} missing`);+ return found;+ };+ return {+ fake,+ feed,+ rowIds,+ row,+ overrideNotificationsDone,+ restoreNotifications,+ revalidateNotifications,+ };+}++async function loaded(mutationData: Record<string, unknown> = {}) {+ const context = setup(mutationData);+ await flush();+ context.fake.queries[0].resolve(inboxPage([docA, docB]));+ await flush();+ return context;+}++const doneResult = {+ MarkNotificationInboxRowsDone: {+ markNotificationInboxRowsDone: { rowIds: [], undoToken: 'undo-1' },+ },+};++describe('createNotificationInboxSource', () => {+ it('reads the inbox and lists every row newest first', async () => {+ vi.useFakeTimers();+ const { fake, feed, rowIds } = setup();+ await flush();+ expect(feed.rows()).toBeUndefined();+ expect(fake.queries[0].variables).toEqual({+ input: { scope: WIRE_SCOPE, limit: 50, cursor: null },+ });+ expect(fake.subscriptions[0].variables).toEqual({ scope: WIRE_SCOPE });++ fake.queries[0].resolve(inboxPage([docA, docB]));+ await flush();++ expect(rowIds()).toEqual([+ 'document:doc-a#top_level',+ 'document:doc-a#task',+ 'document:doc-b#top_level',+ ]);+ });++ it('writes live changes into the cached pages without a read', async () => {+ vi.useFakeTimers();+ const { fake, rowIds } = await loaded();+ const reads = fake.queries.length;++ fake.subscriptions[0].next({+ notificationInboxUpdates: [+ upsertedPatch(docC),+ removedPatch('document:doc-a'),+ ],+ });+ await flush();++ expect(fake.queries).toHaveLength(reads);+ expect(rowIds()).toEqual([+ 'document:doc-c#top_level',+ 'document:doc-b#top_level',+ ]);+ });++ it('keeps the object of a row a live change did not touch', async () => {+ vi.useFakeTimers();+ const { fake, row } = await loaded();+ const untouched = row('document:doc-a#top_level');++ fake.subscriptions[0].next({+ notificationInboxUpdates: [+ upsertedPatch(+ inboxEntry({+ docId: 'doc-b',+ sortAt: '2026-03-01T00:00:00Z',+ rows: [+ {+ id: 'document:doc-b#top_level',+ latestAt: '2026-03-01T00:00:00Z',+ revision: 'rev-b-2',+ notificationIds: ['n-b-1', 'n-b-2'],+ },+ ],+ })+ ),+ ],+ });+ await flush();++ expect(row('document:doc-b#top_level').count).toBe(2);+ expect(row('document:doc-a#top_level')).toBe(untouched);+ });++ it('marks one row done at its revision and hides only that row', async () => {+ vi.useFakeTimers();+ const { fake, feed, row, rowIds, overrideNotificationsDone } =+ await loaded(doneResult);++ await feed.markDone([row('document:doc-a#task')]);++ expect(fake.mutations[0]).toEqual({+ name: 'MarkNotificationInboxRowsDone',+ variables: {+ input: {+ rows: [+ { id: 'document:doc-a#task', revision: 'rev-document:doc-a#task' },+ ],+ },+ },+ });+ expect(overrideNotificationsDone).toHaveBeenCalledWith([+ 'n-document:doc-a#task',+ ]);+ expect(rowIds()).toEqual([+ 'document:doc-a#top_level',+ 'document:doc-b#top_level',+ ]);+ });++ it('shows the row again when the done fails', async () => {+ vi.useFakeTimers();+ const { feed, row, rowIds, restoreNotifications } = await loaded();++ await expect(feed.markDone([row('document:doc-a#task')])).rejects.toThrow();++ expect(restoreNotifications).toHaveBeenCalled();+ expect(rowIds()).toContain('document:doc-a#task');+ });++ it('shows a done row again when a newer notification reopens it', async () => {+ vi.useFakeTimers();+ const { fake, feed, row, rowIds } = await loaded(doneResult);+ await feed.markDone([row('document:doc-a#task')]);++ const reopened = inboxEntry({+ docId: 'doc-a',+ sortAt: '2026-02-01T10:10:00Z',+ rows: [+ {+ id: 'document:doc-a#task',+ rowType: 'TASK',+ latestAt: '2026-02-01T10:10:00Z',+ revision: 'rev-newer',+ },+ ],+ });+ fake.subscriptions[0].next({+ notificationInboxUpdates: [upsertedPatch(reopened)],+ });+ await flush();++ expect(rowIds()).toEqual([+ 'document:doc-a#task',+ 'document:doc-b#top_level',+ ]);+ });++ it('undo restores the row in the place the server returns', async () => {+ vi.useFakeTimers();+ const { fake, feed, row, rowIds, restoreNotifications } = await loaded({+ ...doneResult,+ UndoNotificationInboxRowsDone: {+ undoNotificationInboxRowsDone: { patches: [upsertedPatch(docB)] },+ },+ });+ const done = await feed.markDone([row('document:doc-b#top_level')]);+ fake.subscriptions[0].next({+ notificationInboxUpdates: [removedPatch('document:doc-b')],+ });+ await flush();+ expect(rowIds()).not.toContain('document:doc-b#top_level');++ await done.undo();+ await flush();++ expect(fake.mutations[1]).toEqual({+ name: 'UndoNotificationInboxRowsDone',+ variables: { input: { undoToken: 'undo-1', scope: WIRE_SCOPE } },+ });+ expect(restoreNotifications).toHaveBeenCalled();+ expect(rowIds()).toContain('document:doc-b#top_level');+ });++ it('undoes into the filter showing now, not the one the done came from', async () => {+ vi.useFakeTimers();+ const [scope, setScope] = createSignal<InboxScope>({+ rowTypes: ALL_INBOX_ROW_TYPES,+ });+ const { fake, feed, row } = setup(+ {+ ...doneResult,+ UndoNotificationInboxRowsDone: {+ undoNotificationInboxRowsDone: { patches: [] },+ },+ },+ scope+ );+ await flush();+ fake.queries[0].resolve(inboxPage([docA, docB]));+ await flush();+ const done = await feed.markDone([row('document:doc-b#top_level')]);++ setScope({ rowTypes: ['email'] });+ await done.undo();++ expect(fake.mutations[1]).toEqual({+ name: 'UndoNotificationInboxRowsDone',+ variables: {+ input: { undoToken: 'undo-1', scope: { rowTypes: ['EMAIL'] } },+ },+ });+ });++ it('drops an undo’s patches when the filter changed while it was in flight', async () => {+ vi.useFakeTimers();+ const [scope, setScope] = createSignal<InboxScope>({+ rowTypes: ALL_INBOX_ROW_TYPES,+ });+ let answerUndo = (_answer: unknown) => {};+ const undoAnswer = new Promise((resolve) => {+ answerUndo = resolve;+ });+ const { fake, feed, row, rowIds } = setup(+ { ...doneResult, UndoNotificationInboxRowsDone: undoAnswer },+ scope+ );+ await flush();+ fake.queries[0].resolve(inboxPage([docA, docB]));+ await flush();+ const done = await feed.markDone([row('document:doc-b#top_level')]);++ const undoing = done.undo();+ setScope({ rowTypes: ['task'] });+ await flush();+ fake.queries.at(-1)?.resolve(inboxPage([docA]));+ await flush();+ answerUndo({+ undoNotificationInboxRowsDone: { patches: [upsertedPatch(docC)] },+ });+ await undoing;+ await flush();++ expect(rowIds()).not.toContain('document:doc-c#top_level');+ expect(rowIds()).toContain('document:doc-a#task');+ });++ it('reads a row as seen at once and marks it seen by row', async () => {+ vi.useFakeTimers();+ const seenEntry = inboxEntry({+ docId: 'doc-a',+ sortAt: '2026-02-01T10:09:00Z',+ rows: [+ {+ id: 'document:doc-a#top_level',+ latestAt: '2026-02-01T10:09:00Z',+ unseen: false,+ },+ ],+ });+ const { fake, feed, row, revalidateNotifications } = await loaded({+ MarkNotificationInboxRowsSeen: {+ markNotificationInboxRowsSeen: { patches: [upsertedPatch(seenEntry)] },+ },+ });++ const seen = feed.markSeen([row('document:doc-a#top_level')]);+ expect(row('document:doc-a#top_level').unseen).toBe(false);+ await seen;+ await flush();++ expect(fake.mutations[0]).toEqual({+ name: 'MarkNotificationInboxRowsSeen',+ variables: {+ input: { rowIds: ['document:doc-a#top_level'], scope: WIRE_SCOPE },+ },+ });+ expect(revalidateNotifications).toHaveBeenCalled();+ expect(row('document:doc-a#top_level').unseen).toBe(false);+ });++ it('reads the row as unseen again when marking it seen fails', async () => {+ vi.useFakeTimers();+ const { feed, row } = await loaded();++ await expect(+ feed.markSeen([row('document:doc-a#top_level')])+ ).rejects.toThrow();++ expect(row('document:doc-a#top_level').unseen).toBe(true);+ });+});diff --git a/apps/web/src/features/notifications-inbox/queries/notification-inbox-source.ts b/apps/web/src/features/notifications-inbox/queries/notification-inbox-source.tsnew file mode 100644index 0000000000..8106c013e4--- /dev/null+++ b/apps/web/src/features/notifications-inbox/queries/notification-inbox-source.ts@@ -0,0 +1,263 @@+import { createUrqlInfiniteQuery } from '@app/lib/urql-solid/create-urql-infinite-query';+import { fireAndForget } from '@core/util/fireAndForget';+import type { CacheHost } from '@graphql-cache/host/types';+import { createLiveAttentionFeed } from '@queries/attention-feed/live-attention-feed';+import {+ NotificationInboxDocument,+ type NotificationInboxEntryFieldsFragment,+ type NotificationInboxQuery,+ type NotificationInboxQueryVariables,+ type NotificationInboxScopeInput,+ NotificationInboxUpdatesDocument,+} from '@service-storage/graphql/generated/graphql';+import { type Client, stringifyDocument } from '@urql/core';+import { type Accessor, createMemo, createSignal } from 'solid-js';+import type {+ InboxFeedSource,+ InboxScope,+ NotificationInboxRow,+} from '../context/notifications-inbox-context';+import {+ markRows,+ type RowMarks,+ settleRowMarks,+ unmarkRows,+ withoutDoneRows,+ withSeenRows,+} from '../core/inbox-row';+import { encodeInboxScope, type InboxRowMemo, toInboxGroup } from './decode';+import {+ type NotificationInboxGroup,+ orderInboxRows,+} from './notification-inbox-groups';+import {+ markInboxRowsDone,+ markInboxRowsSeen,+ undoInboxRowsDone,+} from './notification-inbox-mutations';+import { notificationInboxShape } from './notification-inbox-shape';++/** Entries fetched per inbox page. */+export const INBOX_PAGE_LIMIT = 50;++const inboxCachedQuery = {+ query: stringifyDocument(NotificationInboxDocument),+ operationName: 'NotificationInbox',+};++const isGroup = (+ group: NotificationInboxGroup | null+): group is NotificationInboxGroup => group !== null;++/** The variables of the inbox page that starts at `cursor`. */+export const inboxPageVariables = (+ scope: NotificationInboxScopeInput,+ cursor: string | null+): NotificationInboxQueryVariables => ({+ input: { scope, limit: INBOX_PAGE_LIMIT, cursor },+});++export type NotificationInboxSourceOptions = {+ client: Accessor<Client>;+ /** The normalized cache holding the inbox's pages, when it is available. */+ cacheHost: Accessor<Pick<CacheHost, 'readQuery' | 'writeQuery'> | undefined>;+ scope: Accessor<InboxScope>;+ enabled: Accessor<boolean>;+ /** Subscribes to transport reconnects, after which changes may be missed. */+ onReconnected?: (listener: () => void) => () => void;+ /**+ * Shows the done to other readers of these notifications at once, until+ * the server's change reaches them; returns the reversal.+ */+ overrideNotificationsDone?: (ids: readonly string[]) => () => void;+ /** Reconciles other notification readers after a done, undo or seen. */+ revalidateNotifications?: (client: Client) => Promise<void>;+};++/**+ * The inbox read from the server's notification inbox: its rows, kept+ * current by its live stream through the shared attention feed client. Done+ * and seen address single rows and show at once, until the server's change+ * lands.+ */+export function createNotificationInboxSource(+ options: NotificationInboxSourceOptions+): InboxFeedSource {+ const scopeInput = createMemo(() => encodeInboxScope(options.scope()));+ // A scope with no row types shows nothing, so it reads nothing.+ const enabled = () =>+ options.enabled() && options.scope().rowTypes.length > 0;++ // Every change rebuilds the pages; rows it didn't touch keep their objects,+ // so what reads them, such as an open preview, doesn't rerun.+ let decodedRows: InboxRowMemo['previous'] = new Map();+ const readGroups = (+ entries: readonly NotificationInboxEntryFieldsFragment[]+ ) => {+ const memo: InboxRowMemo = { previous: decodedRows, next: new Map() };+ const groups = entries+ .map((entry) => toInboxGroup(entry, memo))+ .filter(isGroup);+ decodedRows = memo.next;+ return groups;+ };++ const query = createUrqlInfiniteQuery<+ NotificationInboxQuery,+ NotificationInboxQueryVariables,+ string | null,+ { groups: NotificationInboxGroup[]; cursors: (string | null)[] }+ >(() => {+ const scope = scopeInput();+ return {+ query: NotificationInboxDocument,+ client: options.client(),+ initialPageParam: null,+ variables: (cursor) => inboxPageVariables(scope, cursor),+ getNextPageParam: (lastPage) =>+ lastPage.user.notificationInbox.nextCursor ?? undefined,+ enabled: enabled(),+ requestPolicy: 'cache-and-network',+ keepPreviousData: true,+ select: ({ pages, pageParams }) => ({+ groups: readGroups(+ pages.flatMap((page) => page.user.notificationInbox.entries)+ ),+ cursors: [...pageParams],+ }),+ };+ });++ const [done, setDone] = createSignal<RowMarks>(new Map());+ const [seen, setSeen] = createSignal<RowMarks>(new Map());+ const ordered = createMemo(() =>+ orderInboxRows(query.data?.groups ?? [], !query.hasNextPage)+ );++ const live = createLiveAttentionFeed({+ client: options.client,+ cacheHost: options.cacheHost,+ enabled,+ shape: notificationInboxShape,+ query,+ pages: {+ cachedQuery: inboxCachedQuery,+ variables: (cursor) => inboxPageVariables(scopeInput(), cursor),+ },+ updates: {+ document: NotificationInboxUpdatesDocument,+ patches: (data) => data.notificationInboxUpdates,+ variables: () => ({ scope: scopeInput() }),+ },+ onReconnected: options.onReconnected,+ // A done row that left the inbox and returns with the revision it+ // acknowledged was reopened, so it shows again; while it is still+ // loaded, the same revision is a change computed before the done.+ onPatches: (patches) => {+ const present = new Set(ordered().map((row) => row.id));+ const reopened = patches.flatMap((patch) =>+ patch.__typename === 'NotificationInboxEntryUpserted'+ ? patch.entry.rows.flatMap((row) => {+ const acknowledged = done().get(row.id);+ return acknowledged !== undefined &&+ (acknowledged !== row.revision || !present.has(row.id))+ ? [row.id]+ : [];+ })+ : []+ );+ if (reopened.length > 0) {+ setDone((current) => unmarkRows(current, reopened));+ }+ },+ onRefetched: () => {+ setDone((current) => settleRowMarks(current, ordered()));+ setSeen((current) => settleRowMarks(current, ordered()));+ },+ surface: 'notifications-inbox',+ });++ const rows = createMemo(() =>+ query.data === undefined+ ? undefined+ : withSeenRows(withoutDoneRows(ordered(), done()), seen())+ );++ /** Patches for a filter that has since changed would add rows it hides. */+ const applyIfCurrent = (+ scope: NotificationInboxScopeInput,+ patches: Parameters<typeof live.applyPatches>[0]+ ) => {+ if (scopeInput() === scope) live.applyPatches(patches);+ };++ const revalidate = (client: Client) =>+ fireAndForget(+ options.revalidateNotifications?.(client),+ 'notifications-inbox'+ );++ const markDone = async (targets: readonly NotificationInboxRow[]) => {+ const client = options.client();+ const ids = targets.map((row) => row.id);+ setDone((current) => markRows(current, targets));+ const restoreNotifications = options.overrideNotificationsDone?.(+ targets.flatMap((row) =>+ row.content.notifications.map((notification) => notification.id)+ )+ );+ let undoToken: string;+ try {+ ({ undoToken } = await markInboxRowsDone(client, targets));+ } catch (error) {+ restoreNotifications?.();+ setDone((current) => unmarkRows(current, ids));+ throw error;+ }+ revalidate(client);+ return {+ undo: async () => {+ // The filter may have changed since the done; restore into this one.+ const scope = scopeInput();+ const patches = await undoInboxRowsDone(client, undoToken, scope);+ restoreNotifications?.();+ setDone((current) => unmarkRows(current, ids));+ revalidate(client);+ // The restored places land now rather than with the stream.+ applyIfCurrent(scope, patches);+ },+ };+ };++ const markSeen = async (targets: readonly NotificationInboxRow[]) => {+ const unseen = targets.filter((row) => row.unseen);+ if (unseen.length === 0) return;+ const client = options.client();+ const ids = unseen.map((row) => row.id);+ setSeen((current) => markRows(current, unseen));+ try {+ const scope = scopeInput();+ const patches = await markInboxRowsSeen(client, ids, scope);+ applyIfCurrent(scope, patches);+ } catch (error) {+ setSeen((current) => unmarkRows(current, ids));+ throw error;+ }+ revalidate(client);+ };++ return {+ rows,+ isLoading: () => enabled() && query.isLoading && !query.data,+ error: () => query.error ?? undefined,+ hasMore: () => enabled() && query.hasNextPage && !query.error,+ isLoadingMore: () => query.isFetchingNextPage,+ loadMore: async () => {+ if (!query.hasNextPage || query.isFetchingNextPage) return;+ await query.fetchNextPage();+ },+ refresh: live.refetch,+ markDone,+ markSeen,+ };+}diff --git a/apps/web/src/features/notifications-inbox/queries/row-actions.ts b/apps/web/src/features/notifications-inbox/queries/row-actions.tsnew file mode 100644index 0000000000..eab4d9d4c5--- /dev/null+++ b/apps/web/src/features/notifications-inbox/queries/row-actions.ts@@ -0,0 +1,30 @@+import { throwOnErr } from '@core/util/result';+import { refreshSharedAccess } from '@queries/access-requests/requests';+import { accessRequestsClient } from '@service-storage/access-requests';+import { ShareEntityType } from '@service-storage/generated/schemas/shareEntityType';+import type { AccessRequest } from '../context/notifications-inbox-context';++const shareEntityType = (type: string) =>+ Object.values(ShareEntityType).find((candidate) => candidate === type);++/**+ * Approve an access request at the level asked for, or deny it. Resolving+ * supersedes the request's notification for every reviewer.+ */+export async function resolveAccessRequest(+ request: AccessRequest,+ approve: boolean+): Promise<void> {+ const entityType = shareEntityType(request.entityType);+ if (!entityType) throw new Error('Access requests are not supported here');+ const entity = { entityType, entityId: request.entityId };+ await throwOnErr(() =>+ accessRequestsClient.resolve(+ entity,+ request.requestId,+ request.revision,+ approve ? request.level : null+ )+ );+ refreshSharedAccess(entity);+}diff --git a/apps/web/src/features/notifications-inbox/route-views.test.tsx b/apps/web/src/features/notifications-inbox/route-views.test.tsxnew file mode 100644index 0000000000..b56f75d239--- /dev/null+++ b/apps/web/src/features/notifications-inbox/route-views.test.tsx@@ -0,0 +1,114 @@+import { cleanup, render, screen } from '@solidjs/testing-library';+import { createSignal, Suspense } from 'solid-js';+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';+import { NotificationsRouteView } from './route-views';++const state = vi.hoisted(() => ({+ notifications: (): boolean => false,+ graphql: (): boolean => true,+ flagsLoaded: (): boolean => true,+ replace: vi.fn(),+ pageView: vi.fn(),+}));++vi.mock('@core/auth', () => ({ useIsAuthenticated: () => () => true }));+vi.mock('@core/component/LoadingBlock', () => ({ LoadingBlock: () => null }));+vi.mock('@core/constant/featureFlags', () => ({+ enableUnifiedNotifications: { key: 'enable-unified-notifications' },+ enableGraphqlSoup: { key: 'enable-graphql-soup' },+}));+vi.mock('@app/lib/analytics/posthog', () => ({+ usePosthog: () => ({ flagsLoaded: () => state.flagsLoaded() }),+ useFeatureFlag: (flag: { key: string }) => () => ({+ enabled:+ flag.key === 'enable-graphql-soup'+ ? state.graphql()+ : state.notifications(),+ loading: !state.flagsLoaded(),+ }),+}));+vi.mock('@app/lib/analytics/analytics-context', () => ({+ useAnalytics: () => ({ pageView: state.pageView, track: vi.fn() }),+}));+vi.mock('@app/lib/split-router', async (importOriginal) => ({+ ...(await importOriginal<typeof import('@app/lib/split-router')>()),+ useSplitRouter: () => ({ entry: () => undefined }),+}));+vi.mock('@components/app/split-layout/layoutUtils', () => ({+ useSplitPanelOrThrow: () => ({ handle: { replace: state.replace } }),+}));+vi.mock('./notifications-inbox', () => ({+ NotificationsInbox: () => <div>The inbox</div>,+}));++const home = {+ next: { type: 'component', id: 'home', entryMetadata: { search: {} } },+};++const renderRoute = () =>+ render(() => (+ <Suspense>+ <NotificationsRouteView />+ </Suspense>+ ));++beforeEach(() => {+ vi.clearAllMocks();+ state.notifications = () => false;+ state.graphql = () => true;+ state.flagsLoaded = () => true;+});++afterEach(cleanup);++describe('NotificationsRouteView', () => {+ it('sends the split to Home when the rollout is off', () => {+ renderRoute();++ expect(state.replace).toHaveBeenCalledExactlyOnceWith(home);+ expect(screen.queryByText('The inbox')).toBeNull();+ expect(state.pageView).not.toHaveBeenCalled();+ });++ it('needs the GraphQL transport as well as the rollout', () => {+ state.notifications = () => true;+ state.graphql = () => false;+ renderRoute();++ expect(state.replace).toHaveBeenCalledExactlyOnceWith(home);+ expect(screen.queryByText('The inbox')).toBeNull();+ });++ it('opens the inbox when the rollout is on', async () => {+ state.notifications = () => true;+ renderRoute();++ expect(await screen.findByText('The inbox')).toBeTruthy();+ expect(state.replace).not.toHaveBeenCalled();+ expect(state.pageView).toHaveBeenCalledExactlyOnceWith('notifications');+ });++ it.each([false, true])(+ 'does not leave before flags answer (rollout on: %s)',+ async (enabled) => {+ const [notifications, setNotifications] = createSignal(false);+ const [flagsLoaded, setFlagsLoaded] = createSignal(false);+ state.notifications = notifications;+ state.flagsLoaded = flagsLoaded;+ renderRoute();++ expect(state.replace).not.toHaveBeenCalled();+ expect(screen.queryByText('The inbox')).toBeNull();++ setNotifications(enabled);+ setFlagsLoaded(true);++ if (enabled) {+ expect(await screen.findByText('The inbox')).toBeTruthy();+ expect(state.replace).not.toHaveBeenCalled();+ } else {+ expect(state.replace).toHaveBeenCalledExactlyOnceWith(home);+ }+ }+ );+});diff --git a/apps/web/src/features/notifications-inbox/route-views.tsx b/apps/web/src/features/notifications-inbox/route-views.tsxnew file mode 100644index 0000000000..7c34d0111b--- /dev/null+++ b/apps/web/src/features/notifications-inbox/route-views.tsx@@ -0,0 +1,39 @@+import { usePosthog } from '@app/lib/analytics/posthog';+import {+ RedirectSplit,+ usePageViewTracking,+ withAuth,+} from '@components/app/split-layout/split-router/app-route-shell';+import { lazy, Show } from 'solid-js';+import { useUnifiedNotificationsFlag } from './use-unified-notifications-flag';++const NotificationsInbox = lazy(async () => ({+ default: (await import('./notifications-inbox')).NotificationsInbox,+}));++function TrackedNotificationsInbox() {+ usePageViewTracking('notifications');+ return <NotificationsInbox />;+}++/**+ * The unified Notifications view. With the rollout off, the route sends the+ * split to Home once flags have loaded; while they load it shows nothing+ * rather than taking the off path.+ */+export const NotificationsRouteView = withAuth(() => {+ const enabled = useUnifiedNotificationsFlag();+ const posthog = usePosthog();+ return (+ <Show+ when={enabled()}+ fallback={+ <Show when={posthog.flagsLoaded()}>+ <RedirectSplit to={{ type: 'component', id: 'home' }} />+ </Show>+ }+ >+ <TrackedNotificationsInbox />+ </Show>+ );+});diff --git a/apps/web/src/features/notifications-inbox/tests/wire.ts b/apps/web/src/features/notifications-inbox/tests/wire.tsnew file mode 100644index 0000000000..9f3be99707--- /dev/null+++ b/apps/web/src/features/notifications-inbox/tests/wire.ts@@ -0,0 +1,140 @@+import type {+ NotificationInboxEntryFieldsFragment,+ NotificationInboxPatchFieldsFragment,+ NotificationInboxRowType,+} from '@service-storage/graphql/generated/graphql';++type WireRow = NotificationInboxEntryFieldsFragment['rows'][number];++type RowFixture = {+ id: string;+ rowType?: NotificationInboxRowType;+ latestAt: string;+ revision?: string;+ unseen?: boolean;+ notificationIds?: string[];+ actor?: WireRow['actor'];+ actions?: WireRow['actions'];+};++/** A document comment notification as the GraphQL fragments select it. */+export function commentNotification(+ docId: string,+ id: string,+ createdAt: string+) {+ return {+ id,+ eventType: 'commented_on_document',+ entityType: 'DOCUMENT',+ targetEntityType: 'DOCUMENT',+ entityId: docId,+ sent: true,+ state: 'UNSEEN',+ createdAt,+ viewedAt: null,+ updatedAt: createdAt,+ senderId: 'macro|[email protected]',+ metadata: {+ __typename: 'GraphqlCommentedOnDocumentMetadata',+ commentedOnDocumentDocumentName: 'Plan',+ commentedOnDocumentOwner: 'macro|[email protected]',+ commentedOnDocumentFileType: 'md',+ commentedOnDocumentSubType: null,+ commentedOnDocumentCommentId: id,+ commentedOnDocumentThreadId: id,+ commentedOnDocumentText: 'looks good',+ commentedOnDocumentSenderProfilePictureUrl: null,+ },+ };+}++/** A document's inbox entry, with the given rows. */+export function inboxEntry(fixture: {+ docId: string;+ sortAt: string;+ rows: RowFixture[];+}): NotificationInboxEntryFieldsFragment {+ return {+ groupId: `document:${fixture.docId}`,+ sortAt: fixture.sortAt,+ entity: {+ __typename: 'GraphqlSoupDocument',+ id: fixture.docId,+ entityType: 'DOCUMENT',+ displayName: 'Plan',+ documentName: 'Plan',+ ownerId: 'macro|[email protected]',+ fileType: 'md',+ projectId: null,+ createdAt: '2026-01-01T00:00:00Z',+ updatedAt: '2026-01-01T00:00:00Z',+ viewedAt: null,+ deletedAt: null,+ subType: null,+ isFavorited: false,+ frecencyScore: null,+ cacheProjection: null,+ properties: [],+ },+ rows: fixture.rows.map((row) => ({+ id: row.id,+ threadId: null,+ rowType: row.rowType ?? 'DISCUSSION_MESSAGES',+ revision: row.revision ?? `rev-${row.id}`,+ latestAt: row.latestAt,+ actor:+ row.actor === undefined+ ? {+ kind: 'USER',+ principalId: 'macro|[email protected]',+ name: null,+ }+ : row.actor,+ actions: row.actions ?? [],+ unseen: row.unseen ?? true,+ count: (row.notificationIds ?? [`n-${row.id}`]).length,+ notifications: (row.notificationIds ?? [`n-${row.id}`]).map((id) =>+ commentNotification(fixture.docId, id, row.latestAt)+ ),+ })),+ } as unknown as NotificationInboxEntryFieldsFragment;+}++export function upsertedPatch(+ entry: NotificationInboxEntryFieldsFragment+): NotificationInboxPatchFieldsFragment {+ return { __typename: 'NotificationInboxEntryUpserted', entry };+}++export function removedPatch(+ groupId: string+): NotificationInboxPatchFieldsFragment {+ return { __typename: 'NotificationInboxEntryRemoved', groupId };+}++/** A page whose read stops at its last entry unless `nextPosition` says+ * otherwise; without a cursor the inbox is exhausted. */+export function inboxPage(+ entries: NotificationInboxEntryFieldsFragment[],+ nextCursor: string | null = null,+ nextPosition: { sortAt: string; entityId: string } | null = nextCursor+ ? lastPosition(entries)+ : null+) {+ return {+ user: {+ id: 'macro|[email protected]',+ notificationInbox: { entries, nextCursor, nextPosition },+ },+ };+}++function lastPosition(entries: NotificationInboxEntryFieldsFragment[]) {+ const last = entries.at(-1);+ if (!last) return null;+ return {+ sortAt: last.sortAt,+ entityId: last.groupId.slice(last.groupId.indexOf(':') + 1),+ };+}diff --git a/apps/web/src/features/notifications-inbox/use-unified-notifications-flag.ts b/apps/web/src/features/notifications-inbox/use-unified-notifications-flag.tsnew file mode 100644index 0000000000..b30c483ffd--- /dev/null+++ b/apps/web/src/features/notifications-inbox/use-unified-notifications-flag.ts@@ -0,0 +1,17 @@+import { useFeatureFlag } from '@app/lib/analytics/posthog';+import {+ enableGraphqlSoup,+ enableUnifiedNotifications,+} from '@core/constant/featureFlags';+import type { Accessor } from 'solid-js';++/**+ * Whether the unified Notifications view, its route, and its rail entry are+ * available. The view reads only the GraphQL work feed, so it also needs the+ * GraphQL Soup transport.+ */+export function useUnifiedNotificationsFlag(): Accessor<boolean> {+ const notifications = useFeatureFlag(enableUnifiedNotifications);+ const graphql = useFeatureFlag(enableGraphqlSoup);+ return () => notifications().enabled && graphql().enabled;+}diff --git a/apps/web/src/features/notifications-inbox/views/notifications-view.tsx b/apps/web/src/features/notifications-inbox/views/notifications-view.tsxnew file mode 100644index 0000000000..ac5da1c7d3--- /dev/null+++ b/apps/web/src/features/notifications-inbox/views/notifications-view.tsx@@ -0,0 +1,911 @@+import {+ createDisclosureState,+ createListController,+ useListInteractions,+} from '@app/components/list';+import {+ useViewControlHotkeys,+ useViewTabHotkeys,+ ViewBreadcrumbs,+ ViewShell,+ ViewSidebar,+} from '@app/components/view-shell';+import { ListSkeleton } from '@app/components/view-shell/ListSkeleton';+import { t } from '@app/lib/i18n';+import { createPreviewSelectionGuard } from '@components/app/createPreviewSelectionGuard';+import { useGlobalBlockOrchestrator } from '@components/app/GlobalAppState';+import { MobileTopEdgeFade } from '@components/app/mobile/MobileEdgeFade';+import { PullToRefresh } from '@components/app/mobile/PullToRefresh';+import {+ SwipableRow,+ SwipableRowProvider,+} from '@components/app/mobile/SwipableRow';+import { PreviewPanel } from '@components/app/PreviewPanel';+import {+ type PreviewPanelSelection,+ previewBlockTarget,+} from '@components/app/previewTarget';+import { useSplitPanelOrThrow } from '@components/app/split-layout/layoutUtils';+import { SplitPanel } from '@components/app/split-panel';+import { toast } from '@core/component/Toast/Toast';+import { registerHotkey } from '@core/hotkey/hotkeys';+import { TOKENS } from '@core/hotkey/tokens';+import { isTouchDevice } from '@core/mobile/isTouchDevice';+import { fireAndForget } from '@core/util/fireAndForget';+import EmptyStateInboxTrayGraphic from '@design/empty-state-inbox-tray.svg';+import type { EntityData } from '@entity';+import { formatTimestamp } from '@entity/utils/timestamp';+import ArrowCounterClockwise from '@icon/system/regular/arrow-counter-clockwise.svg';+import CheckIcon from '@icon/system/regular/check.svg';+import GearSixIcon from '@icon/system/regular/gear-six.svg';+import type { UnifiedNotification } from '@notifications/types';+import { useMutationUndoContext } from '@queries/undo';+import { createElementSize } from '@solid-primitives/resize-observer';+import { debounce } from '@solid-primitives/scheduled';+import { Button, EmptyStatePanel } from '@ui';+import {+ createComputed,+ createEffect,+ createMemo,+ createSignal,+ For,+ type JSX,+ Match,+ on,+ onCleanup,+ onMount,+ Show,+ Suspense,+ Switch,+} from 'solid-js';+import { match } from 'ts-pattern';+import { Virtualizer, type VirtualizerHandle } from 'virtua/solid';+import { InboxDateHeader } from '../components/inbox-date-header';+import { InboxFilterDrawer } from '../components/inbox-filter-drawer';+import { InboxFilterMenu } from '../components/inbox-filter-menu';+import { InboxSenderAvatar } from '../components/inbox-sender-avatar';+import {+ InboxStatusPills,+ InboxStatusTabs,+} from '../components/inbox-status-tabs';+import { NotificationRow } from '../components/notification-row';+import { NotificationStackItem } from '../components/notification-stack-item';+import { RowActionButtons } from '../components/row-action-buttons';+import {+ type NotificationInboxRow,+ useNotificationsInboxContext,+} from '../context/notifications-inbox-context';+import type { InboxStatus } from '../core/inbox-filters';+import type { InboxDecision } from '../core/inbox-row';+import {+ describeInboxCard,+ describeStackItem,+ inboxCardKind,+} from '../primitives/describe-row';+import {+ createInboxListItems,+ dateHeaderLabel,+ type InboxListItem,+ type InboxStackItemPlace,+ isInboxNotification,+ isInboxRow,+ isInboxStackItem,+} from '../primitives/inbox-date-headers';+import { createInboxFilters } from '../primitives/inbox-filters';+import { createInboxList } from '../primitives/inbox-list';+import { createInboxSelection } from '../primitives/inbox-selection';+import {+ agentTurnParams,+ crmCommentParams,+} from '../primitives/notification-location';+import { createRowActions, rowButtons } from '../primitives/row-actions';++type ActivationMetadata = { event?: MouseEvent; newSplit?: boolean };++export type NotificationsViewProps = {+ /** Open what a row is about, or one of its notifications; the host decides where. */+ onOpen: (+ row: NotificationInboxRow,+ options: { newSplit: boolean; notification?: UnifiedNotification }+ ) => void;+ /** Open the settings that decide which notifications are delivered. */+ onOpenSettings: () => void;+};++/** Distance from the end of the list, in pixels, that loads the next page. */+const LOAD_MORE_DISTANCE_PX = 300;+const INBOX_STATUSES: readonly InboxStatus[] = ['all', 'unread'];+/** Frames a visible row is held in place after a live change above it. */+const ANCHOR_HOLD_FRAMES = 12;++const decisionOutcome = (decision: InboxDecision) =>+ match(decision)+ .with('approve', () => t('notificationsInbox.accessGranted'))+ .with('deny', () => t('notificationsInbox.accessDenied'))+ .with('accept', () => t('notificationsInbox.joinAccepted'))+ .with('decline', () => t('notificationsInbox.joinDeclined'))+ .exhaustive();++const decisionFailure = (decision: InboxDecision) =>+ match(decision)+ .with('approve', 'deny', () => t('notificationsInbox.accessAnswerFailed'))+ .with('accept', 'decline', () => t('notificationsInbox.joinAnswerFailed'))+ .exhaustive();++/**+ * What the preview pane can show inline; calendar events and projects open+ * in their own views instead.+ */+const previewSelection = (+ entity: EntityData+): PreviewPanelSelection | undefined =>+ entity.type === 'calendar_event' || entity.type === 'initiative'+ ? undefined+ : entity;++/**+ * What the preview shows for a row or one of its notifications; undefined when+ * it has no inline preview. An agent's notification opens at its turn, and a+ * company or contact at its comment.+ */+const previewTargetFor = (+ row: NotificationInboxRow,+ notification?: UnifiedNotification+) => {+ const entity = previewSelection(+ notification ? row.content.entityAt(notification) : row.content.entity+ );+ if (!entity) return undefined;+ const target = previewBlockTarget(entity);+ const params =+ (notification && agentTurnParams(notification)) ??+ crmCommentParams(notification ?? row.content.notifications[0]);+ return params ? { ...target, params } : target;+};++function NotificationsBreadcrumb(props: { onReturn: () => void }) {+ return (+ <nav+ aria-label={t('notificationsInbox.location')}+ class="flex items-center gap-0.5"+ >+ <ViewBreadcrumbs.ReturnButton+ data-allow-focus-in-preview+ onClick={props.onReturn}+ >+ {t('nav.notifications')}+ </ViewBreadcrumbs.ReturnButton>+ <ViewBreadcrumbs.Separator />+ </nav>+ );+}++function ListHeader(props: { actions: JSX.Element }) {+ return (+ <header class="flex shrink-0 flex-col">+ <ViewSidebar.Header>+ <div class="flex min-w-0 flex-1 items-center gap-1">+ <ViewSidebar.CloseButton class="shrink-0" />+ <ViewSidebar.Title>{t('nav.notifications')}</ViewSidebar.Title>+ <div class="ml-auto flex shrink-0 items-center gap-1">+ {props.actions}+ </div>+ </div>+ </ViewSidebar.Header>+ </header>+ );+}++function ListStatus(props: { children: JSX.Element }) {+ return (+ <div class="flex min-h-0 flex-1 flex-col items-center justify-center gap-3 px-4 text-center text-sm text-ink-muted touch:pt-(--mobile-content-inset-top)">+ {props.children}+ </div>+ );+}++/**+ * The unified notifications list beside a preview of the chosen row: one card+ * per thing that needs the viewer, newest first under Home's date dividers.+ * Several notifications about one thing show as a stack; its button, or the+ * right arrow, unfolds them below the card, and each opens at its own location.+ * All and Unread switch the list, and the choice is kept between visits.+ * `j`/`k` move through rows and unfolded notifications (and follow in an open+ * preview), Enter previews, `e` marks the focused row done. Touch shows the list+ * alone: a tap opens the row or notification in place, a stack's button unfolds+ * it, a left swipe marks it done, and pulling down refreshes.+ */+export function NotificationsView(props: NotificationsViewProps) {+ const panel = useSplitPanelOrThrow();+ const context = useNotificationsInboxContext();+ const { pushUndo } = useMutationUndoContext();+ const filters = createInboxFilters(context.filterStorage);+ const feed = context.createFeed(() => ({ rowTypes: filters.rowTypes() }));+ const inbox = createInboxList(+ feed,+ {+ pushUndo: (entry) => pushUndo(entry),+ announceDone: (count, undo) => {+ const id = toast.success(+ t('notificationsInbox.markedDone', { count }),+ {+ actions: [+ {+ label: t('notificationsInbox.undo'),+ icon: ArrowCounterClockwise,+ onClick: () => fireAndForget(undo(), 'notifications-inbox'),+ },+ ],+ duration: 3_000,+ stack: true,+ hideOnMobile: true,+ }+ );+ return () => {+ if (id !== undefined) toast.dismiss(id);+ };+ },+ announceFailure: (message) => toast.failure(message),+ },+ filters.includesRow+ );++ onMount(() => panel.handle.setDisplayName(t('nav.notifications')));++ useViewTabHotkeys({+ scopeId: panel.splitHotkeyScope,+ enabled: panel.isPanelActive,+ ids: () => INBOX_STATUSES,+ activeId: () => filters.filters().status,+ setActiveId: filters.setStatus,+ });++ const [filterOpen, setFilterOpen] = createSignal(false);+ useViewControlHotkeys({+ scopeId: panel.splitHotkeyScope,+ enabled: panel.isPanelActive,+ filter: {+ description: t('notificationsInbox.filter'),+ run: () => {+ setFilterOpen(true);+ },+ },+ });++ const view = createMemo(inbox.view);+ const rows = (): readonly NotificationInboxRow[] => {+ const current = view();+ return current.t === 'ready' ? current.rows : [];+ };+ // Held by row id, not on the row: a live change replaces the row's object+ // and a stack stays open through it.+ const stacks = createDisclosureState();+ const listItems = createInboxListItems(rows, stacks.isExpanded);+ const anyStackOpen = createMemo(() =>+ rows().some((row) => row.count > 1 && stacks.isExpanded(row.id))+ );+ const rowsById = createMemo(+ () => new Map(rows().map((row) => [row.id, row] as const))+ );+ /** The row an item stands for, or the row an unfolded notification is on. */+ const rowOf = (item: InboxListItem | undefined) => {+ if (!item || !isInboxNotification(item)) return undefined;+ return rowsById().get(isInboxStackItem(item) ? item.rowId : item.id);+ };+ const notificationOf = (item: InboxListItem | undefined) =>+ item && isInboxStackItem(item)+ ? rowOf(item)?.content.notifications.find(+ (notification) => notification.id === item.notificationId+ )+ : undefined;++ const orchestrator = useGlobalBlockOrchestrator();+ const guard = createPreviewSelectionGuard();+ const selection = createInboxSelection(rows);+ const previewTarget = createMemo(() => {+ const row = selection.selected();+ if (!row) return undefined;+ return previewTargetFor(row, selection.selectedNotification());+ });++ const markSeen = (row: NotificationInboxRow) => {+ if (!row.unseen) return;+ filters.keepRead(row.id);+ fireAndForget(feed.markSeen([row]), 'notifications-inbox');+ };++ /**+ * Show a row in the preview, at one of its notifications when one is named,+ * or open it when it has no inline preview.+ */+ const preview = (+ row: NotificationInboxRow,+ notification?: UnifiedNotification+ ) => {+ const target = previewTargetFor(row, notification);+ if (!target) {+ props.onOpen(row, { newSplit: false, notification });+ return;+ }+ if (!guard.canSelect(target)) return;+ selection.select(row, notification?.id);+ guard(target);+ markSeen(row);+ };+ const previewAfterMove = debounce(preview, 150);+ onCleanup(() => previewAfterMove.clear());++ const list = createListController<InboxListItem, ActivationMetadata>({+ items: listItems,+ getKey: (item) => item.id,+ isNavigable: isInboxNotification,+ isSelectable: isInboxRow,+ onActivate: ({ item, metadata }) => {+ const row = rowOf(item);+ if (!row) return;+ const notification = notificationOf(item);+ previewAfterMove.clear();+ // Phones show one pane: open in place.+ if (isTouchDevice()) {+ markSeen(row);+ props.onOpen(row, { newSplit: false, notification });+ return;+ }+ if (metadata?.newSplit === true || metadata?.event?.shiftKey === true) {+ markSeen(row);+ props.onOpen(row, { newSplit: true, notification });+ return;+ }+ preview(row, notification);+ },+ });++ const rowActions = createRowActions({+ requests: context.requests,+ open: (row) => list.activate.key(row.id, { reason: 'pointer' }),+ review: (row, url) => {+ context.openUrl(url);+ markSeen(row);+ },+ complete: (row) => {+ stacks.collapse(row.id);+ const next = selection.afterLeaving([row.id]);+ if (next === 'none') selection.clear();+ else if (next !== 'stay') preview(next);+ return feed.markDone([row]);+ },+ notices: {+ succeeded: (decision) => toast.success(decisionOutcome(decision)),+ failed: (decision) => toast.failure(decisionFailure(decision)),+ },+ });++ const markDone = (done: readonly NotificationInboxRow[]) => {+ for (const row of done) stacks.collapse(row.id);+ const next = selection.afterLeaving(done.map((row) => row.id));+ if (next === 'none') selection.clear();+ else if (next !== 'stay') preview(next);+ fireAndForget(inbox.markDone(done), 'notifications-inbox');+ };++ const [viewport, setViewport] = createSignal<HTMLDivElement>();+ const [virtualizer, setVirtualizer] = createSignal<VirtualizerHandle>();+ const viewportSize = createElementSize(viewport);+ const [topSpacer, setTopSpacer] = createSignal<HTMLDivElement>();+ const topSpacerSize = createElementSize(topSpacer);+ const [listFrame, setListFrame] = createSignal<HTMLDivElement>();++ const loadMore = () => fireAndForget(inbox.loadMore(), 'notifications-inbox');++ // A live change above what's being read shouldn't move it: note where the+ // first visible row is before the list changes, and put it back after. At the+ // top of the list new cards simply appear.+ let anchor: { id: string; top: number } | undefined;+ createComputed(+ on(+ listItems,+ () => {+ anchor = undefined;+ const container = viewport();+ if (!container || container.scrollTop <= 0) return;+ const edge = container.getBoundingClientRect().top;+ for (const row of container.querySelectorAll(+ '[data-notification-row],[data-stack-item]'+ )) {+ const { top, bottom } = row.getBoundingClientRect();+ if (bottom > edge) {+ anchor = { id: row.id, top };+ return;+ }+ }+ },+ { defer: true }+ )+ );+ createEffect(+ on(+ listItems,+ () => {+ const noted = anchor;+ const container = viewport();+ if (!noted || !container) return;+ // A new card is measured a moment after it mounts, so hold the row+ // in place for a few frames rather than correcting once.+ let frames = ANCHOR_HOLD_FRAMES;+ let frame = requestAnimationFrame(function hold() {+ const row = document.getElementById(noted.id);+ if (!row) return;+ container.scrollTop += row.getBoundingClientRect().top - noted.top;+ frames -= 1;+ if (frames > 0) frame = requestAnimationFrame(hold);+ });+ onCleanup(() => cancelAnimationFrame(frame));+ },+ { defer: true }+ )+ );++ useListInteractions({+ controller: list,+ scopeId: panel.splitHotkeyScope,+ enabled: panel.isPanelActive,+ scrollHandle: virtualizer,+ navigation: {+ onNavigate: (event) => {+ // An open preview follows the keyboard.+ const moved = rowOf(event.result?.item);+ if (moved && selection.selected()) {+ previewAfterMove(moved, notificationOf(event.result?.item));+ }+ if (event.kind !== 'move' || event.direction !== 1) return;+ if (!event.result || list.items.count() - event.result.index <= 4) {+ loadMore();+ }+ },+ },+ activation: {+ // A focused button, such as a stack's caret, answers Enter itself.+ shouldHandleKeyEvent: (event) =>+ !(event?.target instanceof Element && event.target.closest('button')),+ createMetadata: (intent) => ({ newSplit: intent === 'alternate' }),+ alternateDescription: t('nav.openInNewSplit'),+ },+ disclosure: {+ isHeader: () => false,+ // A stack answers for itself and for each notification unfolded from it.+ getKey: (item) => {+ const row = rowOf(item);+ return row && row.count > 1 ? row.id : undefined;+ },+ isExpanded: stacks.isExpanded,+ setExpanded: stacks.setExpanded,+ getFocusKey: (key) => key,+ },+ });++ registerHotkey({+ hotkey: ['e'],+ hotkeyToken: TOKENS.entity.action.markDone,+ scopeId: panel.splitHotkeyScope,+ description: () => t('notificationsInbox.markDone'),+ condition: () => panel.isPanelActive() && list.focus.item() !== undefined,+ keyDownHandler: (event) => {+ if (event?.repeat) return true;+ const row = rowOf(list.focus.item());+ if (!row) return false;+ markDone([row]);+ return true;+ },+ });++ // Keep paging while the loaded rows don't fill the viewport, including a+ // page whose rows all wait for the next one.+ const checkNearEnd = () => {+ const current = view();+ if (current.t !== 'ready' || !current.hasMore || current.loadingMore) {+ return;+ }+ const container = viewport();+ if (!container || container.clientHeight === 0) {+ if (current.rows.length === 0) loadMore();+ return;+ }+ const distance =+ container.scrollHeight - container.scrollTop - container.clientHeight;+ if (distance < LOAD_MORE_DISTANCE_PX) loadMore();+ };+ createEffect(() => {+ view();+ viewportSize.height;+ const frame = requestAnimationFrame(checkNearEnd);+ onCleanup(() => cancelAnimationFrame(frame));+ });++ /** On touch, a left swipe marks the row done. */+ const SwipeToDone = (swipe: {+ row: NotificationInboxRow;+ children: JSX.Element;+ }) => (+ <Show when={isTouchDevice()} fallback={swipe.children}>+ <SwipableRow+ id={swipe.row.id}+ swipeLeftColor="bg-success"+ swipeLeftRevealedComponent={<CheckIcon class="size-8 text-surface" />}+ >+ {swipe.children}+ </SwipableRow>+ </Show>+ );++ const RowCard = (card: { row: () => NotificationInboxRow }) => {+ const display = createMemo(() => describeInboxCard(card.row(), context));+ const highlighted = () =>+ list.focus.key() === card.row().id ||+ (selection.selected()?.id === card.row().id &&+ // A chosen notification shows on its own line while it's visible.+ !(+ selection.selectedNotification() && stacks.isExpanded(card.row().id)+ ));+ return (+ <SwipeToDone row={card.row()}>+ <NotificationRow+ id={card.row().id}+ icon={+ <InboxSenderAvatar+ notification={card.row().content.notifications[0]}+ kind={inboxCardKind(card.row())}+ entity={card.row().content.entity}+ badged+ />+ }+ who={display().who}+ what={display().what}+ body={display().body}+ time={formatTimestamp(new Date(card.row().latestAt))}+ count={card.row().count}+ unfolded={stacks.isExpanded(card.row().id)}+ unseen={card.row().unseen}+ highlighted={highlighted()}+ receded={+ anyStackOpen() &&+ !stacks.isExpanded(card.row().id) &&+ !highlighted()+ }+ onHover={() => list.focus.set(card.row().id, { reason: 'hover' })}+ onClick={(event) =>+ list.activate.key(card.row().id, {+ reason: 'pointer',+ metadata: { event },+ })+ }+ onDone={() => markDone([card.row()])}+ onToggleStack={() => stacks.toggle(card.row().id)}+ actions={+ rowButtons(card.row()).length > 0 ? (+ <RowActionButtons+ actions={rowButtons(card.row())}+ pending={rowActions.pending(card.row().id)}+ onChoose={(action) =>+ fireAndForget(+ rowActions.run(card.row(), action),+ 'notifications-inbox'+ )+ }+ />+ ) : undefined+ }+ />+ </SwipeToDone>+ );+ };++ const StackItemCard = (entry: {+ place: InboxStackItemPlace;+ row: () => NotificationInboxRow;+ notification: () => UnifiedNotification;+ }) => {+ const item = createMemo(() =>+ describeStackItem(entry.row(), entry.notification(), context)+ );+ const isLast = () =>+ entry.row().content.notifications.at(-1)?.id ===+ entry.place.notificationId;+ return (+ <NotificationStackItem+ id={entry.place.id}+ icon={+ <InboxSenderAvatar+ notification={entry.notification()}+ kind={inboxCardKind(entry.row())}+ entity={entry.row().content.entity}+ compact+ />+ }+ by={item().by}+ text={item().text}+ time={formatTimestamp(item().at)}+ last={isLast()}+ more={+ isLast()+ ? entry.row().count - entry.row().content.notifications.length+ : 0+ }+ unseen={entry.row().unseen}+ highlighted={+ list.focus.key() === entry.place.id ||+ selection.selectedNotification()?.id === entry.place.notificationId+ }+ onHover={() => list.focus.set(entry.place.id, { reason: 'hover' })}+ onClick={(event) =>+ list.activate.key(entry.place.id, {+ reason: 'pointer',+ metadata: { event },+ })+ }+ />+ );+ };++ const listBody = () => (+ <Switch>+ <Match when={!filters.showsNothing() && view().t === 'loading'}>+ <ListSkeleton.Root+ label={t('notificationsInbox.loading')}+ class="px-3 touch:pt-(--mobile-content-inset-top)"+ >+ <div class="flex h-7 items-center px-[13px]">+ <ListSkeleton.Bar class="h-2 w-16" />+ </div>+ <For each={[0, 1, 2, 3, 4]}>+ {() => (+ <ListSkeleton.Row class="mb-2.5 h-[83px] gap-3 rounded-xl px-[13px] mobile:mb-3 mobile:h-[89px]">+ <ListSkeleton.Bar class="size-6 shrink-0 rounded-full mobile:size-10" />+ <div class="flex min-w-0 flex-1 flex-col gap-2">+ <ListSkeleton.Bar class="w-1/3" />+ <ListSkeleton.Bar class="w-1/2" />+ <ListSkeleton.Bar class="w-4/5" />+ </div>+ </ListSkeleton.Row>+ )}+ </For>+ </ListSkeleton.Root>+ </Match>+ <Match when={view().t === 'error'}>+ <ListStatus>+ <span>{t('notificationsInbox.loadFailed')}</span>+ <Button+ variant="secondary"+ size="sm"+ onClick={() =>+ fireAndForget(inbox.refresh(), 'notifications-inbox')+ }+ >+ {t('notificationsInbox.tryAgain')}+ </Button>+ </ListStatus>+ </Match>+ <Match when={filters.showsNothing()}>+ <ListStatus>+ <span>{t('notificationsInbox.allHidden')}</span>+ <Button variant="secondary" size="sm" onClick={filters.reset}>+ {t('notificationsInbox.resetFilters')}+ </Button>+ </ListStatus>+ </Match>+ <Match when={view().t === 'empty' && filters.activeCount() > 0}>+ <ListStatus>+ <span>{t('notificationsInbox.noMatches')}</span>+ <Button variant="secondary" size="sm" onClick={filters.reset}>+ {t('notificationsInbox.resetFilters')}+ </Button>+ </ListStatus>+ </Match>+ <Match when={view().t === 'empty'}>+ <div class="min-h-0 flex-1 overflow-y-auto touch:pt-(--mobile-content-inset-top)">+ <EmptyStatePanel+ centered+ graphic={EmptyStateInboxTrayGraphic}+ title={t('notificationsInbox.caughtUpTitle')}+ description={t('notificationsInbox.caughtUpDescription')}+ />+ </div>+ </Match>+ <Match when={view().t === 'ready'}>+ <div+ ref={setViewport}+ class="scrollbar-hidden min-h-0 flex-1 overflow-y-auto overscroll-none pb-[max(0.5rem,var(--mobile-content-inset-bottom,0px))]"+ onScroll={checkNearEnd}+ >+ {/* The spacer scrolls away; the viewport stays behind the header. */}+ <div+ ref={setTopSpacer}+ aria-hidden="true"+ class="h-0 touch:h-(--mobile-content-inset-top)"+ />+ <Suspense>+ <Virtualizer+ ref={setVirtualizer}+ data={listItems()}+ scrollRef={viewport()}+ startMargin={isTouchDevice() ? (topSpacerSize.height ?? 0) : 0}+ bufferSize={500}+ itemSize={95}+ keepMounted={+ list.focus.index() >= 0 ? [list.focus.index()] : undefined+ }+ onScroll={checkNearEnd}+ >+ {(item) =>+ match(item)+ .with({ type: 'row' }, (place) => (+ <Show when={rowsById().get(place.id)}>+ {(row) => <RowCard row={row} />}+ </Show>+ ))+ .with({ type: 'stack_item' }, (place) => (+ <Show when={rowOf(place)}>+ {(row) => (+ <Show when={notificationOf(place)}>+ {(notification) => (+ <StackItemCard+ place={place}+ row={row}+ notification={notification}+ />+ )}+ </Show>+ )}+ </Show>+ ))+ .with({ type: 'date_header' }, (header) => (+ <InboxDateHeader+ id={header.id}+ label={dateHeaderLabel(header)}+ isFirst={listItems()[0]?.id === header.id}+ />+ ))+ .exhaustive()+ }+ </Virtualizer>+ </Suspense>+ </div>+ </Match>+ </Switch>+ );++ const filterControls = {+ isShown: filters.isShown,+ get activeCount() {+ return filters.activeCount();+ },+ onShownChange: filters.setShown,+ onReset: filters.reset,+ };++ const touchLayout = () => (+ <ViewShell.Root aside={false} main={{ min: 224 }}>+ <ViewShell.Main>+ <div+ ref={setListFrame}+ class="relative flex size-full min-h-0 min-w-0 flex-col"+ style={{+ '--mobile-content-inset-top':+ 'calc(var(--safe-top, 0px) + 3.75rem)',+ }}+ >+ <header class="pointer-events-none absolute inset-x-0 top-0 z-split-panel-chrome flex shrink-0 flex-col px-(--mobile-chrome-gutter) pt-[calc(var(--safe-top,0px)+0.5rem)]">+ <InboxStatusPills+ status={filters.filters().status}+ onChange={filters.setStatus}+ leading={<InboxFilterDrawer {...filterControls} />}+ />+ </header>+ <PullToRefresh+ scrollContainer={() => viewport() ?? listFrame()}+ onRefresh={inbox.refresh}+ />+ <SwipableRowProvider+ container={viewport}+ canSwipeLeft={(rowId) => rows().some((row) => row.id === rowId)}+ onSwipeLeft={(rowId) => {+ const row = rows().find((candidate) => candidate.id === rowId);+ if (row) markDone([row]);+ }}+ >+ <div+ role="grid"+ aria-label={t('nav.notifications')}+ class="relative flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden"+ >+ {listBody()}+ </div>+ </SwipableRowProvider>+ <MobileTopEdgeFade />+ </div>+ </ViewShell.Main>+ </ViewShell.Root>+ );++ return (+ <SplitPanel.Root>+ <SplitPanel.Body>+ <Show when={!isTouchDevice()} fallback={touchLayout()}>+ <div class="size-full min-h-0 bg-panel">+ <ViewShell.Root+ asidePreferenceKey="notifications"+ // Rows read as sentences, so the list starts wider than a nav rail.+ aside={{ width: 360, max: 480, preserveDuringResize: false }}+ main={{ preferredWidth: 640 }}+ resizable+ >+ <ViewShell.Aside class="flex flex-col bg-panel">+ <ListHeader+ actions={+ <>+ <div class="relative">+ <InboxFilterMenu+ open={filterOpen()}+ onOpenChange={setFilterOpen}+ {...filterControls}+ />+ </div>+ <Button+ size="icon-md"+ variant="ghost"+ aria-label={t('notificationsInbox.settings')}+ tooltip={t('notificationsInbox.settings')}+ onClick={() => props.onOpenSettings()}+ >+ <GearSixIcon class="size-4" />+ </Button>+ </>+ }+ />+ <div class="shrink-0 px-3 pb-1">+ <InboxStatusTabs+ status={filters.filters().status}+ onChange={filters.setStatus}+ />+ </div>+ <div+ role="grid"+ aria-label={t('nav.notifications')}+ aria-activedescendant={list.focus.key()}+ tabIndex={0}+ class="relative flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden outline-none"+ >+ {listBody()}+ </div>+ </ViewShell.Aside>+ <ViewShell.Main class="overflow-hidden">+ <Show+ when={previewTarget()}+ fallback={+ <EmptyStatePanel+ centered+ graphic={EmptyStateInboxTrayGraphic}+ title={t('notificationsInbox.noneSelectedTitle')}+ description={t(+ 'notificationsInbox.noneSelectedDescription'+ )}+ />+ }+ >+ <PreviewPanel+ target={previewTarget()}+ navigationRequest={selection.navigationRequest()}+ orchestrator={orchestrator}+ splitPanelContext={panel}+ headerLeading={+ <NotificationsBreadcrumb onReturn={selection.clear} />+ }+ />+ </Show>+ </ViewShell.Main>+ </ViewShell.Root>+ </div>+ </Show>+ </SplitPanel.Body>+ </SplitPanel.Root>+ );+}diff --git a/apps/web/src/lib/core/constant/featureFlags.ts b/apps/web/src/lib/core/constant/featureFlags.tsindex c872c4a160..2b74c761c1 100644--- a/apps/web/src/lib/core/constant/featureFlags.ts+++ b/apps/web/src/lib/core/constant/featureFlags.ts@@ -844,6 +844,16 @@ export const enableActivityFeed = defineFlag({default: onInDev,});+// The unified notifications view: the /notifications route (redirects to Home+// when off), the rail bell, its go-to hotkey, and the mobile dock bell's+// target. PostHog-gated with a dev-mode default; override with+// VITE_ENABLE_UNIFIED_NOTIFICATIONS.+export const enableUnifiedNotifications = defineFlag({+ key: 'enable-unified-notifications',+ env: 'ENABLE_UNIFIED_NOTIFICATIONS',+ default: onInDev,+});+// Agents home: pending updates from coding agents shown as a stack under the// new-chat composer, and the Open PRs section in the Agents sidebar.// Override with VITE_ENABLE_AGENT_UPDATES.diff --git a/apps/web/src/lib/core/hotkey/tokens.ts b/apps/web/src/lib/core/hotkey/tokens.tsindex 5ee41cca6e..7318febe1f 100644--- a/apps/web/src/lib/core/hotkey/tokens.ts+++ b/apps/web/src/lib/core/hotkey/tokens.ts@@ -130,6 +130,7 @@ export const TOKENS = {goToLeader: 'sidebar.goToLeader',goTo: {home: 'sidebar.goTo.home',+ notifications: 'sidebar.goTo.notifications',recent: 'sidebar.goTo.recent',activity: 'sidebar.goTo.activity',calendar: 'sidebar.goTo.calendar',diff --git a/apps/web/src/lib/i18n/locales/en.ts b/apps/web/src/lib/i18n/locales/en.tsindex eb4485215e..019c4f5848 100644--- a/apps/web/src/lib/i18n/locales/en.ts+++ b/apps/web/src/lib/i18n/locales/en.ts@@ -13,6 +13,7 @@ import entityActions from './en/entity-actions';import localRuntime from './en/local-runtime';import mobile from './en/mobile';import nav from './en/nav';+import notificationsInbox from './en/notifications-inbox';import settingsLanguage from './en/settings-language';import settingsMobileApp from './en/settings-mobile-app';import settingsNav from './en/settings-nav';@@ -40,6 +41,7 @@ export default {localRuntime,mobile,nav,+ notificationsInbox,settingsLanguage,settingsMobileApp,settingsNav,diff --git a/apps/web/src/lib/i18n/locales/en/notifications-inbox.ts b/apps/web/src/lib/i18n/locales/en/notifications-inbox.tsnew file mode 100644index 0000000000..649d86622f--- /dev/null+++ b/apps/web/src/lib/i18n/locales/en/notifications-inbox.ts@@ -0,0 +1,102 @@+export default {+ // Answering a request from a row+ accessGranted: 'Access granted',+ accessDenied: 'Access request denied',+ accessAnswerFailed: 'Couldn’t answer the access request',+ joinAccepted: 'Added to the event',+ joinDeclined: 'Join request declined',+ joinAnswerFailed: 'Couldn’t answer the join request',++ // Row actions+ actionOpen: 'Open',+ actionAnswer: 'Answer',+ actionReview: 'Review',+ actionApprove: 'Approve',+ actionDeny: 'Deny',+ actionAccept: 'Accept',+ actionDecline: 'Decline',+ unread: 'Unread',++ // Done and undo+ markDone: 'Mark done',+ stackToggle: {+ other: '{{count}} notifications, show or hide them',+ },+ kindChannel: 'Channel',+ kindMessage: 'Message',+ kindMention: 'Mention',+ kindReply: 'Reply',+ kindReaction: 'Reaction',+ kindEmail: 'Email',+ kindComment: 'Comment',+ kindInvite: 'Invite',+ kindAccess: 'Access',+ kindAgent: 'Agent',+ kindTask: 'Task',+ kindPullRequest: 'Pull request',+ kindEvent: 'Event',+ kindReminder: 'Reminder',+ kindOther: 'Notification',+ stackShow: 'Show notifications',+ stackHide: 'Hide notifications',+ stackMore: {+ one: 'and {{count}} more',+ other: 'and {{count}} more',+ },+ markedDone: {+ one: 'Marked as done',+ other: 'Marked {{count}} notifications as done',+ },+ markDoneFailed: {+ one: 'Couldn’t mark this notification as done',+ other: 'Couldn’t mark these notifications as done',+ },+ undo: 'Undo',+ undoFailed: 'Failed to undo',++ // List states+ location: 'Notifications location',+ loading: 'Loading notifications',+ loadFailed: 'Notifications couldn’t be loaded.',+ tryAgain: 'Try again',+ allHidden: 'Every kind of notification is hidden.',+ noMatches: 'No notifications match these filters.',+ caughtUpTitle: 'You’re all caught up',+ caughtUpDescription:+ 'Mentions, replies, requests, and anything else that needs you will show up here.',+ noneSelectedTitle: 'No notification selected',+ noneSelectedDescription: 'Pick a notification to see it here.',+ settings: 'Notification settings',++ // Date dividers, in Home's sections+ dateLastFewMinutes: 'Last few minutes',+ dateLastHour: 'Last hour',+ dateThisEvening: 'This evening',+ dateThisAfternoon: 'This afternoon',+ dateThisMorning: 'This morning',+ dateEarlierToday: 'Earlier today',+ dateYesterday: 'Yesterday',+ dateLast7Days: 'Last 7 days',+ dateEarlierThisMonth: 'Earlier this month',+ dateLastMonth: 'Last month',+ dateOlder: 'Older',++ // Filters+ filter: 'Filter notifications',+ filters: 'Notification filters',+ resetFilters: 'Reset filters',+ status: 'Status',+ statusUnread: 'Unread',+ statusAll: 'All',+ type: 'Type',+ categoryMentions: 'Mentions',+ categoryReplies: 'Replies',+ categoryMessages: 'Messages',+ categoryComments: 'Comments',+ categoryEmail: 'Email',+ categoryTasks: 'Tasks',+ categoryPullRequests: 'Pull requests',+ categoryCalendar: 'Calendar',+ categoryAccess: 'Access requests',+ categoryAgents: 'Agents',+};diff --git a/apps/web/src/lib/queries/attention-feed/attention-feed-cache.test.ts b/apps/web/src/lib/queries/attention-feed/attention-feed-cache.test.tsnew file mode 100644index 0000000000..1d2dee325d--- /dev/null+++ b/apps/web/src/lib/queries/attention-feed/attention-feed-cache.test.ts@@ -0,0 +1,249 @@+import { describe, expect, it } from 'vitest';+import {+ compareAttentionFeedEntries,+ placeAttentionFeedPatches,+ writeAttentionFeedPatches,+} from './attention-feed-cache';+import type {+ AttentionFeedPosition,+ AttentionFeedShape,+} from './attention-feed-types';+import { createFakeAttentionFeedClient } from './tests/fake-client';++type Entry = { key: string; sortAt: string };+type Patch =+ | { t: 'upserted'; entry: Entry }+ | { t: 'removed'; key: string }+ | { t: 'invalidated' };+type Page = {+ feed: {+ entries: Entry[];+ nextCursor: string | null;+ nextPosition: AttentionFeedPosition | null;+ };+};++const shape: AttentionFeedShape<Page, Entry, Patch> = {+ key: (entry) => entry.key,+ sortAt: (entry) => entry.sortAt,+ change: (patch) =>+ patch.t === 'upserted'+ ? { kind: 'upserted', entry: patch.entry }+ : patch.t === 'removed'+ ? { kind: 'removed', key: patch.key }+ : { kind: 'invalidated' },+ entries: (page) => page.feed.entries,+ nextPosition: (page) => page.feed.nextPosition,+ withEntries: (page, entries) => ({ feed: { ...page.feed, entries } }),+};++const documentEntry = (docId: string, sortAt: string): Entry => ({+ key: `document:${docId}`,+ sortAt,+});++const at = (docId: string, minute: number) =>+ documentEntry(docId, `2026-02-01T10:${String(minute).padStart(2, '0')}:00Z`);++const upserted = (entry: Entry): Patch => ({ t: 'upserted', entry });+const removed = (key: string): Patch => ({ t: 'removed', key });+const page = (+ entries: Entry[],+ nextCursor: string | null = null,+ nextPosition: AttentionFeedPosition | null = null+): Page => ({+ feed: { entries, nextCursor, nextPosition },+});++const cachedQuery = {+ query: 'query Feed { user { id } }',+ operationName: 'Feed',+};++const ids = (pages: Entry[][] | undefined) =>+ pages?.map((rows) => rows.map((entry) => entry.key.split(':')[1]));++describe('compareAttentionFeedEntries', () => {+ it('orders newest first, then by entity id descending', () => {+ const sorted = [+ documentEntry('a', '2026-02-01T10:00:00.000001Z'),+ documentEntry('b', '2026-02-01T10:00:00Z'),+ documentEntry('c', '2026-02-01T10:00:00Z'),+ documentEntry('d', '2026-02-01T10:00:00.000002Z'),+ ].sort(compareAttentionFeedEntries(shape));+ expect(sorted.map((entry) => entry.key)).toEqual([+ 'document:d',+ 'document:a',+ 'document:c',+ 'document:b',+ ]);+ });+});++describe('placeAttentionFeedPatches', () => {+ const pages = [+ [at('p1-a', 50), at('p1-b', 40)],+ [at('p2-a', 30), at('p2-b', 20)],+ ];+ // The last page's read stopped at its last row.+ const more = { sortAt: '2026-02-01T10:20:00Z', entityId: 'p2-b' };++ it('removes an entry from whichever page holds it', () => {+ expect(+ ids(+ placeAttentionFeedPatches(+ shape,+ pages,+ [removed('document:p2-a')],+ more+ )+ )+ ).toEqual([['p1-a', 'p1-b'], ['p2-b']]);+ });++ it('places a new entry at its time and moves an existing one', () => {+ const placed = placeAttentionFeedPatches(+ shape,+ pages,+ [upserted(at('new', 45)), upserted(at('p2-b', 55))],+ more+ );+ expect(ids(placed)).toEqual([['p2-b', 'p1-a', 'new', 'p1-b'], ['p2-a']]);+ });++ it('leaves an entry older than every loaded row to its page', () => {+ expect(+ ids(+ placeAttentionFeedPatches(shape, pages, [upserted(at('old', 10))], more)+ )+ ).toEqual([+ ['p1-a', 'p1-b'],+ ['p2-a', 'p2-b'],+ ]);+ expect(+ ids(+ placeAttentionFeedPatches(shape, pages, [upserted(at('old', 10))], null)+ )+ ).toEqual([+ ['p1-a', 'p1-b'],+ ['p2-a', 'p2-b', 'old'],+ ]);+ });++ it('keeps an entry the last page read past its rows', () => {+ // A filtered page read on to minute 5 after its last row at minute 20.+ const readPast = { sortAt: '2026-02-01T10:05:00Z', entityId: 'skipped' };+ expect(+ ids(+ placeAttentionFeedPatches(+ shape,+ pages,+ [upserted(at('gap', 10))],+ readPast+ )+ )+ ).toEqual([+ ['p1-a', 'p1-b'],+ ['p2-a', 'p2-b', 'gap'],+ ]);+ expect(+ ids(+ placeAttentionFeedPatches(+ shape,+ pages,+ [upserted(at('later', 1))],+ readPast+ )+ )+ ).toEqual([+ ['p1-a', 'p1-b'],+ ['p2-a', 'p2-b'],+ ]);+ });++ it('drops an entry that moved below the loaded rows', () => {+ expect(+ ids(+ placeAttentionFeedPatches(+ shape,+ pages,+ [upserted(at('p1-a', 10))],+ more+ )+ )+ ).toEqual([['p1-b'], ['p2-a', 'p2-b']]);+ });++ it('gives up on an invalidated batch', () => {+ expect(+ placeAttentionFeedPatches(+ shape,+ pages,+ [upserted(at('new', 45)), { t: 'invalidated' }],+ more+ )+ ).toBeUndefined();+ });+});++describe('writeAttentionFeedPatches', () => {+ const firstPage = { input: { cursor: null } };+ const secondPage = { input: { cursor: 'cursor-2' } };++ it('writes only the cached pages the batch changed', async () => {+ const fake = createFakeAttentionFeedClient();+ for (const variables of [firstPage, secondPage]) {+ fake.client.executeQuery({ variables } as never);+ }+ fake.queries[0].resolve(page([at('a', 50)], 'cursor-2'));+ fake.queries[1].resolve(page([at('b', 30)]));++ const placed = await writeAttentionFeedPatches(+ shape,+ fake.host,+ cachedQuery,+ [firstPage, secondPage],+ [upserted(at('new', 40))]+ );++ expect(placed).toBe(true);+ // Older than the first page's last row, it belongs to the second page.+ expect(fake.writes).toHaveLength(1);+ expect(fake.writes[0].variables).toEqual(secondPage);+ expect(fake.writes[0].data).toEqual(page([at('new', 40), at('b', 30)]));+ });++ it('writes an entry the last cached page read past into it', async () => {+ const fake = createFakeAttentionFeedClient();+ const readPast = { sortAt: '2026-02-01T10:05:00Z', entityId: 'skipped' };+ fake.client.executeQuery({ variables: firstPage } as never);+ fake.queries[0].resolve(page([at('a', 50)], 'cursor-2', readPast));++ expect(+ await writeAttentionFeedPatches(+ shape,+ fake.host,+ cachedQuery,+ [firstPage],+ [upserted(at('gap', 20))]+ )+ ).toBe(true);+ expect(fake.writes[0].data).toEqual(+ page([at('a', 50), at('gap', 20)], 'cursor-2', readPast)+ );+ });++ it('asks for a read when a page is not cached', async () => {+ const fake = createFakeAttentionFeedClient();+ expect(+ await writeAttentionFeedPatches(+ shape,+ fake.host,+ cachedQuery,+ [firstPage],+ [upserted(at('new', 40))]+ )+ ).toBe(false);+ expect(fake.writes).toHaveLength(0);+ });+});diff --git a/apps/web/src/lib/queries/attention-feed/attention-feed-cache.ts b/apps/web/src/lib/queries/attention-feed/attention-feed-cache.tsnew file mode 100644index 0000000000..4f7622ab58--- /dev/null+++ b/apps/web/src/lib/queries/attention-feed/attention-feed-cache.ts@@ -0,0 +1,151 @@+import type { CacheHost } from '@graphql-cache/host/types';+import type {+ AttentionFeedOrder,+ AttentionFeedPosition,+ AttentionFeedShape,+} from './attention-feed-types';++/** Sub-millisecond digits of an RFC 3339 time, which `Date.parse` drops. */+function subMillis(time: string): number {+ const fraction = /\.(\d+)/.exec(time)?.[1] ?? '';+ return Number(fraction.padEnd(9, '0').slice(3, 9));+}++/** `<entity type>:<entity id>` keys end in the server's tiebreaker. */+const entityIdOf = (key: string) => key.slice(key.indexOf(':') + 1);++/** The server's feed order: newest `sortAt` first, then entity id descending. */+function comparePositions(+ a: AttentionFeedPosition,+ b: AttentionFeedPosition+): number {+ const millis = Date.parse(b.sortAt) - Date.parse(a.sortAt);+ if (millis !== 0) return millis;+ const sub = subMillis(b.sortAt) - subMillis(a.sortAt);+ if (sub !== 0) return sub;+ return a.entityId < b.entityId ? 1 : a.entityId > b.entityId ? -1 : 0;+}++const positionOf = <Entry>(+ order: AttentionFeedOrder<Entry>,+ entry: Entry+): AttentionFeedPosition => ({+ sortAt: order.sortAt(entry),+ entityId: entityIdOf(order.key(entry)),+});++/** Entries in the server's feed order. */+export function compareAttentionFeedEntries<Entry>(+ order: AttentionFeedOrder<Entry>+): (a: Entry, b: Entry) => number {+ return (a, b) => comparePositions(positionOf(order, a), positionOf(order, b));+}++/**+ * Apply one server batch to a feed's loaded pages, in order. A removed entry+ * leaves whichever page holds it; an upserted entry moves to its place in+ * the server's order. Keyset cursors are positions in that order, so a row+ * inserted into one page leaves no gap before the next. `next` is where the+ * last loaded page's read stopped, null once the feed is exhausted. Returns+ * undefined when the batch invalidates the feed.+ */+export function placeAttentionFeedPatches<Entry, Patch>(+ shape: Pick<+ AttentionFeedShape<unknown, Entry, Patch>,+ 'key' | 'sortAt' | 'change'+ >,+ pages: readonly (readonly Entry[])[],+ patches: readonly Patch[],+ next: AttentionFeedPosition | null+): Entry[][] | undefined {+ const compare = compareAttentionFeedEntries(shape);+ let placed = pages.map((page) => [...page]);+ for (const patch of patches) {+ const change = shape.change(patch);+ if (change.kind === 'invalidated') return undefined;+ const key =+ change.kind === 'removed' ? change.key : shape.key(change.entry);+ placed = placed.map((page) => page.filter((row) => shape.key(row) !== key));+ if (change.kind !== 'upserted') continue;+ const page = placed.find((rows) =>+ rows.some((row) => compare(change.entry, row) < 0)+ );+ if (page) {+ page.splice(+ page.findIndex((row) => compare(change.entry, row) < 0),+ 0,+ change.entry+ );+ } else if (+ // Older than every loaded row. The last page's read may have gone past+ // its last row, so the entry is its own while it falls within that+ // read; past it, the entry arrives with a later page.+ !next ||+ comparePositions(positionOf(shape, change.entry), next) <= 0+ ) {+ placed.at(-1)?.push(change.entry);+ }+ }+ return placed;+}++const sameEntries = <Entry>(a: readonly Entry[], b: readonly Entry[]) =>+ a.length === b.length && a.every((entry, index) => entry === b[index]);++/** The cached query a feed's pages are stored under. */+export type AttentionFeedCachedQuery = {+ /** The printed query document. */+ query: string;+ operationName: string;+};++/**+ * Write one server batch into a feed's cached pages, so every query reading+ * them updates without a network read. Resolves false when the batch cannot+ * be placed — an invalidation, or a page the cache no longer holds — and the+ * feed must be read again.+ */+export async function writeAttentionFeedPatches<+ Page,+ Entry,+ Patch,+ Variables extends Record<string, unknown>,+>(+ shape: AttentionFeedShape<Page, Entry, Patch>,+ host: Pick<CacheHost, 'readQuery' | 'writeQuery'>,+ cachedQuery: AttentionFeedCachedQuery,+ pageVariables: readonly Variables[],+ patches: readonly Patch[]+): Promise<boolean> {+ if (pageVariables.length === 0) return false;+ const pages: Page[] = [];+ for (const variables of pageVariables) {+ const read = await host.readQuery({+ ...cachedQuery,+ variables,+ priority: 'user-visible',+ });+ if (read.kind !== 'hit') return false;+ // The generated document defines the normalized cache result's shape.+ pages.push(read.data as Page);+ }+ const loaded = pages.map((page) => shape.entries(page));+ const last = pages.at(-1);+ const placed = placeAttentionFeedPatches(+ shape,+ loaded,+ patches,+ (last && shape.nextPosition(last)) ?? null+ );+ if (!placed) return false;+ for (const [index, page] of pages.entries()) {+ const entries = placed[index];+ if (!entries || sameEntries(entries, shape.entries(page))) continue;+ await host.writeQuery({+ ...cachedQuery,+ variables: pageVariables[index],+ data: shape.withEntries(page, entries),+ });+ }+ return true;+}diff --git a/apps/web/src/lib/queries/attention-feed/attention-feed-entity.ts b/apps/web/src/lib/queries/attention-feed/attention-feed-entity.tsnew file mode 100644index 0000000000..cfcd22db5d--- /dev/null+++ b/apps/web/src/lib/queries/attention-feed/attention-feed-entity.ts@@ -0,0 +1,20 @@+import { isDisplayableSoupItem } from '@queries/soup/transform-utils';+import type { SoupItemPreviewFieldsFragment } from '@service-storage/graphql/generated/graphql';+import {+ type GraphqlSoupItem,+ mapGraphqlSoupItem,+} from '@service-storage/graphql-soup';++/**+ * The Soup item an attention feed entity maps to, or null when the app does+ * not list it. The feed's own notifications replace the entity's notification+ * edge, which would read every notification of a channel, including its+ * threads'.+ */+export function attentionFeedSoupItem(entity: SoupItemPreviewFieldsFragment) {+ const item = mapGraphqlSoupItem({+ ...entity,+ notifications: [],+ } as GraphqlSoupItem);+ return item && isDisplayableSoupItem(item) ? item : null;+}diff --git a/apps/web/src/lib/queries/attention-feed/attention-feed-types.ts b/apps/web/src/lib/queries/attention-feed/attention-feed-types.tsnew file mode 100644index 0000000000..8728a1fd92--- /dev/null+++ b/apps/web/src/lib/queries/attention-feed/attention-feed-types.ts@@ -0,0 +1,30 @@+/** What one live change does to a feed. */+export type AttentionFeedChange<Entry> =+ | { kind: 'upserted'; entry: Entry }+ | { kind: 'removed'; key: string }+ | { kind: 'invalidated' };++/** A place in a feed's order; a page's `nextPosition` is where its read stopped. */+export type AttentionFeedPosition = { sortAt: string; entityId: string };++/** How a feed orders its entries, in the server's order. */+export type AttentionFeedOrder<Entry> = {+ /** The entry's `<entity type>:<entity id>` key; changes address it. */+ key: (entry: Entry) => string;+ /** The entry's place in the feed, RFC 3339. */+ sortAt: (entry: Entry) => string;+};++/**+ * How one feed's GraphQL documents fit the shared feed client. Home's work+ * feed and the notification inbox each select their own page, entry and+ * patch fragments; both page `<entity type>:<entity id>` entries newest first.+ */+export type AttentionFeedShape<Page, Entry, Patch> =+ AttentionFeedOrder<Entry> & {+ change: (patch: Patch) => AttentionFeedChange<Entry>;+ entries: (page: Page) => readonly Entry[];+ /** Where the page's read stopped; absent once the feed is exhausted. */+ nextPosition: (page: Page) => AttentionFeedPosition | null | undefined;+ withEntries: (page: Page, entries: Entry[]) => Page;+ };diff --git a/apps/web/src/lib/queries/attention-feed/attention-feed-updates.ts b/apps/web/src/lib/queries/attention-feed/attention-feed-updates.tsnew file mode 100644index 0000000000..6c41251e80--- /dev/null+++ b/apps/web/src/lib/queries/attention-feed/attention-feed-updates.ts@@ -0,0 +1,55 @@+import type { TypedDocumentNode } from '@graphql-typed-document-node/core';+import type { Client } from '@urql/core';+import { pipe, subscribe } from 'wonka';++export type AttentionFeedUpdatesHandlers<Patch> = {+ /** One server batch, to apply together. */+ patches: (patches: readonly Patch[]) => void;+ /** The stream errored or ended: changes may be missed until resubscribed. */+ interrupted: () => void;+};++/** One feed's live stream: its document and the batch each result carries. */+export type AttentionFeedUpdates<+ Data,+ Patch,+ Variables extends Record<string, unknown>,+> = {+ document: TypedDocumentNode<Data, Variables>;+ patches: (data: Data) => readonly Patch[] | undefined;+};++/** Follow one feed's live changes; returns the unsubscribe function. */+export function subscribeToAttentionFeedUpdates<+ Data,+ Patch,+ Variables extends Record<string, unknown>,+>(+ client: Client,+ updates: AttentionFeedUpdates<Data, Patch, Variables>,+ variables: Variables,+ handlers: AttentionFeedUpdatesHandlers<Patch>+): () => void {+ let ended = false;+ const end = () => {+ if (ended) return;+ ended = true;+ handlers.interrupted();+ };+ const { unsubscribe } = pipe(+ client.subscription(updates.document, variables),+ subscribe((result) => {+ if (result.error) {+ end();+ return;+ }+ const patches = result.data ? updates.patches(result.data) : undefined;+ if (!patches || patches.length === 0) return;+ handlers.patches(patches);+ })+ );+ return () => {+ ended = true;+ unsubscribe();+ };+}diff --git a/apps/web/src/lib/queries/attention-feed/live-attention-feed.ts b/apps/web/src/lib/queries/attention-feed/live-attention-feed.tsnew file mode 100644index 0000000000..ecfae3f76a--- /dev/null+++ b/apps/web/src/lib/queries/attention-feed/live-attention-feed.ts@@ -0,0 +1,206 @@+import { fireAndForget } from '@core/util/fireAndForget';+import type { CacheHost } from '@graphql-cache/host/types';+import type { Client } from '@urql/core';+import { type Accessor, createEffect, on, onCleanup } from 'solid-js';+import {+ type AttentionFeedCachedQuery,+ writeAttentionFeedPatches,+} from './attention-feed-cache';+import type { AttentionFeedShape } from './attention-feed-types';+import {+ type AttentionFeedUpdates,+ subscribeToAttentionFeedUpdates,+} from './attention-feed-updates';++/** First delay before following a feed again after its live stream ended. */+export const ATTENTION_FEED_RESUBSCRIBE_DELAY_MS = 3_000;+/** Longest delay between attempts while the live stream keeps failing. */+export const ATTENTION_FEED_MAX_RESUBSCRIBE_DELAY_MS = 60_000;++/** The paged feed query a live feed writes changes into. */+export type LiveAttentionFeedQuery = {+ /** The cursor each loaded page was read from. */+ readonly data: { readonly cursors: readonly (string | null)[] } | undefined;+ readonly isFetching: boolean;+ refetch(options: { requestPolicy: 'network-only' }): Promise<unknown>;+};++export type LiveAttentionFeedOptions<+ Page,+ Entry,+ Patch,+ Variables extends Record<string, unknown>,+ UpdateData,+ UpdateVariables extends Record<string, unknown>,+> = {+ client: Accessor<Client>;+ /** The normalized cache holding the feed's pages, when it is available. */+ cacheHost: Accessor<Pick<CacheHost, 'readQuery' | 'writeQuery'> | undefined>;+ enabled: Accessor<boolean>;+ shape: AttentionFeedShape<Page, Entry, Patch>;+ query: LiveAttentionFeedQuery;+ /** The cached page query and the variables of the page read at `cursor`. */+ pages: {+ cachedQuery: AttentionFeedCachedQuery;+ variables: (cursor: string | null) => Variables;+ };+ /** The live stream for the same feed; restarted when its variables change. */+ updates: AttentionFeedUpdates<UpdateData, Patch, UpdateVariables> & {+ variables: Accessor<UpdateVariables>;+ };+ /** Subscribes to transport reconnects, after which changes may be missed. */+ onReconnected?: (listener: () => void) => () => void;+ /** Sees each batch before it is placed, in arrival order. */+ onPatches?: (patches: readonly Patch[]) => void;+ /** Runs after each fresh read of the feed lands. */+ onRefetched?: () => void;+ /** Telemetry surface for detached work. */+ surface: string;+};++/**+ * Keeps a paged attention feed live. The server sends each change already+ * placed in the feed, and the change is written into the cached pages, so the+ * paged query shows it without a network read. The feed reads again only+ * when changes may have been missed.+ */+export function createLiveAttentionFeed<+ Page,+ Entry,+ Patch,+ Variables extends Record<string, unknown>,+ UpdateData,+ UpdateVariables extends Record<string, unknown>,+>(+ options: LiveAttentionFeedOptions<+ Page,+ Entry,+ Patch,+ Variables,+ UpdateData,+ UpdateVariables+ >+) {+ const { query, surface } = options;++ // A read requested while one runs is followed by one more.+ let refetching = false;+ let refetchAgain = false;+ const refetch = async () => {+ if (refetching) {+ refetchAgain = true;+ return;+ }+ refetching = true;+ try {+ do {+ refetchAgain = false;+ await query.refetch({ requestPolicy: 'network-only' });+ options.onRefetched?.();+ } while (refetchAgain);+ } catch (error) {+ console.warn('Attention feed refresh failed', error);+ } finally {+ refetching = false;+ }+ };++ // Batches are written in arrival order, and only between page reads, so a+ // read that started before a batch cannot land over it.+ let pending: Patch[] = [];+ let writing = false;+ const writePending = async () => {+ if (writing || pending.length === 0 || query.isFetching) return;+ const host = options.cacheHost();+ const batch = pending;+ pending = [];+ // Without the cache there are no pages to place changes in.+ if (!host) {+ fireAndForget(refetch(), surface);+ return;+ }+ writing = true;+ try {+ const pages = query.data?.cursors ?? [];+ const placed = await writeAttentionFeedPatches(+ options.shape,+ host,+ options.pages.cachedQuery,+ pages.map((cursor) => options.pages.variables(cursor)),+ batch+ );+ if (!placed) fireAndForget(refetch(), surface);+ } catch (error) {+ console.warn('Attention feed update failed', error);+ fireAndForget(refetch(), surface);+ } finally {+ writing = false;+ fireAndForget(writePending(), surface);+ }+ };+ createEffect(+ on(+ () => query.isFetching,+ (fetching) => {+ if (!fetching) fireAndForget(writePending(), surface);+ }+ )+ );++ const applyPatches = (patches: readonly Patch[]) => {+ options.onPatches?.(patches);+ pending.push(...patches);+ fireAndForget(writePending(), surface);+ };++ // The live stream is an external system: follow it while the feed is+ // enabled, and again with each new client or set of variables.+ createEffect(() => {+ if (!options.enabled()) return;+ const client = options.client();+ const variables = options.updates.variables();+ let disposed = false;+ let retry: ReturnType<typeof setTimeout> | undefined;+ let delay = ATTENTION_FEED_RESUBSCRIBE_DELAY_MS;+ let unsubscribe = () => {};+ const follow = () => {+ unsubscribe = subscribeToAttentionFeedUpdates(+ client,+ options.updates,+ variables,+ {+ patches: (patches) => {+ delay = ATTENTION_FEED_RESUBSCRIBE_DELAY_MS;+ applyPatches(patches);+ },+ interrupted: () => {+ if (disposed) return;+ retry = setTimeout(() => {+ if (disposed) return;+ follow();+ // Changes made while the stream was down are only in a read.+ fireAndForget(refetch(), surface);+ }, delay);+ delay = Math.min(+ delay * 2,+ ATTENTION_FEED_MAX_RESUBSCRIBE_DELAY_MS+ );+ },+ }+ );+ };+ follow();+ const stopReconnects = options.onReconnected?.(() =>+ fireAndForget(refetch(), surface)+ );+ onCleanup(() => {+ disposed = true;+ pending = [];+ if (retry !== undefined) clearTimeout(retry);+ unsubscribe();+ stopReconnects?.();+ });+ });++ return { refetch, applyPatches };+}diff --git a/apps/web/src/features/home/work-feed/tests/fake-client.ts b/apps/web/src/lib/queries/attention-feed/tests/fake-client.tssimilarity index 95%rename from apps/web/src/features/home/work-feed/tests/fake-client.tsrename to apps/web/src/lib/queries/attention-feed/tests/fake-client.tsindex 650c2014cf..1fdc90265f 100644--- a/apps/web/src/features/home/work-feed/tests/fake-client.ts+++ b/apps/web/src/lib/queries/attention-feed/tests/fake-client.ts@@ -43,13 +43,13 @@ export type FakeCacheWrite = {const variablesKey = (variables: unknown) => JSON.stringify(variables ?? {});/**- * A urql client for the work feed: queries stay pending until answered,+ * A urql client for an attention feed: queries stay pending until answered,* subscriptions are driven by the test, and mutations answer from* `mutationData` keyed by operation name. Its `host` stands in for the* normalized cache: reads answer with each page's latest data, and a write* re-emits the page to its query the way a cache reread does.*/-export function createFakeWorkFeedClient(+export function createFakeAttentionFeedClient(mutationData: Record<string, unknown> = {}) {const queries: FakeQuery[] = [];@@ -96,7 +96,7 @@ export function createFakeWorkFeedClient(const name = operationName(query);mutations.push({ name, variables });return {- toPromise: async () => ({ data: mutationData[name] }),+ toPromise: async () => ({ data: await mutationData[name] }),};};diff --git a/apps/web/src/lib/queries/calendar/join-requests.ts b/apps/web/src/lib/queries/calendar/join-requests.tsindex 6547f1c55b..400a309815 100644--- a/apps/web/src/lib/queries/calendar/join-requests.ts+++ b/apps/web/src/lib/queries/calendar/join-requests.ts@@ -107,7 +107,8 @@ export function useRequestToJoinCalendarEventMutation(}export type RespondToCalendarJoinRequestArgs = {- request: CalendarJoinRequest;+ /** The request, or just its ids, as a notification carries them. */+ request: Pick<CalendarJoinRequest, 'id' | 'eventId'>;decision: CalendarJoinRequestDecision;};diff --git a/apps/web/src/lib/queries/mutation-coverage.test.ts b/apps/web/src/lib/queries/mutation-coverage.test.tsindex 4f9b0f708c..ff59acba81 100644--- a/apps/web/src/lib/queries/mutation-coverage.test.ts+++ b/apps/web/src/lib/queries/mutation-coverage.test.ts@@ -61,6 +61,12 @@ const policies = {'authoritative: exact affected notification IDs required for undo',UndoWorkFeedItemsDone:'authoritative: the server returns the restored feed entries',+ MarkNotificationInboxRowsDone:+ 'custom: inbox rows stay hidden until the server removes them',+ UndoNotificationInboxRowsDone:+ 'authoritative: the server returns the restored inbox entries',+ MarkNotificationInboxRowsSeen:+ 'custom: inbox rows read as seen until the server returns their entries',MoveEntities:'authoritative: destination authorization and membership refresh',UpdateEntitySharePolicies:diff --git a/apps/web/src/lib/service-clients/service-storage/graphql/generated/graphql.ts b/apps/web/src/lib/service-clients/service-storage/graphql/generated/graphql.tsindex a21fa0b4ad..ccc433caac 100644--- a/apps/web/src/lib/service-clients/service-storage/graphql/generated/graphql.ts+++ b/apps/web/src/lib/service-clients/service-storage/graphql/generated/graphql.ts@@ -2228,6 +2228,20 @@ export type MarkEmailThreadUnreadInput = {threadId: string | number;};+/** Input for marking inbox rows done. */+export type MarkNotificationInboxRowsDoneInput = {+ /** The rows to complete, at most 200. */+ rows: Array<NotificationInboxRowTargetInput>;+};++/** Input for marking inbox rows seen. */+export type MarkNotificationInboxRowsSeenInput = {+ /** The rows to mark seen, at most 200. */+ rowIds: Array<string | number>;+ /** The inbox the updated groups are placed in. */+ scope?: NotificationInboxScopeInput | null | undefined;+};+/** Input for marking work feed items done. */export type MarkWorkFeedItemsDoneInput = {/** The items to complete, at most 200. */@@ -2250,6 +2264,108 @@ export type NotificationEntityInput = {entityType: GraphqlEntityType;};+/**+ * The kind of principal a row is from. Values may be added; present one+ * you do not know without an author.+ */+export type NotificationInboxActorKind =+ /** An agent. */+ | 'AGENT'+ /** Macro itself. */+ | 'MACRO'+ /** A Macro user. */+ | 'USER';++/** Page request for the viewer's notification inbox. */+export type NotificationInboxInput = {+ /**+ * Opaque cursor from the previous page's `nextCursor`; absent for the+ * first page. Send it with the same scope.+ */+ cursor?: string | null | undefined;+ /** Entries per page; defaults to 50, capped at 100. */+ limit?: number | null | undefined;+ /** Which rows the inbox shows. */+ scope?: NotificationInboxScopeInput | null | undefined;+};++/**+ * What the viewer can do from a row. Values are added with the row types+ * that offer them; skip one you do not know.+ */+export type NotificationInboxRowActionKind =+ /** Accept the join request `targetId`. */+ | 'ACCEPT'+ /** Answer the agent that is waiting for the viewer. */+ | 'ANSWER'+ /** Grant the access request `targetId`. */+ | 'APPROVE'+ /** Decline the join request `targetId`. */+ | 'DECLINE'+ /** Refuse the access request `targetId`. */+ | 'DENY'+ /** Open what the row is about. */+ | 'OPEN'+ /** Review the pull request at `url`. */+ | 'REVIEW';++/** One row to mark done. */+export type NotificationInboxRowTargetInput = {+ /** The row's id. */+ id: string | number;+ /**+ * The row's `revision` the caller observed. Notifications newer than it+ * stay active. Omit to acknowledge everything current.+ */+ revision?: string | null | undefined;+};++/**+ * The kinds of notification inbox row. Values are added as the inbox+ * learns new sources; present a value you do not know as a generic row.+ */+export type NotificationInboxRowType =+ /** Access the viewer requested was granted. */+ | 'ACCESS_GRANTED'+ /** A request for access to something the viewer can share. */+ | 'ACCESS_REQUESTED'+ /** An agent session's or AI chat's latest response or question. */+ | 'AGENT'+ /** Reminders of an upcoming calendar event. */+ | 'CALENDAR_EVENT'+ /** A request to join a calendar event the viewer shared. */+ | 'CALENDAR_JOIN_REQUEST'+ /** A top-level channel message that mentions the viewer, with its thread. */+ | 'CHANNEL_MENTION'+ /** A channel's top-level messages, reactions to them and invites. */+ | 'CHANNEL_MESSAGES'+ /** A channel thread's replies, mentions and reactions. */+ | 'CHANNEL_THREAD'+ /**+ * A top-level discussion comment that mentions the viewer, with its+ * thread.+ */+ | 'DISCUSSION_MENTION'+ /** An entity's top-level discussion comments. */+ | 'DISCUSSION_MESSAGES'+ /** One discussion thread's replies. */+ | 'DISCUSSION_THREAD'+ /** An email thread. */+ | 'EMAIL'+ /** A GitHub pull request's activity. */+ | 'PULL_REQUEST'+ /** A task assigned to the viewer. */+ | 'TASK';++/**+ * Which rows a notification inbox shows. Pages, subscriptions, seen and+ * undo for one inbox send the same scope.+ */+export type NotificationInboxScopeInput = {+ /** Row kinds to include; omitted or empty means every kind. */+ rowTypes?: Array<NotificationInboxRowType> | null | undefined;+};+/** The notification state as represented by GraphQL variables and responses. */export type NotificationState =/** Completed. */@@ -2507,6 +2623,14 @@ export type TimedEventTimeInput = {timeZone?: string | null | undefined;};+/** Input for undoing one mark-done. */+export type UndoNotificationInboxRowsDoneInput = {+ /** The inbox the restored groups are placed in. */+ scope?: NotificationInboxScopeInput | null | undefined;+ /** The `undoToken` the mark-done returned. */+ undoToken: string;+};+/** Input for undoing one mark-done. */export type UndoWorkFeedItemsDoneInput = {/** The feed the restored items are placed in. */@@ -13844,6 +13968,973 @@ export type DeleteInitiativeMutationVariables = Exact<{export type DeleteInitiativeMutation = { deleteInitiative: boolean };+export type NotificationInboxEntryFieldsFragment = { groupId: string, sortAt: string, entity:+ | { __typename: 'GraphqlSoupAgentSession', cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, archivedBy: GraphqlAgentSessionArchiveCause | null, archivedAt: string | null, ownerId: string, botId: string, harness: string, repoUrl: string | null, repoBranch: string | null, pullRequestUrl: string | null, workingBranch: string | null, pullRequestState: GraphqlAgentPullRequestState | null, pullRequestId: string | null, turnState: string | null, threadId: string | null, source: GraphqlAgentSessionSource, visibility: GraphqlAgentSessionVisibility, status: string, createdAt: string, updatedAt: string, viewedAt: string | null, sessionName: string, bot: { id: string, name: string, avatarUrl: string | null } | null, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupCalendarEvent', time: unknown, conferenceUrl: string | null, isReadOnly: boolean, ownerId: string, createdAt: string, updatedAt: string, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, calendarEventTitle: string, calendarEventStatus: string, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupCall', channelName: string | null, createdBy: string, customName: string | null, summary: string | null, startedAt: string, endedAt: string | null, durationMs: number | null, isActive: boolean, status: string, attended: boolean, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, callChannelId: string | null, participants: Array<{ userId: string, joinedAt: string, leftAt: string | null }>, guests: Array<{ id: string, displayName: string, joinedAt: string, leftAt: string | null }>, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupChannel', channelType: string, ownerId: string, organizationId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, interactedAt: string | null, isParticipant: boolean, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, channelName: string | null, channelTeamId: string | null, participants: Array<{ channelId: string, userId: string, role: string, joinedAt: string, leftAt: string | null }>, latestMessage: { messageId: string, channelId: string, threadId: string | null, senderId: string, content: string, createdAt: string, updatedAt: string, deletedAt: string | null, mentions: Array<string> } | null, latestNonThreadMessage: { messageId: string, channelId: string, threadId: string | null, senderId: string, content: string, createdAt: string, updatedAt: string, deletedAt: string | null, mentions: Array<string> } | null }+ | { __typename: 'GraphqlSoupChannelMessage', channelId: string, senderId: string, content: string, createdAt: string, updatedAt: string, effectiveUpdatedAt: string, replyCount: number, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean }+ | { __typename: 'GraphqlSoupChat', model: string | null, ownerId: string, projectId: string | null, isPersistent: boolean, createdAt: string, updatedAt: string, viewedAt: string | null, deletedAt: string | null, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, chatName: string, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupCrmCompany', description: string | null, emailSync: boolean, hidden: boolean, createdAt: string, updatedAt: string, viewedAt: string | null, domains: Array<string>, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, crmTeamId: string, crmCompanyName: string | null, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupCrmContact', cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, hidden: boolean, firstInteraction: string, lastInteraction: string, createdAt: string, updatedAt: string, viewedAt: string | null, contactTeamId: string, contactCompanyId: string | null, contactCompanyName: string | null, contactEmail: string | null, crmContactName: string | null }+ | { __typename: 'GraphqlSoupDatabaseRow', tableId: string, databaseId: string, position: string, ownerId: string, creatorId: string | null, createdAt: string, updatedAt: string, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupDocument', ownerId: string, fileType: string | null, projectId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, deletedAt: string | null, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, documentName: string, subType:+ | { __typename: 'GraphqlInitiativeDescriptionSubType' }+ | { __typename: 'GraphqlSkillSubType' }+ | { __typename: 'GraphqlSnippetSubType' }+ | { __typename: 'GraphqlTaskSubType', isCompleted: boolean }+ | null, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupEmailThread', providerId: string | null, ownerId: string, inboxVisible: boolean, hasReceivedMail: boolean, linkId: string, latestInboundMessageTs: string | null, latestOutboundMessageTs: string | null, latestNonSpamMessageTs: string | null, reminderReturnedAt: string | null, snippet: string | null, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null, isRead: boolean, isDraft: boolean, isImportant: boolean, isSignal: boolean, projectId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, emailName: string | null, mailDraftState: { baseline: { messageCount: number, inboxVisible: boolean, isRead: boolean, isSignal: boolean, hasCalendarAttachment: boolean, latestInboundMessageTs: string | null, latestNonSpamMessageTs: string | null, latestOutboundMessageTs: string | null, previewTs: string | null, preview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null }, drafts: Array<{ id: string, macroDraft: boolean, facts: { messageCount: number, inboxVisible: boolean, isRead: boolean, isSignal: boolean, hasCalendarAttachment: boolean, latestInboundMessageTs: string | null, latestNonSpamMessageTs: string | null, latestOutboundMessageTs: string | null, previewTs: string | null, preview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null } }> } | null, mailAllPreview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null, mailDraftPreview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null, mailSentPreview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null, participants: Array<{ contactId: string, linkId: string, name: string | null, email: string | null, sfsPhotoUrl: string | null }>, attachments: Array<{ id: string, messageId: string, providerAttachmentId: string | null, filename: string | null, mimeType: string | null, sizeBytes: number | null, contentId: string | null, createdAt: string }>, labels: Array<{ __typename: 'GraphqlSoupEmailLabel', id: string, linkId: string, providerLabelId: string, name: string, createdAt: string, messageListVisibility: string, labelListVisibility: string, type: string }>, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupForeignEntity', foreignEntityId: string, foreignEntitySource: string, storedForId: string, storedForAuthEntity: string, sourceMetadata: unknown, createdAt: string, updatedAt: string, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean }+ | { __typename: 'GraphqlSoupInitiative', cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, metadata: { ownerId: string | null, createdAt: string | null, updatedAt: string | null, viewedAt: string | null }, viewerPermission:+ | { __typename: 'GraphqlAccessLevelPermission', accessLevel: GraphqlEntityAccessLevel }+ | { __typename: 'GraphqlChannelRolePermission' }+ | { __typename: 'GraphqlChannelViewOnlyPermission' }+ | { __typename: 'GraphqlTeamRolePermission' }+ | null, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupProject', ownerId: string, parentId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, deletedAt: string | null, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, projectName: string, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupReminder', cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean }+ , rows: Array<{ id: string, rowType: NotificationInboxRowType, threadId: string | null, revision: string, latestAt: string, unseen: boolean, count: number, actor: { kind: NotificationInboxActorKind, principalId: string | null, name: string | null } | null, actions: Array<{ kind: NotificationInboxRowActionKind, targetId: string | null, url: string | null }>, notifications: Array<{ __typename: 'GraphqlNotification', id: string, eventType: string, entityType: GraphqlSoupEntityType, targetEntityType: GraphqlEntityType, entityId: string, sent: boolean, state: NotificationState, createdAt: string, viewedAt: string | null, updatedAt: string, senderId: string | null, metadata:+ | { __typename: 'GraphqlAgentSessionMentionedMetadata', agentSessionMentionedMentionedBy: string | null, agentSessionMentionedActionId: string, agentSessionMentionedSession: { sessionId: string, sessionName: string, botId: string, botName: string, channelId: string | null, threadId: string | null, announcementMessageId: string | null } }+ | { __typename: 'GraphqlAgentSessionSettledMetadata', agentSessionSettledTurn: number, agentSessionSettledActor: string | null, agentSessionSettledStopReason: string, agentSessionSettledExcerpt: string | null, agentSessionSettledSession: { sessionId: string, sessionName: string, botId: string, botName: string, channelId: string | null, threadId: string | null, announcementMessageId: string | null } }+ | { __typename: 'GraphqlAgentSessionWaitingForInputMetadata', agentSessionWaitingForInputTurn: number, agentSessionWaitingForInputQuestion: string, agentSessionWaitingForInputSession: { sessionId: string, sessionName: string, botId: string, botName: string, channelId: string | null, threadId: string | null, announcementMessageId: string | null } }+ | { __typename: 'GraphqlAiResponseMetadata', aiResponseSummary: string, aiResponseMessageId: string }+ | { __typename: 'GraphqlCalendarEventJoinRequestMetadata', calendarEventJoinRequestRequestId: string, calendarEventJoinRequestEventId: string, calendarEventJoinRequestTitle: string }+ | { __typename: 'GraphqlCalendarEventReminderMetadata', calendarEventReminderEventId: string, calendarEventReminderOccurrenceKey: string, calendarEventReminderTitle: string, calendarEventReminderStartsAt: string | null, calendarEventReminderEndsAt: string | null, calendarEventReminderStartDate: string | null, calendarEventReminderTimeZone: string | null, calendarEventReminderMinutesBefore: number }+ | { __typename: 'GraphqlCallStartedMetadata', callStartedChannelName: string | null, callStartedSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlChannelInviteMetadata', channelInviteInvitedBy: string, channelInviteChannelName: string, channelInviteMessageContent: string | null, channelInviteSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlChannelMentionMetadata', channelMentionHasAttachments: boolean, channelMentionSenderDisplayName: string | null, channelMentionChannelName: string, channelMentionSenderProfilePictureUrl: string | null, channelMentionMessageId: string, channelMentionMessageContent: string, channelMentionThreadId: string | null, channelMentionChannelType: GraphqlNotificationChannelType }+ | { __typename: 'GraphqlChannelMessageReactionMetadata', channelMessageReactionMessageId: string, channelMessageReactionThreadId: string | null, channelMessageReactionMessageContent: string, channelMessageReactionEmoji: string, channelMessageReactionChannelType: GraphqlNotificationChannelType, channelMessageReactionChannelName: string, channelMessageReactionSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlChannelMessageSendMetadata', channelMessageSendMessageContent: string, channelMessageSendHasAttachments: boolean, channelMessageSendSenderDisplayName: string | null, channelMessageSendChannelName: string, channelMessageSendSenderProfilePictureUrl: string | null, channelMessageSendSender: string | null, channelMessageSendMessageId: string, channelMessageSendChannelType: GraphqlNotificationChannelType }+ | { __typename: 'GraphqlChannelReplyMetadata', channelReplyHasAttachments: boolean, channelReplySenderDisplayName: string | null, channelReplyChannelName: string, channelReplySenderProfilePictureUrl: string | null, channelReplyThreadId: string, channelReplyMessageId: string, channelReplyUserId: string | null, channelReplyMessageContent: string, channelReplyThreadParentSenderId: string | null, channelReplyChannelType: GraphqlNotificationChannelType }+ | { __typename: 'GraphqlCommentedOnDocumentMetadata', commentedOnDocumentDocumentName: string, commentedOnDocumentOwner: string, commentedOnDocumentFileType: string | null, commentedOnDocumentSubType: GraphqlNotificationDocumentSubType | null, commentedOnDocumentCommentId: string, commentedOnDocumentThreadId: string, commentedOnDocumentText: string, commentedOnDocumentSenderProfilePictureUrl: string | null, commentedOnDocumentSenderDisplayName: string | null }+ | { __typename: 'GraphqlCrmDiscussionMetadata', crmDiscussionRecordName: string, crmDiscussionReason: GraphqlCrmDiscussionReason, crmDiscussionMessageId: string, crmDiscussionThreadId: string, crmDiscussionText: string, crmDiscussionSenderDisplayName: string | null, crmDiscussionSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlDocumentMentionMetadata', documentMentionDocumentName: string, documentMentionOwner: string, documentMentionFileType: string | null, documentMentionSubType: GraphqlNotificationDocumentSubType | null, documentMentionMessageId: string, documentMentionMessageContent: string, documentMentionHasAttachments: boolean, documentMentionThreadId: string | null, documentMentionSenderDisplayName: string | null, documentMentionChannelType: GraphqlNotificationChannelType, documentMentionChannelName: string, documentMentionSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlEntityAccessGrantedMetadata', entityAccessGrantedRequestId: string, entityAccessGrantedRevision: number, entityAccessGrantedEntityName: string, entityAccessGrantedFileType: string | null, entityAccessGrantedAccessLevel: string }+ | { __typename: 'GraphqlEntityAccessRequestedMetadata', entityAccessRequestedRequestId: string, entityAccessRequestedRevision: number, entityAccessRequestedEntityName: string, entityAccessRequestedFileType: string | null, entityAccessRequestedAccessLevel: string }+ | { __typename: 'GraphqlExternalChatMessageMetadata', externalChatProvider: string, externalChatName: string, externalChatMessageId: string }+ | { __typename: 'GraphqlGithubPrCheckRunMetadata', githubPrCheckRunForeignEntityId: string, githubPrCheckRunGithubKey: string, githubPrCheckRunOwner: string, githubPrCheckRunRepo: string, githubPrCheckRunNumber: string, githubPrCheckRunUrl: string, githubPrCheckRunDisplayName: string, githubPrCheckRunTitle: string, githubPrCheckRunSenderGithubLogin: string | null, githubPrCheckRunSenderGithubUserId: string | null, githubPrCheckRunSenderGithubAvatarUrl: string | null, githubPrCheckRunCheckRunGithubId: string, githubPrCheckRunCheckName: string, githubPrCheckRunCheckStatus: string, githubPrCheckRunConclusion: string, githubPrCheckRunState: GraphqlGithubPrCheckRunState, githubPrCheckRunCheckUrl: string, githubPrCheckRunCompletedAt: string }+ | { __typename: 'GraphqlGithubPrCommentMetadata', githubPrCommentForeignEntityId: string, githubPrCommentGithubKey: string, githubPrCommentOwner: string, githubPrCommentRepo: string, githubPrCommentNumber: string, githubPrCommentUrl: string, githubPrCommentDisplayName: string, githubPrCommentTitle: string, githubPrCommentSenderGithubLogin: string | null, githubPrCommentSenderGithubUserId: string | null, githubPrCommentSenderGithubAvatarUrl: string | null, githubPrCommentCommentKind: GraphqlGithubPrCommentKind, githubPrCommentCommentGithubId: string | null, githubPrCommentCommentUrl: string | null, githubPrCommentCommentSnippet: string }+ | { __typename: 'GraphqlGithubPrMentionMetadata', githubPrMentionForeignEntityId: string, githubPrMentionGithubKey: string, githubPrMentionOwner: string, githubPrMentionRepo: string, githubPrMentionNumber: string, githubPrMentionUrl: string, githubPrMentionDisplayName: string, githubPrMentionTitle: string, githubPrMentionSenderGithubLogin: string | null, githubPrMentionSenderGithubUserId: string | null, githubPrMentionSenderGithubAvatarUrl: string | null, githubPrMentionLocation: GraphqlGithubPrMentionLocation, githubPrMentionCommentGithubId: string | null, githubPrMentionCommentUrl: string | null, githubPrMentionTextSnippet: string }+ | { __typename: 'GraphqlGithubPrReviewMetadata', githubPrReviewForeignEntityId: string, githubPrReviewGithubKey: string, githubPrReviewOwner: string, githubPrReviewRepo: string, githubPrReviewNumber: string, githubPrReviewUrl: string, githubPrReviewDisplayName: string, githubPrReviewTitle: string, githubPrReviewSenderGithubLogin: string | null, githubPrReviewSenderGithubUserId: string | null, githubPrReviewSenderGithubAvatarUrl: string | null, githubPrReviewReviewGithubId: string | null, githubPrReviewReviewUrl: string | null, githubPrReviewState: GraphqlGithubPrReviewState, githubPrReviewReviewSnippet: string | null }+ | { __typename: 'GraphqlGithubPrStatusChangedMetadata', githubPrStatusChangedForeignEntityId: string, githubPrStatusChangedGithubKey: string, githubPrStatusChangedOwner: string, githubPrStatusChangedRepo: string, githubPrStatusChangedNumber: string, githubPrStatusChangedUrl: string, githubPrStatusChangedDisplayName: string, githubPrStatusChangedTitle: string, githubPrStatusChangedSenderGithubLogin: string | null, githubPrStatusChangedSenderGithubUserId: string | null, githubPrStatusChangedSenderGithubAvatarUrl: string | null, githubPrStatusChangedStatus: GraphqlGithubPrEventStatus, githubPrStatusChangedAction: GraphqlGithubPrEventAction, githubPrStatusChangedPreviousStatus: GraphqlGithubPrEventStatus | null, githubPrStatusChangedHeadBranch: string | null, githubPrStatusChangedBaseBranch: string | null, githubPrStatusChangedMergedAt: string | null }+ | { __typename: 'GraphqlGithubReviewRequestedMetadata', githubReviewRequestedForeignEntityId: string, githubReviewRequestedGithubKey: string, githubReviewRequestedOwner: string, githubReviewRequestedRepo: string, githubReviewRequestedNumber: string, githubReviewRequestedUrl: string, githubReviewRequestedDisplayName: string, githubReviewRequestedTitle: string, githubReviewRequestedSenderGithubLogin: string | null, githubReviewRequestedSenderGithubUserId: string | null, githubReviewRequestedSenderGithubAvatarUrl: string | null, githubReviewRequestedRequestedReviewerGithubLogin: string | null, githubReviewRequestedRequestedReviewerGithubUserId: string | null }+ | { __typename: 'GraphqlInboxReauthRequiredMetadata', inboxReauthRequiredEmailAddress: string }+ | { __typename: 'GraphqlInitiativeDiscussionMetadata', initiativeDiscussionProjectName: string, initiativeDiscussionOwner: string, initiativeDiscussionReason: GraphqlInitiativeDiscussionReason, initiativeDiscussionMessageId: string, initiativeDiscussionThreadId: string, initiativeDiscussionText: string, initiativeDiscussionSenderDisplayName: string | null, initiativeDiscussionSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlInviteToTeamMetadata', inviteToTeamTeamName: string, inviteToTeamTeamId: string, inviteToTeamTeamInviteId: string, inviteToTeamInvitedBy: string, inviteToTeamRole: string | null, inviteToTeamSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlMentionedInDocumentCommentMetadata', mentionedInDocumentCommentDocumentName: string, mentionedInDocumentCommentOwner: string, mentionedInDocumentCommentFileType: string | null, mentionedInDocumentCommentSubType: GraphqlNotificationDocumentSubType | null, mentionedInDocumentCommentMentionId: string, mentionedInDocumentCommentCommentId: string, mentionedInDocumentCommentThreadId: string, mentionedInDocumentCommentText: string, mentionedInDocumentCommentSenderProfilePictureUrl: string | null, mentionedInDocumentCommentSenderDisplayName: string | null }+ | { __typename: 'GraphqlNewEmailMetadata', newEmailSender: string | null, newEmailToEmail: string, newEmailThreadId: string, newEmailSubject: string, newEmailSnippet: string }+ | { __typename: 'GraphqlReminderMetadata', reminderReminderId: string, reminderDescription: string, reminderScheduledFor: string | null }+ | { __typename: 'GraphqlRepliedToDocumentCommentThreadMetadata', repliedToDocumentCommentThreadDocumentName: string, repliedToDocumentCommentThreadOwner: string, repliedToDocumentCommentThreadFileType: string | null, repliedToDocumentCommentThreadSubType: GraphqlNotificationDocumentSubType | null, repliedToDocumentCommentThreadCommentId: string, repliedToDocumentCommentThreadThreadId: string, repliedToDocumentCommentThreadText: string, repliedToDocumentCommentThreadSenderProfilePictureUrl: string | null, repliedToDocumentCommentThreadSenderDisplayName: string | null }+ | { __typename: 'GraphqlRoutineRunFinishedMetadata', routineRunFinishedRoutineId: string, routineRunFinishedRoutineName: string, routineRunFinishedSucceeded: boolean }+ | { __typename: 'GraphqlTaskAssignedMetadata', taskAssignedTaskId: string, taskAssignedTaskName: string | null, taskAssignedSubType: GraphqlNotificationDocumentSubType | null, taskAssignedAssignedBy: string, taskAssignedSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlWhatsappGroupMessageMetadata' }+ }> }> };++type NotificationInboxPatchFields_NotificationInboxEntryRemoved_Fragment = { __typename: 'NotificationInboxEntryRemoved', groupId: string };++type NotificationInboxPatchFields_NotificationInboxEntryUpserted_Fragment = { __typename: 'NotificationInboxEntryUpserted', entry: { groupId: string, sortAt: string, entity:+ | { __typename: 'GraphqlSoupAgentSession', cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, archivedBy: GraphqlAgentSessionArchiveCause | null, archivedAt: string | null, ownerId: string, botId: string, harness: string, repoUrl: string | null, repoBranch: string | null, pullRequestUrl: string | null, workingBranch: string | null, pullRequestState: GraphqlAgentPullRequestState | null, pullRequestId: string | null, turnState: string | null, threadId: string | null, source: GraphqlAgentSessionSource, visibility: GraphqlAgentSessionVisibility, status: string, createdAt: string, updatedAt: string, viewedAt: string | null, sessionName: string, bot: { id: string, name: string, avatarUrl: string | null } | null, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupCalendarEvent', time: unknown, conferenceUrl: string | null, isReadOnly: boolean, ownerId: string, createdAt: string, updatedAt: string, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, calendarEventTitle: string, calendarEventStatus: string, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupCall', channelName: string | null, createdBy: string, customName: string | null, summary: string | null, startedAt: string, endedAt: string | null, durationMs: number | null, isActive: boolean, status: string, attended: boolean, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, callChannelId: string | null, participants: Array<{ userId: string, joinedAt: string, leftAt: string | null }>, guests: Array<{ id: string, displayName: string, joinedAt: string, leftAt: string | null }>, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupChannel', channelType: string, ownerId: string, organizationId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, interactedAt: string | null, isParticipant: boolean, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, channelName: string | null, channelTeamId: string | null, participants: Array<{ channelId: string, userId: string, role: string, joinedAt: string, leftAt: string | null }>, latestMessage: { messageId: string, channelId: string, threadId: string | null, senderId: string, content: string, createdAt: string, updatedAt: string, deletedAt: string | null, mentions: Array<string> } | null, latestNonThreadMessage: { messageId: string, channelId: string, threadId: string | null, senderId: string, content: string, createdAt: string, updatedAt: string, deletedAt: string | null, mentions: Array<string> } | null }+ | { __typename: 'GraphqlSoupChannelMessage', channelId: string, senderId: string, content: string, createdAt: string, updatedAt: string, effectiveUpdatedAt: string, replyCount: number, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean }+ | { __typename: 'GraphqlSoupChat', model: string | null, ownerId: string, projectId: string | null, isPersistent: boolean, createdAt: string, updatedAt: string, viewedAt: string | null, deletedAt: string | null, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, chatName: string, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupCrmCompany', description: string | null, emailSync: boolean, hidden: boolean, createdAt: string, updatedAt: string, viewedAt: string | null, domains: Array<string>, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, crmTeamId: string, crmCompanyName: string | null, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupCrmContact', cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, hidden: boolean, firstInteraction: string, lastInteraction: string, createdAt: string, updatedAt: string, viewedAt: string | null, contactTeamId: string, contactCompanyId: string | null, contactCompanyName: string | null, contactEmail: string | null, crmContactName: string | null }+ | { __typename: 'GraphqlSoupDatabaseRow', tableId: string, databaseId: string, position: string, ownerId: string, creatorId: string | null, createdAt: string, updatedAt: string, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupDocument', ownerId: string, fileType: string | null, projectId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, deletedAt: string | null, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, documentName: string, subType:+ | { __typename: 'GraphqlInitiativeDescriptionSubType' }+ | { __typename: 'GraphqlSkillSubType' }+ | { __typename: 'GraphqlSnippetSubType' }+ | { __typename: 'GraphqlTaskSubType', isCompleted: boolean }+ | null, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupEmailThread', providerId: string | null, ownerId: string, inboxVisible: boolean, hasReceivedMail: boolean, linkId: string, latestInboundMessageTs: string | null, latestOutboundMessageTs: string | null, latestNonSpamMessageTs: string | null, reminderReturnedAt: string | null, snippet: string | null, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null, isRead: boolean, isDraft: boolean, isImportant: boolean, isSignal: boolean, projectId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, emailName: string | null, mailDraftState: { baseline: { messageCount: number, inboxVisible: boolean, isRead: boolean, isSignal: boolean, hasCalendarAttachment: boolean, latestInboundMessageTs: string | null, latestNonSpamMessageTs: string | null, latestOutboundMessageTs: string | null, previewTs: string | null, preview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null }, drafts: Array<{ id: string, macroDraft: boolean, facts: { messageCount: number, inboxVisible: boolean, isRead: boolean, isSignal: boolean, hasCalendarAttachment: boolean, latestInboundMessageTs: string | null, latestNonSpamMessageTs: string | null, latestOutboundMessageTs: string | null, previewTs: string | null, preview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null } }> } | null, mailAllPreview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null, mailDraftPreview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null, mailSentPreview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null, participants: Array<{ contactId: string, linkId: string, name: string | null, email: string | null, sfsPhotoUrl: string | null }>, attachments: Array<{ id: string, messageId: string, providerAttachmentId: string | null, filename: string | null, mimeType: string | null, sizeBytes: number | null, contentId: string | null, createdAt: string }>, labels: Array<{ __typename: 'GraphqlSoupEmailLabel', id: string, linkId: string, providerLabelId: string, name: string, createdAt: string, messageListVisibility: string, labelListVisibility: string, type: string }>, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupForeignEntity', foreignEntityId: string, foreignEntitySource: string, storedForId: string, storedForAuthEntity: string, sourceMetadata: unknown, createdAt: string, updatedAt: string, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean }+ | { __typename: 'GraphqlSoupInitiative', cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, metadata: { ownerId: string | null, createdAt: string | null, updatedAt: string | null, viewedAt: string | null }, viewerPermission:+ | { __typename: 'GraphqlAccessLevelPermission', accessLevel: GraphqlEntityAccessLevel }+ | { __typename: 'GraphqlChannelRolePermission' }+ | { __typename: 'GraphqlChannelViewOnlyPermission' }+ | { __typename: 'GraphqlTeamRolePermission' }+ | null, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupProject', ownerId: string, parentId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, deletedAt: string | null, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, projectName: string, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupReminder', cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean }+ , rows: Array<{ id: string, rowType: NotificationInboxRowType, threadId: string | null, revision: string, latestAt: string, unseen: boolean, count: number, actor: { kind: NotificationInboxActorKind, principalId: string | null, name: string | null } | null, actions: Array<{ kind: NotificationInboxRowActionKind, targetId: string | null, url: string | null }>, notifications: Array<{ __typename: 'GraphqlNotification', id: string, eventType: string, entityType: GraphqlSoupEntityType, targetEntityType: GraphqlEntityType, entityId: string, sent: boolean, state: NotificationState, createdAt: string, viewedAt: string | null, updatedAt: string, senderId: string | null, metadata:+ | { __typename: 'GraphqlAgentSessionMentionedMetadata', agentSessionMentionedMentionedBy: string | null, agentSessionMentionedActionId: string, agentSessionMentionedSession: { sessionId: string, sessionName: string, botId: string, botName: string, channelId: string | null, threadId: string | null, announcementMessageId: string | null } }+ | { __typename: 'GraphqlAgentSessionSettledMetadata', agentSessionSettledTurn: number, agentSessionSettledActor: string | null, agentSessionSettledStopReason: string, agentSessionSettledExcerpt: string | null, agentSessionSettledSession: { sessionId: string, sessionName: string, botId: string, botName: string, channelId: string | null, threadId: string | null, announcementMessageId: string | null } }+ | { __typename: 'GraphqlAgentSessionWaitingForInputMetadata', agentSessionWaitingForInputTurn: number, agentSessionWaitingForInputQuestion: string, agentSessionWaitingForInputSession: { sessionId: string, sessionName: string, botId: string, botName: string, channelId: string | null, threadId: string | null, announcementMessageId: string | null } }+ | { __typename: 'GraphqlAiResponseMetadata', aiResponseSummary: string, aiResponseMessageId: string }+ | { __typename: 'GraphqlCalendarEventJoinRequestMetadata', calendarEventJoinRequestRequestId: string, calendarEventJoinRequestEventId: string, calendarEventJoinRequestTitle: string }+ | { __typename: 'GraphqlCalendarEventReminderMetadata', calendarEventReminderEventId: string, calendarEventReminderOccurrenceKey: string, calendarEventReminderTitle: string, calendarEventReminderStartsAt: string | null, calendarEventReminderEndsAt: string | null, calendarEventReminderStartDate: string | null, calendarEventReminderTimeZone: string | null, calendarEventReminderMinutesBefore: number }+ | { __typename: 'GraphqlCallStartedMetadata', callStartedChannelName: string | null, callStartedSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlChannelInviteMetadata', channelInviteInvitedBy: string, channelInviteChannelName: string, channelInviteMessageContent: string | null, channelInviteSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlChannelMentionMetadata', channelMentionHasAttachments: boolean, channelMentionSenderDisplayName: string | null, channelMentionChannelName: string, channelMentionSenderProfilePictureUrl: string | null, channelMentionMessageId: string, channelMentionMessageContent: string, channelMentionThreadId: string | null, channelMentionChannelType: GraphqlNotificationChannelType }+ | { __typename: 'GraphqlChannelMessageReactionMetadata', channelMessageReactionMessageId: string, channelMessageReactionThreadId: string | null, channelMessageReactionMessageContent: string, channelMessageReactionEmoji: string, channelMessageReactionChannelType: GraphqlNotificationChannelType, channelMessageReactionChannelName: string, channelMessageReactionSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlChannelMessageSendMetadata', channelMessageSendMessageContent: string, channelMessageSendHasAttachments: boolean, channelMessageSendSenderDisplayName: string | null, channelMessageSendChannelName: string, channelMessageSendSenderProfilePictureUrl: string | null, channelMessageSendSender: string | null, channelMessageSendMessageId: string, channelMessageSendChannelType: GraphqlNotificationChannelType }+ | { __typename: 'GraphqlChannelReplyMetadata', channelReplyHasAttachments: boolean, channelReplySenderDisplayName: string | null, channelReplyChannelName: string, channelReplySenderProfilePictureUrl: string | null, channelReplyThreadId: string, channelReplyMessageId: string, channelReplyUserId: string | null, channelReplyMessageContent: string, channelReplyThreadParentSenderId: string | null, channelReplyChannelType: GraphqlNotificationChannelType }+ | { __typename: 'GraphqlCommentedOnDocumentMetadata', commentedOnDocumentDocumentName: string, commentedOnDocumentOwner: string, commentedOnDocumentFileType: string | null, commentedOnDocumentSubType: GraphqlNotificationDocumentSubType | null, commentedOnDocumentCommentId: string, commentedOnDocumentThreadId: string, commentedOnDocumentText: string, commentedOnDocumentSenderProfilePictureUrl: string | null, commentedOnDocumentSenderDisplayName: string | null }+ | { __typename: 'GraphqlCrmDiscussionMetadata', crmDiscussionRecordName: string, crmDiscussionReason: GraphqlCrmDiscussionReason, crmDiscussionMessageId: string, crmDiscussionThreadId: string, crmDiscussionText: string, crmDiscussionSenderDisplayName: string | null, crmDiscussionSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlDocumentMentionMetadata', documentMentionDocumentName: string, documentMentionOwner: string, documentMentionFileType: string | null, documentMentionSubType: GraphqlNotificationDocumentSubType | null, documentMentionMessageId: string, documentMentionMessageContent: string, documentMentionHasAttachments: boolean, documentMentionThreadId: string | null, documentMentionSenderDisplayName: string | null, documentMentionChannelType: GraphqlNotificationChannelType, documentMentionChannelName: string, documentMentionSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlEntityAccessGrantedMetadata', entityAccessGrantedRequestId: string, entityAccessGrantedRevision: number, entityAccessGrantedEntityName: string, entityAccessGrantedFileType: string | null, entityAccessGrantedAccessLevel: string }+ | { __typename: 'GraphqlEntityAccessRequestedMetadata', entityAccessRequestedRequestId: string, entityAccessRequestedRevision: number, entityAccessRequestedEntityName: string, entityAccessRequestedFileType: string | null, entityAccessRequestedAccessLevel: string }+ | { __typename: 'GraphqlExternalChatMessageMetadata', externalChatProvider: string, externalChatName: string, externalChatMessageId: string }+ | { __typename: 'GraphqlGithubPrCheckRunMetadata', githubPrCheckRunForeignEntityId: string, githubPrCheckRunGithubKey: string, githubPrCheckRunOwner: string, githubPrCheckRunRepo: string, githubPrCheckRunNumber: string, githubPrCheckRunUrl: string, githubPrCheckRunDisplayName: string, githubPrCheckRunTitle: string, githubPrCheckRunSenderGithubLogin: string | null, githubPrCheckRunSenderGithubUserId: string | null, githubPrCheckRunSenderGithubAvatarUrl: string | null, githubPrCheckRunCheckRunGithubId: string, githubPrCheckRunCheckName: string, githubPrCheckRunCheckStatus: string, githubPrCheckRunConclusion: string, githubPrCheckRunState: GraphqlGithubPrCheckRunState, githubPrCheckRunCheckUrl: string, githubPrCheckRunCompletedAt: string }+ | { __typename: 'GraphqlGithubPrCommentMetadata', githubPrCommentForeignEntityId: string, githubPrCommentGithubKey: string, githubPrCommentOwner: string, githubPrCommentRepo: string, githubPrCommentNumber: string, githubPrCommentUrl: string, githubPrCommentDisplayName: string, githubPrCommentTitle: string, githubPrCommentSenderGithubLogin: string | null, githubPrCommentSenderGithubUserId: string | null, githubPrCommentSenderGithubAvatarUrl: string | null, githubPrCommentCommentKind: GraphqlGithubPrCommentKind, githubPrCommentCommentGithubId: string | null, githubPrCommentCommentUrl: string | null, githubPrCommentCommentSnippet: string }+ | { __typename: 'GraphqlGithubPrMentionMetadata', githubPrMentionForeignEntityId: string, githubPrMentionGithubKey: string, githubPrMentionOwner: string, githubPrMentionRepo: string, githubPrMentionNumber: string, githubPrMentionUrl: string, githubPrMentionDisplayName: string, githubPrMentionTitle: string, githubPrMentionSenderGithubLogin: string | null, githubPrMentionSenderGithubUserId: string | null, githubPrMentionSenderGithubAvatarUrl: string | null, githubPrMentionLocation: GraphqlGithubPrMentionLocation, githubPrMentionCommentGithubId: string | null, githubPrMentionCommentUrl: string | null, githubPrMentionTextSnippet: string }+ | { __typename: 'GraphqlGithubPrReviewMetadata', githubPrReviewForeignEntityId: string, githubPrReviewGithubKey: string, githubPrReviewOwner: string, githubPrReviewRepo: string, githubPrReviewNumber: string, githubPrReviewUrl: string, githubPrReviewDisplayName: string, githubPrReviewTitle: string, githubPrReviewSenderGithubLogin: string | null, githubPrReviewSenderGithubUserId: string | null, githubPrReviewSenderGithubAvatarUrl: string | null, githubPrReviewReviewGithubId: string | null, githubPrReviewReviewUrl: string | null, githubPrReviewState: GraphqlGithubPrReviewState, githubPrReviewReviewSnippet: string | null }+ | { __typename: 'GraphqlGithubPrStatusChangedMetadata', githubPrStatusChangedForeignEntityId: string, githubPrStatusChangedGithubKey: string, githubPrStatusChangedOwner: string, githubPrStatusChangedRepo: string, githubPrStatusChangedNumber: string, githubPrStatusChangedUrl: string, githubPrStatusChangedDisplayName: string, githubPrStatusChangedTitle: string, githubPrStatusChangedSenderGithubLogin: string | null, githubPrStatusChangedSenderGithubUserId: string | null, githubPrStatusChangedSenderGithubAvatarUrl: string | null, githubPrStatusChangedStatus: GraphqlGithubPrEventStatus, githubPrStatusChangedAction: GraphqlGithubPrEventAction, githubPrStatusChangedPreviousStatus: GraphqlGithubPrEventStatus | null, githubPrStatusChangedHeadBranch: string | null, githubPrStatusChangedBaseBranch: string | null, githubPrStatusChangedMergedAt: string | null }+ | { __typename: 'GraphqlGithubReviewRequestedMetadata', githubReviewRequestedForeignEntityId: string, githubReviewRequestedGithubKey: string, githubReviewRequestedOwner: string, githubReviewRequestedRepo: string, githubReviewRequestedNumber: string, githubReviewRequestedUrl: string, githubReviewRequestedDisplayName: string, githubReviewRequestedTitle: string, githubReviewRequestedSenderGithubLogin: string | null, githubReviewRequestedSenderGithubUserId: string | null, githubReviewRequestedSenderGithubAvatarUrl: string | null, githubReviewRequestedRequestedReviewerGithubLogin: string | null, githubReviewRequestedRequestedReviewerGithubUserId: string | null }+ | { __typename: 'GraphqlInboxReauthRequiredMetadata', inboxReauthRequiredEmailAddress: string }+ | { __typename: 'GraphqlInitiativeDiscussionMetadata', initiativeDiscussionProjectName: string, initiativeDiscussionOwner: string, initiativeDiscussionReason: GraphqlInitiativeDiscussionReason, initiativeDiscussionMessageId: string, initiativeDiscussionThreadId: string, initiativeDiscussionText: string, initiativeDiscussionSenderDisplayName: string | null, initiativeDiscussionSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlInviteToTeamMetadata', inviteToTeamTeamName: string, inviteToTeamTeamId: string, inviteToTeamTeamInviteId: string, inviteToTeamInvitedBy: string, inviteToTeamRole: string | null, inviteToTeamSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlMentionedInDocumentCommentMetadata', mentionedInDocumentCommentDocumentName: string, mentionedInDocumentCommentOwner: string, mentionedInDocumentCommentFileType: string | null, mentionedInDocumentCommentSubType: GraphqlNotificationDocumentSubType | null, mentionedInDocumentCommentMentionId: string, mentionedInDocumentCommentCommentId: string, mentionedInDocumentCommentThreadId: string, mentionedInDocumentCommentText: string, mentionedInDocumentCommentSenderProfilePictureUrl: string | null, mentionedInDocumentCommentSenderDisplayName: string | null }+ | { __typename: 'GraphqlNewEmailMetadata', newEmailSender: string | null, newEmailToEmail: string, newEmailThreadId: string, newEmailSubject: string, newEmailSnippet: string }+ | { __typename: 'GraphqlReminderMetadata', reminderReminderId: string, reminderDescription: string, reminderScheduledFor: string | null }+ | { __typename: 'GraphqlRepliedToDocumentCommentThreadMetadata', repliedToDocumentCommentThreadDocumentName: string, repliedToDocumentCommentThreadOwner: string, repliedToDocumentCommentThreadFileType: string | null, repliedToDocumentCommentThreadSubType: GraphqlNotificationDocumentSubType | null, repliedToDocumentCommentThreadCommentId: string, repliedToDocumentCommentThreadThreadId: string, repliedToDocumentCommentThreadText: string, repliedToDocumentCommentThreadSenderProfilePictureUrl: string | null, repliedToDocumentCommentThreadSenderDisplayName: string | null }+ | { __typename: 'GraphqlRoutineRunFinishedMetadata', routineRunFinishedRoutineId: string, routineRunFinishedRoutineName: string, routineRunFinishedSucceeded: boolean }+ | { __typename: 'GraphqlTaskAssignedMetadata', taskAssignedTaskId: string, taskAssignedTaskName: string | null, taskAssignedSubType: GraphqlNotificationDocumentSubType | null, taskAssignedAssignedBy: string, taskAssignedSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlWhatsappGroupMessageMetadata' }+ }> }> } };++type NotificationInboxPatchFields_NotificationInboxInvalidated_Fragment = { __typename: 'NotificationInboxInvalidated', refresh: boolean };++export type NotificationInboxPatchFieldsFragment =+ | NotificationInboxPatchFields_NotificationInboxEntryRemoved_Fragment+ | NotificationInboxPatchFields_NotificationInboxEntryUpserted_Fragment+ | NotificationInboxPatchFields_NotificationInboxInvalidated_Fragment+;++export type NotificationInboxQueryVariables = Exact<{+ input?: NotificationInboxInput | null | undefined;+}>;+++export type NotificationInboxQuery = { user: { id: string, notificationInbox: { nextCursor: string | null, entries: Array<{ groupId: string, sortAt: string, entity:+ | { __typename: 'GraphqlSoupAgentSession', cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, archivedBy: GraphqlAgentSessionArchiveCause | null, archivedAt: string | null, ownerId: string, botId: string, harness: string, repoUrl: string | null, repoBranch: string | null, pullRequestUrl: string | null, workingBranch: string | null, pullRequestState: GraphqlAgentPullRequestState | null, pullRequestId: string | null, turnState: string | null, threadId: string | null, source: GraphqlAgentSessionSource, visibility: GraphqlAgentSessionVisibility, status: string, createdAt: string, updatedAt: string, viewedAt: string | null, sessionName: string, bot: { id: string, name: string, avatarUrl: string | null } | null, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupCalendarEvent', time: unknown, conferenceUrl: string | null, isReadOnly: boolean, ownerId: string, createdAt: string, updatedAt: string, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, calendarEventTitle: string, calendarEventStatus: string, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupCall', channelName: string | null, createdBy: string, customName: string | null, summary: string | null, startedAt: string, endedAt: string | null, durationMs: number | null, isActive: boolean, status: string, attended: boolean, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, callChannelId: string | null, participants: Array<{ userId: string, joinedAt: string, leftAt: string | null }>, guests: Array<{ id: string, displayName: string, joinedAt: string, leftAt: string | null }>, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupChannel', channelType: string, ownerId: string, organizationId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, interactedAt: string | null, isParticipant: boolean, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, channelName: string | null, channelTeamId: string | null, participants: Array<{ channelId: string, userId: string, role: string, joinedAt: string, leftAt: string | null }>, latestMessage: { messageId: string, channelId: string, threadId: string | null, senderId: string, content: string, createdAt: string, updatedAt: string, deletedAt: string | null, mentions: Array<string> } | null, latestNonThreadMessage: { messageId: string, channelId: string, threadId: string | null, senderId: string, content: string, createdAt: string, updatedAt: string, deletedAt: string | null, mentions: Array<string> } | null }+ | { __typename: 'GraphqlSoupChannelMessage', channelId: string, senderId: string, content: string, createdAt: string, updatedAt: string, effectiveUpdatedAt: string, replyCount: number, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean }+ | { __typename: 'GraphqlSoupChat', model: string | null, ownerId: string, projectId: string | null, isPersistent: boolean, createdAt: string, updatedAt: string, viewedAt: string | null, deletedAt: string | null, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, chatName: string, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupCrmCompany', description: string | null, emailSync: boolean, hidden: boolean, createdAt: string, updatedAt: string, viewedAt: string | null, domains: Array<string>, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, crmTeamId: string, crmCompanyName: string | null, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupCrmContact', cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, hidden: boolean, firstInteraction: string, lastInteraction: string, createdAt: string, updatedAt: string, viewedAt: string | null, contactTeamId: string, contactCompanyId: string | null, contactCompanyName: string | null, contactEmail: string | null, crmContactName: string | null }+ | { __typename: 'GraphqlSoupDatabaseRow', tableId: string, databaseId: string, position: string, ownerId: string, creatorId: string | null, createdAt: string, updatedAt: string, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupDocument', ownerId: string, fileType: string | null, projectId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, deletedAt: string | null, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, documentName: string, subType:+ | { __typename: 'GraphqlInitiativeDescriptionSubType' }+ | { __typename: 'GraphqlSkillSubType' }+ | { __typename: 'GraphqlSnippetSubType' }+ | { __typename: 'GraphqlTaskSubType', isCompleted: boolean }+ | null, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupEmailThread', providerId: string | null, ownerId: string, inboxVisible: boolean, hasReceivedMail: boolean, linkId: string, latestInboundMessageTs: string | null, latestOutboundMessageTs: string | null, latestNonSpamMessageTs: string | null, reminderReturnedAt: string | null, snippet: string | null, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null, isRead: boolean, isDraft: boolean, isImportant: boolean, isSignal: boolean, projectId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, emailName: string | null, mailDraftState: { baseline: { messageCount: number, inboxVisible: boolean, isRead: boolean, isSignal: boolean, hasCalendarAttachment: boolean, latestInboundMessageTs: string | null, latestNonSpamMessageTs: string | null, latestOutboundMessageTs: string | null, previewTs: string | null, preview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null }, drafts: Array<{ id: string, macroDraft: boolean, facts: { messageCount: number, inboxVisible: boolean, isRead: boolean, isSignal: boolean, hasCalendarAttachment: boolean, latestInboundMessageTs: string | null, latestNonSpamMessageTs: string | null, latestOutboundMessageTs: string | null, previewTs: string | null, preview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null } }> } | null, mailAllPreview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null, mailDraftPreview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null, mailSentPreview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null, participants: Array<{ contactId: string, linkId: string, name: string | null, email: string | null, sfsPhotoUrl: string | null }>, attachments: Array<{ id: string, messageId: string, providerAttachmentId: string | null, filename: string | null, mimeType: string | null, sizeBytes: number | null, contentId: string | null, createdAt: string }>, labels: Array<{ __typename: 'GraphqlSoupEmailLabel', id: string, linkId: string, providerLabelId: string, name: string, createdAt: string, messageListVisibility: string, labelListVisibility: string, type: string }>, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupForeignEntity', foreignEntityId: string, foreignEntitySource: string, storedForId: string, storedForAuthEntity: string, sourceMetadata: unknown, createdAt: string, updatedAt: string, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean }+ | { __typename: 'GraphqlSoupInitiative', cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, metadata: { ownerId: string | null, createdAt: string | null, updatedAt: string | null, viewedAt: string | null }, viewerPermission:+ | { __typename: 'GraphqlAccessLevelPermission', accessLevel: GraphqlEntityAccessLevel }+ | { __typename: 'GraphqlChannelRolePermission' }+ | { __typename: 'GraphqlChannelViewOnlyPermission' }+ | { __typename: 'GraphqlTeamRolePermission' }+ | null, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupProject', ownerId: string, parentId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, deletedAt: string | null, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, projectName: string, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupReminder', cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean }+ , rows: Array<{ id: string, rowType: NotificationInboxRowType, threadId: string | null, revision: string, latestAt: string, unseen: boolean, count: number, actor: { kind: NotificationInboxActorKind, principalId: string | null, name: string | null } | null, actions: Array<{ kind: NotificationInboxRowActionKind, targetId: string | null, url: string | null }>, notifications: Array<{ __typename: 'GraphqlNotification', id: string, eventType: string, entityType: GraphqlSoupEntityType, targetEntityType: GraphqlEntityType, entityId: string, sent: boolean, state: NotificationState, createdAt: string, viewedAt: string | null, updatedAt: string, senderId: string | null, metadata:+ | { __typename: 'GraphqlAgentSessionMentionedMetadata', agentSessionMentionedMentionedBy: string | null, agentSessionMentionedActionId: string, agentSessionMentionedSession: { sessionId: string, sessionName: string, botId: string, botName: string, channelId: string | null, threadId: string | null, announcementMessageId: string | null } }+ | { __typename: 'GraphqlAgentSessionSettledMetadata', agentSessionSettledTurn: number, agentSessionSettledActor: string | null, agentSessionSettledStopReason: string, agentSessionSettledExcerpt: string | null, agentSessionSettledSession: { sessionId: string, sessionName: string, botId: string, botName: string, channelId: string | null, threadId: string | null, announcementMessageId: string | null } }+ | { __typename: 'GraphqlAgentSessionWaitingForInputMetadata', agentSessionWaitingForInputTurn: number, agentSessionWaitingForInputQuestion: string, agentSessionWaitingForInputSession: { sessionId: string, sessionName: string, botId: string, botName: string, channelId: string | null, threadId: string | null, announcementMessageId: string | null } }+ | { __typename: 'GraphqlAiResponseMetadata', aiResponseSummary: string, aiResponseMessageId: string }+ | { __typename: 'GraphqlCalendarEventJoinRequestMetadata', calendarEventJoinRequestRequestId: string, calendarEventJoinRequestEventId: string, calendarEventJoinRequestTitle: string }+ | { __typename: 'GraphqlCalendarEventReminderMetadata', calendarEventReminderEventId: string, calendarEventReminderOccurrenceKey: string, calendarEventReminderTitle: string, calendarEventReminderStartsAt: string | null, calendarEventReminderEndsAt: string | null, calendarEventReminderStartDate: string | null, calendarEventReminderTimeZone: string | null, calendarEventReminderMinutesBefore: number }+ | { __typename: 'GraphqlCallStartedMetadata', callStartedChannelName: string | null, callStartedSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlChannelInviteMetadata', channelInviteInvitedBy: string, channelInviteChannelName: string, channelInviteMessageContent: string | null, channelInviteSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlChannelMentionMetadata', channelMentionHasAttachments: boolean, channelMentionSenderDisplayName: string | null, channelMentionChannelName: string, channelMentionSenderProfilePictureUrl: string | null, channelMentionMessageId: string, channelMentionMessageContent: string, channelMentionThreadId: string | null, channelMentionChannelType: GraphqlNotificationChannelType }+ | { __typename: 'GraphqlChannelMessageReactionMetadata', channelMessageReactionMessageId: string, channelMessageReactionThreadId: string | null, channelMessageReactionMessageContent: string, channelMessageReactionEmoji: string, channelMessageReactionChannelType: GraphqlNotificationChannelType, channelMessageReactionChannelName: string, channelMessageReactionSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlChannelMessageSendMetadata', channelMessageSendMessageContent: string, channelMessageSendHasAttachments: boolean, channelMessageSendSenderDisplayName: string | null, channelMessageSendChannelName: string, channelMessageSendSenderProfilePictureUrl: string | null, channelMessageSendSender: string | null, channelMessageSendMessageId: string, channelMessageSendChannelType: GraphqlNotificationChannelType }+ | { __typename: 'GraphqlChannelReplyMetadata', channelReplyHasAttachments: boolean, channelReplySenderDisplayName: string | null, channelReplyChannelName: string, channelReplySenderProfilePictureUrl: string | null, channelReplyThreadId: string, channelReplyMessageId: string, channelReplyUserId: string | null, channelReplyMessageContent: string, channelReplyThreadParentSenderId: string | null, channelReplyChannelType: GraphqlNotificationChannelType }+ | { __typename: 'GraphqlCommentedOnDocumentMetadata', commentedOnDocumentDocumentName: string, commentedOnDocumentOwner: string, commentedOnDocumentFileType: string | null, commentedOnDocumentSubType: GraphqlNotificationDocumentSubType | null, commentedOnDocumentCommentId: string, commentedOnDocumentThreadId: string, commentedOnDocumentText: string, commentedOnDocumentSenderProfilePictureUrl: string | null, commentedOnDocumentSenderDisplayName: string | null }+ | { __typename: 'GraphqlCrmDiscussionMetadata', crmDiscussionRecordName: string, crmDiscussionReason: GraphqlCrmDiscussionReason, crmDiscussionMessageId: string, crmDiscussionThreadId: string, crmDiscussionText: string, crmDiscussionSenderDisplayName: string | null, crmDiscussionSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlDocumentMentionMetadata', documentMentionDocumentName: string, documentMentionOwner: string, documentMentionFileType: string | null, documentMentionSubType: GraphqlNotificationDocumentSubType | null, documentMentionMessageId: string, documentMentionMessageContent: string, documentMentionHasAttachments: boolean, documentMentionThreadId: string | null, documentMentionSenderDisplayName: string | null, documentMentionChannelType: GraphqlNotificationChannelType, documentMentionChannelName: string, documentMentionSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlEntityAccessGrantedMetadata', entityAccessGrantedRequestId: string, entityAccessGrantedRevision: number, entityAccessGrantedEntityName: string, entityAccessGrantedFileType: string | null, entityAccessGrantedAccessLevel: string }+ | { __typename: 'GraphqlEntityAccessRequestedMetadata', entityAccessRequestedRequestId: string, entityAccessRequestedRevision: number, entityAccessRequestedEntityName: string, entityAccessRequestedFileType: string | null, entityAccessRequestedAccessLevel: string }+ | { __typename: 'GraphqlExternalChatMessageMetadata', externalChatProvider: string, externalChatName: string, externalChatMessageId: string }+ | { __typename: 'GraphqlGithubPrCheckRunMetadata', githubPrCheckRunForeignEntityId: string, githubPrCheckRunGithubKey: string, githubPrCheckRunOwner: string, githubPrCheckRunRepo: string, githubPrCheckRunNumber: string, githubPrCheckRunUrl: string, githubPrCheckRunDisplayName: string, githubPrCheckRunTitle: string, githubPrCheckRunSenderGithubLogin: string | null, githubPrCheckRunSenderGithubUserId: string | null, githubPrCheckRunSenderGithubAvatarUrl: string | null, githubPrCheckRunCheckRunGithubId: string, githubPrCheckRunCheckName: string, githubPrCheckRunCheckStatus: string, githubPrCheckRunConclusion: string, githubPrCheckRunState: GraphqlGithubPrCheckRunState, githubPrCheckRunCheckUrl: string, githubPrCheckRunCompletedAt: string }+ | { __typename: 'GraphqlGithubPrCommentMetadata', githubPrCommentForeignEntityId: string, githubPrCommentGithubKey: string, githubPrCommentOwner: string, githubPrCommentRepo: string, githubPrCommentNumber: string, githubPrCommentUrl: string, githubPrCommentDisplayName: string, githubPrCommentTitle: string, githubPrCommentSenderGithubLogin: string | null, githubPrCommentSenderGithubUserId: string | null, githubPrCommentSenderGithubAvatarUrl: string | null, githubPrCommentCommentKind: GraphqlGithubPrCommentKind, githubPrCommentCommentGithubId: string | null, githubPrCommentCommentUrl: string | null, githubPrCommentCommentSnippet: string }+ | { __typename: 'GraphqlGithubPrMentionMetadata', githubPrMentionForeignEntityId: string, githubPrMentionGithubKey: string, githubPrMentionOwner: string, githubPrMentionRepo: string, githubPrMentionNumber: string, githubPrMentionUrl: string, githubPrMentionDisplayName: string, githubPrMentionTitle: string, githubPrMentionSenderGithubLogin: string | null, githubPrMentionSenderGithubUserId: string | null, githubPrMentionSenderGithubAvatarUrl: string | null, githubPrMentionLocation: GraphqlGithubPrMentionLocation, githubPrMentionCommentGithubId: string | null, githubPrMentionCommentUrl: string | null, githubPrMentionTextSnippet: string }+ | { __typename: 'GraphqlGithubPrReviewMetadata', githubPrReviewForeignEntityId: string, githubPrReviewGithubKey: string, githubPrReviewOwner: string, githubPrReviewRepo: string, githubPrReviewNumber: string, githubPrReviewUrl: string, githubPrReviewDisplayName: string, githubPrReviewTitle: string, githubPrReviewSenderGithubLogin: string | null, githubPrReviewSenderGithubUserId: string | null, githubPrReviewSenderGithubAvatarUrl: string | null, githubPrReviewReviewGithubId: string | null, githubPrReviewReviewUrl: string | null, githubPrReviewState: GraphqlGithubPrReviewState, githubPrReviewReviewSnippet: string | null }+ | { __typename: 'GraphqlGithubPrStatusChangedMetadata', githubPrStatusChangedForeignEntityId: string, githubPrStatusChangedGithubKey: string, githubPrStatusChangedOwner: string, githubPrStatusChangedRepo: string, githubPrStatusChangedNumber: string, githubPrStatusChangedUrl: string, githubPrStatusChangedDisplayName: string, githubPrStatusChangedTitle: string, githubPrStatusChangedSenderGithubLogin: string | null, githubPrStatusChangedSenderGithubUserId: string | null, githubPrStatusChangedSenderGithubAvatarUrl: string | null, githubPrStatusChangedStatus: GraphqlGithubPrEventStatus, githubPrStatusChangedAction: GraphqlGithubPrEventAction, githubPrStatusChangedPreviousStatus: GraphqlGithubPrEventStatus | null, githubPrStatusChangedHeadBranch: string | null, githubPrStatusChangedBaseBranch: string | null, githubPrStatusChangedMergedAt: string | null }+ | { __typename: 'GraphqlGithubReviewRequestedMetadata', githubReviewRequestedForeignEntityId: string, githubReviewRequestedGithubKey: string, githubReviewRequestedOwner: string, githubReviewRequestedRepo: string, githubReviewRequestedNumber: string, githubReviewRequestedUrl: string, githubReviewRequestedDisplayName: string, githubReviewRequestedTitle: string, githubReviewRequestedSenderGithubLogin: string | null, githubReviewRequestedSenderGithubUserId: string | null, githubReviewRequestedSenderGithubAvatarUrl: string | null, githubReviewRequestedRequestedReviewerGithubLogin: string | null, githubReviewRequestedRequestedReviewerGithubUserId: string | null }+ | { __typename: 'GraphqlInboxReauthRequiredMetadata', inboxReauthRequiredEmailAddress: string }+ | { __typename: 'GraphqlInitiativeDiscussionMetadata', initiativeDiscussionProjectName: string, initiativeDiscussionOwner: string, initiativeDiscussionReason: GraphqlInitiativeDiscussionReason, initiativeDiscussionMessageId: string, initiativeDiscussionThreadId: string, initiativeDiscussionText: string, initiativeDiscussionSenderDisplayName: string | null, initiativeDiscussionSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlInviteToTeamMetadata', inviteToTeamTeamName: string, inviteToTeamTeamId: string, inviteToTeamTeamInviteId: string, inviteToTeamInvitedBy: string, inviteToTeamRole: string | null, inviteToTeamSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlMentionedInDocumentCommentMetadata', mentionedInDocumentCommentDocumentName: string, mentionedInDocumentCommentOwner: string, mentionedInDocumentCommentFileType: string | null, mentionedInDocumentCommentSubType: GraphqlNotificationDocumentSubType | null, mentionedInDocumentCommentMentionId: string, mentionedInDocumentCommentCommentId: string, mentionedInDocumentCommentThreadId: string, mentionedInDocumentCommentText: string, mentionedInDocumentCommentSenderProfilePictureUrl: string | null, mentionedInDocumentCommentSenderDisplayName: string | null }+ | { __typename: 'GraphqlNewEmailMetadata', newEmailSender: string | null, newEmailToEmail: string, newEmailThreadId: string, newEmailSubject: string, newEmailSnippet: string }+ | { __typename: 'GraphqlReminderMetadata', reminderReminderId: string, reminderDescription: string, reminderScheduledFor: string | null }+ | { __typename: 'GraphqlRepliedToDocumentCommentThreadMetadata', repliedToDocumentCommentThreadDocumentName: string, repliedToDocumentCommentThreadOwner: string, repliedToDocumentCommentThreadFileType: string | null, repliedToDocumentCommentThreadSubType: GraphqlNotificationDocumentSubType | null, repliedToDocumentCommentThreadCommentId: string, repliedToDocumentCommentThreadThreadId: string, repliedToDocumentCommentThreadText: string, repliedToDocumentCommentThreadSenderProfilePictureUrl: string | null, repliedToDocumentCommentThreadSenderDisplayName: string | null }+ | { __typename: 'GraphqlRoutineRunFinishedMetadata', routineRunFinishedRoutineId: string, routineRunFinishedRoutineName: string, routineRunFinishedSucceeded: boolean }+ | { __typename: 'GraphqlTaskAssignedMetadata', taskAssignedTaskId: string, taskAssignedTaskName: string | null, taskAssignedSubType: GraphqlNotificationDocumentSubType | null, taskAssignedAssignedBy: string, taskAssignedSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlWhatsappGroupMessageMetadata' }+ }> }> }>, nextPosition: { sortAt: string, entityId: string } | null } } };++export type MarkNotificationInboxRowsDoneMutationVariables = Exact<{+ input: MarkNotificationInboxRowsDoneInput;+}>;+++export type MarkNotificationInboxRowsDoneMutation = { markNotificationInboxRowsDone: { rowIds: Array<string>, undoToken: string } };++export type UndoNotificationInboxRowsDoneMutationVariables = Exact<{+ input: UndoNotificationInboxRowsDoneInput;+}>;+++export type UndoNotificationInboxRowsDoneMutation = { undoNotificationInboxRowsDone: { patches: Array<+ | { __typename: 'NotificationInboxEntryRemoved', groupId: string }+ | { __typename: 'NotificationInboxEntryUpserted', entry: { groupId: string, sortAt: string, entity:+ | { __typename: 'GraphqlSoupAgentSession', cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, archivedBy: GraphqlAgentSessionArchiveCause | null, archivedAt: string | null, ownerId: string, botId: string, harness: string, repoUrl: string | null, repoBranch: string | null, pullRequestUrl: string | null, workingBranch: string | null, pullRequestState: GraphqlAgentPullRequestState | null, pullRequestId: string | null, turnState: string | null, threadId: string | null, source: GraphqlAgentSessionSource, visibility: GraphqlAgentSessionVisibility, status: string, createdAt: string, updatedAt: string, viewedAt: string | null, sessionName: string, bot: { id: string, name: string, avatarUrl: string | null } | null, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupCalendarEvent', time: unknown, conferenceUrl: string | null, isReadOnly: boolean, ownerId: string, createdAt: string, updatedAt: string, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, calendarEventTitle: string, calendarEventStatus: string, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupCall', channelName: string | null, createdBy: string, customName: string | null, summary: string | null, startedAt: string, endedAt: string | null, durationMs: number | null, isActive: boolean, status: string, attended: boolean, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, callChannelId: string | null, participants: Array<{ userId: string, joinedAt: string, leftAt: string | null }>, guests: Array<{ id: string, displayName: string, joinedAt: string, leftAt: string | null }>, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupChannel', channelType: string, ownerId: string, organizationId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, interactedAt: string | null, isParticipant: boolean, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, channelName: string | null, channelTeamId: string | null, participants: Array<{ channelId: string, userId: string, role: string, joinedAt: string, leftAt: string | null }>, latestMessage: { messageId: string, channelId: string, threadId: string | null, senderId: string, content: string, createdAt: string, updatedAt: string, deletedAt: string | null, mentions: Array<string> } | null, latestNonThreadMessage: { messageId: string, channelId: string, threadId: string | null, senderId: string, content: string, createdAt: string, updatedAt: string, deletedAt: string | null, mentions: Array<string> } | null }+ | { __typename: 'GraphqlSoupChannelMessage', channelId: string, senderId: string, content: string, createdAt: string, updatedAt: string, effectiveUpdatedAt: string, replyCount: number, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean }+ | { __typename: 'GraphqlSoupChat', model: string | null, ownerId: string, projectId: string | null, isPersistent: boolean, createdAt: string, updatedAt: string, viewedAt: string | null, deletedAt: string | null, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, chatName: string, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupCrmCompany', description: string | null, emailSync: boolean, hidden: boolean, createdAt: string, updatedAt: string, viewedAt: string | null, domains: Array<string>, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, crmTeamId: string, crmCompanyName: string | null, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupCrmContact', cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, hidden: boolean, firstInteraction: string, lastInteraction: string, createdAt: string, updatedAt: string, viewedAt: string | null, contactTeamId: string, contactCompanyId: string | null, contactCompanyName: string | null, contactEmail: string | null, crmContactName: string | null }+ | { __typename: 'GraphqlSoupDatabaseRow', tableId: string, databaseId: string, position: string, ownerId: string, creatorId: string | null, createdAt: string, updatedAt: string, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupDocument', ownerId: string, fileType: string | null, projectId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, deletedAt: string | null, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, documentName: string, subType:+ | { __typename: 'GraphqlInitiativeDescriptionSubType' }+ | { __typename: 'GraphqlSkillSubType' }+ | { __typename: 'GraphqlSnippetSubType' }+ | { __typename: 'GraphqlTaskSubType', isCompleted: boolean }+ | null, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupEmailThread', providerId: string | null, ownerId: string, inboxVisible: boolean, hasReceivedMail: boolean, linkId: string, latestInboundMessageTs: string | null, latestOutboundMessageTs: string | null, latestNonSpamMessageTs: string | null, reminderReturnedAt: string | null, snippet: string | null, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null, isRead: boolean, isDraft: boolean, isImportant: boolean, isSignal: boolean, projectId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, emailName: string | null, mailDraftState: { baseline: { messageCount: number, inboxVisible: boolean, isRead: boolean, isSignal: boolean, hasCalendarAttachment: boolean, latestInboundMessageTs: string | null, latestNonSpamMessageTs: string | null, latestOutboundMessageTs: string | null, previewTs: string | null, preview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null }, drafts: Array<{ id: string, macroDraft: boolean, facts: { messageCount: number, inboxVisible: boolean, isRead: boolean, isSignal: boolean, hasCalendarAttachment: boolean, latestInboundMessageTs: string | null, latestNonSpamMessageTs: string | null, latestOutboundMessageTs: string | null, previewTs: string | null, preview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null } }> } | null, mailAllPreview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null, mailDraftPreview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null, mailSentPreview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null, participants: Array<{ contactId: string, linkId: string, name: string | null, email: string | null, sfsPhotoUrl: string | null }>, attachments: Array<{ id: string, messageId: string, providerAttachmentId: string | null, filename: string | null, mimeType: string | null, sizeBytes: number | null, contentId: string | null, createdAt: string }>, labels: Array<{ __typename: 'GraphqlSoupEmailLabel', id: string, linkId: string, providerLabelId: string, name: string, createdAt: string, messageListVisibility: string, labelListVisibility: string, type: string }>, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupForeignEntity', foreignEntityId: string, foreignEntitySource: string, storedForId: string, storedForAuthEntity: string, sourceMetadata: unknown, createdAt: string, updatedAt: string, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean }+ | { __typename: 'GraphqlSoupInitiative', cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, metadata: { ownerId: string | null, createdAt: string | null, updatedAt: string | null, viewedAt: string | null }, viewerPermission:+ | { __typename: 'GraphqlAccessLevelPermission', accessLevel: GraphqlEntityAccessLevel }+ | { __typename: 'GraphqlChannelRolePermission' }+ | { __typename: 'GraphqlChannelViewOnlyPermission' }+ | { __typename: 'GraphqlTeamRolePermission' }+ | null, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupProject', ownerId: string, parentId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, deletedAt: string | null, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, projectName: string, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupReminder', cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean }+ , rows: Array<{ id: string, rowType: NotificationInboxRowType, threadId: string | null, revision: string, latestAt: string, unseen: boolean, count: number, actor: { kind: NotificationInboxActorKind, principalId: string | null, name: string | null } | null, actions: Array<{ kind: NotificationInboxRowActionKind, targetId: string | null, url: string | null }>, notifications: Array<{ __typename: 'GraphqlNotification', id: string, eventType: string, entityType: GraphqlSoupEntityType, targetEntityType: GraphqlEntityType, entityId: string, sent: boolean, state: NotificationState, createdAt: string, viewedAt: string | null, updatedAt: string, senderId: string | null, metadata:+ | { __typename: 'GraphqlAgentSessionMentionedMetadata', agentSessionMentionedMentionedBy: string | null, agentSessionMentionedActionId: string, agentSessionMentionedSession: { sessionId: string, sessionName: string, botId: string, botName: string, channelId: string | null, threadId: string | null, announcementMessageId: string | null } }+ | { __typename: 'GraphqlAgentSessionSettledMetadata', agentSessionSettledTurn: number, agentSessionSettledActor: string | null, agentSessionSettledStopReason: string, agentSessionSettledExcerpt: string | null, agentSessionSettledSession: { sessionId: string, sessionName: string, botId: string, botName: string, channelId: string | null, threadId: string | null, announcementMessageId: string | null } }+ | { __typename: 'GraphqlAgentSessionWaitingForInputMetadata', agentSessionWaitingForInputTurn: number, agentSessionWaitingForInputQuestion: string, agentSessionWaitingForInputSession: { sessionId: string, sessionName: string, botId: string, botName: string, channelId: string | null, threadId: string | null, announcementMessageId: string | null } }+ | { __typename: 'GraphqlAiResponseMetadata', aiResponseSummary: string, aiResponseMessageId: string }+ | { __typename: 'GraphqlCalendarEventJoinRequestMetadata', calendarEventJoinRequestRequestId: string, calendarEventJoinRequestEventId: string, calendarEventJoinRequestTitle: string }+ | { __typename: 'GraphqlCalendarEventReminderMetadata', calendarEventReminderEventId: string, calendarEventReminderOccurrenceKey: string, calendarEventReminderTitle: string, calendarEventReminderStartsAt: string | null, calendarEventReminderEndsAt: string | null, calendarEventReminderStartDate: string | null, calendarEventReminderTimeZone: string | null, calendarEventReminderMinutesBefore: number }+ | { __typename: 'GraphqlCallStartedMetadata', callStartedChannelName: string | null, callStartedSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlChannelInviteMetadata', channelInviteInvitedBy: string, channelInviteChannelName: string, channelInviteMessageContent: string | null, channelInviteSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlChannelMentionMetadata', channelMentionHasAttachments: boolean, channelMentionSenderDisplayName: string | null, channelMentionChannelName: string, channelMentionSenderProfilePictureUrl: string | null, channelMentionMessageId: string, channelMentionMessageContent: string, channelMentionThreadId: string | null, channelMentionChannelType: GraphqlNotificationChannelType }+ | { __typename: 'GraphqlChannelMessageReactionMetadata', channelMessageReactionMessageId: string, channelMessageReactionThreadId: string | null, channelMessageReactionMessageContent: string, channelMessageReactionEmoji: string, channelMessageReactionChannelType: GraphqlNotificationChannelType, channelMessageReactionChannelName: string, channelMessageReactionSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlChannelMessageSendMetadata', channelMessageSendMessageContent: string, channelMessageSendHasAttachments: boolean, channelMessageSendSenderDisplayName: string | null, channelMessageSendChannelName: string, channelMessageSendSenderProfilePictureUrl: string | null, channelMessageSendSender: string | null, channelMessageSendMessageId: string, channelMessageSendChannelType: GraphqlNotificationChannelType }+ | { __typename: 'GraphqlChannelReplyMetadata', channelReplyHasAttachments: boolean, channelReplySenderDisplayName: string | null, channelReplyChannelName: string, channelReplySenderProfilePictureUrl: string | null, channelReplyThreadId: string, channelReplyMessageId: string, channelReplyUserId: string | null, channelReplyMessageContent: string, channelReplyThreadParentSenderId: string | null, channelReplyChannelType: GraphqlNotificationChannelType }+ | { __typename: 'GraphqlCommentedOnDocumentMetadata', commentedOnDocumentDocumentName: string, commentedOnDocumentOwner: string, commentedOnDocumentFileType: string | null, commentedOnDocumentSubType: GraphqlNotificationDocumentSubType | null, commentedOnDocumentCommentId: string, commentedOnDocumentThreadId: string, commentedOnDocumentText: string, commentedOnDocumentSenderProfilePictureUrl: string | null, commentedOnDocumentSenderDisplayName: string | null }+ | { __typename: 'GraphqlCrmDiscussionMetadata', crmDiscussionRecordName: string, crmDiscussionReason: GraphqlCrmDiscussionReason, crmDiscussionMessageId: string, crmDiscussionThreadId: string, crmDiscussionText: string, crmDiscussionSenderDisplayName: string | null, crmDiscussionSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlDocumentMentionMetadata', documentMentionDocumentName: string, documentMentionOwner: string, documentMentionFileType: string | null, documentMentionSubType: GraphqlNotificationDocumentSubType | null, documentMentionMessageId: string, documentMentionMessageContent: string, documentMentionHasAttachments: boolean, documentMentionThreadId: string | null, documentMentionSenderDisplayName: string | null, documentMentionChannelType: GraphqlNotificationChannelType, documentMentionChannelName: string, documentMentionSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlEntityAccessGrantedMetadata', entityAccessGrantedRequestId: string, entityAccessGrantedRevision: number, entityAccessGrantedEntityName: string, entityAccessGrantedFileType: string | null, entityAccessGrantedAccessLevel: string }+ | { __typename: 'GraphqlEntityAccessRequestedMetadata', entityAccessRequestedRequestId: string, entityAccessRequestedRevision: number, entityAccessRequestedEntityName: string, entityAccessRequestedFileType: string | null, entityAccessRequestedAccessLevel: string }+ | { __typename: 'GraphqlExternalChatMessageMetadata', externalChatProvider: string, externalChatName: string, externalChatMessageId: string }+ | { __typename: 'GraphqlGithubPrCheckRunMetadata', githubPrCheckRunForeignEntityId: string, githubPrCheckRunGithubKey: string, githubPrCheckRunOwner: string, githubPrCheckRunRepo: string, githubPrCheckRunNumber: string, githubPrCheckRunUrl: string, githubPrCheckRunDisplayName: string, githubPrCheckRunTitle: string, githubPrCheckRunSenderGithubLogin: string | null, githubPrCheckRunSenderGithubUserId: string | null, githubPrCheckRunSenderGithubAvatarUrl: string | null, githubPrCheckRunCheckRunGithubId: string, githubPrCheckRunCheckName: string, githubPrCheckRunCheckStatus: string, githubPrCheckRunConclusion: string, githubPrCheckRunState: GraphqlGithubPrCheckRunState, githubPrCheckRunCheckUrl: string, githubPrCheckRunCompletedAt: string }+ | { __typename: 'GraphqlGithubPrCommentMetadata', githubPrCommentForeignEntityId: string, githubPrCommentGithubKey: string, githubPrCommentOwner: string, githubPrCommentRepo: string, githubPrCommentNumber: string, githubPrCommentUrl: string, githubPrCommentDisplayName: string, githubPrCommentTitle: string, githubPrCommentSenderGithubLogin: string | null, githubPrCommentSenderGithubUserId: string | null, githubPrCommentSenderGithubAvatarUrl: string | null, githubPrCommentCommentKind: GraphqlGithubPrCommentKind, githubPrCommentCommentGithubId: string | null, githubPrCommentCommentUrl: string | null, githubPrCommentCommentSnippet: string }+ | { __typename: 'GraphqlGithubPrMentionMetadata', githubPrMentionForeignEntityId: string, githubPrMentionGithubKey: string, githubPrMentionOwner: string, githubPrMentionRepo: string, githubPrMentionNumber: string, githubPrMentionUrl: string, githubPrMentionDisplayName: string, githubPrMentionTitle: string, githubPrMentionSenderGithubLogin: string | null, githubPrMentionSenderGithubUserId: string | null, githubPrMentionSenderGithubAvatarUrl: string | null, githubPrMentionLocation: GraphqlGithubPrMentionLocation, githubPrMentionCommentGithubId: string | null, githubPrMentionCommentUrl: string | null, githubPrMentionTextSnippet: string }+ | { __typename: 'GraphqlGithubPrReviewMetadata', githubPrReviewForeignEntityId: string, githubPrReviewGithubKey: string, githubPrReviewOwner: string, githubPrReviewRepo: string, githubPrReviewNumber: string, githubPrReviewUrl: string, githubPrReviewDisplayName: string, githubPrReviewTitle: string, githubPrReviewSenderGithubLogin: string | null, githubPrReviewSenderGithubUserId: string | null, githubPrReviewSenderGithubAvatarUrl: string | null, githubPrReviewReviewGithubId: string | null, githubPrReviewReviewUrl: string | null, githubPrReviewState: GraphqlGithubPrReviewState, githubPrReviewReviewSnippet: string | null }+ | { __typename: 'GraphqlGithubPrStatusChangedMetadata', githubPrStatusChangedForeignEntityId: string, githubPrStatusChangedGithubKey: string, githubPrStatusChangedOwner: string, githubPrStatusChangedRepo: string, githubPrStatusChangedNumber: string, githubPrStatusChangedUrl: string, githubPrStatusChangedDisplayName: string, githubPrStatusChangedTitle: string, githubPrStatusChangedSenderGithubLogin: string | null, githubPrStatusChangedSenderGithubUserId: string | null, githubPrStatusChangedSenderGithubAvatarUrl: string | null, githubPrStatusChangedStatus: GraphqlGithubPrEventStatus, githubPrStatusChangedAction: GraphqlGithubPrEventAction, githubPrStatusChangedPreviousStatus: GraphqlGithubPrEventStatus | null, githubPrStatusChangedHeadBranch: string | null, githubPrStatusChangedBaseBranch: string | null, githubPrStatusChangedMergedAt: string | null }+ | { __typename: 'GraphqlGithubReviewRequestedMetadata', githubReviewRequestedForeignEntityId: string, githubReviewRequestedGithubKey: string, githubReviewRequestedOwner: string, githubReviewRequestedRepo: string, githubReviewRequestedNumber: string, githubReviewRequestedUrl: string, githubReviewRequestedDisplayName: string, githubReviewRequestedTitle: string, githubReviewRequestedSenderGithubLogin: string | null, githubReviewRequestedSenderGithubUserId: string | null, githubReviewRequestedSenderGithubAvatarUrl: string | null, githubReviewRequestedRequestedReviewerGithubLogin: string | null, githubReviewRequestedRequestedReviewerGithubUserId: string | null }+ | { __typename: 'GraphqlInboxReauthRequiredMetadata', inboxReauthRequiredEmailAddress: string }+ | { __typename: 'GraphqlInitiativeDiscussionMetadata', initiativeDiscussionProjectName: string, initiativeDiscussionOwner: string, initiativeDiscussionReason: GraphqlInitiativeDiscussionReason, initiativeDiscussionMessageId: string, initiativeDiscussionThreadId: string, initiativeDiscussionText: string, initiativeDiscussionSenderDisplayName: string | null, initiativeDiscussionSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlInviteToTeamMetadata', inviteToTeamTeamName: string, inviteToTeamTeamId: string, inviteToTeamTeamInviteId: string, inviteToTeamInvitedBy: string, inviteToTeamRole: string | null, inviteToTeamSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlMentionedInDocumentCommentMetadata', mentionedInDocumentCommentDocumentName: string, mentionedInDocumentCommentOwner: string, mentionedInDocumentCommentFileType: string | null, mentionedInDocumentCommentSubType: GraphqlNotificationDocumentSubType | null, mentionedInDocumentCommentMentionId: string, mentionedInDocumentCommentCommentId: string, mentionedInDocumentCommentThreadId: string, mentionedInDocumentCommentText: string, mentionedInDocumentCommentSenderProfilePictureUrl: string | null, mentionedInDocumentCommentSenderDisplayName: string | null }+ | { __typename: 'GraphqlNewEmailMetadata', newEmailSender: string | null, newEmailToEmail: string, newEmailThreadId: string, newEmailSubject: string, newEmailSnippet: string }+ | { __typename: 'GraphqlReminderMetadata', reminderReminderId: string, reminderDescription: string, reminderScheduledFor: string | null }+ | { __typename: 'GraphqlRepliedToDocumentCommentThreadMetadata', repliedToDocumentCommentThreadDocumentName: string, repliedToDocumentCommentThreadOwner: string, repliedToDocumentCommentThreadFileType: string | null, repliedToDocumentCommentThreadSubType: GraphqlNotificationDocumentSubType | null, repliedToDocumentCommentThreadCommentId: string, repliedToDocumentCommentThreadThreadId: string, repliedToDocumentCommentThreadText: string, repliedToDocumentCommentThreadSenderProfilePictureUrl: string | null, repliedToDocumentCommentThreadSenderDisplayName: string | null }+ | { __typename: 'GraphqlRoutineRunFinishedMetadata', routineRunFinishedRoutineId: string, routineRunFinishedRoutineName: string, routineRunFinishedSucceeded: boolean }+ | { __typename: 'GraphqlTaskAssignedMetadata', taskAssignedTaskId: string, taskAssignedTaskName: string | null, taskAssignedSubType: GraphqlNotificationDocumentSubType | null, taskAssignedAssignedBy: string, taskAssignedSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlWhatsappGroupMessageMetadata' }+ }> }> } }+ | { __typename: 'NotificationInboxInvalidated', refresh: boolean }+ > } };++export type MarkNotificationInboxRowsSeenMutationVariables = Exact<{+ input: MarkNotificationInboxRowsSeenInput;+}>;+++export type MarkNotificationInboxRowsSeenMutation = { markNotificationInboxRowsSeen: { patches: Array<+ | { __typename: 'NotificationInboxEntryRemoved', groupId: string }+ | { __typename: 'NotificationInboxEntryUpserted', entry: { groupId: string, sortAt: string, entity:+ | { __typename: 'GraphqlSoupAgentSession', cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, archivedBy: GraphqlAgentSessionArchiveCause | null, archivedAt: string | null, ownerId: string, botId: string, harness: string, repoUrl: string | null, repoBranch: string | null, pullRequestUrl: string | null, workingBranch: string | null, pullRequestState: GraphqlAgentPullRequestState | null, pullRequestId: string | null, turnState: string | null, threadId: string | null, source: GraphqlAgentSessionSource, visibility: GraphqlAgentSessionVisibility, status: string, createdAt: string, updatedAt: string, viewedAt: string | null, sessionName: string, bot: { id: string, name: string, avatarUrl: string | null } | null, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupCalendarEvent', time: unknown, conferenceUrl: string | null, isReadOnly: boolean, ownerId: string, createdAt: string, updatedAt: string, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, calendarEventTitle: string, calendarEventStatus: string, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupCall', channelName: string | null, createdBy: string, customName: string | null, summary: string | null, startedAt: string, endedAt: string | null, durationMs: number | null, isActive: boolean, status: string, attended: boolean, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, callChannelId: string | null, participants: Array<{ userId: string, joinedAt: string, leftAt: string | null }>, guests: Array<{ id: string, displayName: string, joinedAt: string, leftAt: string | null }>, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupChannel', channelType: string, ownerId: string, organizationId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, interactedAt: string | null, isParticipant: boolean, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, channelName: string | null, channelTeamId: string | null, participants: Array<{ channelId: string, userId: string, role: string, joinedAt: string, leftAt: string | null }>, latestMessage: { messageId: string, channelId: string, threadId: string | null, senderId: string, content: string, createdAt: string, updatedAt: string, deletedAt: string | null, mentions: Array<string> } | null, latestNonThreadMessage: { messageId: string, channelId: string, threadId: string | null, senderId: string, content: string, createdAt: string, updatedAt: string, deletedAt: string | null, mentions: Array<string> } | null }+ | { __typename: 'GraphqlSoupChannelMessage', channelId: string, senderId: string, content: string, createdAt: string, updatedAt: string, effectiveUpdatedAt: string, replyCount: number, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean }+ | { __typename: 'GraphqlSoupChat', model: string | null, ownerId: string, projectId: string | null, isPersistent: boolean, createdAt: string, updatedAt: string, viewedAt: string | null, deletedAt: string | null, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, chatName: string, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupCrmCompany', description: string | null, emailSync: boolean, hidden: boolean, createdAt: string, updatedAt: string, viewedAt: string | null, domains: Array<string>, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, crmTeamId: string, crmCompanyName: string | null, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupCrmContact', cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, hidden: boolean, firstInteraction: string, lastInteraction: string, createdAt: string, updatedAt: string, viewedAt: string | null, contactTeamId: string, contactCompanyId: string | null, contactCompanyName: string | null, contactEmail: string | null, crmContactName: string | null }+ | { __typename: 'GraphqlSoupDatabaseRow', tableId: string, databaseId: string, position: string, ownerId: string, creatorId: string | null, createdAt: string, updatedAt: string, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupDocument', ownerId: string, fileType: string | null, projectId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, deletedAt: string | null, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, documentName: string, subType:+ | { __typename: 'GraphqlInitiativeDescriptionSubType' }+ | { __typename: 'GraphqlSkillSubType' }+ | { __typename: 'GraphqlSnippetSubType' }+ | { __typename: 'GraphqlTaskSubType', isCompleted: boolean }+ | null, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupEmailThread', providerId: string | null, ownerId: string, inboxVisible: boolean, hasReceivedMail: boolean, linkId: string, latestInboundMessageTs: string | null, latestOutboundMessageTs: string | null, latestNonSpamMessageTs: string | null, reminderReturnedAt: string | null, snippet: string | null, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null, isRead: boolean, isDraft: boolean, isImportant: boolean, isSignal: boolean, projectId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, emailName: string | null, mailDraftState: { baseline: { messageCount: number, inboxVisible: boolean, isRead: boolean, isSignal: boolean, hasCalendarAttachment: boolean, latestInboundMessageTs: string | null, latestNonSpamMessageTs: string | null, latestOutboundMessageTs: string | null, previewTs: string | null, preview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null }, drafts: Array<{ id: string, macroDraft: boolean, facts: { messageCount: number, inboxVisible: boolean, isRead: boolean, isSignal: boolean, hasCalendarAttachment: boolean, latestInboundMessageTs: string | null, latestNonSpamMessageTs: string | null, latestOutboundMessageTs: string | null, previewTs: string | null, preview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null } }> } | null, mailAllPreview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null, mailDraftPreview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null, mailSentPreview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null, participants: Array<{ contactId: string, linkId: string, name: string | null, email: string | null, sfsPhotoUrl: string | null }>, attachments: Array<{ id: string, messageId: string, providerAttachmentId: string | null, filename: string | null, mimeType: string | null, sizeBytes: number | null, contentId: string | null, createdAt: string }>, labels: Array<{ __typename: 'GraphqlSoupEmailLabel', id: string, linkId: string, providerLabelId: string, name: string, createdAt: string, messageListVisibility: string, labelListVisibility: string, type: string }>, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupForeignEntity', foreignEntityId: string, foreignEntitySource: string, storedForId: string, storedForAuthEntity: string, sourceMetadata: unknown, createdAt: string, updatedAt: string, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean }+ | { __typename: 'GraphqlSoupInitiative', cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, metadata: { ownerId: string | null, createdAt: string | null, updatedAt: string | null, viewedAt: string | null }, viewerPermission:+ | { __typename: 'GraphqlAccessLevelPermission', accessLevel: GraphqlEntityAccessLevel }+ | { __typename: 'GraphqlChannelRolePermission' }+ | { __typename: 'GraphqlChannelViewOnlyPermission' }+ | { __typename: 'GraphqlTeamRolePermission' }+ | null, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupProject', ownerId: string, parentId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, deletedAt: string | null, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, projectName: string, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupReminder', cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean }+ , rows: Array<{ id: string, rowType: NotificationInboxRowType, threadId: string | null, revision: string, latestAt: string, unseen: boolean, count: number, actor: { kind: NotificationInboxActorKind, principalId: string | null, name: string | null } | null, actions: Array<{ kind: NotificationInboxRowActionKind, targetId: string | null, url: string | null }>, notifications: Array<{ __typename: 'GraphqlNotification', id: string, eventType: string, entityType: GraphqlSoupEntityType, targetEntityType: GraphqlEntityType, entityId: string, sent: boolean, state: NotificationState, createdAt: string, viewedAt: string | null, updatedAt: string, senderId: string | null, metadata:+ | { __typename: 'GraphqlAgentSessionMentionedMetadata', agentSessionMentionedMentionedBy: string | null, agentSessionMentionedActionId: string, agentSessionMentionedSession: { sessionId: string, sessionName: string, botId: string, botName: string, channelId: string | null, threadId: string | null, announcementMessageId: string | null } }+ | { __typename: 'GraphqlAgentSessionSettledMetadata', agentSessionSettledTurn: number, agentSessionSettledActor: string | null, agentSessionSettledStopReason: string, agentSessionSettledExcerpt: string | null, agentSessionSettledSession: { sessionId: string, sessionName: string, botId: string, botName: string, channelId: string | null, threadId: string | null, announcementMessageId: string | null } }+ | { __typename: 'GraphqlAgentSessionWaitingForInputMetadata', agentSessionWaitingForInputTurn: number, agentSessionWaitingForInputQuestion: string, agentSessionWaitingForInputSession: { sessionId: string, sessionName: string, botId: string, botName: string, channelId: string | null, threadId: string | null, announcementMessageId: string | null } }+ | { __typename: 'GraphqlAiResponseMetadata', aiResponseSummary: string, aiResponseMessageId: string }+ | { __typename: 'GraphqlCalendarEventJoinRequestMetadata', calendarEventJoinRequestRequestId: string, calendarEventJoinRequestEventId: string, calendarEventJoinRequestTitle: string }+ | { __typename: 'GraphqlCalendarEventReminderMetadata', calendarEventReminderEventId: string, calendarEventReminderOccurrenceKey: string, calendarEventReminderTitle: string, calendarEventReminderStartsAt: string | null, calendarEventReminderEndsAt: string | null, calendarEventReminderStartDate: string | null, calendarEventReminderTimeZone: string | null, calendarEventReminderMinutesBefore: number }+ | { __typename: 'GraphqlCallStartedMetadata', callStartedChannelName: string | null, callStartedSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlChannelInviteMetadata', channelInviteInvitedBy: string, channelInviteChannelName: string, channelInviteMessageContent: string | null, channelInviteSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlChannelMentionMetadata', channelMentionHasAttachments: boolean, channelMentionSenderDisplayName: string | null, channelMentionChannelName: string, channelMentionSenderProfilePictureUrl: string | null, channelMentionMessageId: string, channelMentionMessageContent: string, channelMentionThreadId: string | null, channelMentionChannelType: GraphqlNotificationChannelType }+ | { __typename: 'GraphqlChannelMessageReactionMetadata', channelMessageReactionMessageId: string, channelMessageReactionThreadId: string | null, channelMessageReactionMessageContent: string, channelMessageReactionEmoji: string, channelMessageReactionChannelType: GraphqlNotificationChannelType, channelMessageReactionChannelName: string, channelMessageReactionSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlChannelMessageSendMetadata', channelMessageSendMessageContent: string, channelMessageSendHasAttachments: boolean, channelMessageSendSenderDisplayName: string | null, channelMessageSendChannelName: string, channelMessageSendSenderProfilePictureUrl: string | null, channelMessageSendSender: string | null, channelMessageSendMessageId: string, channelMessageSendChannelType: GraphqlNotificationChannelType }+ | { __typename: 'GraphqlChannelReplyMetadata', channelReplyHasAttachments: boolean, channelReplySenderDisplayName: string | null, channelReplyChannelName: string, channelReplySenderProfilePictureUrl: string | null, channelReplyThreadId: string, channelReplyMessageId: string, channelReplyUserId: string | null, channelReplyMessageContent: string, channelReplyThreadParentSenderId: string | null, channelReplyChannelType: GraphqlNotificationChannelType }+ | { __typename: 'GraphqlCommentedOnDocumentMetadata', commentedOnDocumentDocumentName: string, commentedOnDocumentOwner: string, commentedOnDocumentFileType: string | null, commentedOnDocumentSubType: GraphqlNotificationDocumentSubType | null, commentedOnDocumentCommentId: string, commentedOnDocumentThreadId: string, commentedOnDocumentText: string, commentedOnDocumentSenderProfilePictureUrl: string | null, commentedOnDocumentSenderDisplayName: string | null }+ | { __typename: 'GraphqlCrmDiscussionMetadata', crmDiscussionRecordName: string, crmDiscussionReason: GraphqlCrmDiscussionReason, crmDiscussionMessageId: string, crmDiscussionThreadId: string, crmDiscussionText: string, crmDiscussionSenderDisplayName: string | null, crmDiscussionSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlDocumentMentionMetadata', documentMentionDocumentName: string, documentMentionOwner: string, documentMentionFileType: string | null, documentMentionSubType: GraphqlNotificationDocumentSubType | null, documentMentionMessageId: string, documentMentionMessageContent: string, documentMentionHasAttachments: boolean, documentMentionThreadId: string | null, documentMentionSenderDisplayName: string | null, documentMentionChannelType: GraphqlNotificationChannelType, documentMentionChannelName: string, documentMentionSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlEntityAccessGrantedMetadata', entityAccessGrantedRequestId: string, entityAccessGrantedRevision: number, entityAccessGrantedEntityName: string, entityAccessGrantedFileType: string | null, entityAccessGrantedAccessLevel: string }+ | { __typename: 'GraphqlEntityAccessRequestedMetadata', entityAccessRequestedRequestId: string, entityAccessRequestedRevision: number, entityAccessRequestedEntityName: string, entityAccessRequestedFileType: string | null, entityAccessRequestedAccessLevel: string }+ | { __typename: 'GraphqlExternalChatMessageMetadata', externalChatProvider: string, externalChatName: string, externalChatMessageId: string }+ | { __typename: 'GraphqlGithubPrCheckRunMetadata', githubPrCheckRunForeignEntityId: string, githubPrCheckRunGithubKey: string, githubPrCheckRunOwner: string, githubPrCheckRunRepo: string, githubPrCheckRunNumber: string, githubPrCheckRunUrl: string, githubPrCheckRunDisplayName: string, githubPrCheckRunTitle: string, githubPrCheckRunSenderGithubLogin: string | null, githubPrCheckRunSenderGithubUserId: string | null, githubPrCheckRunSenderGithubAvatarUrl: string | null, githubPrCheckRunCheckRunGithubId: string, githubPrCheckRunCheckName: string, githubPrCheckRunCheckStatus: string, githubPrCheckRunConclusion: string, githubPrCheckRunState: GraphqlGithubPrCheckRunState, githubPrCheckRunCheckUrl: string, githubPrCheckRunCompletedAt: string }+ | { __typename: 'GraphqlGithubPrCommentMetadata', githubPrCommentForeignEntityId: string, githubPrCommentGithubKey: string, githubPrCommentOwner: string, githubPrCommentRepo: string, githubPrCommentNumber: string, githubPrCommentUrl: string, githubPrCommentDisplayName: string, githubPrCommentTitle: string, githubPrCommentSenderGithubLogin: string | null, githubPrCommentSenderGithubUserId: string | null, githubPrCommentSenderGithubAvatarUrl: string | null, githubPrCommentCommentKind: GraphqlGithubPrCommentKind, githubPrCommentCommentGithubId: string | null, githubPrCommentCommentUrl: string | null, githubPrCommentCommentSnippet: string }+ | { __typename: 'GraphqlGithubPrMentionMetadata', githubPrMentionForeignEntityId: string, githubPrMentionGithubKey: string, githubPrMentionOwner: string, githubPrMentionRepo: string, githubPrMentionNumber: string, githubPrMentionUrl: string, githubPrMentionDisplayName: string, githubPrMentionTitle: string, githubPrMentionSenderGithubLogin: string | null, githubPrMentionSenderGithubUserId: string | null, githubPrMentionSenderGithubAvatarUrl: string | null, githubPrMentionLocation: GraphqlGithubPrMentionLocation, githubPrMentionCommentGithubId: string | null, githubPrMentionCommentUrl: string | null, githubPrMentionTextSnippet: string }+ | { __typename: 'GraphqlGithubPrReviewMetadata', githubPrReviewForeignEntityId: string, githubPrReviewGithubKey: string, githubPrReviewOwner: string, githubPrReviewRepo: string, githubPrReviewNumber: string, githubPrReviewUrl: string, githubPrReviewDisplayName: string, githubPrReviewTitle: string, githubPrReviewSenderGithubLogin: string | null, githubPrReviewSenderGithubUserId: string | null, githubPrReviewSenderGithubAvatarUrl: string | null, githubPrReviewReviewGithubId: string | null, githubPrReviewReviewUrl: string | null, githubPrReviewState: GraphqlGithubPrReviewState, githubPrReviewReviewSnippet: string | null }+ | { __typename: 'GraphqlGithubPrStatusChangedMetadata', githubPrStatusChangedForeignEntityId: string, githubPrStatusChangedGithubKey: string, githubPrStatusChangedOwner: string, githubPrStatusChangedRepo: string, githubPrStatusChangedNumber: string, githubPrStatusChangedUrl: string, githubPrStatusChangedDisplayName: string, githubPrStatusChangedTitle: string, githubPrStatusChangedSenderGithubLogin: string | null, githubPrStatusChangedSenderGithubUserId: string | null, githubPrStatusChangedSenderGithubAvatarUrl: string | null, githubPrStatusChangedStatus: GraphqlGithubPrEventStatus, githubPrStatusChangedAction: GraphqlGithubPrEventAction, githubPrStatusChangedPreviousStatus: GraphqlGithubPrEventStatus | null, githubPrStatusChangedHeadBranch: string | null, githubPrStatusChangedBaseBranch: string | null, githubPrStatusChangedMergedAt: string | null }+ | { __typename: 'GraphqlGithubReviewRequestedMetadata', githubReviewRequestedForeignEntityId: string, githubReviewRequestedGithubKey: string, githubReviewRequestedOwner: string, githubReviewRequestedRepo: string, githubReviewRequestedNumber: string, githubReviewRequestedUrl: string, githubReviewRequestedDisplayName: string, githubReviewRequestedTitle: string, githubReviewRequestedSenderGithubLogin: string | null, githubReviewRequestedSenderGithubUserId: string | null, githubReviewRequestedSenderGithubAvatarUrl: string | null, githubReviewRequestedRequestedReviewerGithubLogin: string | null, githubReviewRequestedRequestedReviewerGithubUserId: string | null }+ | { __typename: 'GraphqlInboxReauthRequiredMetadata', inboxReauthRequiredEmailAddress: string }+ | { __typename: 'GraphqlInitiativeDiscussionMetadata', initiativeDiscussionProjectName: string, initiativeDiscussionOwner: string, initiativeDiscussionReason: GraphqlInitiativeDiscussionReason, initiativeDiscussionMessageId: string, initiativeDiscussionThreadId: string, initiativeDiscussionText: string, initiativeDiscussionSenderDisplayName: string | null, initiativeDiscussionSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlInviteToTeamMetadata', inviteToTeamTeamName: string, inviteToTeamTeamId: string, inviteToTeamTeamInviteId: string, inviteToTeamInvitedBy: string, inviteToTeamRole: string | null, inviteToTeamSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlMentionedInDocumentCommentMetadata', mentionedInDocumentCommentDocumentName: string, mentionedInDocumentCommentOwner: string, mentionedInDocumentCommentFileType: string | null, mentionedInDocumentCommentSubType: GraphqlNotificationDocumentSubType | null, mentionedInDocumentCommentMentionId: string, mentionedInDocumentCommentCommentId: string, mentionedInDocumentCommentThreadId: string, mentionedInDocumentCommentText: string, mentionedInDocumentCommentSenderProfilePictureUrl: string | null, mentionedInDocumentCommentSenderDisplayName: string | null }+ | { __typename: 'GraphqlNewEmailMetadata', newEmailSender: string | null, newEmailToEmail: string, newEmailThreadId: string, newEmailSubject: string, newEmailSnippet: string }+ | { __typename: 'GraphqlReminderMetadata', reminderReminderId: string, reminderDescription: string, reminderScheduledFor: string | null }+ | { __typename: 'GraphqlRepliedToDocumentCommentThreadMetadata', repliedToDocumentCommentThreadDocumentName: string, repliedToDocumentCommentThreadOwner: string, repliedToDocumentCommentThreadFileType: string | null, repliedToDocumentCommentThreadSubType: GraphqlNotificationDocumentSubType | null, repliedToDocumentCommentThreadCommentId: string, repliedToDocumentCommentThreadThreadId: string, repliedToDocumentCommentThreadText: string, repliedToDocumentCommentThreadSenderProfilePictureUrl: string | null, repliedToDocumentCommentThreadSenderDisplayName: string | null }+ | { __typename: 'GraphqlRoutineRunFinishedMetadata', routineRunFinishedRoutineId: string, routineRunFinishedRoutineName: string, routineRunFinishedSucceeded: boolean }+ | { __typename: 'GraphqlTaskAssignedMetadata', taskAssignedTaskId: string, taskAssignedTaskName: string | null, taskAssignedSubType: GraphqlNotificationDocumentSubType | null, taskAssignedAssignedBy: string, taskAssignedSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlWhatsappGroupMessageMetadata' }+ }> }> } }+ | { __typename: 'NotificationInboxInvalidated', refresh: boolean }+ > } };++export type NotificationInboxUpdatesSubscriptionVariables = Exact<{+ scope?: NotificationInboxScopeInput | null | undefined;+}>;+++export type NotificationInboxUpdatesSubscription = { notificationInboxUpdates: Array<+ | { __typename: 'NotificationInboxEntryRemoved', groupId: string }+ | { __typename: 'NotificationInboxEntryUpserted', entry: { groupId: string, sortAt: string, entity:+ | { __typename: 'GraphqlSoupAgentSession', cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, archivedBy: GraphqlAgentSessionArchiveCause | null, archivedAt: string | null, ownerId: string, botId: string, harness: string, repoUrl: string | null, repoBranch: string | null, pullRequestUrl: string | null, workingBranch: string | null, pullRequestState: GraphqlAgentPullRequestState | null, pullRequestId: string | null, turnState: string | null, threadId: string | null, source: GraphqlAgentSessionSource, visibility: GraphqlAgentSessionVisibility, status: string, createdAt: string, updatedAt: string, viewedAt: string | null, sessionName: string, bot: { id: string, name: string, avatarUrl: string | null } | null, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupCalendarEvent', time: unknown, conferenceUrl: string | null, isReadOnly: boolean, ownerId: string, createdAt: string, updatedAt: string, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, calendarEventTitle: string, calendarEventStatus: string, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupCall', channelName: string | null, createdBy: string, customName: string | null, summary: string | null, startedAt: string, endedAt: string | null, durationMs: number | null, isActive: boolean, status: string, attended: boolean, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, callChannelId: string | null, participants: Array<{ userId: string, joinedAt: string, leftAt: string | null }>, guests: Array<{ id: string, displayName: string, joinedAt: string, leftAt: string | null }>, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupChannel', channelType: string, ownerId: string, organizationId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, interactedAt: string | null, isParticipant: boolean, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, channelName: string | null, channelTeamId: string | null, participants: Array<{ channelId: string, userId: string, role: string, joinedAt: string, leftAt: string | null }>, latestMessage: { messageId: string, channelId: string, threadId: string | null, senderId: string, content: string, createdAt: string, updatedAt: string, deletedAt: string | null, mentions: Array<string> } | null, latestNonThreadMessage: { messageId: string, channelId: string, threadId: string | null, senderId: string, content: string, createdAt: string, updatedAt: string, deletedAt: string | null, mentions: Array<string> } | null }+ | { __typename: 'GraphqlSoupChannelMessage', channelId: string, senderId: string, content: string, createdAt: string, updatedAt: string, effectiveUpdatedAt: string, replyCount: number, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean }+ | { __typename: 'GraphqlSoupChat', model: string | null, ownerId: string, projectId: string | null, isPersistent: boolean, createdAt: string, updatedAt: string, viewedAt: string | null, deletedAt: string | null, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, chatName: string, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupCrmCompany', description: string | null, emailSync: boolean, hidden: boolean, createdAt: string, updatedAt: string, viewedAt: string | null, domains: Array<string>, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, crmTeamId: string, crmCompanyName: string | null, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupCrmContact', cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, hidden: boolean, firstInteraction: string, lastInteraction: string, createdAt: string, updatedAt: string, viewedAt: string | null, contactTeamId: string, contactCompanyId: string | null, contactCompanyName: string | null, contactEmail: string | null, crmContactName: string | null }+ | { __typename: 'GraphqlSoupDatabaseRow', tableId: string, databaseId: string, position: string, ownerId: string, creatorId: string | null, createdAt: string, updatedAt: string, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupDocument', ownerId: string, fileType: string | null, projectId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, deletedAt: string | null, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, documentName: string, subType:+ | { __typename: 'GraphqlInitiativeDescriptionSubType' }+ | { __typename: 'GraphqlSkillSubType' }+ | { __typename: 'GraphqlSnippetSubType' }+ | { __typename: 'GraphqlTaskSubType', isCompleted: boolean }+ | null, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupEmailThread', providerId: string | null, ownerId: string, inboxVisible: boolean, hasReceivedMail: boolean, linkId: string, latestInboundMessageTs: string | null, latestOutboundMessageTs: string | null, latestNonSpamMessageTs: string | null, reminderReturnedAt: string | null, snippet: string | null, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null, isRead: boolean, isDraft: boolean, isImportant: boolean, isSignal: boolean, projectId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, emailName: string | null, mailDraftState: { baseline: { messageCount: number, inboxVisible: boolean, isRead: boolean, isSignal: boolean, hasCalendarAttachment: boolean, latestInboundMessageTs: string | null, latestNonSpamMessageTs: string | null, latestOutboundMessageTs: string | null, previewTs: string | null, preview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null }, drafts: Array<{ id: string, macroDraft: boolean, facts: { messageCount: number, inboxVisible: boolean, isRead: boolean, isSignal: boolean, hasCalendarAttachment: boolean, latestInboundMessageTs: string | null, latestNonSpamMessageTs: string | null, latestOutboundMessageTs: string | null, previewTs: string | null, preview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null } }> } | null, mailAllPreview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null, mailDraftPreview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null, mailSentPreview: { id: string, subject: string | null, snippet: string | null, isDraft: boolean, senderEmail: string | null, senderName: string | null, senderPhotoUrl: string | null } | null, participants: Array<{ contactId: string, linkId: string, name: string | null, email: string | null, sfsPhotoUrl: string | null }>, attachments: Array<{ id: string, messageId: string, providerAttachmentId: string | null, filename: string | null, mimeType: string | null, sizeBytes: number | null, contentId: string | null, createdAt: string }>, labels: Array<{ __typename: 'GraphqlSoupEmailLabel', id: string, linkId: string, providerLabelId: string, name: string, createdAt: string, messageListVisibility: string, labelListVisibility: string, type: string }>, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupForeignEntity', foreignEntityId: string, foreignEntitySource: string, storedForId: string, storedForAuthEntity: string, sourceMetadata: unknown, createdAt: string, updatedAt: string, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean }+ | { __typename: 'GraphqlSoupInitiative', cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, metadata: { ownerId: string | null, createdAt: string | null, updatedAt: string | null, viewedAt: string | null }, viewerPermission:+ | { __typename: 'GraphqlAccessLevelPermission', accessLevel: GraphqlEntityAccessLevel }+ | { __typename: 'GraphqlChannelRolePermission' }+ | { __typename: 'GraphqlChannelViewOnlyPermission' }+ | { __typename: 'GraphqlTeamRolePermission' }+ | null, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupProject', ownerId: string, parentId: string | null, createdAt: string, updatedAt: string, viewedAt: string | null, deletedAt: string | null, cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean, projectName: string, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlDateRangePropertyValue', rangeStart: string, rangeEnd: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }> }+ | { __typename: 'GraphqlSoupReminder', cacheProjection: string | null, frecencyScore: number | null, id: string, entityType: GraphqlSoupEntityType, displayName: string | null, isFavorited: boolean }+ , rows: Array<{ id: string, rowType: NotificationInboxRowType, threadId: string | null, revision: string, latestAt: string, unseen: boolean, count: number, actor: { kind: NotificationInboxActorKind, principalId: string | null, name: string | null } | null, actions: Array<{ kind: NotificationInboxRowActionKind, targetId: string | null, url: string | null }>, notifications: Array<{ __typename: 'GraphqlNotification', id: string, eventType: string, entityType: GraphqlSoupEntityType, targetEntityType: GraphqlEntityType, entityId: string, sent: boolean, state: NotificationState, createdAt: string, viewedAt: string | null, updatedAt: string, senderId: string | null, metadata:+ | { __typename: 'GraphqlAgentSessionMentionedMetadata', agentSessionMentionedMentionedBy: string | null, agentSessionMentionedActionId: string, agentSessionMentionedSession: { sessionId: string, sessionName: string, botId: string, botName: string, channelId: string | null, threadId: string | null, announcementMessageId: string | null } }+ | { __typename: 'GraphqlAgentSessionSettledMetadata', agentSessionSettledTurn: number, agentSessionSettledActor: string | null, agentSessionSettledStopReason: string, agentSessionSettledExcerpt: string | null, agentSessionSettledSession: { sessionId: string, sessionName: string, botId: string, botName: string, channelId: string | null, threadId: string | null, announcementMessageId: string | null } }+ | { __typename: 'GraphqlAgentSessionWaitingForInputMetadata', agentSessionWaitingForInputTurn: number, agentSessionWaitingForInputQuestion: string, agentSessionWaitingForInputSession: { sessionId: string, sessionName: string, botId: string, botName: string, channelId: string | null, threadId: string | null, announcementMessageId: string | null } }+ | { __typename: 'GraphqlAiResponseMetadata', aiResponseSummary: string, aiResponseMessageId: string }+ | { __typename: 'GraphqlCalendarEventJoinRequestMetadata', calendarEventJoinRequestRequestId: string, calendarEventJoinRequestEventId: string, calendarEventJoinRequestTitle: string }+ | { __typename: 'GraphqlCalendarEventReminderMetadata', calendarEventReminderEventId: string, calendarEventReminderOccurrenceKey: string, calendarEventReminderTitle: string, calendarEventReminderStartsAt: string | null, calendarEventReminderEndsAt: string | null, calendarEventReminderStartDate: string | null, calendarEventReminderTimeZone: string | null, calendarEventReminderMinutesBefore: number }+ | { __typename: 'GraphqlCallStartedMetadata', callStartedChannelName: string | null, callStartedSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlChannelInviteMetadata', channelInviteInvitedBy: string, channelInviteChannelName: string, channelInviteMessageContent: string | null, channelInviteSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlChannelMentionMetadata', channelMentionHasAttachments: boolean, channelMentionSenderDisplayName: string | null, channelMentionChannelName: string, channelMentionSenderProfilePictureUrl: string | null, channelMentionMessageId: string, channelMentionMessageContent: string, channelMentionThreadId: string | null, channelMentionChannelType: GraphqlNotificationChannelType }+ | { __typename: 'GraphqlChannelMessageReactionMetadata', channelMessageReactionMessageId: string, channelMessageReactionThreadId: string | null, channelMessageReactionMessageContent: string, channelMessageReactionEmoji: string, channelMessageReactionChannelType: GraphqlNotificationChannelType, channelMessageReactionChannelName: string, channelMessageReactionSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlChannelMessageSendMetadata', channelMessageSendMessageContent: string, channelMessageSendHasAttachments: boolean, channelMessageSendSenderDisplayName: string | null, channelMessageSendChannelName: string, channelMessageSendSenderProfilePictureUrl: string | null, channelMessageSendSender: string | null, channelMessageSendMessageId: string, channelMessageSendChannelType: GraphqlNotificationChannelType }+ | { __typename: 'GraphqlChannelReplyMetadata', channelReplyHasAttachments: boolean, channelReplySenderDisplayName: string | null, channelReplyChannelName: string, channelReplySenderProfilePictureUrl: string | null, channelReplyThreadId: string, channelReplyMessageId: string, channelReplyUserId: string | null, channelReplyMessageContent: string, channelReplyThreadParentSenderId: string | null, channelReplyChannelType: GraphqlNotificationChannelType }+ | { __typename: 'GraphqlCommentedOnDocumentMetadata', commentedOnDocumentDocumentName: string, commentedOnDocumentOwner: string, commentedOnDocumentFileType: string | null, commentedOnDocumentSubType: GraphqlNotificationDocumentSubType | null, commentedOnDocumentCommentId: string, commentedOnDocumentThreadId: string, commentedOnDocumentText: string, commentedOnDocumentSenderProfilePictureUrl: string | null, commentedOnDocumentSenderDisplayName: string | null }+ | { __typename: 'GraphqlCrmDiscussionMetadata', crmDiscussionRecordName: string, crmDiscussionReason: GraphqlCrmDiscussionReason, crmDiscussionMessageId: string, crmDiscussionThreadId: string, crmDiscussionText: string, crmDiscussionSenderDisplayName: string | null, crmDiscussionSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlDocumentMentionMetadata', documentMentionDocumentName: string, documentMentionOwner: string, documentMentionFileType: string | null, documentMentionSubType: GraphqlNotificationDocumentSubType | null, documentMentionMessageId: string, documentMentionMessageContent: string, documentMentionHasAttachments: boolean, documentMentionThreadId: string | null, documentMentionSenderDisplayName: string | null, documentMentionChannelType: GraphqlNotificationChannelType, documentMentionChannelName: string, documentMentionSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlEntityAccessGrantedMetadata', entityAccessGrantedRequestId: string, entityAccessGrantedRevision: number, entityAccessGrantedEntityName: string, entityAccessGrantedFileType: string | null, entityAccessGrantedAccessLevel: string }+ | { __typename: 'GraphqlEntityAccessRequestedMetadata', entityAccessRequestedRequestId: string, entityAccessRequestedRevision: number, entityAccessRequestedEntityName: string, entityAccessRequestedFileType: string | null, entityAccessRequestedAccessLevel: string }+ | { __typename: 'GraphqlExternalChatMessageMetadata', externalChatProvider: string, externalChatName: string, externalChatMessageId: string }+ | { __typename: 'GraphqlGithubPrCheckRunMetadata', githubPrCheckRunForeignEntityId: string, githubPrCheckRunGithubKey: string, githubPrCheckRunOwner: string, githubPrCheckRunRepo: string, githubPrCheckRunNumber: string, githubPrCheckRunUrl: string, githubPrCheckRunDisplayName: string, githubPrCheckRunTitle: string, githubPrCheckRunSenderGithubLogin: string | null, githubPrCheckRunSenderGithubUserId: string | null, githubPrCheckRunSenderGithubAvatarUrl: string | null, githubPrCheckRunCheckRunGithubId: string, githubPrCheckRunCheckName: string, githubPrCheckRunCheckStatus: string, githubPrCheckRunConclusion: string, githubPrCheckRunState: GraphqlGithubPrCheckRunState, githubPrCheckRunCheckUrl: string, githubPrCheckRunCompletedAt: string }+ | { __typename: 'GraphqlGithubPrCommentMetadata', githubPrCommentForeignEntityId: string, githubPrCommentGithubKey: string, githubPrCommentOwner: string, githubPrCommentRepo: string, githubPrCommentNumber: string, githubPrCommentUrl: string, githubPrCommentDisplayName: string, githubPrCommentTitle: string, githubPrCommentSenderGithubLogin: string | null, githubPrCommentSenderGithubUserId: string | null, githubPrCommentSenderGithubAvatarUrl: string | null, githubPrCommentCommentKind: GraphqlGithubPrCommentKind, githubPrCommentCommentGithubId: string | null, githubPrCommentCommentUrl: string | null, githubPrCommentCommentSnippet: string }+ | { __typename: 'GraphqlGithubPrMentionMetadata', githubPrMentionForeignEntityId: string, githubPrMentionGithubKey: string, githubPrMentionOwner: string, githubPrMentionRepo: string, githubPrMentionNumber: string, githubPrMentionUrl: string, githubPrMentionDisplayName: string, githubPrMentionTitle: string, githubPrMentionSenderGithubLogin: string | null, githubPrMentionSenderGithubUserId: string | null, githubPrMentionSenderGithubAvatarUrl: string | null, githubPrMentionLocation: GraphqlGithubPrMentionLocation, githubPrMentionCommentGithubId: string | null, githubPrMentionCommentUrl: string | null, githubPrMentionTextSnippet: string }+ | { __typename: 'GraphqlGithubPrReviewMetadata', githubPrReviewForeignEntityId: string, githubPrReviewGithubKey: string, githubPrReviewOwner: string, githubPrReviewRepo: string, githubPrReviewNumber: string, githubPrReviewUrl: string, githubPrReviewDisplayName: string, githubPrReviewTitle: string, githubPrReviewSenderGithubLogin: string | null, githubPrReviewSenderGithubUserId: string | null, githubPrReviewSenderGithubAvatarUrl: string | null, githubPrReviewReviewGithubId: string | null, githubPrReviewReviewUrl: string | null, githubPrReviewState: GraphqlGithubPrReviewState, githubPrReviewReviewSnippet: string | null }+ | { __typename: 'GraphqlGithubPrStatusChangedMetadata', githubPrStatusChangedForeignEntityId: string, githubPrStatusChangedGithubKey: string, githubPrStatusChangedOwner: string, githubPrStatusChangedRepo: string, githubPrStatusChangedNumber: string, githubPrStatusChangedUrl: string, githubPrStatusChangedDisplayName: string, githubPrStatusChangedTitle: string, githubPrStatusChangedSenderGithubLogin: string | null, githubPrStatusChangedSenderGithubUserId: string | null, githubPrStatusChangedSenderGithubAvatarUrl: string | null, githubPrStatusChangedStatus: GraphqlGithubPrEventStatus, githubPrStatusChangedAction: GraphqlGithubPrEventAction, githubPrStatusChangedPreviousStatus: GraphqlGithubPrEventStatus | null, githubPrStatusChangedHeadBranch: string | null, githubPrStatusChangedBaseBranch: string | null, githubPrStatusChangedMergedAt: string | null }+ | { __typename: 'GraphqlGithubReviewRequestedMetadata', githubReviewRequestedForeignEntityId: string, githubReviewRequestedGithubKey: string, githubReviewRequestedOwner: string, githubReviewRequestedRepo: string, githubReviewRequestedNumber: string, githubReviewRequestedUrl: string, githubReviewRequestedDisplayName: string, githubReviewRequestedTitle: string, githubReviewRequestedSenderGithubLogin: string | null, githubReviewRequestedSenderGithubUserId: string | null, githubReviewRequestedSenderGithubAvatarUrl: string | null, githubReviewRequestedRequestedReviewerGithubLogin: string | null, githubReviewRequestedRequestedReviewerGithubUserId: string | null }+ | { __typename: 'GraphqlInboxReauthRequiredMetadata', inboxReauthRequiredEmailAddress: string }+ | { __typename: 'GraphqlInitiativeDiscussionMetadata', initiativeDiscussionProjectName: string, initiativeDiscussionOwner: string, initiativeDiscussionReason: GraphqlInitiativeDiscussionReason, initiativeDiscussionMessageId: string, initiativeDiscussionThreadId: string, initiativeDiscussionText: string, initiativeDiscussionSenderDisplayName: string | null, initiativeDiscussionSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlInviteToTeamMetadata', inviteToTeamTeamName: string, inviteToTeamTeamId: string, inviteToTeamTeamInviteId: string, inviteToTeamInvitedBy: string, inviteToTeamRole: string | null, inviteToTeamSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlMentionedInDocumentCommentMetadata', mentionedInDocumentCommentDocumentName: string, mentionedInDocumentCommentOwner: string, mentionedInDocumentCommentFileType: string | null, mentionedInDocumentCommentSubType: GraphqlNotificationDocumentSubType | null, mentionedInDocumentCommentMentionId: string, mentionedInDocumentCommentCommentId: string, mentionedInDocumentCommentThreadId: string, mentionedInDocumentCommentText: string, mentionedInDocumentCommentSenderProfilePictureUrl: string | null, mentionedInDocumentCommentSenderDisplayName: string | null }+ | { __typename: 'GraphqlNewEmailMetadata', newEmailSender: string | null, newEmailToEmail: string, newEmailThreadId: string, newEmailSubject: string, newEmailSnippet: string }+ | { __typename: 'GraphqlReminderMetadata', reminderReminderId: string, reminderDescription: string, reminderScheduledFor: string | null }+ | { __typename: 'GraphqlRepliedToDocumentCommentThreadMetadata', repliedToDocumentCommentThreadDocumentName: string, repliedToDocumentCommentThreadOwner: string, repliedToDocumentCommentThreadFileType: string | null, repliedToDocumentCommentThreadSubType: GraphqlNotificationDocumentSubType | null, repliedToDocumentCommentThreadCommentId: string, repliedToDocumentCommentThreadThreadId: string, repliedToDocumentCommentThreadText: string, repliedToDocumentCommentThreadSenderProfilePictureUrl: string | null, repliedToDocumentCommentThreadSenderDisplayName: string | null }+ | { __typename: 'GraphqlRoutineRunFinishedMetadata', routineRunFinishedRoutineId: string, routineRunFinishedRoutineName: string, routineRunFinishedSucceeded: boolean }+ | { __typename: 'GraphqlTaskAssignedMetadata', taskAssignedTaskId: string, taskAssignedTaskName: string | null, taskAssignedSubType: GraphqlNotificationDocumentSubType | null, taskAssignedAssignedBy: string, taskAssignedSenderProfilePictureUrl: string | null }+ | { __typename: 'GraphqlWhatsappGroupMessageMetadata' }+ }> }> } }+ | { __typename: 'NotificationInboxInvalidated', refresh: boolean }+ > };+export type NotificationStateCacheWriteSubscriptionVariables = Exact<{ [key: string]: never; }>;@@ -22631,6 +23722,8 @@ export const GraphqlChannelQuickAccessFieldsFragmentDoc = {"kind":"Document","deexport const InitiativeIdentityFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"InitiativeIdentityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupInitiative"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"viewerPermission"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAccessLevelPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}}]}}]}}]}}]} as unknown as DocumentNode<InitiativeIdentityFieldsFragment, unknown>;export const InitiativeQuickAccessFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"InitiativeQuickAccessFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupInitiative"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode<InitiativeQuickAccessFieldsFragment, unknown>;export const InitiativeDetailFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"InitiativeDetailFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupInitiative"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewerPermission"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAccessLevelPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taskCount"}},{"kind":"Field","name":{"kind":"Name","value":"completedTaskCount"}},{"kind":"Field","name":{"kind":"Name","value":"memberIds"}},{"kind":"Field","name":{"kind":"Name","value":"taskIds"}},{"kind":"Field","name":{"kind":"Name","value":"sharePermission"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"owner"}},{"kind":"Field","name":{"kind":"Name","value":"linkShare"}},{"kind":"Field","name":{"kind":"Name","value":"linkShareAccessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"teamShareAccessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"channelSharePermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPropertyValueFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlBooleanPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"boolValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNumberPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"numberValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlStringPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"stringValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDatePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"dateValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDateRangePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"rangeStart"},"name":{"kind":"Name","value":"start"}},{"kind":"Field","alias":{"kind":"Name","value":"rangeEnd"},"name":{"kind":"Name","value":"end"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSelectOptionPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"optionIds"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityReferencePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"references"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"specificMessageId"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlLinkPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"urls"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPropertyFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlProperty"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"propertyDefinitionId"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"isMultiSelect"}},{"kind":"Field","name":{"kind":"Name","value":"specificEntityType"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isMetadata"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyValueFields"}}]}}]}}]} as unknown as DocumentNode<InitiativeDetailFieldsFragment, unknown>;+export const NotificationInboxEntryFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NotificationInboxEntryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotificationInboxEntry"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"groupId"}},{"kind":"Field","name":{"kind":"Name","value":"sortAt"}},{"kind":"Field","name":{"kind":"Name","value":"entity"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupItemPreviewFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rows"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"rowType"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"revision"}},{"kind":"Field","name":{"kind":"Name","value":"latestAt"}},{"kind":"Field","name":{"kind":"Name","value":"actor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"principalId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"actions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"targetId"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"Field","name":{"kind":"Name","value":"unseen"}},{"kind":"Field","name":{"kind":"Name","value":"count"}},{"kind":"Field","name":{"kind":"Name","value":"notifications"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"20"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupEntityIdentityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"isFavorited"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPropertyValueFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlBooleanPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"boolValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNumberPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"numberValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlStringPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"stringValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDatePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"dateValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDateRangePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"rangeStart"},"name":{"kind":"Name","value":"start"}},{"kind":"Field","alias":{"kind":"Name","value":"rangeEnd"},"name":{"kind":"Name","value":"end"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSelectOptionPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"optionIds"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityReferencePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"references"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"specificMessageId"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlLinkPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"urls"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPropertyFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlProperty"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"propertyDefinitionId"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"isMultiSelect"}},{"kind":"Field","name":{"kind":"Name","value":"specificEntityType"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isMetadata"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyValueFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupAgentSessionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupAgentSession"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"sessionName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"archivedBy"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"harness"}},{"kind":"Field","name":{"kind":"Name","value":"repoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"repoBranch"}},{"kind":"Field","name":{"kind":"Name","value":"pullRequestUrl"}},{"kind":"Field","name":{"kind":"Name","value":"workingBranch"}},{"kind":"Field","name":{"kind":"Name","value":"pullRequestState"}},{"kind":"Field","name":{"kind":"Name","value":"pullRequestId"}},{"kind":"Field","name":{"kind":"Name","value":"turnState"}},{"kind":"Field","name":{"kind":"Name","value":"bot"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"source"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MailPreviewFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMailPreviewMessage"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"subject"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"isDraft"}},{"kind":"Field","name":{"kind":"Name","value":"senderEmail"}},{"kind":"Field","name":{"kind":"Name","value":"senderName"}},{"kind":"Field","name":{"kind":"Name","value":"senderPhotoUrl"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailDraftAggregateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMailDraftAggregate"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"messageCount"}},{"kind":"Field","name":{"kind":"Name","value":"inboxVisible"}},{"kind":"Field","name":{"kind":"Name","value":"isRead"}},{"kind":"Field","name":{"kind":"Name","value":"isSignal"}},{"kind":"Field","name":{"kind":"Name","value":"hasCalendarAttachment"}},{"kind":"Field","name":{"kind":"Name","value":"latestInboundMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"latestNonSpamMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"latestOutboundMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"previewTs"}},{"kind":"Field","name":{"kind":"Name","value":"preview"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MailPreviewFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailDraftStateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMailDraftState"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"baseline"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailDraftAggregateFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"drafts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"macroDraft"}},{"kind":"Field","name":{"kind":"Name","value":"facts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailDraftAggregateFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupChannelMessageFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannelMessagePreview"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"messageId"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"mentions"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"GraphqlCrmContactFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCrmContact"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","alias":{"kind":"Name","value":"contactTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"contactCompanyId"},"name":{"kind":"Name","value":"parentCompanyId"}},{"kind":"Field","alias":{"kind":"Name","value":"contactCompanyName"},"name":{"kind":"Name","value":"parentCompanyName"}},{"kind":"Field","alias":{"kind":"Name","value":"contactEmail"},"name":{"kind":"Name","value":"emailAddress"}},{"kind":"Field","alias":{"kind":"Name","value":"crmContactName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"hidden"}},{"kind":"Field","name":{"kind":"Name","value":"firstInteraction"}},{"kind":"Field","name":{"kind":"Name","value":"lastInteraction"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationStateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventType"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"targetEntityType"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"sent"}},{"kind":"Field","name":{"kind":"Name","value":"state"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationNavigationMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotifEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlExternalChatMessageMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"externalChatProvider"},"name":{"kind":"Name","value":"provider"}},{"kind":"Field","alias":{"kind":"Name","value":"externalChatName"},"name":{"kind":"Name","value":"chatName"}},{"kind":"Field","alias":{"kind":"Name","value":"externalChatMessageId"},"name":{"kind":"Name","value":"messageId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDocumentMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentMentionDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMentionedInDocumentCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentMentionId"},"name":{"kind":"Name","value":"mentionId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlRepliedToDocumentCommentThreadMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityAccessRequestedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedRequestId"},"name":{"kind":"Name","value":"requestId"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedRevision"},"name":{"kind":"Name","value":"revision"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedEntityName"},"name":{"kind":"Name","value":"entityName"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedAccessLevel"},"name":{"kind":"Name","value":"accessLevel"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityAccessGrantedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedRequestId"},"name":{"kind":"Name","value":"requestId"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedRevision"},"name":{"kind":"Name","value":"revision"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedEntityName"},"name":{"kind":"Name","value":"entityName"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedAccessLevel"},"name":{"kind":"Name","value":"accessLevel"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCommentedOnDocumentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInitiativeDiscussionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionProjectName"},"name":{"kind":"Name","value":"projectName"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionReason"},"name":{"kind":"Name","value":"reason"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCrmDiscussionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionRecordName"},"name":{"kind":"Name","value":"recordName"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionReason"},"name":{"kind":"Name","value":"reason"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelInviteMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelInviteInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageSendMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageReactionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionEmoji"},"name":{"kind":"Name","value":"emoji"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelReplyMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyUserId"},"name":{"kind":"Name","value":"userId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadParentSenderId"},"name":{"kind":"Name","value":"threadParentSenderId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCallStartedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"callStartedChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"callStartedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNewEmailMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"newEmailSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailToEmail"},"name":{"kind":"Name","value":"toEmail"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSubject"},"name":{"kind":"Name","value":"subject"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSnippet"},"name":{"kind":"Name","value":"snippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInboxReauthRequiredMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inboxReauthRequiredEmailAddress"},"name":{"kind":"Name","value":"emailAddress"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlRoutineRunFinishedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"routineRunFinishedRoutineId"},"name":{"kind":"Name","value":"routineId"}},{"kind":"Field","alias":{"kind":"Name","value":"routineRunFinishedRoutineName"},"name":{"kind":"Name","value":"routineName"}},{"kind":"Field","alias":{"kind":"Name","value":"routineRunFinishedSucceeded"},"name":{"kind":"Name","value":"succeeded"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInviteToTeamMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamName"},"name":{"kind":"Name","value":"teamName"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamInviteId"},"name":{"kind":"Name","value":"teamInviteId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamRole"},"name":{"kind":"Name","value":"role"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskAssignedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskId"},"name":{"kind":"Name","value":"taskId"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskName"},"name":{"kind":"Name","value":"taskName"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedAssignedBy"},"name":{"kind":"Name","value":"assignedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"reminderReminderId"},"name":{"kind":"Name","value":"reminderId"}},{"kind":"Field","alias":{"kind":"Name","value":"reminderDescription"},"name":{"kind":"Name","value":"description"}},{"kind":"Field","alias":{"kind":"Name","value":"reminderScheduledFor"},"name":{"kind":"Name","value":"scheduledFor"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarEventReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEventId"},"name":{"kind":"Name","value":"eventId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderOccurrenceKey"},"name":{"kind":"Name","value":"occurrenceKey"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartsAt"},"name":{"kind":"Name","value":"startsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEndsAt"},"name":{"kind":"Name","value":"endsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartDate"},"name":{"kind":"Name","value":"startDate"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTimeZone"},"name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderMinutesBefore"},"name":{"kind":"Name","value":"minutesBefore"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarEventJoinRequestMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventJoinRequestRequestId"},"name":{"kind":"Name","value":"requestId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventJoinRequestEventId"},"name":{"kind":"Name","value":"eventId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventJoinRequestTitle"},"name":{"kind":"Name","value":"title"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAiResponseMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"aiResponseSummary"},"name":{"kind":"Name","value":"summary"}},{"kind":"Field","alias":{"kind":"Name","value":"aiResponseMessageId"},"name":{"kind":"Name","value":"messageId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrStatusChangedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedStatus"},"name":{"kind":"Name","value":"status"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedAction"},"name":{"kind":"Name","value":"action"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedPreviousStatus"},"name":{"kind":"Name","value":"previousStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedHeadBranch"},"name":{"kind":"Name","value":"headBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedBaseBranch"},"name":{"kind":"Name","value":"baseBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedMergedAt"},"name":{"kind":"Name","value":"mergedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCheckRunMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckRunGithubId"},"name":{"kind":"Name","value":"checkRunGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckName"},"name":{"kind":"Name","value":"checkName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckStatus"},"name":{"kind":"Name","value":"checkStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunConclusion"},"name":{"kind":"Name","value":"conclusion"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckUrl"},"name":{"kind":"Name","value":"checkUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCompletedAt"},"name":{"kind":"Name","value":"completedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubReviewRequestedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubLogin"},"name":{"kind":"Name","value":"requestedReviewerGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubUserId"},"name":{"kind":"Name","value":"requestedReviewerGithubUserId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentKind"},"name":{"kind":"Name","value":"commentKind"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentSnippet"},"name":{"kind":"Name","value":"commentSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionLocation"},"name":{"kind":"Name","value":"location"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTextSnippet"},"name":{"kind":"Name","value":"textSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrReviewMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewGithubId"},"name":{"kind":"Name","value":"reviewGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewUrl"},"name":{"kind":"Name","value":"reviewUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewSnippet"},"name":{"kind":"Name","value":"reviewSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionSettledMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledTurn"},"name":{"kind":"Name","value":"turn"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledActor"},"name":{"kind":"Name","value":"actor"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledStopReason"},"name":{"kind":"Name","value":"stopReason"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledExcerpt"},"name":{"kind":"Name","value":"excerpt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionWaitingForInputMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputTurn"},"name":{"kind":"Name","value":"turn"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputQuestion"},"name":{"kind":"Name","value":"question"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionMentionedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedMentionedBy"},"name":{"kind":"Name","value":"mentionedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedActionId"},"name":{"kind":"Name","value":"actionId"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotifEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationNavigationMetadataFields"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageSendMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelReplyMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelReplyHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupItemPreviewFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"cacheProjection"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupEntityIdentityFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupAgentSessionFields"}},{"kind":"Field","name":{"kind":"Name","value":"frecencyScore"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupDatabaseRow"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tableId"}},{"kind":"Field","name":{"kind":"Name","value":"databaseId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"creatorId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupInitiative"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewerPermission"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAccessLevelPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"fileType"}},{"kind":"Field","name":{"kind":"Name","value":"projectId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"subType"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskSubType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isCompleted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChat"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"chatName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"model"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"projectId"}},{"kind":"Field","name":{"kind":"Name","value":"isPersistent"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupProject"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"projectName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"parentId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEmailThread"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"providerId"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"inboxVisible"}},{"kind":"Field","name":{"kind":"Name","value":"hasReceivedMail"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"latestInboundMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"latestOutboundMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"latestNonSpamMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"reminderReturnedAt"}},{"kind":"Field","name":{"kind":"Name","value":"mailDraftState"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailDraftStateFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"mailAllPreview"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MailPreviewFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"mailDraftPreview"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MailPreviewFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"mailSentPreview"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MailPreviewFields"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"emailName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"senderEmail"}},{"kind":"Field","name":{"kind":"Name","value":"senderName"}},{"kind":"Field","name":{"kind":"Name","value":"senderPhotoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"isRead"}},{"kind":"Field","name":{"kind":"Name","value":"isDraft"}},{"kind":"Field","name":{"kind":"Name","value":"isImportant"}},{"kind":"Field","name":{"kind":"Name","value":"isSignal"}},{"kind":"Field","name":{"kind":"Name","value":"projectId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","alias":{"kind":"Name","value":"participants"},"name":{"kind":"Name","value":"senders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"contactId"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"sfsPhotoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"messageId"}},{"kind":"Field","name":{"kind":"Name","value":"providerAttachmentId"}},{"kind":"Field","name":{"kind":"Name","value":"filename"}},{"kind":"Field","name":{"kind":"Name","value":"mimeType"}},{"kind":"Field","name":{"kind":"Name","value":"sizeBytes"}},{"kind":"Field","name":{"kind":"Name","value":"contentId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"labels"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"providerLabelId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"messageListVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"labelListVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannel"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"channelType"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"organizationId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"interactedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isParticipant"}},{"kind":"Field","name":{"kind":"Name","value":"participants"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"joinedAt"}},{"kind":"Field","name":{"kind":"Name","value":"leftAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"latestMessage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupChannelMessageFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"latestNonThreadMessage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupChannelMessageFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannelMessage"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveUpdatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"replyCount"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCall"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"callChannelId"},"name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"channelName"}},{"kind":"Field","name":{"kind":"Name","value":"createdBy"}},{"kind":"Field","name":{"kind":"Name","value":"customName"}},{"kind":"Field","name":{"kind":"Name","value":"summary"}},{"kind":"Field","name":{"kind":"Name","value":"startedAt"}},{"kind":"Field","name":{"kind":"Name","value":"endedAt"}},{"kind":"Field","name":{"kind":"Name","value":"durationMs"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"attended"}},{"kind":"Field","name":{"kind":"Name","value":"participants"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"joinedAt"}},{"kind":"Field","name":{"kind":"Name","value":"leftAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"guests"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"joinedAt"}},{"kind":"Field","name":{"kind":"Name","value":"leftAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"GraphqlCrmContactFields"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCrmCompany"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"crmTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"crmCompanyName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"emailSync"}},{"kind":"Field","name":{"kind":"Name","value":"hidden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"domains"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupForeignEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","name":{"kind":"Name","value":"foreignEntitySource"}},{"kind":"Field","name":{"kind":"Name","value":"storedForId"}},{"kind":"Field","name":{"kind":"Name","value":"storedForAuthEntity"}},{"kind":"Field","name":{"kind":"Name","value":"sourceMetadata"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCalendarEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventStatus"},"name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"time"}},{"kind":"Field","name":{"kind":"Name","value":"conferenceUrl"}},{"kind":"Field","name":{"kind":"Name","value":"isReadOnly"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationStateFields"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationMetadataFields"}}]}}]}}]} as unknown as DocumentNode<NotificationInboxEntryFieldsFragment, unknown>;+export const NotificationInboxPatchFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NotificationInboxPatchFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotificationInboxPatch"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotificationInboxEntryUpserted"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"entry"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"NotificationInboxEntryFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotificationInboxEntryRemoved"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"groupId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotificationInboxInvalidated"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"refresh"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupEntityIdentityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"isFavorited"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPropertyValueFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlBooleanPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"boolValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNumberPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"numberValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlStringPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"stringValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDatePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"dateValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDateRangePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"rangeStart"},"name":{"kind":"Name","value":"start"}},{"kind":"Field","alias":{"kind":"Name","value":"rangeEnd"},"name":{"kind":"Name","value":"end"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSelectOptionPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"optionIds"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityReferencePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"references"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"specificMessageId"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlLinkPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"urls"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPropertyFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlProperty"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"propertyDefinitionId"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"isMultiSelect"}},{"kind":"Field","name":{"kind":"Name","value":"specificEntityType"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isMetadata"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyValueFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupAgentSessionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupAgentSession"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"sessionName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"archivedBy"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"harness"}},{"kind":"Field","name":{"kind":"Name","value":"repoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"repoBranch"}},{"kind":"Field","name":{"kind":"Name","value":"pullRequestUrl"}},{"kind":"Field","name":{"kind":"Name","value":"workingBranch"}},{"kind":"Field","name":{"kind":"Name","value":"pullRequestState"}},{"kind":"Field","name":{"kind":"Name","value":"pullRequestId"}},{"kind":"Field","name":{"kind":"Name","value":"turnState"}},{"kind":"Field","name":{"kind":"Name","value":"bot"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"source"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MailPreviewFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMailPreviewMessage"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"subject"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"isDraft"}},{"kind":"Field","name":{"kind":"Name","value":"senderEmail"}},{"kind":"Field","name":{"kind":"Name","value":"senderName"}},{"kind":"Field","name":{"kind":"Name","value":"senderPhotoUrl"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailDraftAggregateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMailDraftAggregate"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"messageCount"}},{"kind":"Field","name":{"kind":"Name","value":"inboxVisible"}},{"kind":"Field","name":{"kind":"Name","value":"isRead"}},{"kind":"Field","name":{"kind":"Name","value":"isSignal"}},{"kind":"Field","name":{"kind":"Name","value":"hasCalendarAttachment"}},{"kind":"Field","name":{"kind":"Name","value":"latestInboundMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"latestNonSpamMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"latestOutboundMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"previewTs"}},{"kind":"Field","name":{"kind":"Name","value":"preview"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MailPreviewFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailDraftStateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMailDraftState"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"baseline"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailDraftAggregateFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"drafts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"macroDraft"}},{"kind":"Field","name":{"kind":"Name","value":"facts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailDraftAggregateFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupChannelMessageFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannelMessagePreview"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"messageId"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"mentions"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"GraphqlCrmContactFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCrmContact"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","alias":{"kind":"Name","value":"contactTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"contactCompanyId"},"name":{"kind":"Name","value":"parentCompanyId"}},{"kind":"Field","alias":{"kind":"Name","value":"contactCompanyName"},"name":{"kind":"Name","value":"parentCompanyName"}},{"kind":"Field","alias":{"kind":"Name","value":"contactEmail"},"name":{"kind":"Name","value":"emailAddress"}},{"kind":"Field","alias":{"kind":"Name","value":"crmContactName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"hidden"}},{"kind":"Field","name":{"kind":"Name","value":"firstInteraction"}},{"kind":"Field","name":{"kind":"Name","value":"lastInteraction"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupItemPreviewFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"cacheProjection"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupEntityIdentityFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupAgentSessionFields"}},{"kind":"Field","name":{"kind":"Name","value":"frecencyScore"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupDatabaseRow"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tableId"}},{"kind":"Field","name":{"kind":"Name","value":"databaseId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"creatorId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupInitiative"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewerPermission"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAccessLevelPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"fileType"}},{"kind":"Field","name":{"kind":"Name","value":"projectId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"subType"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskSubType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isCompleted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChat"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"chatName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"model"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"projectId"}},{"kind":"Field","name":{"kind":"Name","value":"isPersistent"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupProject"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"projectName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"parentId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEmailThread"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"providerId"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"inboxVisible"}},{"kind":"Field","name":{"kind":"Name","value":"hasReceivedMail"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"latestInboundMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"latestOutboundMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"latestNonSpamMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"reminderReturnedAt"}},{"kind":"Field","name":{"kind":"Name","value":"mailDraftState"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailDraftStateFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"mailAllPreview"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MailPreviewFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"mailDraftPreview"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MailPreviewFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"mailSentPreview"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MailPreviewFields"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"emailName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"senderEmail"}},{"kind":"Field","name":{"kind":"Name","value":"senderName"}},{"kind":"Field","name":{"kind":"Name","value":"senderPhotoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"isRead"}},{"kind":"Field","name":{"kind":"Name","value":"isDraft"}},{"kind":"Field","name":{"kind":"Name","value":"isImportant"}},{"kind":"Field","name":{"kind":"Name","value":"isSignal"}},{"kind":"Field","name":{"kind":"Name","value":"projectId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","alias":{"kind":"Name","value":"participants"},"name":{"kind":"Name","value":"senders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"contactId"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"sfsPhotoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"messageId"}},{"kind":"Field","name":{"kind":"Name","value":"providerAttachmentId"}},{"kind":"Field","name":{"kind":"Name","value":"filename"}},{"kind":"Field","name":{"kind":"Name","value":"mimeType"}},{"kind":"Field","name":{"kind":"Name","value":"sizeBytes"}},{"kind":"Field","name":{"kind":"Name","value":"contentId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"labels"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"providerLabelId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"messageListVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"labelListVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannel"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"channelType"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"organizationId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"interactedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isParticipant"}},{"kind":"Field","name":{"kind":"Name","value":"participants"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"joinedAt"}},{"kind":"Field","name":{"kind":"Name","value":"leftAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"latestMessage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupChannelMessageFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"latestNonThreadMessage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupChannelMessageFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannelMessage"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveUpdatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"replyCount"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCall"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"callChannelId"},"name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"channelName"}},{"kind":"Field","name":{"kind":"Name","value":"createdBy"}},{"kind":"Field","name":{"kind":"Name","value":"customName"}},{"kind":"Field","name":{"kind":"Name","value":"summary"}},{"kind":"Field","name":{"kind":"Name","value":"startedAt"}},{"kind":"Field","name":{"kind":"Name","value":"endedAt"}},{"kind":"Field","name":{"kind":"Name","value":"durationMs"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"attended"}},{"kind":"Field","name":{"kind":"Name","value":"participants"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"joinedAt"}},{"kind":"Field","name":{"kind":"Name","value":"leftAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"guests"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"joinedAt"}},{"kind":"Field","name":{"kind":"Name","value":"leftAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"GraphqlCrmContactFields"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCrmCompany"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"crmTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"crmCompanyName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"emailSync"}},{"kind":"Field","name":{"kind":"Name","value":"hidden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"domains"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupForeignEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","name":{"kind":"Name","value":"foreignEntitySource"}},{"kind":"Field","name":{"kind":"Name","value":"storedForId"}},{"kind":"Field","name":{"kind":"Name","value":"storedForAuthEntity"}},{"kind":"Field","name":{"kind":"Name","value":"sourceMetadata"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCalendarEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventStatus"},"name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"time"}},{"kind":"Field","name":{"kind":"Name","value":"conferenceUrl"}},{"kind":"Field","name":{"kind":"Name","value":"isReadOnly"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationStateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventType"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"targetEntityType"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"sent"}},{"kind":"Field","name":{"kind":"Name","value":"state"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationNavigationMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotifEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlExternalChatMessageMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"externalChatProvider"},"name":{"kind":"Name","value":"provider"}},{"kind":"Field","alias":{"kind":"Name","value":"externalChatName"},"name":{"kind":"Name","value":"chatName"}},{"kind":"Field","alias":{"kind":"Name","value":"externalChatMessageId"},"name":{"kind":"Name","value":"messageId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDocumentMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentMentionDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMentionedInDocumentCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentMentionId"},"name":{"kind":"Name","value":"mentionId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlRepliedToDocumentCommentThreadMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityAccessRequestedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedRequestId"},"name":{"kind":"Name","value":"requestId"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedRevision"},"name":{"kind":"Name","value":"revision"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedEntityName"},"name":{"kind":"Name","value":"entityName"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedAccessLevel"},"name":{"kind":"Name","value":"accessLevel"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityAccessGrantedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedRequestId"},"name":{"kind":"Name","value":"requestId"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedRevision"},"name":{"kind":"Name","value":"revision"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedEntityName"},"name":{"kind":"Name","value":"entityName"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedAccessLevel"},"name":{"kind":"Name","value":"accessLevel"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCommentedOnDocumentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInitiativeDiscussionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionProjectName"},"name":{"kind":"Name","value":"projectName"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionReason"},"name":{"kind":"Name","value":"reason"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCrmDiscussionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionRecordName"},"name":{"kind":"Name","value":"recordName"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionReason"},"name":{"kind":"Name","value":"reason"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelInviteMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelInviteInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageSendMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageReactionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionEmoji"},"name":{"kind":"Name","value":"emoji"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelReplyMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyUserId"},"name":{"kind":"Name","value":"userId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadParentSenderId"},"name":{"kind":"Name","value":"threadParentSenderId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCallStartedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"callStartedChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"callStartedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNewEmailMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"newEmailSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailToEmail"},"name":{"kind":"Name","value":"toEmail"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSubject"},"name":{"kind":"Name","value":"subject"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSnippet"},"name":{"kind":"Name","value":"snippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInboxReauthRequiredMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inboxReauthRequiredEmailAddress"},"name":{"kind":"Name","value":"emailAddress"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlRoutineRunFinishedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"routineRunFinishedRoutineId"},"name":{"kind":"Name","value":"routineId"}},{"kind":"Field","alias":{"kind":"Name","value":"routineRunFinishedRoutineName"},"name":{"kind":"Name","value":"routineName"}},{"kind":"Field","alias":{"kind":"Name","value":"routineRunFinishedSucceeded"},"name":{"kind":"Name","value":"succeeded"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInviteToTeamMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamName"},"name":{"kind":"Name","value":"teamName"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamInviteId"},"name":{"kind":"Name","value":"teamInviteId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamRole"},"name":{"kind":"Name","value":"role"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskAssignedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskId"},"name":{"kind":"Name","value":"taskId"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskName"},"name":{"kind":"Name","value":"taskName"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedAssignedBy"},"name":{"kind":"Name","value":"assignedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"reminderReminderId"},"name":{"kind":"Name","value":"reminderId"}},{"kind":"Field","alias":{"kind":"Name","value":"reminderDescription"},"name":{"kind":"Name","value":"description"}},{"kind":"Field","alias":{"kind":"Name","value":"reminderScheduledFor"},"name":{"kind":"Name","value":"scheduledFor"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarEventReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEventId"},"name":{"kind":"Name","value":"eventId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderOccurrenceKey"},"name":{"kind":"Name","value":"occurrenceKey"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartsAt"},"name":{"kind":"Name","value":"startsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEndsAt"},"name":{"kind":"Name","value":"endsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartDate"},"name":{"kind":"Name","value":"startDate"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTimeZone"},"name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderMinutesBefore"},"name":{"kind":"Name","value":"minutesBefore"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarEventJoinRequestMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventJoinRequestRequestId"},"name":{"kind":"Name","value":"requestId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventJoinRequestEventId"},"name":{"kind":"Name","value":"eventId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventJoinRequestTitle"},"name":{"kind":"Name","value":"title"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAiResponseMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"aiResponseSummary"},"name":{"kind":"Name","value":"summary"}},{"kind":"Field","alias":{"kind":"Name","value":"aiResponseMessageId"},"name":{"kind":"Name","value":"messageId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrStatusChangedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedStatus"},"name":{"kind":"Name","value":"status"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedAction"},"name":{"kind":"Name","value":"action"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedPreviousStatus"},"name":{"kind":"Name","value":"previousStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedHeadBranch"},"name":{"kind":"Name","value":"headBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedBaseBranch"},"name":{"kind":"Name","value":"baseBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedMergedAt"},"name":{"kind":"Name","value":"mergedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCheckRunMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckRunGithubId"},"name":{"kind":"Name","value":"checkRunGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckName"},"name":{"kind":"Name","value":"checkName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckStatus"},"name":{"kind":"Name","value":"checkStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunConclusion"},"name":{"kind":"Name","value":"conclusion"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckUrl"},"name":{"kind":"Name","value":"checkUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCompletedAt"},"name":{"kind":"Name","value":"completedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubReviewRequestedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubLogin"},"name":{"kind":"Name","value":"requestedReviewerGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubUserId"},"name":{"kind":"Name","value":"requestedReviewerGithubUserId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentKind"},"name":{"kind":"Name","value":"commentKind"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentSnippet"},"name":{"kind":"Name","value":"commentSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionLocation"},"name":{"kind":"Name","value":"location"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTextSnippet"},"name":{"kind":"Name","value":"textSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrReviewMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewGithubId"},"name":{"kind":"Name","value":"reviewGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewUrl"},"name":{"kind":"Name","value":"reviewUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewSnippet"},"name":{"kind":"Name","value":"reviewSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionSettledMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledTurn"},"name":{"kind":"Name","value":"turn"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledActor"},"name":{"kind":"Name","value":"actor"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledStopReason"},"name":{"kind":"Name","value":"stopReason"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledExcerpt"},"name":{"kind":"Name","value":"excerpt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionWaitingForInputMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputTurn"},"name":{"kind":"Name","value":"turn"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputQuestion"},"name":{"kind":"Name","value":"question"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionMentionedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedMentionedBy"},"name":{"kind":"Name","value":"mentionedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedActionId"},"name":{"kind":"Name","value":"actionId"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotifEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationNavigationMetadataFields"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageSendMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelReplyMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelReplyHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationStateFields"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationMetadataFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NotificationInboxEntryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotificationInboxEntry"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"groupId"}},{"kind":"Field","name":{"kind":"Name","value":"sortAt"}},{"kind":"Field","name":{"kind":"Name","value":"entity"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupItemPreviewFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rows"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"rowType"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"revision"}},{"kind":"Field","name":{"kind":"Name","value":"latestAt"}},{"kind":"Field","name":{"kind":"Name","value":"actor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"principalId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"actions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"targetId"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"Field","name":{"kind":"Name","value":"unseen"}},{"kind":"Field","name":{"kind":"Name","value":"count"}},{"kind":"Field","name":{"kind":"Name","value":"notifications"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"20"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}}]}}]} as unknown as DocumentNode<NotificationInboxPatchFieldsFragment, unknown>;export const ItemPreviewFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ItemPreviewFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"fileType"}},{"kind":"Field","name":{"kind":"Name","value":"subType"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskSubType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isCompleted"}}]}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChat"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"chatName"},"name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupProject"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"projectName"},"name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEmailThread"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"emailName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"senderEmail"}},{"kind":"Field","name":{"kind":"Name","value":"senderName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannel"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelDisplayName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCall"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"customName"}},{"kind":"Field","name":{"kind":"Name","value":"channelName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCrmCompany"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"companyName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"domains"}}]}}]}}]} as unknown as DocumentNode<ItemPreviewFieldsFragment, unknown>;export const ItemPreviewDetailsFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ItemPreviewDetailsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ItemPreviewFields"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewerPermission"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAccessLevelPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPropertyValueFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlBooleanPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"boolValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNumberPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"numberValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlStringPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"stringValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDatePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"dateValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDateRangePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"rangeStart"},"name":{"kind":"Name","value":"start"}},{"kind":"Field","alias":{"kind":"Name","value":"rangeEnd"},"name":{"kind":"Name","value":"end"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSelectOptionPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"optionIds"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityReferencePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"references"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"specificMessageId"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlLinkPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"urls"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ItemPreviewFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"fileType"}},{"kind":"Field","name":{"kind":"Name","value":"subType"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskSubType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isCompleted"}}]}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChat"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"chatName"},"name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupProject"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"projectName"},"name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEmailThread"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"emailName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"senderEmail"}},{"kind":"Field","name":{"kind":"Name","value":"senderName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannel"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelDisplayName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCall"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"customName"}},{"kind":"Field","name":{"kind":"Name","value":"channelName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCrmCompany"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"companyName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"domains"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPropertyFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlProperty"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"propertyDefinitionId"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"isMultiSelect"}},{"kind":"Field","name":{"kind":"Name","value":"specificEntityType"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isMetadata"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyValueFields"}}]}}]}}]} as unknown as DocumentNode<ItemPreviewDetailsFieldsFragment, unknown>;export const PropertyAssignmentParentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PropertyAssignmentParent"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"propertyDefinitionId"}}]}}]}}]} as unknown as DocumentNode<PropertyAssignmentParentFragment, unknown>;@@ -22715,6 +23808,11 @@ export const CreateInitiativeDocument = {"kind":"Document","definitions":[{"kindexport const UpdateInitiativeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateInitiative"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"initiativeId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateInitiativeInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateInitiative"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"initiativeId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"initiativeId"}}},{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"InitiativeDetailFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPropertyValueFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlBooleanPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"boolValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNumberPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"numberValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlStringPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"stringValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDatePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"dateValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDateRangePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"rangeStart"},"name":{"kind":"Name","value":"start"}},{"kind":"Field","alias":{"kind":"Name","value":"rangeEnd"},"name":{"kind":"Name","value":"end"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSelectOptionPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"optionIds"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityReferencePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"references"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"specificMessageId"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlLinkPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"urls"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPropertyFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlProperty"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"propertyDefinitionId"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"isMultiSelect"}},{"kind":"Field","name":{"kind":"Name","value":"specificEntityType"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isMetadata"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyValueFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"InitiativeDetailFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupInitiative"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewerPermission"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAccessLevelPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taskCount"}},{"kind":"Field","name":{"kind":"Name","value":"completedTaskCount"}},{"kind":"Field","name":{"kind":"Name","value":"memberIds"}},{"kind":"Field","name":{"kind":"Name","value":"taskIds"}},{"kind":"Field","name":{"kind":"Name","value":"sharePermission"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"owner"}},{"kind":"Field","name":{"kind":"Name","value":"linkShare"}},{"kind":"Field","name":{"kind":"Name","value":"linkShareAccessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"teamShareAccessLevel"}},{"kind":"Field","name":{"kind":"Name","value":"channelSharePermissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}}]}}]}}]}}]} as unknown as DocumentNode<UpdateInitiativeMutation, UpdateInitiativeMutationVariables>;export const EnsureInitiativeDescriptionSurfaceDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"EnsureInitiativeDescriptionSurface"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"initiativeId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ensureInitiativeDescriptionSurface"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"initiativeId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"initiativeId"}}}]}]}}]} as unknown as DocumentNode<EnsureInitiativeDescriptionSurfaceMutation, EnsureInitiativeDescriptionSurfaceMutationVariables>;export const DeleteInitiativeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteInitiative"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"initiativeId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteInitiative"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"initiativeId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"initiativeId"}}}]}]}}]} as unknown as DocumentNode<DeleteInitiativeMutation, DeleteInitiativeMutationVariables>;+export const NotificationInboxDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"NotificationInbox"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"NotificationInboxInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"notificationInbox"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"entries"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"NotificationInboxEntryFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"nextCursor"}},{"kind":"Field","name":{"kind":"Name","value":"nextPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sortAt"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupEntityIdentityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"isFavorited"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPropertyValueFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlBooleanPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"boolValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNumberPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"numberValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlStringPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"stringValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDatePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"dateValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDateRangePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"rangeStart"},"name":{"kind":"Name","value":"start"}},{"kind":"Field","alias":{"kind":"Name","value":"rangeEnd"},"name":{"kind":"Name","value":"end"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSelectOptionPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"optionIds"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityReferencePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"references"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"specificMessageId"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlLinkPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"urls"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPropertyFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlProperty"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"propertyDefinitionId"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"isMultiSelect"}},{"kind":"Field","name":{"kind":"Name","value":"specificEntityType"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isMetadata"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyValueFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupAgentSessionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupAgentSession"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"sessionName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"archivedBy"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"harness"}},{"kind":"Field","name":{"kind":"Name","value":"repoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"repoBranch"}},{"kind":"Field","name":{"kind":"Name","value":"pullRequestUrl"}},{"kind":"Field","name":{"kind":"Name","value":"workingBranch"}},{"kind":"Field","name":{"kind":"Name","value":"pullRequestState"}},{"kind":"Field","name":{"kind":"Name","value":"pullRequestId"}},{"kind":"Field","name":{"kind":"Name","value":"turnState"}},{"kind":"Field","name":{"kind":"Name","value":"bot"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"source"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MailPreviewFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMailPreviewMessage"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"subject"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"isDraft"}},{"kind":"Field","name":{"kind":"Name","value":"senderEmail"}},{"kind":"Field","name":{"kind":"Name","value":"senderName"}},{"kind":"Field","name":{"kind":"Name","value":"senderPhotoUrl"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailDraftAggregateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMailDraftAggregate"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"messageCount"}},{"kind":"Field","name":{"kind":"Name","value":"inboxVisible"}},{"kind":"Field","name":{"kind":"Name","value":"isRead"}},{"kind":"Field","name":{"kind":"Name","value":"isSignal"}},{"kind":"Field","name":{"kind":"Name","value":"hasCalendarAttachment"}},{"kind":"Field","name":{"kind":"Name","value":"latestInboundMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"latestNonSpamMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"latestOutboundMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"previewTs"}},{"kind":"Field","name":{"kind":"Name","value":"preview"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MailPreviewFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailDraftStateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMailDraftState"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"baseline"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailDraftAggregateFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"drafts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"macroDraft"}},{"kind":"Field","name":{"kind":"Name","value":"facts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailDraftAggregateFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupChannelMessageFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannelMessagePreview"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"messageId"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"mentions"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"GraphqlCrmContactFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCrmContact"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","alias":{"kind":"Name","value":"contactTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"contactCompanyId"},"name":{"kind":"Name","value":"parentCompanyId"}},{"kind":"Field","alias":{"kind":"Name","value":"contactCompanyName"},"name":{"kind":"Name","value":"parentCompanyName"}},{"kind":"Field","alias":{"kind":"Name","value":"contactEmail"},"name":{"kind":"Name","value":"emailAddress"}},{"kind":"Field","alias":{"kind":"Name","value":"crmContactName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"hidden"}},{"kind":"Field","name":{"kind":"Name","value":"firstInteraction"}},{"kind":"Field","name":{"kind":"Name","value":"lastInteraction"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupItemPreviewFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"cacheProjection"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupEntityIdentityFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupAgentSessionFields"}},{"kind":"Field","name":{"kind":"Name","value":"frecencyScore"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupDatabaseRow"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tableId"}},{"kind":"Field","name":{"kind":"Name","value":"databaseId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"creatorId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupInitiative"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewerPermission"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAccessLevelPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"fileType"}},{"kind":"Field","name":{"kind":"Name","value":"projectId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"subType"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskSubType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isCompleted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChat"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"chatName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"model"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"projectId"}},{"kind":"Field","name":{"kind":"Name","value":"isPersistent"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupProject"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"projectName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"parentId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEmailThread"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"providerId"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"inboxVisible"}},{"kind":"Field","name":{"kind":"Name","value":"hasReceivedMail"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"latestInboundMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"latestOutboundMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"latestNonSpamMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"reminderReturnedAt"}},{"kind":"Field","name":{"kind":"Name","value":"mailDraftState"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailDraftStateFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"mailAllPreview"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MailPreviewFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"mailDraftPreview"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MailPreviewFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"mailSentPreview"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MailPreviewFields"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"emailName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"senderEmail"}},{"kind":"Field","name":{"kind":"Name","value":"senderName"}},{"kind":"Field","name":{"kind":"Name","value":"senderPhotoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"isRead"}},{"kind":"Field","name":{"kind":"Name","value":"isDraft"}},{"kind":"Field","name":{"kind":"Name","value":"isImportant"}},{"kind":"Field","name":{"kind":"Name","value":"isSignal"}},{"kind":"Field","name":{"kind":"Name","value":"projectId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","alias":{"kind":"Name","value":"participants"},"name":{"kind":"Name","value":"senders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"contactId"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"sfsPhotoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"messageId"}},{"kind":"Field","name":{"kind":"Name","value":"providerAttachmentId"}},{"kind":"Field","name":{"kind":"Name","value":"filename"}},{"kind":"Field","name":{"kind":"Name","value":"mimeType"}},{"kind":"Field","name":{"kind":"Name","value":"sizeBytes"}},{"kind":"Field","name":{"kind":"Name","value":"contentId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"labels"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"providerLabelId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"messageListVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"labelListVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannel"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"channelType"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"organizationId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"interactedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isParticipant"}},{"kind":"Field","name":{"kind":"Name","value":"participants"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"joinedAt"}},{"kind":"Field","name":{"kind":"Name","value":"leftAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"latestMessage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupChannelMessageFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"latestNonThreadMessage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupChannelMessageFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannelMessage"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveUpdatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"replyCount"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCall"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"callChannelId"},"name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"channelName"}},{"kind":"Field","name":{"kind":"Name","value":"createdBy"}},{"kind":"Field","name":{"kind":"Name","value":"customName"}},{"kind":"Field","name":{"kind":"Name","value":"summary"}},{"kind":"Field","name":{"kind":"Name","value":"startedAt"}},{"kind":"Field","name":{"kind":"Name","value":"endedAt"}},{"kind":"Field","name":{"kind":"Name","value":"durationMs"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"attended"}},{"kind":"Field","name":{"kind":"Name","value":"participants"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"joinedAt"}},{"kind":"Field","name":{"kind":"Name","value":"leftAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"guests"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"joinedAt"}},{"kind":"Field","name":{"kind":"Name","value":"leftAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"GraphqlCrmContactFields"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCrmCompany"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"crmTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"crmCompanyName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"emailSync"}},{"kind":"Field","name":{"kind":"Name","value":"hidden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"domains"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupForeignEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","name":{"kind":"Name","value":"foreignEntitySource"}},{"kind":"Field","name":{"kind":"Name","value":"storedForId"}},{"kind":"Field","name":{"kind":"Name","value":"storedForAuthEntity"}},{"kind":"Field","name":{"kind":"Name","value":"sourceMetadata"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCalendarEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventStatus"},"name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"time"}},{"kind":"Field","name":{"kind":"Name","value":"conferenceUrl"}},{"kind":"Field","name":{"kind":"Name","value":"isReadOnly"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationStateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventType"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"targetEntityType"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"sent"}},{"kind":"Field","name":{"kind":"Name","value":"state"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationNavigationMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotifEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlExternalChatMessageMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"externalChatProvider"},"name":{"kind":"Name","value":"provider"}},{"kind":"Field","alias":{"kind":"Name","value":"externalChatName"},"name":{"kind":"Name","value":"chatName"}},{"kind":"Field","alias":{"kind":"Name","value":"externalChatMessageId"},"name":{"kind":"Name","value":"messageId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDocumentMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentMentionDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMentionedInDocumentCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentMentionId"},"name":{"kind":"Name","value":"mentionId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlRepliedToDocumentCommentThreadMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityAccessRequestedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedRequestId"},"name":{"kind":"Name","value":"requestId"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedRevision"},"name":{"kind":"Name","value":"revision"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedEntityName"},"name":{"kind":"Name","value":"entityName"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedAccessLevel"},"name":{"kind":"Name","value":"accessLevel"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityAccessGrantedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedRequestId"},"name":{"kind":"Name","value":"requestId"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedRevision"},"name":{"kind":"Name","value":"revision"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedEntityName"},"name":{"kind":"Name","value":"entityName"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedAccessLevel"},"name":{"kind":"Name","value":"accessLevel"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCommentedOnDocumentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInitiativeDiscussionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionProjectName"},"name":{"kind":"Name","value":"projectName"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionReason"},"name":{"kind":"Name","value":"reason"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCrmDiscussionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionRecordName"},"name":{"kind":"Name","value":"recordName"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionReason"},"name":{"kind":"Name","value":"reason"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelInviteMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelInviteInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageSendMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageReactionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionEmoji"},"name":{"kind":"Name","value":"emoji"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelReplyMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyUserId"},"name":{"kind":"Name","value":"userId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadParentSenderId"},"name":{"kind":"Name","value":"threadParentSenderId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCallStartedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"callStartedChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"callStartedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNewEmailMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"newEmailSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailToEmail"},"name":{"kind":"Name","value":"toEmail"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSubject"},"name":{"kind":"Name","value":"subject"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSnippet"},"name":{"kind":"Name","value":"snippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInboxReauthRequiredMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inboxReauthRequiredEmailAddress"},"name":{"kind":"Name","value":"emailAddress"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlRoutineRunFinishedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"routineRunFinishedRoutineId"},"name":{"kind":"Name","value":"routineId"}},{"kind":"Field","alias":{"kind":"Name","value":"routineRunFinishedRoutineName"},"name":{"kind":"Name","value":"routineName"}},{"kind":"Field","alias":{"kind":"Name","value":"routineRunFinishedSucceeded"},"name":{"kind":"Name","value":"succeeded"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInviteToTeamMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamName"},"name":{"kind":"Name","value":"teamName"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamInviteId"},"name":{"kind":"Name","value":"teamInviteId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamRole"},"name":{"kind":"Name","value":"role"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskAssignedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskId"},"name":{"kind":"Name","value":"taskId"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskName"},"name":{"kind":"Name","value":"taskName"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedAssignedBy"},"name":{"kind":"Name","value":"assignedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"reminderReminderId"},"name":{"kind":"Name","value":"reminderId"}},{"kind":"Field","alias":{"kind":"Name","value":"reminderDescription"},"name":{"kind":"Name","value":"description"}},{"kind":"Field","alias":{"kind":"Name","value":"reminderScheduledFor"},"name":{"kind":"Name","value":"scheduledFor"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarEventReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEventId"},"name":{"kind":"Name","value":"eventId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderOccurrenceKey"},"name":{"kind":"Name","value":"occurrenceKey"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartsAt"},"name":{"kind":"Name","value":"startsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEndsAt"},"name":{"kind":"Name","value":"endsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartDate"},"name":{"kind":"Name","value":"startDate"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTimeZone"},"name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderMinutesBefore"},"name":{"kind":"Name","value":"minutesBefore"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarEventJoinRequestMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventJoinRequestRequestId"},"name":{"kind":"Name","value":"requestId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventJoinRequestEventId"},"name":{"kind":"Name","value":"eventId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventJoinRequestTitle"},"name":{"kind":"Name","value":"title"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAiResponseMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"aiResponseSummary"},"name":{"kind":"Name","value":"summary"}},{"kind":"Field","alias":{"kind":"Name","value":"aiResponseMessageId"},"name":{"kind":"Name","value":"messageId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrStatusChangedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedStatus"},"name":{"kind":"Name","value":"status"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedAction"},"name":{"kind":"Name","value":"action"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedPreviousStatus"},"name":{"kind":"Name","value":"previousStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedHeadBranch"},"name":{"kind":"Name","value":"headBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedBaseBranch"},"name":{"kind":"Name","value":"baseBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedMergedAt"},"name":{"kind":"Name","value":"mergedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCheckRunMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckRunGithubId"},"name":{"kind":"Name","value":"checkRunGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckName"},"name":{"kind":"Name","value":"checkName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckStatus"},"name":{"kind":"Name","value":"checkStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunConclusion"},"name":{"kind":"Name","value":"conclusion"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckUrl"},"name":{"kind":"Name","value":"checkUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCompletedAt"},"name":{"kind":"Name","value":"completedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubReviewRequestedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubLogin"},"name":{"kind":"Name","value":"requestedReviewerGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubUserId"},"name":{"kind":"Name","value":"requestedReviewerGithubUserId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentKind"},"name":{"kind":"Name","value":"commentKind"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentSnippet"},"name":{"kind":"Name","value":"commentSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionLocation"},"name":{"kind":"Name","value":"location"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTextSnippet"},"name":{"kind":"Name","value":"textSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrReviewMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewGithubId"},"name":{"kind":"Name","value":"reviewGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewUrl"},"name":{"kind":"Name","value":"reviewUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewSnippet"},"name":{"kind":"Name","value":"reviewSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionSettledMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledTurn"},"name":{"kind":"Name","value":"turn"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledActor"},"name":{"kind":"Name","value":"actor"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledStopReason"},"name":{"kind":"Name","value":"stopReason"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledExcerpt"},"name":{"kind":"Name","value":"excerpt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionWaitingForInputMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputTurn"},"name":{"kind":"Name","value":"turn"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputQuestion"},"name":{"kind":"Name","value":"question"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionMentionedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedMentionedBy"},"name":{"kind":"Name","value":"mentionedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedActionId"},"name":{"kind":"Name","value":"actionId"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotifEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationNavigationMetadataFields"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageSendMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelReplyMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelReplyHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationStateFields"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationMetadataFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NotificationInboxEntryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotificationInboxEntry"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"groupId"}},{"kind":"Field","name":{"kind":"Name","value":"sortAt"}},{"kind":"Field","name":{"kind":"Name","value":"entity"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupItemPreviewFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rows"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"rowType"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"revision"}},{"kind":"Field","name":{"kind":"Name","value":"latestAt"}},{"kind":"Field","name":{"kind":"Name","value":"actor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"principalId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"actions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"targetId"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"Field","name":{"kind":"Name","value":"unseen"}},{"kind":"Field","name":{"kind":"Name","value":"count"}},{"kind":"Field","name":{"kind":"Name","value":"notifications"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"20"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}}]}}]} as unknown as DocumentNode<NotificationInboxQuery, NotificationInboxQueryVariables>;+export const MarkNotificationInboxRowsDoneDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"MarkNotificationInboxRowsDone"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"MarkNotificationInboxRowsDoneInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"markNotificationInboxRowsDone"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"rowIds"}},{"kind":"Field","name":{"kind":"Name","value":"undoToken"}}]}}]}}]} as unknown as DocumentNode<MarkNotificationInboxRowsDoneMutation, MarkNotificationInboxRowsDoneMutationVariables>;+export const UndoNotificationInboxRowsDoneDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UndoNotificationInboxRowsDone"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UndoNotificationInboxRowsDoneInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"undoNotificationInboxRowsDone"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"patches"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"NotificationInboxPatchFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupEntityIdentityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"isFavorited"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPropertyValueFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlBooleanPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"boolValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNumberPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"numberValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlStringPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"stringValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDatePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"dateValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDateRangePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"rangeStart"},"name":{"kind":"Name","value":"start"}},{"kind":"Field","alias":{"kind":"Name","value":"rangeEnd"},"name":{"kind":"Name","value":"end"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSelectOptionPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"optionIds"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityReferencePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"references"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"specificMessageId"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlLinkPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"urls"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPropertyFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlProperty"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"propertyDefinitionId"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"isMultiSelect"}},{"kind":"Field","name":{"kind":"Name","value":"specificEntityType"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isMetadata"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyValueFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupAgentSessionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupAgentSession"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"sessionName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"archivedBy"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"harness"}},{"kind":"Field","name":{"kind":"Name","value":"repoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"repoBranch"}},{"kind":"Field","name":{"kind":"Name","value":"pullRequestUrl"}},{"kind":"Field","name":{"kind":"Name","value":"workingBranch"}},{"kind":"Field","name":{"kind":"Name","value":"pullRequestState"}},{"kind":"Field","name":{"kind":"Name","value":"pullRequestId"}},{"kind":"Field","name":{"kind":"Name","value":"turnState"}},{"kind":"Field","name":{"kind":"Name","value":"bot"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"source"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MailPreviewFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMailPreviewMessage"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"subject"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"isDraft"}},{"kind":"Field","name":{"kind":"Name","value":"senderEmail"}},{"kind":"Field","name":{"kind":"Name","value":"senderName"}},{"kind":"Field","name":{"kind":"Name","value":"senderPhotoUrl"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailDraftAggregateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMailDraftAggregate"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"messageCount"}},{"kind":"Field","name":{"kind":"Name","value":"inboxVisible"}},{"kind":"Field","name":{"kind":"Name","value":"isRead"}},{"kind":"Field","name":{"kind":"Name","value":"isSignal"}},{"kind":"Field","name":{"kind":"Name","value":"hasCalendarAttachment"}},{"kind":"Field","name":{"kind":"Name","value":"latestInboundMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"latestNonSpamMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"latestOutboundMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"previewTs"}},{"kind":"Field","name":{"kind":"Name","value":"preview"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MailPreviewFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailDraftStateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMailDraftState"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"baseline"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailDraftAggregateFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"drafts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"macroDraft"}},{"kind":"Field","name":{"kind":"Name","value":"facts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailDraftAggregateFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupChannelMessageFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannelMessagePreview"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"messageId"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"mentions"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"GraphqlCrmContactFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCrmContact"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","alias":{"kind":"Name","value":"contactTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"contactCompanyId"},"name":{"kind":"Name","value":"parentCompanyId"}},{"kind":"Field","alias":{"kind":"Name","value":"contactCompanyName"},"name":{"kind":"Name","value":"parentCompanyName"}},{"kind":"Field","alias":{"kind":"Name","value":"contactEmail"},"name":{"kind":"Name","value":"emailAddress"}},{"kind":"Field","alias":{"kind":"Name","value":"crmContactName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"hidden"}},{"kind":"Field","name":{"kind":"Name","value":"firstInteraction"}},{"kind":"Field","name":{"kind":"Name","value":"lastInteraction"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupItemPreviewFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"cacheProjection"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupEntityIdentityFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupAgentSessionFields"}},{"kind":"Field","name":{"kind":"Name","value":"frecencyScore"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupDatabaseRow"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tableId"}},{"kind":"Field","name":{"kind":"Name","value":"databaseId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"creatorId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupInitiative"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewerPermission"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAccessLevelPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"fileType"}},{"kind":"Field","name":{"kind":"Name","value":"projectId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"subType"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskSubType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isCompleted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChat"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"chatName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"model"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"projectId"}},{"kind":"Field","name":{"kind":"Name","value":"isPersistent"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupProject"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"projectName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"parentId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEmailThread"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"providerId"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"inboxVisible"}},{"kind":"Field","name":{"kind":"Name","value":"hasReceivedMail"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"latestInboundMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"latestOutboundMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"latestNonSpamMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"reminderReturnedAt"}},{"kind":"Field","name":{"kind":"Name","value":"mailDraftState"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailDraftStateFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"mailAllPreview"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MailPreviewFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"mailDraftPreview"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MailPreviewFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"mailSentPreview"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MailPreviewFields"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"emailName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"senderEmail"}},{"kind":"Field","name":{"kind":"Name","value":"senderName"}},{"kind":"Field","name":{"kind":"Name","value":"senderPhotoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"isRead"}},{"kind":"Field","name":{"kind":"Name","value":"isDraft"}},{"kind":"Field","name":{"kind":"Name","value":"isImportant"}},{"kind":"Field","name":{"kind":"Name","value":"isSignal"}},{"kind":"Field","name":{"kind":"Name","value":"projectId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","alias":{"kind":"Name","value":"participants"},"name":{"kind":"Name","value":"senders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"contactId"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"sfsPhotoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"messageId"}},{"kind":"Field","name":{"kind":"Name","value":"providerAttachmentId"}},{"kind":"Field","name":{"kind":"Name","value":"filename"}},{"kind":"Field","name":{"kind":"Name","value":"mimeType"}},{"kind":"Field","name":{"kind":"Name","value":"sizeBytes"}},{"kind":"Field","name":{"kind":"Name","value":"contentId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"labels"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"providerLabelId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"messageListVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"labelListVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannel"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"channelType"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"organizationId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"interactedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isParticipant"}},{"kind":"Field","name":{"kind":"Name","value":"participants"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"joinedAt"}},{"kind":"Field","name":{"kind":"Name","value":"leftAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"latestMessage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupChannelMessageFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"latestNonThreadMessage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupChannelMessageFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannelMessage"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveUpdatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"replyCount"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCall"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"callChannelId"},"name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"channelName"}},{"kind":"Field","name":{"kind":"Name","value":"createdBy"}},{"kind":"Field","name":{"kind":"Name","value":"customName"}},{"kind":"Field","name":{"kind":"Name","value":"summary"}},{"kind":"Field","name":{"kind":"Name","value":"startedAt"}},{"kind":"Field","name":{"kind":"Name","value":"endedAt"}},{"kind":"Field","name":{"kind":"Name","value":"durationMs"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"attended"}},{"kind":"Field","name":{"kind":"Name","value":"participants"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"joinedAt"}},{"kind":"Field","name":{"kind":"Name","value":"leftAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"guests"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"joinedAt"}},{"kind":"Field","name":{"kind":"Name","value":"leftAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"GraphqlCrmContactFields"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCrmCompany"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"crmTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"crmCompanyName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"emailSync"}},{"kind":"Field","name":{"kind":"Name","value":"hidden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"domains"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupForeignEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","name":{"kind":"Name","value":"foreignEntitySource"}},{"kind":"Field","name":{"kind":"Name","value":"storedForId"}},{"kind":"Field","name":{"kind":"Name","value":"storedForAuthEntity"}},{"kind":"Field","name":{"kind":"Name","value":"sourceMetadata"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCalendarEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventStatus"},"name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"time"}},{"kind":"Field","name":{"kind":"Name","value":"conferenceUrl"}},{"kind":"Field","name":{"kind":"Name","value":"isReadOnly"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationStateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventType"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"targetEntityType"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"sent"}},{"kind":"Field","name":{"kind":"Name","value":"state"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationNavigationMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotifEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlExternalChatMessageMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"externalChatProvider"},"name":{"kind":"Name","value":"provider"}},{"kind":"Field","alias":{"kind":"Name","value":"externalChatName"},"name":{"kind":"Name","value":"chatName"}},{"kind":"Field","alias":{"kind":"Name","value":"externalChatMessageId"},"name":{"kind":"Name","value":"messageId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDocumentMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentMentionDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMentionedInDocumentCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentMentionId"},"name":{"kind":"Name","value":"mentionId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlRepliedToDocumentCommentThreadMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityAccessRequestedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedRequestId"},"name":{"kind":"Name","value":"requestId"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedRevision"},"name":{"kind":"Name","value":"revision"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedEntityName"},"name":{"kind":"Name","value":"entityName"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedAccessLevel"},"name":{"kind":"Name","value":"accessLevel"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityAccessGrantedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedRequestId"},"name":{"kind":"Name","value":"requestId"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedRevision"},"name":{"kind":"Name","value":"revision"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedEntityName"},"name":{"kind":"Name","value":"entityName"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedAccessLevel"},"name":{"kind":"Name","value":"accessLevel"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCommentedOnDocumentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInitiativeDiscussionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionProjectName"},"name":{"kind":"Name","value":"projectName"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionReason"},"name":{"kind":"Name","value":"reason"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCrmDiscussionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionRecordName"},"name":{"kind":"Name","value":"recordName"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionReason"},"name":{"kind":"Name","value":"reason"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelInviteMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelInviteInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageSendMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageReactionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionEmoji"},"name":{"kind":"Name","value":"emoji"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelReplyMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyUserId"},"name":{"kind":"Name","value":"userId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadParentSenderId"},"name":{"kind":"Name","value":"threadParentSenderId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCallStartedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"callStartedChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"callStartedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNewEmailMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"newEmailSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailToEmail"},"name":{"kind":"Name","value":"toEmail"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSubject"},"name":{"kind":"Name","value":"subject"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSnippet"},"name":{"kind":"Name","value":"snippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInboxReauthRequiredMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inboxReauthRequiredEmailAddress"},"name":{"kind":"Name","value":"emailAddress"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlRoutineRunFinishedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"routineRunFinishedRoutineId"},"name":{"kind":"Name","value":"routineId"}},{"kind":"Field","alias":{"kind":"Name","value":"routineRunFinishedRoutineName"},"name":{"kind":"Name","value":"routineName"}},{"kind":"Field","alias":{"kind":"Name","value":"routineRunFinishedSucceeded"},"name":{"kind":"Name","value":"succeeded"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInviteToTeamMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamName"},"name":{"kind":"Name","value":"teamName"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamInviteId"},"name":{"kind":"Name","value":"teamInviteId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamRole"},"name":{"kind":"Name","value":"role"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskAssignedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskId"},"name":{"kind":"Name","value":"taskId"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskName"},"name":{"kind":"Name","value":"taskName"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedAssignedBy"},"name":{"kind":"Name","value":"assignedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"reminderReminderId"},"name":{"kind":"Name","value":"reminderId"}},{"kind":"Field","alias":{"kind":"Name","value":"reminderDescription"},"name":{"kind":"Name","value":"description"}},{"kind":"Field","alias":{"kind":"Name","value":"reminderScheduledFor"},"name":{"kind":"Name","value":"scheduledFor"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarEventReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEventId"},"name":{"kind":"Name","value":"eventId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderOccurrenceKey"},"name":{"kind":"Name","value":"occurrenceKey"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartsAt"},"name":{"kind":"Name","value":"startsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEndsAt"},"name":{"kind":"Name","value":"endsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartDate"},"name":{"kind":"Name","value":"startDate"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTimeZone"},"name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderMinutesBefore"},"name":{"kind":"Name","value":"minutesBefore"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarEventJoinRequestMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventJoinRequestRequestId"},"name":{"kind":"Name","value":"requestId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventJoinRequestEventId"},"name":{"kind":"Name","value":"eventId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventJoinRequestTitle"},"name":{"kind":"Name","value":"title"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAiResponseMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"aiResponseSummary"},"name":{"kind":"Name","value":"summary"}},{"kind":"Field","alias":{"kind":"Name","value":"aiResponseMessageId"},"name":{"kind":"Name","value":"messageId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrStatusChangedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedStatus"},"name":{"kind":"Name","value":"status"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedAction"},"name":{"kind":"Name","value":"action"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedPreviousStatus"},"name":{"kind":"Name","value":"previousStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedHeadBranch"},"name":{"kind":"Name","value":"headBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedBaseBranch"},"name":{"kind":"Name","value":"baseBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedMergedAt"},"name":{"kind":"Name","value":"mergedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCheckRunMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckRunGithubId"},"name":{"kind":"Name","value":"checkRunGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckName"},"name":{"kind":"Name","value":"checkName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckStatus"},"name":{"kind":"Name","value":"checkStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunConclusion"},"name":{"kind":"Name","value":"conclusion"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckUrl"},"name":{"kind":"Name","value":"checkUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCompletedAt"},"name":{"kind":"Name","value":"completedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubReviewRequestedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubLogin"},"name":{"kind":"Name","value":"requestedReviewerGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubUserId"},"name":{"kind":"Name","value":"requestedReviewerGithubUserId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentKind"},"name":{"kind":"Name","value":"commentKind"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentSnippet"},"name":{"kind":"Name","value":"commentSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionLocation"},"name":{"kind":"Name","value":"location"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTextSnippet"},"name":{"kind":"Name","value":"textSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrReviewMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewGithubId"},"name":{"kind":"Name","value":"reviewGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewUrl"},"name":{"kind":"Name","value":"reviewUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewSnippet"},"name":{"kind":"Name","value":"reviewSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionSettledMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledTurn"},"name":{"kind":"Name","value":"turn"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledActor"},"name":{"kind":"Name","value":"actor"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledStopReason"},"name":{"kind":"Name","value":"stopReason"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledExcerpt"},"name":{"kind":"Name","value":"excerpt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionWaitingForInputMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputTurn"},"name":{"kind":"Name","value":"turn"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputQuestion"},"name":{"kind":"Name","value":"question"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionMentionedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedMentionedBy"},"name":{"kind":"Name","value":"mentionedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedActionId"},"name":{"kind":"Name","value":"actionId"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotifEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationNavigationMetadataFields"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageSendMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelReplyMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelReplyHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationStateFields"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationMetadataFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NotificationInboxEntryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotificationInboxEntry"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"groupId"}},{"kind":"Field","name":{"kind":"Name","value":"sortAt"}},{"kind":"Field","name":{"kind":"Name","value":"entity"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupItemPreviewFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rows"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"rowType"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"revision"}},{"kind":"Field","name":{"kind":"Name","value":"latestAt"}},{"kind":"Field","name":{"kind":"Name","value":"actor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"principalId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"actions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"targetId"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"Field","name":{"kind":"Name","value":"unseen"}},{"kind":"Field","name":{"kind":"Name","value":"count"}},{"kind":"Field","name":{"kind":"Name","value":"notifications"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"20"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NotificationInboxPatchFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotificationInboxPatch"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotificationInboxEntryUpserted"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"entry"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"NotificationInboxEntryFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotificationInboxEntryRemoved"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"groupId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotificationInboxInvalidated"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"refresh"}}]}}]}}]} as unknown as DocumentNode<UndoNotificationInboxRowsDoneMutation, UndoNotificationInboxRowsDoneMutationVariables>;+export const MarkNotificationInboxRowsSeenDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"MarkNotificationInboxRowsSeen"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"MarkNotificationInboxRowsSeenInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"markNotificationInboxRowsSeen"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"patches"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"NotificationInboxPatchFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupEntityIdentityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"isFavorited"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPropertyValueFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlBooleanPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"boolValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNumberPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"numberValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlStringPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"stringValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDatePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"dateValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDateRangePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"rangeStart"},"name":{"kind":"Name","value":"start"}},{"kind":"Field","alias":{"kind":"Name","value":"rangeEnd"},"name":{"kind":"Name","value":"end"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSelectOptionPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"optionIds"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityReferencePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"references"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"specificMessageId"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlLinkPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"urls"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPropertyFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlProperty"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"propertyDefinitionId"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"isMultiSelect"}},{"kind":"Field","name":{"kind":"Name","value":"specificEntityType"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isMetadata"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyValueFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupAgentSessionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupAgentSession"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"sessionName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"archivedBy"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"harness"}},{"kind":"Field","name":{"kind":"Name","value":"repoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"repoBranch"}},{"kind":"Field","name":{"kind":"Name","value":"pullRequestUrl"}},{"kind":"Field","name":{"kind":"Name","value":"workingBranch"}},{"kind":"Field","name":{"kind":"Name","value":"pullRequestState"}},{"kind":"Field","name":{"kind":"Name","value":"pullRequestId"}},{"kind":"Field","name":{"kind":"Name","value":"turnState"}},{"kind":"Field","name":{"kind":"Name","value":"bot"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"source"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MailPreviewFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMailPreviewMessage"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"subject"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"isDraft"}},{"kind":"Field","name":{"kind":"Name","value":"senderEmail"}},{"kind":"Field","name":{"kind":"Name","value":"senderName"}},{"kind":"Field","name":{"kind":"Name","value":"senderPhotoUrl"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailDraftAggregateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMailDraftAggregate"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"messageCount"}},{"kind":"Field","name":{"kind":"Name","value":"inboxVisible"}},{"kind":"Field","name":{"kind":"Name","value":"isRead"}},{"kind":"Field","name":{"kind":"Name","value":"isSignal"}},{"kind":"Field","name":{"kind":"Name","value":"hasCalendarAttachment"}},{"kind":"Field","name":{"kind":"Name","value":"latestInboundMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"latestNonSpamMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"latestOutboundMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"previewTs"}},{"kind":"Field","name":{"kind":"Name","value":"preview"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MailPreviewFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailDraftStateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMailDraftState"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"baseline"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailDraftAggregateFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"drafts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"macroDraft"}},{"kind":"Field","name":{"kind":"Name","value":"facts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailDraftAggregateFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupChannelMessageFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannelMessagePreview"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"messageId"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"mentions"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"GraphqlCrmContactFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCrmContact"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","alias":{"kind":"Name","value":"contactTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"contactCompanyId"},"name":{"kind":"Name","value":"parentCompanyId"}},{"kind":"Field","alias":{"kind":"Name","value":"contactCompanyName"},"name":{"kind":"Name","value":"parentCompanyName"}},{"kind":"Field","alias":{"kind":"Name","value":"contactEmail"},"name":{"kind":"Name","value":"emailAddress"}},{"kind":"Field","alias":{"kind":"Name","value":"crmContactName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"hidden"}},{"kind":"Field","name":{"kind":"Name","value":"firstInteraction"}},{"kind":"Field","name":{"kind":"Name","value":"lastInteraction"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupItemPreviewFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"cacheProjection"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupEntityIdentityFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupAgentSessionFields"}},{"kind":"Field","name":{"kind":"Name","value":"frecencyScore"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupDatabaseRow"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tableId"}},{"kind":"Field","name":{"kind":"Name","value":"databaseId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"creatorId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupInitiative"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewerPermission"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAccessLevelPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"fileType"}},{"kind":"Field","name":{"kind":"Name","value":"projectId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"subType"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskSubType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isCompleted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChat"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"chatName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"model"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"projectId"}},{"kind":"Field","name":{"kind":"Name","value":"isPersistent"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupProject"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"projectName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"parentId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEmailThread"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"providerId"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"inboxVisible"}},{"kind":"Field","name":{"kind":"Name","value":"hasReceivedMail"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"latestInboundMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"latestOutboundMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"latestNonSpamMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"reminderReturnedAt"}},{"kind":"Field","name":{"kind":"Name","value":"mailDraftState"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailDraftStateFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"mailAllPreview"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MailPreviewFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"mailDraftPreview"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MailPreviewFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"mailSentPreview"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MailPreviewFields"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"emailName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"senderEmail"}},{"kind":"Field","name":{"kind":"Name","value":"senderName"}},{"kind":"Field","name":{"kind":"Name","value":"senderPhotoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"isRead"}},{"kind":"Field","name":{"kind":"Name","value":"isDraft"}},{"kind":"Field","name":{"kind":"Name","value":"isImportant"}},{"kind":"Field","name":{"kind":"Name","value":"isSignal"}},{"kind":"Field","name":{"kind":"Name","value":"projectId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","alias":{"kind":"Name","value":"participants"},"name":{"kind":"Name","value":"senders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"contactId"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"sfsPhotoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"messageId"}},{"kind":"Field","name":{"kind":"Name","value":"providerAttachmentId"}},{"kind":"Field","name":{"kind":"Name","value":"filename"}},{"kind":"Field","name":{"kind":"Name","value":"mimeType"}},{"kind":"Field","name":{"kind":"Name","value":"sizeBytes"}},{"kind":"Field","name":{"kind":"Name","value":"contentId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"labels"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"providerLabelId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"messageListVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"labelListVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannel"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"channelType"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"organizationId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"interactedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isParticipant"}},{"kind":"Field","name":{"kind":"Name","value":"participants"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"joinedAt"}},{"kind":"Field","name":{"kind":"Name","value":"leftAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"latestMessage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupChannelMessageFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"latestNonThreadMessage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupChannelMessageFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannelMessage"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveUpdatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"replyCount"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCall"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"callChannelId"},"name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"channelName"}},{"kind":"Field","name":{"kind":"Name","value":"createdBy"}},{"kind":"Field","name":{"kind":"Name","value":"customName"}},{"kind":"Field","name":{"kind":"Name","value":"summary"}},{"kind":"Field","name":{"kind":"Name","value":"startedAt"}},{"kind":"Field","name":{"kind":"Name","value":"endedAt"}},{"kind":"Field","name":{"kind":"Name","value":"durationMs"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"attended"}},{"kind":"Field","name":{"kind":"Name","value":"participants"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"joinedAt"}},{"kind":"Field","name":{"kind":"Name","value":"leftAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"guests"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"joinedAt"}},{"kind":"Field","name":{"kind":"Name","value":"leftAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"GraphqlCrmContactFields"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCrmCompany"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"crmTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"crmCompanyName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"emailSync"}},{"kind":"Field","name":{"kind":"Name","value":"hidden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"domains"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupForeignEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","name":{"kind":"Name","value":"foreignEntitySource"}},{"kind":"Field","name":{"kind":"Name","value":"storedForId"}},{"kind":"Field","name":{"kind":"Name","value":"storedForAuthEntity"}},{"kind":"Field","name":{"kind":"Name","value":"sourceMetadata"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCalendarEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventStatus"},"name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"time"}},{"kind":"Field","name":{"kind":"Name","value":"conferenceUrl"}},{"kind":"Field","name":{"kind":"Name","value":"isReadOnly"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationStateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventType"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"targetEntityType"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"sent"}},{"kind":"Field","name":{"kind":"Name","value":"state"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationNavigationMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotifEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlExternalChatMessageMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"externalChatProvider"},"name":{"kind":"Name","value":"provider"}},{"kind":"Field","alias":{"kind":"Name","value":"externalChatName"},"name":{"kind":"Name","value":"chatName"}},{"kind":"Field","alias":{"kind":"Name","value":"externalChatMessageId"},"name":{"kind":"Name","value":"messageId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDocumentMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentMentionDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMentionedInDocumentCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentMentionId"},"name":{"kind":"Name","value":"mentionId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlRepliedToDocumentCommentThreadMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityAccessRequestedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedRequestId"},"name":{"kind":"Name","value":"requestId"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedRevision"},"name":{"kind":"Name","value":"revision"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedEntityName"},"name":{"kind":"Name","value":"entityName"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedAccessLevel"},"name":{"kind":"Name","value":"accessLevel"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityAccessGrantedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedRequestId"},"name":{"kind":"Name","value":"requestId"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedRevision"},"name":{"kind":"Name","value":"revision"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedEntityName"},"name":{"kind":"Name","value":"entityName"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedAccessLevel"},"name":{"kind":"Name","value":"accessLevel"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCommentedOnDocumentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInitiativeDiscussionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionProjectName"},"name":{"kind":"Name","value":"projectName"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionReason"},"name":{"kind":"Name","value":"reason"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCrmDiscussionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionRecordName"},"name":{"kind":"Name","value":"recordName"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionReason"},"name":{"kind":"Name","value":"reason"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelInviteMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelInviteInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageSendMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageReactionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionEmoji"},"name":{"kind":"Name","value":"emoji"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelReplyMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyUserId"},"name":{"kind":"Name","value":"userId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadParentSenderId"},"name":{"kind":"Name","value":"threadParentSenderId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCallStartedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"callStartedChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"callStartedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNewEmailMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"newEmailSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailToEmail"},"name":{"kind":"Name","value":"toEmail"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSubject"},"name":{"kind":"Name","value":"subject"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSnippet"},"name":{"kind":"Name","value":"snippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInboxReauthRequiredMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inboxReauthRequiredEmailAddress"},"name":{"kind":"Name","value":"emailAddress"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlRoutineRunFinishedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"routineRunFinishedRoutineId"},"name":{"kind":"Name","value":"routineId"}},{"kind":"Field","alias":{"kind":"Name","value":"routineRunFinishedRoutineName"},"name":{"kind":"Name","value":"routineName"}},{"kind":"Field","alias":{"kind":"Name","value":"routineRunFinishedSucceeded"},"name":{"kind":"Name","value":"succeeded"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInviteToTeamMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamName"},"name":{"kind":"Name","value":"teamName"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamInviteId"},"name":{"kind":"Name","value":"teamInviteId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamRole"},"name":{"kind":"Name","value":"role"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskAssignedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskId"},"name":{"kind":"Name","value":"taskId"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskName"},"name":{"kind":"Name","value":"taskName"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedAssignedBy"},"name":{"kind":"Name","value":"assignedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"reminderReminderId"},"name":{"kind":"Name","value":"reminderId"}},{"kind":"Field","alias":{"kind":"Name","value":"reminderDescription"},"name":{"kind":"Name","value":"description"}},{"kind":"Field","alias":{"kind":"Name","value":"reminderScheduledFor"},"name":{"kind":"Name","value":"scheduledFor"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarEventReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEventId"},"name":{"kind":"Name","value":"eventId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderOccurrenceKey"},"name":{"kind":"Name","value":"occurrenceKey"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartsAt"},"name":{"kind":"Name","value":"startsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEndsAt"},"name":{"kind":"Name","value":"endsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartDate"},"name":{"kind":"Name","value":"startDate"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTimeZone"},"name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderMinutesBefore"},"name":{"kind":"Name","value":"minutesBefore"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarEventJoinRequestMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventJoinRequestRequestId"},"name":{"kind":"Name","value":"requestId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventJoinRequestEventId"},"name":{"kind":"Name","value":"eventId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventJoinRequestTitle"},"name":{"kind":"Name","value":"title"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAiResponseMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"aiResponseSummary"},"name":{"kind":"Name","value":"summary"}},{"kind":"Field","alias":{"kind":"Name","value":"aiResponseMessageId"},"name":{"kind":"Name","value":"messageId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrStatusChangedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedStatus"},"name":{"kind":"Name","value":"status"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedAction"},"name":{"kind":"Name","value":"action"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedPreviousStatus"},"name":{"kind":"Name","value":"previousStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedHeadBranch"},"name":{"kind":"Name","value":"headBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedBaseBranch"},"name":{"kind":"Name","value":"baseBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedMergedAt"},"name":{"kind":"Name","value":"mergedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCheckRunMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckRunGithubId"},"name":{"kind":"Name","value":"checkRunGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckName"},"name":{"kind":"Name","value":"checkName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckStatus"},"name":{"kind":"Name","value":"checkStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunConclusion"},"name":{"kind":"Name","value":"conclusion"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckUrl"},"name":{"kind":"Name","value":"checkUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCompletedAt"},"name":{"kind":"Name","value":"completedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubReviewRequestedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubLogin"},"name":{"kind":"Name","value":"requestedReviewerGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubUserId"},"name":{"kind":"Name","value":"requestedReviewerGithubUserId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentKind"},"name":{"kind":"Name","value":"commentKind"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentSnippet"},"name":{"kind":"Name","value":"commentSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionLocation"},"name":{"kind":"Name","value":"location"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTextSnippet"},"name":{"kind":"Name","value":"textSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrReviewMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewGithubId"},"name":{"kind":"Name","value":"reviewGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewUrl"},"name":{"kind":"Name","value":"reviewUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewSnippet"},"name":{"kind":"Name","value":"reviewSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionSettledMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledTurn"},"name":{"kind":"Name","value":"turn"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledActor"},"name":{"kind":"Name","value":"actor"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledStopReason"},"name":{"kind":"Name","value":"stopReason"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledExcerpt"},"name":{"kind":"Name","value":"excerpt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionWaitingForInputMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputTurn"},"name":{"kind":"Name","value":"turn"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputQuestion"},"name":{"kind":"Name","value":"question"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionMentionedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedMentionedBy"},"name":{"kind":"Name","value":"mentionedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedActionId"},"name":{"kind":"Name","value":"actionId"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotifEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationNavigationMetadataFields"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageSendMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelReplyMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelReplyHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationStateFields"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationMetadataFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NotificationInboxEntryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotificationInboxEntry"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"groupId"}},{"kind":"Field","name":{"kind":"Name","value":"sortAt"}},{"kind":"Field","name":{"kind":"Name","value":"entity"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupItemPreviewFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rows"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"rowType"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"revision"}},{"kind":"Field","name":{"kind":"Name","value":"latestAt"}},{"kind":"Field","name":{"kind":"Name","value":"actor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"principalId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"actions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"targetId"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"Field","name":{"kind":"Name","value":"unseen"}},{"kind":"Field","name":{"kind":"Name","value":"count"}},{"kind":"Field","name":{"kind":"Name","value":"notifications"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"20"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NotificationInboxPatchFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotificationInboxPatch"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotificationInboxEntryUpserted"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"entry"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"NotificationInboxEntryFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotificationInboxEntryRemoved"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"groupId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotificationInboxInvalidated"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"refresh"}}]}}]}}]} as unknown as DocumentNode<MarkNotificationInboxRowsSeenMutation, MarkNotificationInboxRowsSeenMutationVariables>;+export const NotificationInboxUpdatesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"NotificationInboxUpdates"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"scope"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"NotificationInboxScopeInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"notificationInboxUpdates"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"scope"},"value":{"kind":"Variable","name":{"kind":"Name","value":"scope"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"NotificationInboxPatchFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupEntityIdentityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"isFavorited"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPropertyValueFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlBooleanPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"boolValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNumberPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"numberValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlStringPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"stringValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDatePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"dateValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDateRangePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"rangeStart"},"name":{"kind":"Name","value":"start"}},{"kind":"Field","alias":{"kind":"Name","value":"rangeEnd"},"name":{"kind":"Name","value":"end"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSelectOptionPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"optionIds"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityReferencePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"references"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"specificMessageId"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlLinkPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"urls"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPropertyFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlProperty"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"propertyDefinitionId"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"isMultiSelect"}},{"kind":"Field","name":{"kind":"Name","value":"specificEntityType"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isMetadata"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyValueFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupAgentSessionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupAgentSession"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"sessionName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"archivedBy"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"harness"}},{"kind":"Field","name":{"kind":"Name","value":"repoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"repoBranch"}},{"kind":"Field","name":{"kind":"Name","value":"pullRequestUrl"}},{"kind":"Field","name":{"kind":"Name","value":"workingBranch"}},{"kind":"Field","name":{"kind":"Name","value":"pullRequestState"}},{"kind":"Field","name":{"kind":"Name","value":"pullRequestId"}},{"kind":"Field","name":{"kind":"Name","value":"turnState"}},{"kind":"Field","name":{"kind":"Name","value":"bot"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"avatarUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"source"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MailPreviewFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMailPreviewMessage"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"subject"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"isDraft"}},{"kind":"Field","name":{"kind":"Name","value":"senderEmail"}},{"kind":"Field","name":{"kind":"Name","value":"senderName"}},{"kind":"Field","name":{"kind":"Name","value":"senderPhotoUrl"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailDraftAggregateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMailDraftAggregate"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"messageCount"}},{"kind":"Field","name":{"kind":"Name","value":"inboxVisible"}},{"kind":"Field","name":{"kind":"Name","value":"isRead"}},{"kind":"Field","name":{"kind":"Name","value":"isSignal"}},{"kind":"Field","name":{"kind":"Name","value":"hasCalendarAttachment"}},{"kind":"Field","name":{"kind":"Name","value":"latestInboundMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"latestNonSpamMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"latestOutboundMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"previewTs"}},{"kind":"Field","name":{"kind":"Name","value":"preview"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MailPreviewFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailDraftStateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMailDraftState"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"baseline"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailDraftAggregateFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"drafts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"macroDraft"}},{"kind":"Field","name":{"kind":"Name","value":"facts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailDraftAggregateFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupChannelMessageFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannelMessagePreview"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"messageId"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"mentions"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"GraphqlCrmContactFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCrmContact"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","alias":{"kind":"Name","value":"contactTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"contactCompanyId"},"name":{"kind":"Name","value":"parentCompanyId"}},{"kind":"Field","alias":{"kind":"Name","value":"contactCompanyName"},"name":{"kind":"Name","value":"parentCompanyName"}},{"kind":"Field","alias":{"kind":"Name","value":"contactEmail"},"name":{"kind":"Name","value":"emailAddress"}},{"kind":"Field","alias":{"kind":"Name","value":"crmContactName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"hidden"}},{"kind":"Field","name":{"kind":"Name","value":"firstInteraction"}},{"kind":"Field","name":{"kind":"Name","value":"lastInteraction"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupItemPreviewFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"cacheProjection"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupEntityIdentityFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupAgentSessionFields"}},{"kind":"Field","name":{"kind":"Name","value":"frecencyScore"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupDatabaseRow"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tableId"}},{"kind":"Field","name":{"kind":"Name","value":"databaseId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"creatorId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupInitiative"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewerPermission"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAccessLevelPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"fileType"}},{"kind":"Field","name":{"kind":"Name","value":"projectId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"subType"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskSubType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isCompleted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChat"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"chatName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"model"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"projectId"}},{"kind":"Field","name":{"kind":"Name","value":"isPersistent"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupProject"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"projectName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"parentId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEmailThread"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"providerId"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"inboxVisible"}},{"kind":"Field","name":{"kind":"Name","value":"hasReceivedMail"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"latestInboundMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"latestOutboundMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"latestNonSpamMessageTs"}},{"kind":"Field","name":{"kind":"Name","value":"reminderReturnedAt"}},{"kind":"Field","name":{"kind":"Name","value":"mailDraftState"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailDraftStateFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"mailAllPreview"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MailPreviewFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"mailDraftPreview"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MailPreviewFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"mailSentPreview"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"MailPreviewFields"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"emailName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"senderEmail"}},{"kind":"Field","name":{"kind":"Name","value":"senderName"}},{"kind":"Field","name":{"kind":"Name","value":"senderPhotoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"isRead"}},{"kind":"Field","name":{"kind":"Name","value":"isDraft"}},{"kind":"Field","name":{"kind":"Name","value":"isImportant"}},{"kind":"Field","name":{"kind":"Name","value":"isSignal"}},{"kind":"Field","name":{"kind":"Name","value":"projectId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","alias":{"kind":"Name","value":"participants"},"name":{"kind":"Name","value":"senders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"contactId"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"sfsPhotoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"messageId"}},{"kind":"Field","name":{"kind":"Name","value":"providerAttachmentId"}},{"kind":"Field","name":{"kind":"Name","value":"filename"}},{"kind":"Field","name":{"kind":"Name","value":"mimeType"}},{"kind":"Field","name":{"kind":"Name","value":"sizeBytes"}},{"kind":"Field","name":{"kind":"Name","value":"contentId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"labels"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"providerLabelId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"messageListVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"labelListVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannel"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"channelType"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"organizationId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"interactedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isParticipant"}},{"kind":"Field","name":{"kind":"Name","value":"participants"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"joinedAt"}},{"kind":"Field","name":{"kind":"Name","value":"leftAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"latestMessage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupChannelMessageFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"latestNonThreadMessage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupChannelMessageFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannelMessage"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveUpdatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"replyCount"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCall"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"callChannelId"},"name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"channelName"}},{"kind":"Field","name":{"kind":"Name","value":"createdBy"}},{"kind":"Field","name":{"kind":"Name","value":"customName"}},{"kind":"Field","name":{"kind":"Name","value":"summary"}},{"kind":"Field","name":{"kind":"Name","value":"startedAt"}},{"kind":"Field","name":{"kind":"Name","value":"endedAt"}},{"kind":"Field","name":{"kind":"Name","value":"durationMs"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"attended"}},{"kind":"Field","name":{"kind":"Name","value":"participants"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"joinedAt"}},{"kind":"Field","name":{"kind":"Name","value":"leftAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"guests"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"joinedAt"}},{"kind":"Field","name":{"kind":"Name","value":"leftAt"}}]}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"GraphqlCrmContactFields"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCrmCompany"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"crmTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"crmCompanyName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"emailSync"}},{"kind":"Field","name":{"kind":"Name","value":"hidden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"domains"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupForeignEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","name":{"kind":"Name","value":"foreignEntitySource"}},{"kind":"Field","name":{"kind":"Name","value":"storedForId"}},{"kind":"Field","name":{"kind":"Name","value":"storedForAuthEntity"}},{"kind":"Field","name":{"kind":"Name","value":"sourceMetadata"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCalendarEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventStatus"},"name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"time"}},{"kind":"Field","name":{"kind":"Name","value":"conferenceUrl"}},{"kind":"Field","name":{"kind":"Name","value":"isReadOnly"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationStateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventType"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"targetEntityType"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"sent"}},{"kind":"Field","name":{"kind":"Name","value":"state"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationNavigationMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotifEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlExternalChatMessageMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"externalChatProvider"},"name":{"kind":"Name","value":"provider"}},{"kind":"Field","alias":{"kind":"Name","value":"externalChatName"},"name":{"kind":"Name","value":"chatName"}},{"kind":"Field","alias":{"kind":"Name","value":"externalChatMessageId"},"name":{"kind":"Name","value":"messageId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDocumentMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentMentionDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMentionedInDocumentCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentMentionId"},"name":{"kind":"Name","value":"mentionId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlRepliedToDocumentCommentThreadMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityAccessRequestedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedRequestId"},"name":{"kind":"Name","value":"requestId"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedRevision"},"name":{"kind":"Name","value":"revision"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedEntityName"},"name":{"kind":"Name","value":"entityName"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedAccessLevel"},"name":{"kind":"Name","value":"accessLevel"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityAccessGrantedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedRequestId"},"name":{"kind":"Name","value":"requestId"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedRevision"},"name":{"kind":"Name","value":"revision"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedEntityName"},"name":{"kind":"Name","value":"entityName"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedAccessLevel"},"name":{"kind":"Name","value":"accessLevel"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCommentedOnDocumentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInitiativeDiscussionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionProjectName"},"name":{"kind":"Name","value":"projectName"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionReason"},"name":{"kind":"Name","value":"reason"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCrmDiscussionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionRecordName"},"name":{"kind":"Name","value":"recordName"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionReason"},"name":{"kind":"Name","value":"reason"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelInviteMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelInviteInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageSendMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageReactionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionEmoji"},"name":{"kind":"Name","value":"emoji"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelReplyMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyUserId"},"name":{"kind":"Name","value":"userId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadParentSenderId"},"name":{"kind":"Name","value":"threadParentSenderId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCallStartedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"callStartedChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"callStartedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNewEmailMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"newEmailSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailToEmail"},"name":{"kind":"Name","value":"toEmail"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSubject"},"name":{"kind":"Name","value":"subject"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSnippet"},"name":{"kind":"Name","value":"snippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInboxReauthRequiredMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inboxReauthRequiredEmailAddress"},"name":{"kind":"Name","value":"emailAddress"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlRoutineRunFinishedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"routineRunFinishedRoutineId"},"name":{"kind":"Name","value":"routineId"}},{"kind":"Field","alias":{"kind":"Name","value":"routineRunFinishedRoutineName"},"name":{"kind":"Name","value":"routineName"}},{"kind":"Field","alias":{"kind":"Name","value":"routineRunFinishedSucceeded"},"name":{"kind":"Name","value":"succeeded"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInviteToTeamMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamName"},"name":{"kind":"Name","value":"teamName"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamInviteId"},"name":{"kind":"Name","value":"teamInviteId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamRole"},"name":{"kind":"Name","value":"role"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskAssignedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskId"},"name":{"kind":"Name","value":"taskId"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskName"},"name":{"kind":"Name","value":"taskName"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedAssignedBy"},"name":{"kind":"Name","value":"assignedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"reminderReminderId"},"name":{"kind":"Name","value":"reminderId"}},{"kind":"Field","alias":{"kind":"Name","value":"reminderDescription"},"name":{"kind":"Name","value":"description"}},{"kind":"Field","alias":{"kind":"Name","value":"reminderScheduledFor"},"name":{"kind":"Name","value":"scheduledFor"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarEventReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEventId"},"name":{"kind":"Name","value":"eventId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderOccurrenceKey"},"name":{"kind":"Name","value":"occurrenceKey"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartsAt"},"name":{"kind":"Name","value":"startsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEndsAt"},"name":{"kind":"Name","value":"endsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartDate"},"name":{"kind":"Name","value":"startDate"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTimeZone"},"name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderMinutesBefore"},"name":{"kind":"Name","value":"minutesBefore"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarEventJoinRequestMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventJoinRequestRequestId"},"name":{"kind":"Name","value":"requestId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventJoinRequestEventId"},"name":{"kind":"Name","value":"eventId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventJoinRequestTitle"},"name":{"kind":"Name","value":"title"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAiResponseMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"aiResponseSummary"},"name":{"kind":"Name","value":"summary"}},{"kind":"Field","alias":{"kind":"Name","value":"aiResponseMessageId"},"name":{"kind":"Name","value":"messageId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrStatusChangedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedStatus"},"name":{"kind":"Name","value":"status"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedAction"},"name":{"kind":"Name","value":"action"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedPreviousStatus"},"name":{"kind":"Name","value":"previousStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedHeadBranch"},"name":{"kind":"Name","value":"headBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedBaseBranch"},"name":{"kind":"Name","value":"baseBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedMergedAt"},"name":{"kind":"Name","value":"mergedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCheckRunMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckRunGithubId"},"name":{"kind":"Name","value":"checkRunGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckName"},"name":{"kind":"Name","value":"checkName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckStatus"},"name":{"kind":"Name","value":"checkStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunConclusion"},"name":{"kind":"Name","value":"conclusion"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckUrl"},"name":{"kind":"Name","value":"checkUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCompletedAt"},"name":{"kind":"Name","value":"completedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubReviewRequestedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubLogin"},"name":{"kind":"Name","value":"requestedReviewerGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubUserId"},"name":{"kind":"Name","value":"requestedReviewerGithubUserId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentKind"},"name":{"kind":"Name","value":"commentKind"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentSnippet"},"name":{"kind":"Name","value":"commentSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionLocation"},"name":{"kind":"Name","value":"location"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTextSnippet"},"name":{"kind":"Name","value":"textSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrReviewMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewGithubId"},"name":{"kind":"Name","value":"reviewGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewUrl"},"name":{"kind":"Name","value":"reviewUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewSnippet"},"name":{"kind":"Name","value":"reviewSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionSettledMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledTurn"},"name":{"kind":"Name","value":"turn"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledActor"},"name":{"kind":"Name","value":"actor"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledStopReason"},"name":{"kind":"Name","value":"stopReason"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledExcerpt"},"name":{"kind":"Name","value":"excerpt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionWaitingForInputMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputTurn"},"name":{"kind":"Name","value":"turn"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputQuestion"},"name":{"kind":"Name","value":"question"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionMentionedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedMentionedBy"},"name":{"kind":"Name","value":"mentionedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedActionId"},"name":{"kind":"Name","value":"actionId"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotifEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationNavigationMetadataFields"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageSendMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelReplyMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelReplyHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationStateFields"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationMetadataFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NotificationInboxEntryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotificationInboxEntry"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"groupId"}},{"kind":"Field","name":{"kind":"Name","value":"sortAt"}},{"kind":"Field","name":{"kind":"Name","value":"entity"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupItemPreviewFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rows"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"rowType"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"revision"}},{"kind":"Field","name":{"kind":"Name","value":"latestAt"}},{"kind":"Field","name":{"kind":"Name","value":"actor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"principalId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"actions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"targetId"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"Field","name":{"kind":"Name","value":"unseen"}},{"kind":"Field","name":{"kind":"Name","value":"count"}},{"kind":"Field","name":{"kind":"Name","value":"notifications"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"20"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NotificationInboxPatchFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotificationInboxPatch"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotificationInboxEntryUpserted"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"entry"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"NotificationInboxEntryFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotificationInboxEntryRemoved"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"groupId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotificationInboxInvalidated"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"refresh"}}]}}]}}]} as unknown as DocumentNode<NotificationInboxUpdatesSubscription, NotificationInboxUpdatesSubscriptionVariables>;export const NotificationStateCacheWriteDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"NotificationStateCacheWrite"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"notificationUpdates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlUpdatedNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"notification"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"state"}}]}}]}}]}}]}}]} as unknown as DocumentNode<NotificationStateCacheWriteSubscription, NotificationStateCacheWriteSubscriptionVariables>;export const NotificationUpdatesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"NotificationUpdates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"notificationUpdates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNewNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"notification"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlUpdatedNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"notification"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCacheDeletion"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"graphqlTypeName"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationStateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventType"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"targetEntityType"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"sent"}},{"kind":"Field","name":{"kind":"Name","value":"state"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationNavigationMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotifEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlExternalChatMessageMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"externalChatProvider"},"name":{"kind":"Name","value":"provider"}},{"kind":"Field","alias":{"kind":"Name","value":"externalChatName"},"name":{"kind":"Name","value":"chatName"}},{"kind":"Field","alias":{"kind":"Name","value":"externalChatMessageId"},"name":{"kind":"Name","value":"messageId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDocumentMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentMentionDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMentionedInDocumentCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentMentionId"},"name":{"kind":"Name","value":"mentionId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlRepliedToDocumentCommentThreadMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityAccessRequestedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedRequestId"},"name":{"kind":"Name","value":"requestId"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedRevision"},"name":{"kind":"Name","value":"revision"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedEntityName"},"name":{"kind":"Name","value":"entityName"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedAccessLevel"},"name":{"kind":"Name","value":"accessLevel"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityAccessGrantedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedRequestId"},"name":{"kind":"Name","value":"requestId"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedRevision"},"name":{"kind":"Name","value":"revision"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedEntityName"},"name":{"kind":"Name","value":"entityName"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedAccessLevel"},"name":{"kind":"Name","value":"accessLevel"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCommentedOnDocumentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInitiativeDiscussionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionProjectName"},"name":{"kind":"Name","value":"projectName"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionReason"},"name":{"kind":"Name","value":"reason"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCrmDiscussionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionRecordName"},"name":{"kind":"Name","value":"recordName"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionReason"},"name":{"kind":"Name","value":"reason"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelInviteMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelInviteInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageSendMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageReactionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionEmoji"},"name":{"kind":"Name","value":"emoji"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelReplyMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyUserId"},"name":{"kind":"Name","value":"userId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadParentSenderId"},"name":{"kind":"Name","value":"threadParentSenderId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCallStartedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"callStartedChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"callStartedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNewEmailMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"newEmailSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailToEmail"},"name":{"kind":"Name","value":"toEmail"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSubject"},"name":{"kind":"Name","value":"subject"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSnippet"},"name":{"kind":"Name","value":"snippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInboxReauthRequiredMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inboxReauthRequiredEmailAddress"},"name":{"kind":"Name","value":"emailAddress"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlRoutineRunFinishedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"routineRunFinishedRoutineId"},"name":{"kind":"Name","value":"routineId"}},{"kind":"Field","alias":{"kind":"Name","value":"routineRunFinishedRoutineName"},"name":{"kind":"Name","value":"routineName"}},{"kind":"Field","alias":{"kind":"Name","value":"routineRunFinishedSucceeded"},"name":{"kind":"Name","value":"succeeded"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInviteToTeamMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamName"},"name":{"kind":"Name","value":"teamName"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamInviteId"},"name":{"kind":"Name","value":"teamInviteId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamRole"},"name":{"kind":"Name","value":"role"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskAssignedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskId"},"name":{"kind":"Name","value":"taskId"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskName"},"name":{"kind":"Name","value":"taskName"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedAssignedBy"},"name":{"kind":"Name","value":"assignedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"reminderReminderId"},"name":{"kind":"Name","value":"reminderId"}},{"kind":"Field","alias":{"kind":"Name","value":"reminderDescription"},"name":{"kind":"Name","value":"description"}},{"kind":"Field","alias":{"kind":"Name","value":"reminderScheduledFor"},"name":{"kind":"Name","value":"scheduledFor"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarEventReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEventId"},"name":{"kind":"Name","value":"eventId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderOccurrenceKey"},"name":{"kind":"Name","value":"occurrenceKey"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartsAt"},"name":{"kind":"Name","value":"startsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEndsAt"},"name":{"kind":"Name","value":"endsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartDate"},"name":{"kind":"Name","value":"startDate"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTimeZone"},"name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderMinutesBefore"},"name":{"kind":"Name","value":"minutesBefore"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarEventJoinRequestMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventJoinRequestRequestId"},"name":{"kind":"Name","value":"requestId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventJoinRequestEventId"},"name":{"kind":"Name","value":"eventId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventJoinRequestTitle"},"name":{"kind":"Name","value":"title"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAiResponseMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"aiResponseSummary"},"name":{"kind":"Name","value":"summary"}},{"kind":"Field","alias":{"kind":"Name","value":"aiResponseMessageId"},"name":{"kind":"Name","value":"messageId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrStatusChangedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedStatus"},"name":{"kind":"Name","value":"status"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedAction"},"name":{"kind":"Name","value":"action"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedPreviousStatus"},"name":{"kind":"Name","value":"previousStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedHeadBranch"},"name":{"kind":"Name","value":"headBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedBaseBranch"},"name":{"kind":"Name","value":"baseBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedMergedAt"},"name":{"kind":"Name","value":"mergedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCheckRunMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckRunGithubId"},"name":{"kind":"Name","value":"checkRunGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckName"},"name":{"kind":"Name","value":"checkName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckStatus"},"name":{"kind":"Name","value":"checkStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunConclusion"},"name":{"kind":"Name","value":"conclusion"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckUrl"},"name":{"kind":"Name","value":"checkUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCompletedAt"},"name":{"kind":"Name","value":"completedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubReviewRequestedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubLogin"},"name":{"kind":"Name","value":"requestedReviewerGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubUserId"},"name":{"kind":"Name","value":"requestedReviewerGithubUserId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentKind"},"name":{"kind":"Name","value":"commentKind"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentSnippet"},"name":{"kind":"Name","value":"commentSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionLocation"},"name":{"kind":"Name","value":"location"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTextSnippet"},"name":{"kind":"Name","value":"textSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrReviewMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewGithubId"},"name":{"kind":"Name","value":"reviewGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewUrl"},"name":{"kind":"Name","value":"reviewUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewSnippet"},"name":{"kind":"Name","value":"reviewSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionSettledMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledTurn"},"name":{"kind":"Name","value":"turn"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledActor"},"name":{"kind":"Name","value":"actor"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledStopReason"},"name":{"kind":"Name","value":"stopReason"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledExcerpt"},"name":{"kind":"Name","value":"excerpt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionWaitingForInputMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputTurn"},"name":{"kind":"Name","value":"turn"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputQuestion"},"name":{"kind":"Name","value":"question"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionMentionedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedMentionedBy"},"name":{"kind":"Name","value":"mentionedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedActionId"},"name":{"kind":"Name","value":"actionId"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotifEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationNavigationMetadataFields"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageSendMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelReplyMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelReplyHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationStateFields"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationMetadataFields"}}]}}]}}]} as unknown as DocumentNode<NotificationUpdatesSubscription, NotificationUpdatesSubscriptionVariables>;export const ItemPreviewNameCacheWriteDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ItemPreviewNameCacheWrite"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SoupInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"soup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentName"},"name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChat"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"chatName"},"name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupProject"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"projectName"},"name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannel"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelDisplayName"},"name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCall"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"customName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCrmCompany"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"companyName"},"name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEmailThread"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"emailName"},"name":{"kind":"Name","value":"name"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<ItemPreviewNameCacheWriteQuery, ItemPreviewNameCacheWriteQueryVariables>;diff --git a/apps/web/src/lib/service-clients/service-storage/graphql/notification-inbox.graphql b/apps/web/src/lib/service-clients/service-storage/graphql/notification-inbox.graphqlnew file mode 100644index 0000000000..18036438c1--- /dev/null+++ b/apps/web/src/lib/service-clients/service-storage/graphql/notification-inbox.graphql@@ -0,0 +1,98 @@+# One notification inbox entry: the entity a group of notifications is filed+# under, and its rows newest first.+fragment NotificationInboxEntryFields on NotificationInboxEntry {+ groupId+ sortAt+ entity {+ ...SoupItemPreviewFields+ }+ rows {+ id+ rowType+ threadId+ revision+ latestAt+ actor {+ kind+ principalId+ name+ }+ actions {+ kind+ targetId+ url+ }+ unseen+ count+ notifications(limit: 20) {+ ...SoupNotificationFields+ }+ }+}++fragment NotificationInboxPatchFields on NotificationInboxPatch {+ __typename+ ... on NotificationInboxEntryUpserted {+ entry {+ ...NotificationInboxEntryFields+ }+ }+ ... on NotificationInboxEntryRemoved {+ groupId+ }+ ... on NotificationInboxInvalidated {+ refresh+ }+}++query NotificationInbox($input: NotificationInboxInput) {+ user {+ id+ notificationInbox(input: $input) {+ entries {+ ...NotificationInboxEntryFields+ }+ nextCursor+ nextPosition {+ sortAt+ entityId+ }+ }+ }+}++mutation MarkNotificationInboxRowsDone(+ $input: MarkNotificationInboxRowsDoneInput!+) {+ markNotificationInboxRowsDone(input: $input) {+ rowIds+ undoToken+ }+}++mutation UndoNotificationInboxRowsDone(+ $input: UndoNotificationInboxRowsDoneInput!+) {+ undoNotificationInboxRowsDone(input: $input) {+ patches {+ ...NotificationInboxPatchFields+ }+ }+}++mutation MarkNotificationInboxRowsSeen(+ $input: MarkNotificationInboxRowsSeenInput!+) {+ markNotificationInboxRowsSeen(input: $input) {+ patches {+ ...NotificationInboxPatchFields+ }+ }+}++# Entry changes for one inbox scope, applied as batches.+subscription NotificationInboxUpdates($scope: NotificationInboxScopeInput) {+ notificationInboxUpdates(scope: $scope) {+ ...NotificationInboxPatchFields+ }+}diff --git a/apps/web/src/routes/app-router-view.tsx b/apps/web/src/routes/app-router-view.tsxindex c9b2dbbd80..c87a0e4cb2 100644--- a/apps/web/src/routes/app-router-view.tsx+++ b/apps/web/src/routes/app-router-view.tsx@@ -59,6 +59,7 @@ import {MailRouteView,MeetingRouter,NotFound,+ NotificationsRouteView,PrDetailRouteView,ProjectDetailRouteView,ProjectTaskRouteView,@@ -145,6 +146,7 @@ import {meetRoute,mobileEmailSignupRoute,notFoundRoute,+ notificationsRoute,onboardingRoute,prDetailRoute,projectDetailRoute,@@ -381,6 +383,10 @@ export function AppRouterView() {</Route><Route definition={recentRoute} component={RecentRouteView} /><Route definition={activityRoute} component={ActivityRouteView} />+ <Route+ definition={notificationsRoute}+ component={NotificationsRouteView}+ /><Routedefinition={agentsViewRoute}component={AgentsRouteView}diff --git a/apps/web/src/routes/lazy-route-views.ts b/apps/web/src/routes/lazy-route-views.tsindex 8be626462b..3a823ba279 100644--- a/apps/web/src/routes/lazy-route-views.ts+++ b/apps/web/src/routes/lazy-route-views.ts@@ -23,6 +23,10 @@ export const CallsCallDetail = lazyNamed(() => import('@app/features/calls-view/views/call-detail'),'CallsCallDetail');+export const NotificationsRouteView = lazyNamed(+ () => import('@app/features/notifications-inbox/route-views'),+ 'NotificationsRouteView'+);export const PrDetailRouteView = lazyNamed(() => import('@app/features/block-pr/route-views'),'PrDetailRouteView'diff --git a/apps/web/src/routes/routes.ts b/apps/web/src/routes/routes.tsindex bd25a3a20d..950361f66d 100644--- a/apps/web/src/routes/routes.ts+++ b/apps/web/src/routes/routes.ts@@ -497,6 +497,13 @@ export const activityRoute = defineRoute({claim: () => ({ namespace: 'component', id: 'activity' }),});+export const notificationsRoute = defineRoute({+ id: 'view-notifications',+ path: 'notifications',+ search: '*' as const,+ claim: () => ({ namespace: 'component', id: 'notifications' }),+});+export const routinesRoute = defineRoute({id: ROUTINES_ROUTE_ID,path: 'routines',diff --git a/crates/notification_inbox/AGENTS.md b/crates/notification_inbox/AGENTS.mdindex a649a7504b..825e4bd853 100644--- a/crates/notification_inbox/AGENTS.md+++ b/crates/notification_inbox/AGENTS.md@@ -3,14 +3,15 @@## What it isThe unified notifications inbox: the viewer's pending notifications grouped-by the entity they are filed under and cut into rows (one per conversation-thread, channel top level, email thread, task, pull request, request or-agent session). Built on the shared feed layer, `crates/attention_feed`.+by the entity they are filed under and cut into rows (one per channel thread,+channel top level, entity's comments, email thread, task, pull request, request+or agent session). Built on the shared feed layer, `crates/attention_feed`.## Start here- `src/domain/rows.rs`: the row rules — every notification's home row,- one message one row, noise hidden in its natural row.+ one message one row, one stack per top-level message and per entity's+ comments, noise hidden in its natural row.- `src/domain/service.rs`: page, recompute, done, seen and undo.- `src/domain/policy.rs`: which groups the inbox lists.diff --git a/docs/agent-guide/home.md b/docs/agent-guide/home.mdindex c2467af888..27d9432c45 100644--- a/docs/agent-guide/home.md+++ b/docs/agent-guide/home.md@@ -250,6 +250,8 @@ On mobile, the dock uses the bell icon and **Notifications**label; Home is desktop-only. Notifications has no merged own-activity feed orchat starting pane. Opening a row navigates to its entity. On iOS, rows fadeunderneath the filters and status bar using the shared top edge gradient.+With `enable-unified-notifications` on, the bell opens the unified+Notifications view instead (see [notifications.md](notifications.md)).Notifications have three lifecycle states: `unseen`, `seen`, and `done`. Active meansunseen or seen. Viewing must not reopen a done notification; undoing done (`Ctrl+Z`diff --git a/docs/agent-guide/navigation.md b/docs/agent-guide/navigation.mdindex d2aa667af6..c4903c9859 100644--- a/docs/agent-guide/navigation.md+++ b/docs/agent-guide/navigation.md@@ -223,6 +223,7 @@ successfully rather than hashing the empty JavaScript placeholder.| `/app/companies/pipeline/<uuid>` | Customers on a pipeline; `/<company-or-contact>/<uuid>` after it opens a record from the pipeline. `/app/pipeline/<uuid>` redirects here || `/app/companies/<company-or-contact>/<uuid>/<tasks-emails-calls-or-databases>/<item-id>` | Customers with the selected item inline; the section determines its type, with no redundant typed URL fallback. The same suffix works under a pipeline; workspace activity and record Files/overview notes retain type metadata || `/app/activity` | Activity heatmap + feed |+| `/app/notifications` | Unified Notifications view (`enable-unified-notifications`); redirects to Home when the flag is off || `/app/calendar/<month-or-week-or-day>` | Calendar; the focused event, its occurrence, and the locator range use `sN.calendar.*` || `/app/calendar` | Redirects to `/app/calendar/<month-or-week-or-day>` at the remembered period (Day on phones and Week on desktop by default), keeping an `eventId` || `/app/scheduling` | Scheduling workspace: booking links, availability, bookings, insights, and booking page |@@ -509,6 +510,11 @@ Showing Scheduling removes its duplicate from More; the choice survives reload.Activity appears in Customize sidebar only when the `enable-activity-feed` flagis on and, like Scheduling, starts hidden in More (also for existing preferences)until enabled on the rail.+Notifications (bell, `g i`) appears directly below Home only when the+`enable-unified-notifications` flag is on, and is shown on the rail by default.+`g i` reaches Home while it is off; with it on, Home answers only `g h`. Its+unread dot follows Home's unread dot.+External (plug icon, `g x`) appears on the rail only with the`enable-whatsapp-linked` flag; it starts shown and can be hidden like other apps.@@ -518,8 +524,8 @@ External (plug icon, `g x`) appears on the rail only with theglobal search. Hold Shift while selecting `Search everything` to open it in anew split, including when Search is already active. This left-click menu sharesits surface and item styling with the sidebar right-click menus.-- Nav: `Home`, `Drive`, `Email`, `Chat`, `Tasks`, `Calendar`,- `Agents`, `Customers`. Calendar and Customers appear only when+- Nav: `Home`, `Notifications`, `Drive`, `Email`, `Chat`, `Tasks`, `Calendar`,+ `Agents`, `Customers`. Notifications, Calendar and Customers appear only whentheir features are enabled. Calendar shows a next-meeting badge (`Now`, orminutes under an hour away) unless **Next meeting countdown** is off in**Settings → Calendar**.diff --git a/docs/agent-guide/notifications.md b/docs/agent-guide/notifications.mdindex 4c7c881ec8..aa0841ef03 100644--- a/docs/agent-guide/notifications.md+++ b/docs/agent-guide/notifications.md@@ -1,5 +1,117 @@# Notifications+## Notifications view — `/app/notifications`++Behind `enable-unified-notifications` (with GraphQL Soup), the bell below Home+on the outer rail (`g i`) opens one list of everything that needs you, newest+first. The flag is on in dev and comes from PostHog elsewhere;+`VITE_ENABLE_UNIFIED_NOTIFICATIONS` overrides it locally. With the flag off the+route redirects to Home once flags load, and `g i` stays on Home; with it on,+Home keeps `g h`.++Each card is one row of the server's notification inbox+(`user.notificationInbox`): an email thread, a channel's top-level messages, one+top-level message with everything about it (its replies, mentions and reactions,+once there is more than one thing), an entity's comments, a task assignment, a+pull request, a calendar event, an access request or grant, or an agent session.+A top-level message that mentions you has its own card, with its thread; an+entity's comments stay on one card even when one mentions you. The server decides+all of this (`crates/notification_inbox/src/domain/rows.rs`), so live updates and+reads stack the same way. A card shows who it is from (an avatar, an initial for a+sender known only by name such as an email's, or the kind of notification for a+reminder), with a badge on the avatar's corner saying what kind it is, in the theme's color for+the entity it is on, as on that entity's icon elsewhere (Channel,+Message, Mention, Reply, Reaction, Email, Comment, Invite, Access, Agent, Task, Pull+request, Event or Reminder; a stack's newest notification decides, except that a+mention stays one). It is as tall as it has something to say: who did it (for example+**<first name> assigned you a task**), with an unread dot; what it is about;+and up to two lines of what was said. An email has all three (sender, subject,+snippet), a message in a channel has no middle line, and a task has no last one.+Several notifications on a row make a stack, with paper edges: it names+who, what they share (the top-level message when a notification carries it, the+channel, session, document or thread), and the newest line, with its sender when+there are several people.+Choosing a stack opens it and leaves it folded; only its caret unfolds it: the card+stays exactly as it was, its notifications spread into small cards below it, inset+evenly where its paper edges sat, and every other card dims until you close it. Hovering or moving to a dimmed+card brings it back. Each small card opens that notification:+its message or reply, its comment, or an agent's turn. A channel invite and an+email have no message of their own, so they open the channel or the thread.+A stack stays open as new notifications land. The time always shows; on hover Mark done takes its place, and nothing else moves. The author is+the row's actor: a Macro user by first name, an agent by its bot name, or+**Macro**; a row from outside Macro names its email sender, and GitHub rows+keep the GitHub login. A row type, author kind, or button this build doesn't+know yet shows as a plain card with no author and no button.+Date dividers split the list into Home's sections (**Last hour**, **This+morning**, **Yesterday**, and so on), by each row's newest notification; `j`/`k`+skip them.++Click a row or press Enter to preview it beside the list, opened at the+notification's message, thread, or comment, under a **Notifications >**+breadcrumb that clears the preview. Previewing marks the row seen, including+notifications the row hides, and drops its unread dot. With a preview open, `j`/`k` move it along the+list and through unfolded notifications; `l` or the right arrow unfolds the focused+stack and the left arrow folds it from anywhere inside it. Opening a notification+marks its whole row seen, and `e` on one marks its whole stack done. Choosing what's+shown again re-aims it. Calendar events and projects+open in their own views instead. Shift-click or the alternate key opens a new+split. Hover a row and choose **Mark done**, or press `e`, to complete that row+only: the channel thread stays when the channel's top-level row is done, and an+open preview moves to the next row. A toast offers **Undo**, as does+`⌘Z`/`Ctrl+Z`. A new notification in a done row brings it back. An empty inbox+reads **You’re all caught up**; with nothing chosen the pane reads **No+notification selected**.++Rows carry the buttons the server lists for them under their text. An access request offers **Approve** (grants the level asked+for) and **Deny**; a request to join an event you shared offers **Accept** and+**Decline**. Deciding disables the buttons until it finishes, shows a toast+(**Access granted**, **Access request denied**, **Added to the event**,+**Join request declined**), and removes the row; a failed decision leaves the+row and says so. An agent waiting for you offers **Answer** and a granted+access request **Open**; both open the row as choosing it does. A pull request+whose review was requested offers **Review**, which opens the pull request on+GitHub and marks the row seen.++**All** and **Unread** under the header switch the list (`1` and `2`, or Tab, also+switch), and the choice is kept per user across reloads. A row you read under+Unread, or a stack you're going through, stays until you next switch or reload.+With nothing unread, Unread shows **You're all caught up**.++**Filter notifications** (funnel, or `f`) offers **Type** checkboxes that start+checked: Mentions, Replies, Messages, Comments, Email, Tasks, Pull requests,+Calendar, Access requests, and Agents. Unchecking a type hides its rows (Mentions+covers both channel and comment mentions, Replies both channel and comment+threads). The trigger counts hidden types, and **Reset filters** shows them all+again without changing All or Unread. Choices persist per user across reloads.+Hiding every type shows **Every kind of notification is hidden** with Reset+filters; types that hide every row show **No notifications match these filters**. The gear beside+the filter opens **Settings → Notifications**, which decides what is delivered+at all (including push and email).++On touch devices the dock's bell (**Notifications**) opens this view with the+flag on, as the list alone under the floating controls Home, Email, Tasks and Drive+use: the filter drawer (Type), then All and Unread pills. Cards keep the same anatomy with 44px targets+and inline row buttons; at phone width they have a larger avatar and slightly larger+text and sit further apart; a read card there loses its fill, fades its avatar and+mutes its text, so unread cards stand out. A tablet keeps the desktop's sizes. Tapping a card or an unfolded notification opens it+full-screen in place, tapping a stack's caret unfolds it, a left swipe marks it+done (with the same Undo), and pulling down refreshes. Hover controls and the preview pane are desktop-only. The+dock keeps the bell active while the view shows.++The list updates live, without a reload, and a live change never remounts a card:+list items are one object per row id and each card reads its row's latest data+(`primitives/inbox-date-headers.ts`). Scrolled down, a card landing above what+you're reading doesn't move it.++Verify with two accounts and the inbox left open: two top-level messages in a+channel stack on it; two reactions to your message, or a reaction and a reply, stack+on that message and leave the channel's card; comments in different threads of a+document share one card. Each appears within a second with no reload. Unfold a stack+with its caret and choose each notification: the preview moves to that message or+comment, and stays there as new ones land. Marking one+done leaves the others, Undo restores it in place, and a new notification in a done+row brings it back with only what's new.+## Reading itemsOpening or previewing an item clears the unread dot immediately, before itsdiff --git a/rules/ast-grep/ts-feature-components-presentational.yml b/rules/ast-grep/ts-feature-components-presentational.ymlindex 392c64e0cf..f4aadadb10 100644--- a/rules/ast-grep/ts-feature-components-presentational.yml+++ b/rules/ast-grep/ts-feature-components-presentational.yml@@ -13,6 +13,7 @@ note: |-untyped wire JSON for property-changed rows. In block-agent, `ui/` isthe presentation layer and `component/` is the composition layer.files:+ - apps/web/src/features/notifications-inbox/components/**- apps/web/src/features/command/components/**- apps/web/src/features/document-composer/components/**- apps/web/src/features/task-composer/components/**diff --git a/rules/ast-grep/ts-feature-core-pure.yml b/rules/ast-grep/ts-feature-core-pure.ymlindex 703d4f18a6..c5f873b2f9 100644--- a/rules/ast-grep/ts-feature-core-pure.yml+++ b/rules/ast-grep/ts-feature-core-pure.yml@@ -15,6 +15,7 @@ note: |-The shared @core/util/base64 codec, cron helpers, and dateSearch/parseTime parser are pure utilities and may be reused.Block-agent names its rendering layers `ui/` and `component/`.files:+ - apps/web/src/features/notifications-inbox/core/**- apps/web/src/features/command/core/**- apps/web/src/features/document-composer/core/**- apps/web/src/features/task-composer/core/**diff --git a/rules/ast-grep/ts-feature-data-no-ui.yml b/rules/ast-grep/ts-feature-data-no-ui.ymlindex 1b0d1f7bb3..99cdf9fb28 100644--- a/rules/ast-grep/ts-feature-data-no-ui.yml+++ b/rules/ast-grep/ts-feature-data-no-ui.yml@@ -11,6 +11,8 @@ note: |-with fake clients and controllers with fake capabilities; neither importsrendering code, including block-agent’s `ui/` and `component/` layers.files:+ - apps/web/src/features/notifications-inbox/queries/**+ - apps/web/src/features/notifications-inbox/primitives/**- apps/web/src/features/command/queries/**- apps/web/src/features/document-composer/queries/**- apps/web/src/features/task-composer/queries/**diff --git a/rules/ast-grep/ts-feature-layers-use-context.yml b/rules/ast-grep/ts-feature-layers-use-context.ymlindex 11d7dbf941..665c0484e2 100644--- a/rules/ast-grep/ts-feature-layers-use-context.yml+++ b/rules/ast-grep/ts-feature-layers-use-context.yml@@ -15,6 +15,10 @@ note: |-`files` in each ts-/tsx-feature-* rule. Block-agent uses `ui/` forpresentation and `component/` for composition.files:+ - apps/web/src/features/notifications-inbox/queries/**+ - apps/web/src/features/notifications-inbox/primitives/**+ - apps/web/src/features/notifications-inbox/components/**+ - apps/web/src/features/notifications-inbox/views/**- apps/web/src/features/command/queries/**- apps/web/src/features/document-composer/queries/**- apps/web/src/features/task-composer/queries/**diff --git a/rules/ast-grep/tsx-feature-components-presentational.yml b/rules/ast-grep/tsx-feature-components-presentational.ymlindex 766b404947..b2842bf341 100644--- a/rules/ast-grep/tsx-feature-components-presentational.yml+++ b/rules/ast-grep/tsx-feature-components-presentational.yml@@ -13,6 +13,7 @@ note: |-untyped wire JSON for property-changed rows. In block-agent, `ui/` isthe presentation layer and `component/` is the composition layer.files:+ - apps/web/src/features/notifications-inbox/components/**- apps/web/src/features/command/components/**- apps/web/src/features/document-composer/components/**- apps/web/src/features/task-composer/components/**diff --git a/rules/ast-grep/tsx-feature-core-pure.yml b/rules/ast-grep/tsx-feature-core-pure.ymlindex c20fda7ab7..0d43631d38 100644--- a/rules/ast-grep/tsx-feature-core-pure.yml+++ b/rules/ast-grep/tsx-feature-core-pure.yml@@ -15,6 +15,7 @@ note: |-The shared @core/util/base64 codec, cron helpers, and dateSearch/parseTime parser are pure utilities and may be reused.Block-agent names its rendering layers `ui/` and `component/`.files:+ - apps/web/src/features/notifications-inbox/core/**- apps/web/src/features/command/core/**- apps/web/src/features/document-composer/core/**- apps/web/src/features/task-composer/core/**diff --git a/rules/ast-grep/tsx-feature-data-no-ui.yml b/rules/ast-grep/tsx-feature-data-no-ui.ymlindex 3bb8e3d482..47dfa787a9 100644--- a/rules/ast-grep/tsx-feature-data-no-ui.yml+++ b/rules/ast-grep/tsx-feature-data-no-ui.yml@@ -11,6 +11,8 @@ note: |-with fake clients and controllers with fake capabilities; neither importsrendering code, including block-agent’s `ui/` and `component/` layers.files:+ - apps/web/src/features/notifications-inbox/queries/**+ - apps/web/src/features/notifications-inbox/primitives/**- apps/web/src/features/command/queries/**- apps/web/src/features/document-composer/queries/**- apps/web/src/features/task-composer/queries/**diff --git a/rules/ast-grep/tsx-feature-layers-use-context.yml b/rules/ast-grep/tsx-feature-layers-use-context.ymlindex bed06bd903..f824285ba6 100644--- a/rules/ast-grep/tsx-feature-layers-use-context.yml+++ b/rules/ast-grep/tsx-feature-layers-use-context.yml@@ -15,6 +15,10 @@ note: |-`files` in each ts-/tsx-feature-* rule. Block-agent uses `ui/` forpresentation and `component/` for composition.files:+ - apps/web/src/features/notifications-inbox/queries/**+ - apps/web/src/features/notifications-inbox/primitives/**+ - apps/web/src/features/notifications-inbox/components/**+ - apps/web/src/features/notifications-inbox/views/**- apps/web/src/features/command/queries/**- apps/web/src/features/document-composer/queries/**- apps/web/src/features/task-composer/queries/**