Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

feat(search): add mobile quick access with email senders (#8192)

Peter Chinmanebc82ec40cb0
diff --git a/apps/web/AGENTS.md b/apps/web/AGENTS.md
index 4f15a42bad..6b9440ab1a 100644
--- a/apps/web/AGENTS.md
+++ b/apps/web/AGENTS.md
@@ -66,6 +66,16 @@ Then trigger the interaction and read `window.__inst.log`. `'1,2,3' → '' → '
## Development Patterns
### General
+- Mobile dock search owns transient category/mode state in `features/command/mobile`; reuse the shared entity source and explicit full-text adapter rather than overlaying the dock query on view tabs or saved facets. See `docs/agent-guide/search.md` at the repository root.
+- Keep Quick Access cache availability reactive to the GraphQL rollout flag; it can arrive after the provider mounts, and email has no legacy source fallback.
+- Virtualize mobile name results like desktop Command Menu; local Quick Access sources are unbounded, and mounting them all stalls iOS keyboard focus during layout. Load additional search pages near the scroll end instead of reserving a paging bar.
+- Reconcile mobile full-text rows by entity ID so appending a page preserves DOM rows and scroll position.
+- Reserve only the safe-area inset above mobile Search and Channels; their hidden split headers must not leave a blank strip or extend the top fade.
+- Show only the Recent conversation feed in mobile Channels, without view tabs or a persisted mobile tab selection.
+- Mount the mobile search input before focusing it inside the dock tap; keep navigation in that handler so focus does not trigger a second navigation or lose iOS keyboard activation.
+- Preserve focused chrome editors during deferred split insertion/removal autofocus; explicit return-focus commands may still focus the pane.
+- Reconcile global focus when focused DOM subtrees are removed; iOS can omit blur events, otherwise floating creation actions stay hidden after search or editor teardown.
+- Mount the floating mobile AI composer only on the Agents view; other views keep their New action or their own reply/comment composer.
- All API/network calls live in service-clients.
- Draft autosaves preserve active email thread messages; evict inactive legacy
caches on save and the active cache on thread exit. Revalidate GraphQL thread
diff --git a/apps/web/docs/graphql-normalized-cache-plan.md b/apps/web/docs/graphql-normalized-cache-plan.md
index 4a1fb8b312..88d6774c85 100644
--- a/apps/web/docs/graphql-normalized-cache-plan.md
+++ b/apps/web/docs/graphql-normalized-cache-plan.md
@@ -737,3 +737,26 @@ this work does not introduce a new server subscription engine.
Background hydration retains its existing opt-in notification contract. Soup's
local collection source opts in; ordinary foreground queries refresh on their
normal affected-operation notifications.
+
+## Cached email Quick Access
+
+The disposable Quick Access projection is version 3. Email rows index the thread
+subject, latest sender name/address, and embedded `senders` names/addresses, so an
+earlier sender remains searchable after another participant replies. Snippets and
+message bodies are excluded. The frontend materializes only matched thread keys
+with `EmailQuickAccessFields` and uses the projection text for ranking and pending
+query filtering; cache hydration, visibility, and deletion changes refresh rows.
+Desktop Command K explicitly excludes the email bucket; mobile Search includes it.
+
+Email Quick Access requires the existing `enable-graphql-soup` rollout and a healthy
+normalized cache; the legacy REST sources do not supply email Quick Access rows.
+Quick Access observes flag loading reactively so a cold launch can attach the cache
+after PostHog responds. For a local native preview without PostHog configuration,
+build with `VITE_ENABLE_GRAPHQL_SOUP=true` to exercise this path; do not change the
+remote rollout or backfill to make a test pass.
+
+Opening an older cache rebuilds search documents through the existing projection
+version mechanism, preserving normalized records, pending mutations, and storage
+generation. This does not expand hydration: automatic backfill remains 90 days of
+signal email and 30 days of noise email, plus any other cached threads. Explicit
+full-text search reaches older uncached mail.
diff --git a/apps/web/src/components/app/mobile/MobileDockRow.test.tsx b/apps/web/src/components/app/mobile/MobileDockRow.test.tsx
index de2dc7de93..bb31e46d59 100644
--- a/apps/web/src/components/app/mobile/MobileDockRow.test.tsx
+++ b/apps/web/src/components/app/mobile/MobileDockRow.test.tsx
@@ -1,3 +1,4 @@
+import { SearchState } from '@app/features/command/mobile/mobileSearchState';
import { enableCalendarScheduling } from '@core/constant/featureFlags';
import {
cleanup,
@@ -24,17 +25,12 @@ vi.mock('@app/lib/analytics/posthog', () => ({
useFeatureFlag: (flag: unknown) => () =>
flag === enableCalendarScheduling ? schedulingFlag : reviewsFlag,
}));
-vi.mock('@app/features/command/mobile/MobileSearchInput', () => ({
- MobileAskAiButton: () => null,
- MobileSearchInput: () => null,
-}));
-vi.mock('@app/features/command/mobile/mobileSearchState', () => ({
- SearchState: { isOpen: () => false },
-}));
vi.mock('@core/constant/SettingsState', () => ({
useSettingsState: () => ({ settingsOpen: () => false, toggleSettings }),
}));
-vi.mock('@core/directive/focusInput', () => ({ triggerFocusInput: vi.fn() }));
+vi.mock('@core/directive/focusInput', () => ({
+ triggerFocusInput: (target: () => HTMLElement | null) => target()?.focus(),
+}));
vi.mock('@core/mobile/haptics', () => ({ hapticImpact: vi.fn() }));
vi.mock('@core/mobile/virtualKeyboard', () => ({
virtualKeyboardVisible: () => false,
@@ -81,11 +77,19 @@ beforeEach(() => {
});
afterEach(() => {
cleanup();
+ SearchState.close();
drawerStyles.remove();
vi.clearAllMocks();
vi.unstubAllGlobals();
});
+it('mounts and focuses search during the tap before navigating once', () => {
+ render(() => <MobileDockRow />);
+ fireEvent.click(screen.getByRole('button', { name: 'Search' }));
+ expect(document.activeElement).toBe(screen.getByPlaceholderText('Search…'));
+ expect(navigate).toHaveBeenCalledExactlyOnceWith('search');
+});
+
describe('dock overflow drawer', () => {
it('keeps Settings first, reverses overflow views, and closes after navigation', async () => {
render(() => <MobileDockRow />);
diff --git a/apps/web/src/components/app/mobile/MobileDockRow.tsx b/apps/web/src/components/app/mobile/MobileDockRow.tsx
index c1b7c78c81..00fdb1fc46 100644
--- a/apps/web/src/components/app/mobile/MobileDockRow.tsx
+++ b/apps/web/src/components/app/mobile/MobileDockRow.tsx
@@ -1,7 +1,4 @@
-import {
- MobileAskAiButton,
- MobileSearchInput,
-} from '@app/features/command/mobile/MobileSearchInput';
+import { MobileSearchInput } from '@app/features/command/mobile/MobileSearchInput';
import { SearchState } from '@app/features/command/mobile/mobileSearchState';
import { useFeatureFlag } from '@app/lib/analytics/posthog';
import {
@@ -200,13 +197,13 @@ function MobileNavigationDockRow() {
icon={SearchIcon}
ariaLabel="Search"
onClick={() => {
- // Focus synchronously inside the tap so iOS lets the keyboard
- // open; the input mounts once opening the session flips the row
- // to the search layout.
+ // Mount the real input first, then focus it in this same user
+ // gesture. Deferring the focus transfer can lose iOS keyboard
+ // activation when reopening search.
+ SearchState.open();
triggerFocusInput(() =>
document.getElementById('mobile-search-input')
);
- SearchState.open();
navigate('search');
}}
/>
@@ -222,9 +219,8 @@ type MobileDockRowProps = {
/**
* The bottom-most chrome row. By default it is the navigation dock (see
* MobileNavigationDockRow); pressing its Search button opens a search session,
- * which swaps in the search row — the search bar ("Search or ask AI...")
- * with the "Ask AI" island — and shows the views pill row in the accessory
- * slot above as the scope switcher (see MobileViewsRow). Pressing the
+ * which swaps in the search bar and category pills in the accessory slot
+ * above (see MobileViewsRow). Pressing the
* input's X ends the session and restores the navigation dock.
*/
export function MobileDockRow(props: MobileDockRowProps) {
@@ -238,7 +234,6 @@ export function MobileDockRow(props: MobileDockRowProps) {
<MobileBottomEdgeFade />
<Show when={SearchState.isOpen()} fallback={<MobileNavigationDockRow />}>
<MobileSearchInput />
- <MobileAskAiButton />
</Show>
</div>
);
diff --git a/apps/web/src/components/app/mobile/MobilePageActionRow.test.tsx b/apps/web/src/components/app/mobile/MobilePageActionRow.test.tsx
index 83f9d7bc15..356b9ca892 100644
--- a/apps/web/src/components/app/mobile/MobilePageActionRow.test.tsx
+++ b/apps/web/src/components/app/mobile/MobilePageActionRow.test.tsx
@@ -1,4 +1,7 @@
-import type { MobileNavViewId } from '@components/app/mobile/mobile-nav-views';
+import {
+ MOBILE_NAV_VIEW_IDS,
+ type MobileNavViewId,
+} from '@components/app/mobile/mobile-nav-views';
import {
cleanup,
fireEvent,
@@ -15,6 +18,7 @@ const mocks = vi.hoisted(() => ({
mountComposer: vi.fn(),
unmountComposer: vi.fn(),
view: 'mail' as MobileNavViewId | undefined,
+ viewAccessor: undefined as (() => MobileNavViewId | undefined) | undefined,
createItem: vi.fn(),
createMenu: vi.fn(),
openEvent: vi.fn(),
@@ -52,9 +56,13 @@ vi.mock('@app/features/calendar/hooks/use-calendar-ui-flag', () => ({
vi.mock('@app/features/crm/creation-adapter', () => ({
openCreateCompanyModal: mocks.openCompany,
}));
+vi.mock('@app/lib/analytics/posthog', () => ({
+ useFeatureFlag: () => () => ({ enabled: true }),
+}));
vi.mock('@core/mobile/haptics', () => ({ hapticImpact: vi.fn() }));
vi.mock('@components/app/mobile/use-mobile-nav', () => ({
- useForegroundMobileView: () => () => mocks.view,
+ useForegroundMobileView: () => () =>
+ mocks.viewAccessor ? mocks.viewAccessor() : mocks.view,
useMobileNavNavigate: () => vi.fn(),
}));
vi.mock('@components/app/mobile/mobile-dock-views', () => ({
@@ -105,6 +113,7 @@ afterEach(() => {
beforeEach(() => {
vi.clearAllMocks();
mocks.view = 'mail';
+ mocks.viewAccessor = undefined;
setVirtualKeyboardVisible(false);
SearchState.close();
vi.spyOn(window, 'scrollTo').mockImplementation(() => {});
@@ -131,6 +140,7 @@ describe('Mobile page action row', () => {
it.each(['input', 'textarea', 'contenteditable'] as const)(
'hides while an outside %s is focused and preserves the AI draft',
(kind) => {
+ mocks.view = 'agents';
render(() => <MobilePageActionRow />);
const draft = screen.getByRole('textbox', {
name: 'Chat draft',
@@ -171,6 +181,7 @@ describe('Mobile page action row', () => {
);
it('starts hidden when another field is already focused and returns for a non-editable control', () => {
+ mocks.view = 'agents';
render(() => (
<>
<input aria-label="Email subject" />
@@ -186,10 +197,11 @@ describe('Mobile page action row', () => {
});
it('starts compact and yields to screen-specific controls, then returns', () => {
+ mocks.view = 'agents';
const page = render(() => <MobilePageActionRow />);
const draft = screen.getByRole('textbox', { name: 'Chat draft' });
fireEvent.input(draft, { target: { value: 'Keep this draft' } });
- expect(screen.getByRole('button', { name: 'New email' })).toBeTruthy();
+ expect(screen.queryByRole('button', { name: 'New email' })).toBeNull();
const reply = render(() => (
<FloatRegion region="accessory">
<button>Reply</button>
@@ -204,7 +216,7 @@ describe('Mobile page action row', () => {
expect(mocks.mountComposer).toHaveBeenCalledOnce();
expect(mocks.unmountComposer).not.toHaveBeenCalled();
expect(screen.getByRole('button', { name: 'Send' })).toBeTruthy();
- expect(screen.getByRole('button', { name: 'New email' })).toBeTruthy();
+ expect(screen.queryByRole('button', { name: 'New email' })).toBeNull();
page.unmount();
expect(mocks.unmountComposer).toHaveBeenCalledOnce();
});
@@ -238,14 +250,14 @@ describe('Mobile page action row', () => {
screen.getByRole('button', { name: 'Leave a comment' })
).toBeTruthy();
setCanComment(false);
- expect(screen.getByRole('button', { name: 'Send' })).toBeTruthy();
+ expect(screen.queryByRole('button', { name: 'Send' })).toBeNull();
expect(screen.getByRole('button', { name: 'New email' })).toBeTruthy();
SearchState.open();
expect(screen.getByRole('tablist', { name: 'Search scopes' })).toBeTruthy();
expect(screen.queryByRole('button', { name: 'Send' })).toBeNull();
SearchState.close();
- expect(screen.getByRole('button', { name: 'Send' })).toBeTruthy();
+ expect(screen.queryByRole('button', { name: 'Send' })).toBeNull();
setCanComment(true);
expect(
screen.getByRole('button', { name: 'Leave a comment' })
@@ -282,7 +294,7 @@ describe('Mobile page action row', () => {
['tasks', 'Task'],
['documents', 'Document'],
['channels', 'Message'],
- ] as const)('keeps New on %s alongside the AI composer', (view, label) => {
+ ] as const)('keeps New on %s without the AI composer', (view, label) => {
mocks.view = view;
render(() => <MobilePageActionRow />);
const createButton = screen.getByRole('button', {
@@ -292,7 +304,7 @@ describe('Mobile page action row', () => {
fireEvent.click(createButton);
expect(mocks.createItem).toHaveBeenCalledWith(label);
expect(mocks.send).not.toHaveBeenCalled();
- expect(screen.getByRole('button', { name: 'Send' })).toBeTruthy();
+ expect(screen.queryByRole('button', { name: 'Send' })).toBeNull();
});
it('shows only the AI composer on Agents, without a redundant create button', () => {
mocks.view = 'agents';
@@ -300,7 +312,7 @@ describe('Mobile page action row', () => {
expect(screen.queryByRole('button', { name: /^New/ })).toBeNull();
expect(screen.getByRole('button', { name: 'Send' })).toBeTruthy();
});
- it('opens company creation from CRM alongside the AI composer', () => {
+ it('opens company creation from CRM without the AI composer', () => {
mocks.view = 'companies';
render(() => <MobilePageActionRow />);
const createButton = screen.getByRole('button', { name: 'New company' });
@@ -308,7 +320,7 @@ describe('Mobile page action row', () => {
fireEvent.click(createButton);
expect(mocks.openCompany).toHaveBeenCalledOnce();
expect(mocks.createMenu).not.toHaveBeenCalled();
- expect(screen.getByRole('button', { name: 'Send' })).toBeTruthy();
+ expect(screen.queryByRole('button', { name: 'Send' })).toBeNull();
});
it('opens the event composer from the Calendar New menu', async () => {
mocks.view = 'calendar';
@@ -364,14 +376,70 @@ describe('Mobile page action row', () => {
expect(mocks.send).not.toHaveBeenCalled();
}
);
- it('hides only the page action while the keyboard is visible', () => {
+ it.each(['input', 'textarea', 'contenteditable'] as const)(
+ 'restores New when a focused %s is removed without a blur event',
+ async (kind) => {
+ render(() => <MobilePageActionRow />);
+ const ancestor = document.createElement('div');
+ const wrapper = document.createElement('div');
+ const editor = document.createElement(
+ kind === 'contenteditable' ? 'div' : kind
+ );
+ if (kind === 'contenteditable') {
+ editor.setAttribute('contenteditable', 'true');
+ editor.tabIndex = 0;
+ }
+ wrapper.append(editor);
+ ancestor.append(wrapper);
+ document.body.append(ancestor);
+ editor.focus();
+ setVirtualKeyboardVisible(true);
+ expect(screen.queryByRole('button', { name: 'New email' })).toBeNull();
+ // Removing a focused subtree need not dispatch focusout (including iOS
+ // search teardown and navigation away from an editor).
+ const focusout = vi.fn();
+ editor.addEventListener('focusout', focusout);
+ ancestor.remove();
+ expect(focusout).not.toHaveBeenCalled();
+ expect(document.activeElement).toBe(document.body);
+ setVirtualKeyboardVisible(false);
+ await waitFor(() =>
+ expect(screen.getByRole('button', { name: 'New email' })).toBeTruthy()
+ );
+ }
+ );
+
+ it('hides the non-AI page action while the keyboard is visible', () => {
render(() => <MobilePageActionRow />);
- const draft = screen.getByRole('textbox', { name: 'Chat draft' });
+ expect(screen.getByRole('button', { name: 'New email' })).toBeTruthy();
setVirtualKeyboardVisible(true);
expect(screen.queryByRole('button', { name: 'New email' })).toBeNull();
- expect(screen.getByRole('textbox', { name: 'Chat draft' })).toBe(draft);
+ expect(screen.queryByRole('textbox', { name: 'Chat draft' })).toBeNull();
setVirtualKeyboardVisible(false);
expect(screen.getByRole('button', { name: 'New email' })).toBeTruthy();
- expect(mocks.mountComposer).toHaveBeenCalledOnce();
+ expect(mocks.mountComposer).not.toHaveBeenCalled();
+ });
+
+ it.each([
+ ...MOBILE_NAV_VIEW_IDS.filter((view) => view !== 'agents'),
+ undefined,
+ ])('does not mount a floating AI composer on %s', (view) => {
+ mocks.view = view;
+ render(() => <MobilePageActionRow />);
+ expect(screen.queryByRole('textbox', { name: 'Chat draft' })).toBeNull();
+ expect(mocks.mountComposer).not.toHaveBeenCalled();
+ });
+
+ it('reacts to navigation into and out of Agents', () => {
+ const [view, setView] = createSignal<MobileNavViewId>('home');
+ mocks.viewAccessor = view;
+ render(() => <MobilePageActionRow />);
+ expect(mocks.mountComposer).not.toHaveBeenCalled();
+ setView('agents');
+ expect(screen.getByRole('textbox', { name: 'Chat draft' })).toBeTruthy();
+ expect(screen.queryByRole('button', { name: /^New/ })).toBeNull();
+ setView('mail');
+ expect(screen.queryByRole('textbox', { name: 'Chat draft' })).toBeNull();
+ expect(screen.getByRole('button', { name: 'New email' })).toBeTruthy();
});
});
diff --git a/apps/web/src/components/app/mobile/MobilePageActionRow.tsx b/apps/web/src/components/app/mobile/MobilePageActionRow.tsx
index 09ac63760f..6b17d7ab41 100644
--- a/apps/web/src/components/app/mobile/MobilePageActionRow.tsx
+++ b/apps/web/src/components/app/mobile/MobilePageActionRow.tsx
@@ -1,28 +1,39 @@
import { SoupChatInput } from '@app/features/chat/SoupChatInput';
import { activeElement } from '@app/signal/focus';
+import { virtualKeyboardVisible } from '@core/mobile/virtualKeyboard';
import { isEditableInput } from '@core/util/isEditableInput';
+import { Show } from 'solid-js';
import { FloatRegion } from './float-regions/FloatRegion';
import { MobilePageCreateButton } from './MobilePageCreateButton';
+import { useForegroundMobileView } from './use-mobile-nav';
-/** The default mobile accessory: an AI composer beside the page's New action. */
+/** The page's New action, or an AI composer on the Agents view. */
export function MobilePageActionRow() {
// Keep the editor and its draft alive while typing elsewhere or while another
// accessory owns the slot.
- let composerRef!: HTMLDivElement;
+ const foregroundView = useForegroundMobileView();
+ const showsComposer = () => foregroundView() === 'agents';
+ let composerRef: HTMLDivElement | undefined;
const composer = (
- <div ref={composerRef} class="pointer-events-auto min-w-0 flex-1">
- <SoupChatInput />
- </div>
+ <Show when={showsComposer()}>
+ <div ref={composerRef} class="pointer-events-auto min-w-0 flex-1">
+ <SoupChatInput />
+ </div>
+ </Show>
);
const isAvailable = () => {
+ if (!showsComposer() && virtualKeyboardVisible()) return false;
const focused = activeElement();
- return !isEditableInput(focused) || composerRef.contains(focused);
+ return (
+ !isEditableInput(focused) ||
+ (showsComposer() && !!composerRef?.contains(focused))
+ );
};
return (
// Screen composers (0) and search scopes (100) take precedence.
<FloatRegion region="accessory" priority={-1} active={isAvailable}>
- <div class="flex items-end gap-(--mobile-chrome-gutter) px-(--mobile-chrome-gutter)">
+ <div class="flex items-end justify-end gap-(--mobile-chrome-gutter) px-(--mobile-chrome-gutter)">
{composer}
<MobilePageCreateButton />
</div>
diff --git a/apps/web/src/components/app/mobile/MobilePageCreateButton.tsx b/apps/web/src/components/app/mobile/MobilePageCreateButton.tsx
index 11a1ea1bd4..b689cc9f49 100644
--- a/apps/web/src/components/app/mobile/MobilePageCreateButton.tsx
+++ b/apps/web/src/components/app/mobile/MobilePageCreateButton.tsx
@@ -33,7 +33,7 @@ const QUICK_CREATE_VIEWS = [
{ view: 'tasks', icon: TaskIcon },
] as const;
-/** The current view's New action, alongside the mobile AI composer. */
+/** The current non-AI view's New action above the navigation dock. */
export function MobilePageCreateButton() {
const foregroundView = useForegroundMobileView();
const createBlocks = useCreateMenuBlocks();
diff --git a/apps/web/src/components/app/mobile/MobileViewsRow.tsx b/apps/web/src/components/app/mobile/MobileViewsRow.tsx
index b1ebd225cf..2acf6b02dd 100644
--- a/apps/web/src/components/app/mobile/MobileViewsRow.tsx
+++ b/apps/web/src/components/app/mobile/MobileViewsRow.tsx
@@ -1,59 +1,36 @@
import { SearchState } from '@app/features/command/mobile/mobileSearchState';
-import { createMemo } from 'solid-js';
-import { Dynamic } from 'solid-js/web';
+import { useMobileSearchCategory } from '@app/features/command/mobile/use-mobile-search-category';
+import type { EntitySearchCategory } from '@app/features/command/queries/entity-search';
+import { useFeatureFlag } from '@app/lib/analytics/posthog';
+import { enableProjects } from '@core/constant/featureFlags';
import { FloatRegion } from './float-regions/FloatRegion';
-import { useMobileDockViews } from './mobile-dock-views';
-import type { MobileNavViewId } from './mobile-nav-views';
import { type PillTabItem, PillTabs } from './PillTabs';
-import {
- useForegroundMobileView,
- useMobileNavNavigate,
-} from './use-mobile-nav';
-/**
- * The views pill row in the accessory slot, above the dock row. It shows
- * only while a search session is active (the dock is in its search layout),
- * acting as the search scope switcher — even with the keyboard up.
- */
-export function MobileViewsRow() {
- // Highlight only the view that is actually the foreground split content —
- // with an entity (or anything else) open, no pill is active.
- const activeView = useForegroundMobileView();
- const navigate = useMobileNavNavigate();
- const dockViews = useMobileDockViews();
-
- const items = createMemo<PillTabItem<MobileNavViewId>[]>(() => [
- { value: 'search', label: 'All' },
- ...dockViews().map((view) =>
- view.pillIcon
- ? {
- value: view.id,
- label: <Dynamic component={view.pillIcon} class="size-5" />,
- iconOnly: true,
- ariaLabel: view.label,
- }
- : { value: view.id, label: view.label }
- ),
- ]);
+const CATEGORIES: PillTabItem<EntitySearchCategory>[] = [
+ { value: 'all', label: 'All' },
+ { value: 'email', label: 'Email' },
+ { value: 'chats', label: 'Agents' },
+ { value: 'documents', label: 'Files' },
+ { value: 'tasks', label: 'Tasks' },
+ { value: 'projects', label: 'Projects' },
+ { value: 'channels', label: 'Channels' },
+ { value: 'dms', label: 'People' },
+];
+/** Search categories filter entities directly without navigating between views. */
+export function MobileViewsRow() {
+ const projects = useFeatureFlag(enableProjects);
+ const category = useMobileSearchCategory();
return (
- <FloatRegion
- region="accessory"
- // While a search session is open the scope pills outbid any other
- // accessory contributor (per-view compose/reply bars own the slot the
- // rest of the time).
- priority={100}
- active={() => SearchState.isOpen()}
- >
- {/* Full-bleed strip: the pills scroll to the device edge, and the
- chrome gutter travels with the scrolled content instead of insetting
- the scroll box. */}
+ <FloatRegion region="accessory" priority={100} active={SearchState.isOpen}>
<PillTabs
scrollable
contentClass="px-(--mobile-chrome-gutter)"
- items={items()}
- value={activeView()}
- onChange={navigate}
+ items={CATEGORIES.filter(
+ (item) => item.value !== 'projects' || projects().enabled
+ )}
+ value={category()}
+ onChange={SearchState.setCategory}
/>
</FloatRegion>
);
diff --git a/apps/web/src/components/app/mobile/mobile-dock-views.ts b/apps/web/src/components/app/mobile/mobile-dock-views.ts
index c601e204c0..b49cbf3d9f 100644
--- a/apps/web/src/components/app/mobile/mobile-dock-views.ts
+++ b/apps/web/src/components/app/mobile/mobile-dock-views.ts
@@ -18,14 +18,11 @@ export type MobileDockView = {
/** Phosphor glyph for this view. */
icon: MobileDockIcon;
iconActive?: MobileDockIcon;
- /** When set, the scope pill renders icon-only with this icon. */
- pillIcon?: MobileDockIcon;
};
/**
- * Shared navigation order for the dock and search scope pills. The dock shows
- * as many views as fit and puts the remainder in More. All and Settings are
- * added by their respective surfaces.
+ * Dock navigation order. Views that do not fit go in More; Settings is
+ * added by its own surface.
*/
const MOBILE_DOCK_VIEWS: readonly MobileDockView[] = [
{
@@ -33,14 +30,12 @@ const MOBILE_DOCK_VIEWS: readonly MobileDockView[] = [
label: 'Notifications',
icon: BellIcon,
iconActive: BellFillIcon,
- pillIcon: BellIcon,
},
{
id: 'calendar',
label: 'Calendar',
icon: getIconConfig('calendar').icon,
iconActive: CalendarFillIcon,
- pillIcon: getIconConfig('calendar').icon,
},
{
id: 'mail',
@@ -54,13 +49,13 @@ const MOBILE_DOCK_VIEWS: readonly MobileDockView[] = [
icon: getIconConfig('channel').icon,
iconActive: ChannelFillIcon,
},
+ { id: 'agents', label: 'Agents', icon: getIconConfig('agent').icon },
{
id: 'documents',
label: 'Files',
icon: getIconConfig('files').icon,
iconActive: FilesFillIcon,
},
- { id: 'agents', label: 'Agents', icon: getIconConfig('agent').icon },
{ id: 'tasks', label: 'Tasks', icon: getIconConfig('task').icon },
{ id: 'calls', label: 'Calls', icon: getIconConfig('call').icon },
{ id: 'companies', label: 'CRM', icon: getIconConfig('company').icon },
diff --git a/apps/web/src/components/app/mobile/mobile-nav-views.ts b/apps/web/src/components/app/mobile/mobile-nav-views.ts
index 871e375561..cde145eecd 100644
--- a/apps/web/src/components/app/mobile/mobile-nav-views.ts
+++ b/apps/web/src/components/app/mobile/mobile-nav-views.ts
@@ -11,8 +11,8 @@ export const MOBILE_NAV_VIEW_IDS = [
'calendar',
'mail',
'channels',
- 'documents',
'agents',
+ 'documents',
'tasks',
'reviews',
'booking-links',
diff --git a/apps/web/src/components/app/split-layout/components/SplitPanel.tsx b/apps/web/src/components/app/split-layout/components/SplitPanel.tsx
index ff2229c022..ed9714ffde 100644
--- a/apps/web/src/components/app/split-layout/components/SplitPanel.tsx
+++ b/apps/web/src/components/app/split-layout/components/SplitPanel.tsx
@@ -119,7 +119,10 @@ export function SplitPanel(props: SplitPanelProps) {
createEffect(() => {
const safeTop = isTouchDevice() ? getSafeAreaInset('top') : 0;
const offset =
- safeTop + (headerSize.height ?? 0) + (toolbarSize.height ?? 0);
+ safeTop +
+ (hasSplitHeader()
+ ? (headerSize.height ?? 0) + (toolbarSize.height ?? 0)
+ : 0);
setContentOffsetTop(offset);
});
@@ -141,6 +144,19 @@ export function SplitPanel(props: SplitPanelProps) {
props.split.mount.kind === 'component' &&
props.split.mount.meta.splitPanelLayout === 'composable';
+ const hasSplitHeader = () => {
+ const content = props.handle.content();
+ return (
+ !usesComposableLayout() &&
+ !(
+ isTouchDevice() &&
+ content.type === 'component' &&
+ (content.id === LIST_VIEW_ID.search ||
+ content.id === LIST_VIEW_ID.channels)
+ )
+ );
+ };
+
const MountedContent = () => (
<SplitPanelControllerProvider
controller={{
@@ -236,7 +252,7 @@ export function SplitPanel(props: SplitPanelProps) {
'relative size-full touch:isolate': !props.handle.isSpotLight(),
}}
style={{
- '--split-header-height': `${headerSize.height ?? 0}px`,
+ '--split-header-height': `${hasSplitHeader() ? (headerSize.height ?? 0) : 0}px`,
// The hard spacer for top-anchored content on full-frame
// mobile/tablet: status bar + floating header strip.
'--mobile-content-inset-top':
@@ -290,7 +306,7 @@ export function SplitPanel(props: SplitPanelProps) {
!multipleSplits()
}
>
- <Show when={!usesComposableLayout()}>
+ <Show when={hasSplitHeader()}>
<Panel.Header
class={cn(
'relative block min-h-12 p-0 overflow-visible border-b-0!',
diff --git a/apps/web/src/components/app/split-layout/splitFocusTracker.ts b/apps/web/src/components/app/split-layout/splitFocusTracker.ts
index acd57a4667..57ff0ab5bb 100644
--- a/apps/web/src/components/app/split-layout/splitFocusTracker.ts
+++ b/apps/web/src/components/app/split-layout/splitFocusTracker.ts
@@ -1,5 +1,6 @@
import { activeElement } from '@app/signal/focus';
import { splitContainerSelector } from '@core/dom-selectors';
+import { isEditableInput } from '@core/util/isEditableInput';
import { type Accessor, createEffect, on, onCleanup } from 'solid-js';
import {
SplitEvent,
@@ -115,6 +116,24 @@ export function createSplitFocusTracker(props: {
};
const focusFromEvent = (event: SplitEventWithType) => {
+ // Navigation can finish after app chrome has focused its search input.
+ // Preserve that editing session; explicit ReturnFocus still takes the pane.
+ const active = document.activeElement;
+ if (
+ isEditableInput(active) &&
+ !Array.from(props.panelRefs.values()).some((panel) =>
+ panel.contains(active)
+ )
+ ) {
+ if (
+ event.type === SplitEvent.Remove &&
+ !props.splits().some((split) => split.id === activeSplitId())
+ ) {
+ const next = findNextSplitToActivate(event.splitIndex);
+ if (next) props.splitManager.activateSplit(next);
+ }
+ return;
+ }
switch (event.type) {
case SplitEvent.Insert: {
if (event.activate === false) break;
diff --git a/apps/web/src/components/app/split-layout/tests/splitFocusTracker.test.ts b/apps/web/src/components/app/split-layout/tests/splitFocusTracker.test.ts
index 640446ee79..1bbc927a6c 100644
--- a/apps/web/src/components/app/split-layout/tests/splitFocusTracker.test.ts
+++ b/apps/web/src/components/app/split-layout/tests/splitFocusTracker.test.ts
@@ -119,4 +119,49 @@ describe('createSplitFocusTracker', () => {
dispose();
});
+
+ it('preserves a focused chrome input through deferred insertion but honors explicit return focus', () => {
+ const { dispose, manager, panelRefs } = mountFreshLoad();
+ const [, last] = manager.splits();
+ const input = document.createElement('input');
+ document.body.append(input);
+ input.focus();
+
+ vi.advanceTimersByTime(FOCUS_DEBOUNCE_MS);
+
+ expect(document.activeElement).toBe(input);
+ expect(manager.activeSplitId()).toBe(last.id);
+ manager.returnFocus();
+ expect(document.activeElement).toBe(panelRefs.get(last.id));
+ dispose();
+ });
+
+ it('still focuses a new pane when the previous pane owns an editor', () => {
+ const { dispose, manager, panelRefs } = mountFreshLoad();
+ const [first, last] = manager.splits();
+ const input = document.createElement('input');
+ panelRefs.get(first.id)?.append(input);
+ input.focus();
+
+ vi.advanceTimersByTime(FOCUS_DEBOUNCE_MS);
+
+ expect(document.activeElement).toBe(panelRefs.get(last.id));
+ dispose();
+ });
+
+ it('keeps a surviving pane active after removal without taking chrome focus', async () => {
+ const { dispose, manager } = mountFreshLoad();
+ const [first, last] = manager.splits();
+ const input = document.createElement('input');
+ document.body.append(input);
+ input.focus();
+
+ manager.removeSplit(last.id);
+ await vi.runAllTimersAsync();
+
+ expect(manager.splits().map((split) => split.id)).toEqual([first.id]);
+ expect(manager.activeSplitId()).toBe(first.id);
+ expect(document.activeElement).toBe(input);
+ dispose();
+ });
});
diff --git a/apps/web/src/features/channels-view/channels-route.ts b/apps/web/src/features/channels-view/channels-route.ts
index aae666c972..237963ff1a 100644
--- a/apps/web/src/features/channels-view/channels-route.ts
+++ b/apps/web/src/features/channels-view/channels-route.ts
@@ -1,19 +1,17 @@
import { createSearchParamsCodec } from '@app/lib/split-router';
import { z } from 'zod';
-import type { ChannelsQueryScope, ChannelsTab } from './types';
+import type { ChannelsTab } from './types';
export const channelsSearch = {
namespace: 'channels',
schema: z.object({
tab: z.enum(['browse', 'recents', 'threads']),
- mobileTab: z.enum(['channels', 'direct_messages', 'recents']),
messageId: z.string(),
threadId: z.string(),
seek: z.string(),
}),
defaults: {
tab: 'browse' as ChannelsTab,
- mobileTab: 'channels' as ChannelsQueryScope,
messageId: '',
threadId: '',
seek: '',
diff --git a/apps/web/src/features/channels-view/channels-view-context.tsx b/apps/web/src/features/channels-view/channels-view-context.tsx
index ee96086cc4..cb1e7feb4d 100644
--- a/apps/web/src/features/channels-view/channels-view-context.tsx
+++ b/apps/web/src/features/channels-view/channels-view-context.tsx
@@ -29,7 +29,6 @@ import {
import { createChannelsViewPersistence } from './persistence';
import type {
ChannelListSort,
- ChannelsQueryScope,
ChannelsRailSection,
ChannelsSortGroup,
ChannelsTab,
@@ -59,7 +58,6 @@ export type ChannelsViewContext = {
threadsChannelId: Accessor<string | undefined>;
setThreadsChannelId: (channelId: string | undefined) => void;
setTab: (tab: ChannelsTab) => void;
- setMobileTab: (tab: ChannelsQueryScope) => void;
setSelectedChannel: (channel: ChannelPreviewSelection | undefined) => boolean;
setGroupOpen: (group: ChannelsRailSection, open: boolean) => void;
/** Per-user collapse state of a team channel label. */
@@ -73,8 +71,6 @@ function createInitialState(
): ChannelsViewState {
return {
tab: initial.tab ?? 'browse',
- mobileTab:
- initial.mobileTab ?? (initial.tab === 'recents' ? 'recents' : 'channels'),
expandedGroups: {
favorites: initial.expandedGroups?.favorites ?? true,
channels: initial.expandedGroups?.channels ?? true,
@@ -125,10 +121,9 @@ export const [ChannelsViewProvider, useChannelsView] =
createEffect(
on(
- () => [search.tab, search.mobileTab] as const,
- ([tab, mobileTab]) => {
+ () => search.tab,
+ (tab) => {
if (state.tab !== tab) setState('tab', tab);
- if (state.mobileTab !== mobileTab) setState('mobileTab', mobileTab);
}
)
);
@@ -156,7 +151,6 @@ export const [ChannelsViewProvider, useChannelsView] =
return channelsSearchCodec.serialize({
...channelsSearch.defaults,
tab: state.tab,
- mobileTab: state.mobileTab,
messageId: target?.kind === 'message' ? target.messageId : '',
threadId: target?.kind === 'message' ? (target.threadId ?? '') : '',
});
@@ -223,11 +217,6 @@ export const [ChannelsViewProvider, useChannelsView] =
setState('tab', tab);
setSearch({ tab });
},
- setMobileTab: (mobileTab) => {
- if (state.mobileTab === mobileTab) return;
- setState('mobileTab', mobileTab);
- setSearch({ mobileTab });
- },
setSelectedChannel,
setGroupOpen: (group, open) => setState('expandedGroups', group, open),
setLabelOpen: (labelId, open) =>
diff --git a/apps/web/src/features/channels-view/channels-view.test.tsx b/apps/web/src/features/channels-view/channels-view.test.tsx
index c9f37671d9..b08922f455 100644
--- a/apps/web/src/features/channels-view/channels-view.test.tsx
+++ b/apps/web/src/features/channels-view/channels-view.test.tsx
@@ -14,7 +14,6 @@ import { createStore } from 'solid-js/store';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import type { ChannelsDataSource } from './queries';
-import type { ChannelsQueryScope } from './types';
type FullChannel = ChannelEntity & { notifications: Notification[] };
const mocks = vi.hoisted(() => ({
@@ -25,7 +24,7 @@ const mocks = vi.hoisted(() => ({
active: (): boolean => true,
searchOpen: (): boolean => false,
searchText: (): string => '',
- mobileTab: (): ChannelsQueryScope => 'channels',
+ sourceEnabled: (_scope: string): boolean => false,
selectedQuery: vi.fn(),
markRead: vi.fn(),
resolveTarget: vi.fn(() => ({ kind: 'message', messageId: 'unread' })),
@@ -146,9 +145,6 @@ vi.mock('./channels-view-context', () => ({
state: {
asideWidth: 256,
tab: 'browse',
- get mobileTab() {
- return mocks.mobileTab();
- },
sortBy: { channels: 'updated_at', direct_messages: 'updated_at' },
},
tab: () => 'browse',
@@ -158,7 +154,6 @@ vi.mock('./channels-view-context', () => ({
? { type: 'channel', id: mocks.selectedId() }
: undefined,
setAsideWidth: vi.fn(),
- setMobileTab: vi.fn(),
}),
}));
vi.mock('./queries', () => ({
@@ -175,12 +170,15 @@ vi.mock('./queries', () => ({
fallback: ChannelEntity[] = []
) => [...loaded, ...fallback].find((channel) => channel.id === id),
useChannelByIdQuery: mocks.selectedQuery,
- useChannelsSources: () => ({
- channels: { items: () => mocks.rows() },
- direct_messages: { items: () => mocks.rows() },
- recents: { items: () => [] },
- search: { items: () => [] },
- }),
+ useChannelsSources: (enabled: (scope: string) => boolean) => {
+ mocks.sourceEnabled = enabled;
+ return {
+ channels: { items: () => mocks.rows() },
+ direct_messages: { items: () => mocks.rows() },
+ recents: { items: () => mocks.rows() },
+ search: { items: () => [] },
+ };
+ },
}));
import { ChannelDetailRouteView, ChannelsView } from './channels-view';
@@ -231,7 +229,6 @@ beforeEach(() => {
mocks.active = () => true;
mocks.searchOpen = () => false;
mocks.searchText = () => '';
- mocks.mobileTab = () => 'channels';
[mocks.selectedId, setSelectedId] = createSignal<string | undefined>('one');
[mocks.rows, setRows] = createSignal([row('one', 'new'), row('two')]);
const [query, update] = createStore<QueryState>({
@@ -266,9 +263,8 @@ beforeEach(() => {
afterEach(cleanup);
describe('mobile dock search wiring', () => {
- it('filters DMs from the active dock session and restores rows on close or navigation', async () => {
+ it('shows only recent conversations independently of the dock search session', () => {
mocks.mobileLayout = () => true;
- mocks.mobileTab = () => 'direct_messages';
const [open, setOpen] = createSignal(true);
const [text, setText] = createSignal('');
const [active, setActive] = createSignal(true);
@@ -285,15 +281,17 @@ describe('mobile dock search wiring', () => {
]);
render(() => <ChannelsView />);
expect(screen.getByText('hutch')).toBeTruthy();
+ expect(mocks.sourceEnabled('recents')).toBe(true);
+ for (const scope of ['channels', 'direct_messages', 'threads', 'search']) {
+ expect(mocks.sourceEnabled(scope)).toBe(false);
+ }
setText('Julia');
- await waitFor(() =>
- expect(screen.getByText('Julia Westphal')).toBeTruthy()
- );
- await waitFor(() => expect(screen.queryByText('hutch')).toBeNull());
+ expect(screen.getByText('Julia Westphal')).toBeTruthy();
+ expect(screen.getByText('hutch')).toBeTruthy();
setActive(false);
expect(screen.getByText('hutch')).toBeTruthy();
setActive(true);
- await waitFor(() => expect(screen.queryByText('hutch')).toBeNull());
+ expect(screen.getByText('hutch')).toBeTruthy();
setOpen(false);
expect(screen.getByText('hutch')).toBeTruthy();
expect(screen.getByTestId('mobile-channels').dataset.query).toBe('');
diff --git a/apps/web/src/features/channels-view/channels-view.tsx b/apps/web/src/features/channels-view/channels-view.tsx
index 74d1abc269..537c255ec6 100644
--- a/apps/web/src/features/channels-view/channels-view.tsx
+++ b/apps/web/src/features/channels-view/channels-view.tsx
@@ -1,7 +1,6 @@
import { ViewShell } from '@app/components/view-shell';
import { useAgentDmSearchPool } from '@app/features/agent-dms/queries/search-pool';
import { SearchState } from '@app/features/command/mobile/mobileSearchState';
-import { useMobileSearchText } from '@app/features/command/mobile/use-mobile-search-text';
import { markChannelNotificationsSeenOnOpen } from '@app/features/next-soup/utils';
import { MaybeSoupEntityActionDrawerManager } from '@app/features/soup';
import { withEntityNotifications } from '@app/features/soup/entity-notifications';
@@ -52,22 +51,18 @@ export type ChannelsViewProps = {
// Mounted inside the mobile list's Suspense boundary.
function MobileChannelsList(props: { sources: ChannelsSources }) {
const agentDms = useAgentDmSearchPool();
- const panel = useSplitPanelOrThrow();
- const { state, setMobileTab } = useChannelsView();
- const mobileSearchText = useMobileSearchText(() => '', panel.handle.isActive);
+ const mobileSearchText = () => '';
const mobileSearchSource = createChannelSearchSource({
additionalLocalChannels: agentDms,
text: mobileSearchText,
- scope: () => state.mobileTab,
- source: () => props.sources[state.mobileTab],
+ scope: () => 'recents',
+ source: () => props.sources.recents,
});
return (
<ChannelsMobileView
source={mobileSearchSource}
searchQuery={mobileSearchText()}
onClearSearch={() => SearchState.setQuery('')}
- tab={state.mobileTab}
- onTabChange={setMobileTab}
/>
);
}
@@ -132,8 +127,7 @@ function ChannelsViewRoot() {
const sources = useChannelsSources(
(scope) => {
- if (mobileLayout())
- return scope !== 'search' && state.mobileTab === scope;
+ if (mobileLayout()) return scope === 'recents';
if (railSearchOpen()) return scope === 'search';
if (scope === 'search') return false;
if (scope === 'recents') return tab() === 'recents';
diff --git a/apps/web/src/features/channels-view/components/ChannelsMobileView.test.tsx b/apps/web/src/features/channels-view/components/ChannelsMobileView.test.tsx
index 0e936f4738..2445acb307 100644
--- a/apps/web/src/features/channels-view/components/ChannelsMobileView.test.tsx
+++ b/apps/web/src/features/channels-view/components/ChannelsMobileView.test.tsx
@@ -10,7 +10,6 @@ import {
import { For, type JSX } from 'solid-js';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import type { ChannelsDataSource } from '../queries';
-import type { ChannelsQueryScope } from '../types';
const mocks = vi.hoisted(() => ({
pass: (props: { children?: JSX.Element }) => props.children,
@@ -44,7 +43,9 @@ vi.mock('@app/lib/debugSettings', () => ({
vi.mock('@components/app/GlobalAppState', () => ({
useGlobalNotificationSource: () => mocks.source,
}));
-vi.mock('@components/app/mobile/PillTabs', () => ({ PillTabs: () => null }));
+vi.mock('@components/app/mobile/PillTabs', () => ({
+ PillTabs: () => <div role="tablist" />,
+}));
vi.mock('@components/app/mobile/PullToRefresh', () => ({
PullToRefresh: () => null,
}));
@@ -123,35 +124,34 @@ beforeEach(() => {
afterEach(cleanup);
describe('mobile channel activation', () => {
- it.each<ChannelsQueryScope>(['recents', 'channels', 'direct_messages'])(
- 'opens immediately at latest with top-level read marking from %s',
- async (tab) => {
- render(() => (
- <ChannelsMobileView
- source={source}
- searchQuery=""
- onClearSearch={() => {}}
- tab={tab}
- onTabChange={() => {}}
- />
- ));
+ it('opens recent conversations immediately at latest with top-level read marking', async () => {
+ render(() => (
+ <ChannelsMobileView
+ source={source}
+ searchQuery=""
+ onClearSearch={() => {}}
+ />
+ ));
- fireEvent.click(screen.getByRole('button', { name: 'One' }));
- expect(mocks.hydrate).not.toHaveBeenCalled();
- expect(mocks.openSplit).toHaveBeenCalledOnce();
- expect(mocks.failure).not.toHaveBeenCalled();
+ expect(
+ screen.getByRole('tree', { name: 'Recent conversations' })
+ ).toBeTruthy();
+ expect(screen.queryByRole('tablist')).toBeNull();
+ fireEvent.click(screen.getByRole('button', { name: 'One' }));
+ expect(mocks.hydrate).not.toHaveBeenCalled();
+ expect(mocks.openSplit).toHaveBeenCalledOnce();
+ expect(mocks.failure).not.toHaveBeenCalled();
- await waitFor(() =>
- expect(mocks.openSplit).toHaveBeenCalledExactlyOnceWith(channel, {
- splitHandle: mocks.handle,
- referredFrom: 'channels',
- notificationSource: mocks.source,
- channelNavigation: 'latest',
- channelReadScope: 'top-level',
- })
- );
- }
- );
+ await waitFor(() =>
+ expect(mocks.openSplit).toHaveBeenCalledExactlyOnceWith(channel, {
+ splitHandle: mocks.handle,
+ referredFrom: 'channels',
+ notificationSource: mocks.source,
+ channelNavigation: 'latest',
+ channelReadScope: 'top-level',
+ })
+ );
+ });
it('still reports a navigation failure while the list is mounted', async () => {
const error = new Error('Navigation failed');
@@ -163,10 +163,12 @@ describe('mobile channel activation', () => {
source={source}
searchQuery=""
onClearSearch={() => {}}
- tab="channels"
- onTabChange={() => {}}
/>
));
+ expect(
+ screen.getByRole('tree', { name: 'Recent conversations' })
+ ).toBeTruthy();
+ expect(screen.queryByRole('tablist')).toBeNull();
fireEvent.click(screen.getByRole('button', { name: 'One' }));
await waitFor(() =>
expect(mocks.failure).toHaveBeenCalledExactlyOnceWith(
diff --git a/apps/web/src/features/channels-view/components/ChannelsMobileView.tsx b/apps/web/src/features/channels-view/components/ChannelsMobileView.tsx
index 77dba8d881..e991aa8764 100644
--- a/apps/web/src/features/channels-view/components/ChannelsMobileView.tsx
+++ b/apps/web/src/features/channels-view/components/ChannelsMobileView.tsx
@@ -4,9 +4,7 @@ import { openEntityInSplitFromUnifiedList } from '@app/features/next-soup/utils'
import { SoupEntityContextMenu } from '@app/features/soup';
import { DEBUG_SETTING_KEYS, useDebugSetting } from '@app/lib/debugSettings';
import { useGlobalNotificationSource } from '@components/app/GlobalAppState';
-import { type PillTabItem, PillTabs } from '@components/app/mobile/PillTabs';
import { PullToRefresh } from '@components/app/mobile/PullToRefresh';
-import { SplitHeaderLeft } from '@components/app/split-layout/components/SplitHeader';
import { useSplitPanelOrThrow } from '@components/app/split-layout/layoutUtils';
import { toast } from '@core/component/Toast/Toast';
import { useUserId } from '@core/context/user';
@@ -30,7 +28,6 @@ import {
} from 'solid-js';
import { Virtualizer, type VirtualizerHandle } from 'virtua/solid';
import type { ChannelsDataSource } from '../queries';
-import type { ChannelsQueryScope } from '../types';
import { channelMentionsUser } from '../utils';
import { ChannelsEmptyState } from './ChannelsEmptyState';
import {
@@ -41,14 +38,6 @@ import {
import { useChannelCalls } from './rail/hooks/useChannelCalls';
import { useChannelRailActivity } from './rail/hooks/useChannelRailActivity';
-const MOBILE_CHANNEL_TABS: PillTabItem<ChannelsQueryScope>[] = [
- { value: 'recents', label: 'Recent' },
- { value: 'channels', label: 'Channels' },
- { value: 'direct_messages', label: 'DMs' },
-];
-const MOBILE_TAB_STRIP_CLASS =
- '-ml-(--mobile-chrome-gutter) w-[100cqw] max-w-none flex-none';
-const MOBILE_TAB_CONTENT_CLASS = 'px-(--mobile-chrome-gutter)';
const MOBILE_CHANNEL_BUFFER_SIZE = CONVERSATION_CARD_HEIGHT * 6;
const LOAD_MORE_THRESHOLD = 300;
@@ -56,8 +45,6 @@ export function ChannelsMobileView(props: {
source: ChannelsDataSource;
searchQuery: string;
onClearSearch: () => void;
- tab: ChannelsQueryScope;
- onTabChange: (tab: ChannelsQueryScope) => void;
}) {
const panel = useSplitPanelOrThrow();
const notificationSource = useGlobalNotificationSource();
@@ -83,11 +70,6 @@ export function ChannelsMobileView(props: {
getEntity: (channel) => channel,
});
- const selectTab = (tab: ChannelsQueryScope) => {
- props.onTabChange(tab);
- viewport()?.scrollTo({ top: 0 });
- };
-
createEffect(
on(
() => props.searchQuery,
@@ -142,183 +124,162 @@ export function ChannelsMobileView(props: {
};
return (
- <>
- <SplitHeaderLeft>
- <div class="flex h-full w-full min-w-0 flex-1 items-center">
- <PillTabs
- scrollable
- class={MOBILE_TAB_STRIP_CLASS}
- contentClass={MOBILE_TAB_CONTENT_CLASS}
- items={MOBILE_CHANNEL_TABS}
- value={props.tab}
- onChange={selectTab}
- />
- </div>
- </SplitHeaderLeft>
-
+ <div
+ role="tree"
+ aria-label="Recent conversations"
+ aria-busy={props.source.isLoadingMore()}
+ class="relative size-full min-h-0 overflow-hidden"
+ >
+ <PullToRefresh
+ scrollContainer={viewport}
+ onRefresh={props.source.refresh}
+ />
<div
- role="tree"
- aria-label={`${MOBILE_CHANNEL_TABS.find((tab) => tab.value === props.tab)?.label ?? 'Channels'} conversations`}
- aria-busy={props.source.isLoadingMore()}
- class="relative size-full min-h-0 overflow-hidden"
+ ref={setViewport}
+ class="scrollbar-hidden size-full min-h-0 overflow-y-auto overscroll-none"
>
- <PullToRefresh
- scrollContainer={viewport}
- onRefresh={props.source.refresh}
- />
<div
- ref={setViewport}
- class="scrollbar-hidden size-full min-h-0 overflow-y-auto overscroll-none"
- >
- <div
- ref={setTopSpacer}
- aria-hidden="true"
- class="h-[calc(var(--mobile-content-inset-top,0px)+0.75rem)]"
- />
- <Switch>
- <Match when={!forceEmptyState() && props.source.isLoading()}>
- <div class="grid min-h-32 place-items-center text-ink-muted">
+ ref={setTopSpacer}
+ aria-hidden="true"
+ class="h-[calc(var(--mobile-content-inset-top,0px)+0.75rem)]"
+ />
+ <Switch>
+ <Match when={!forceEmptyState() && props.source.isLoading()}>
+ <div class="grid min-h-32 place-items-center text-ink-muted">
+ <SpinnerIcon
+ aria-label="Loading conversations"
+ class="size-5 animate-spin"
+ />
+ </div>
+ </Match>
+ <Match
+ when={
+ !forceEmptyState() &&
+ props.source.error() &&
+ visibleChannels().length === 0
+ }
+ >
+ <div class="flex min-h-32 flex-col items-center justify-center gap-3 px-(--mobile-chrome-gutter) text-sm text-ink-muted">
+ <span>Conversations couldn’t be loaded.</span>
+ <Button
+ variant="outline"
+ size="sm"
+ onClick={() => void props.source.refresh()}
+ >
+ Try again
+ </Button>
+ </div>
+ </Match>
+ <Match when={forceEmptyState() || visibleChannels().length === 0}>
+ <Show
+ when={props.searchQuery.trim()}
+ fallback={<ChannelsEmptyState scope="recents" />}
+ >
+ {(query) => (
+ <EmptyStatePanel
+ centered
+ graphic={EmptyStateNoSearchMatchGraphic}
+ title="No results"
+ description={
+ <span>
+ No conversations match{' '}
+ <span class="[overflow-wrap:anywhere]">“{query()}”</span>
+ </span>
+ }
+ primaryAction={{
+ label: 'Clear search',
+ icon: XIcon,
+ onClick: props.onClearSearch,
+ }}
+ class="h-auto touch:pt-0 touch:pb-(--mobile-content-inset-bottom)"
+ />
+ )}
+ </Show>
+ </Match>
+ <Match when={true}>
+ <Virtualizer
+ ref={(handle) => setVirtualizer(handle)}
+ data={visibleChannels()}
+ scrollRef={viewport()}
+ startMargin={topInset()}
+ itemSize={CONVERSATION_CARD_HEIGHT}
+ bufferSize={MOBILE_CHANNEL_BUFFER_SIZE}
+ onScroll={checkNearEnd}
+ >
+ {(channel) => (
+ <SoupEntityContextMenu
+ entity={channel}
+ list={actionList}
+ selectedEntities={() => []}
+ viewContext={CHANNEL_ACTION_VIEW_CONTEXT}
+ class="block w-full"
+ onOpenChange={(open) => {
+ if (!open) return;
+ actionController.focus.set(channel.id, {
+ reason: 'pointer',
+ force: true,
+ });
+ }}
+ >
+ <ConversationCard
+ id={`${listId}-channel:${channel.id}`}
+ class="border-b border-edge-muted/50 px-(--mobile-chrome-gutter) touch:pl-6"
+ channel={channel}
+ showLatestMessage
+ senderId={channel.latestRootMessage?.senderId}
+ mentionedCurrentUser={channelMentionsUser(
+ channel,
+ currentUserId()
+ )}
+ unread={channelActivity.unreadChannelIds().has(channel.id)}
+ muted={isMutedItem(notificationSource.mutedEntities(), {
+ item_id: channel.id,
+ item_type: 'channel',
+ })}
+ callStatus={channelActivity.callStatuses().get(channel.id)}
+ incomingCallId={channelActivity
+ .incomingCallIds()
+ .get(channel.id)}
+ selected={false}
+ focused={false}
+ onActivate={() => openChannel(channel)}
+ />
+ </SoupEntityContextMenu>
+ )}
+ </Virtualizer>
+ <Show when={props.source.isLoadingMore()}>
+ <div class="flex h-12 items-center justify-center text-ink-muted">
<SpinnerIcon
- aria-label="Loading conversations"
- class="size-5 animate-spin"
+ aria-label="Loading more conversations"
+ class="size-4 animate-spin"
/>
</div>
- </Match>
- <Match
+ </Show>
+ <Show
when={
- !forceEmptyState() &&
props.source.error() &&
- visibleChannels().length === 0
+ !props.source.isLoadingMore() &&
+ visibleChannels().length > 0
}
>
- <div class="flex min-h-32 flex-col items-center justify-center gap-3 px-(--mobile-chrome-gutter) text-sm text-ink-muted">
- <span>Conversations couldn’t be loaded.</span>
+ <div class="flex items-center justify-center gap-2 py-3 text-xs text-ink-muted">
+ <span>Couldn’t load more conversations.</span>
<Button
variant="outline"
- size="sm"
+ size="xs"
onClick={() => void props.source.refresh()}
>
Try again
</Button>
</div>
- </Match>
- <Match when={forceEmptyState() || visibleChannels().length === 0}>
- <Show
- when={props.searchQuery.trim()}
- fallback={<ChannelsEmptyState scope={props.tab} />}
- >
- {(query) => (
- <EmptyStatePanel
- centered
- graphic={EmptyStateNoSearchMatchGraphic}
- title="No results"
- description={
- <span>
- No conversations match{' '}
- <span class="[overflow-wrap:anywhere]">
- “{query()}”
- </span>
- </span>
- }
- primaryAction={{
- label: 'Clear search',
- icon: XIcon,
- onClick: props.onClearSearch,
- }}
- class="h-auto touch:pt-0 touch:pb-(--mobile-content-inset-bottom)"
- />
- )}
- </Show>
- </Match>
- <Match when={true}>
- <Virtualizer
- ref={(handle) => setVirtualizer(handle)}
- data={visibleChannels()}
- scrollRef={viewport()}
- startMargin={topInset()}
- itemSize={CONVERSATION_CARD_HEIGHT}
- bufferSize={MOBILE_CHANNEL_BUFFER_SIZE}
- onScroll={checkNearEnd}
- >
- {(channel) => (
- <SoupEntityContextMenu
- entity={channel}
- list={actionList}
- selectedEntities={() => []}
- viewContext={CHANNEL_ACTION_VIEW_CONTEXT}
- class="block w-full"
- onOpenChange={(open) => {
- if (!open) return;
- actionController.focus.set(channel.id, {
- reason: 'pointer',
- force: true,
- });
- }}
- >
- <ConversationCard
- id={`${listId}-channel:${channel.id}`}
- class="border-b border-edge-muted/50 px-(--mobile-chrome-gutter) touch:pl-6"
- channel={channel}
- showLatestMessage={props.tab === 'recents'}
- senderId={channel.latestRootMessage?.senderId}
- mentionedCurrentUser={channelMentionsUser(
- channel,
- currentUserId()
- )}
- unread={channelActivity
- .unreadChannelIds()
- .has(channel.id)}
- muted={isMutedItem(notificationSource.mutedEntities(), {
- item_id: channel.id,
- item_type: 'channel',
- })}
- callStatus={channelActivity
- .callStatuses()
- .get(channel.id)}
- incomingCallId={channelActivity
- .incomingCallIds()
- .get(channel.id)}
- selected={false}
- focused={false}
- onActivate={() => openChannel(channel)}
- />
- </SoupEntityContextMenu>
- )}
- </Virtualizer>
- <Show when={props.source.isLoadingMore()}>
- <div class="flex h-12 items-center justify-center text-ink-muted">
- <SpinnerIcon
- aria-label="Loading more conversations"
- class="size-4 animate-spin"
- />
- </div>
- </Show>
- <Show
- when={
- props.source.error() &&
- !props.source.isLoadingMore() &&
- visibleChannels().length > 0
- }
- >
- <div class="flex items-center justify-center gap-2 py-3 text-xs text-ink-muted">
- <span>Couldn’t load more conversations.</span>
- <Button
- variant="outline"
- size="xs"
- onClick={() => void props.source.refresh()}
- >
- Try again
- </Button>
- </div>
- </Show>
- </Match>
- </Switch>
- <div
- aria-hidden="true"
- class="h-[max(1rem,var(--mobile-content-inset-bottom,0px))]"
- />
- </div>
+ </Show>
+ </Match>
+ </Switch>
+ <div
+ aria-hidden="true"
+ class="h-[max(1rem,var(--mobile-content-inset-bottom,0px))]"
+ />
</div>
- </>
+ </div>
);
}
diff --git a/apps/web/src/features/channels-view/persistence.ts b/apps/web/src/features/channels-view/persistence.ts
index a6d10fb9d3..5b221ce5ac 100644
--- a/apps/web/src/features/channels-view/persistence.ts
+++ b/apps/web/src/features/channels-view/persistence.ts
@@ -46,9 +46,6 @@ const channelsExpandedGroupsSchema = z.preprocess(
const channelsEntryStateSchemaWithDefaults = z.object({
version: z.literal(1).default(1),
tab: z.enum(['browse', 'recents', 'threads']).default('browse'),
- mobileTab: z
- .enum(['channels', 'direct_messages', 'recents'])
- .default('channels'),
expandedGroups: channelsExpandedGroupsSchema.default({
favorites: true,
channels: true,
@@ -63,7 +60,6 @@ type ChannelsEntryState = z.infer<typeof channelsEntryStateSchemaWithDefaults>;
const DEFAULT_CHANNELS_ENTRY_STATE = {
version: 1,
tab: 'browse',
- mobileTab: 'channels',
expandedGroups: {
favorites: true,
channels: true,
@@ -107,7 +103,6 @@ function selectEntryState(state: ChannelsViewState): ChannelsEntryState {
return {
version: 1,
tab: state.tab,
- mobileTab: state.mobileTab,
expandedGroups: state.expandedGroups,
collapsedLabels: state.collapsedLabels,
threadsChannelId: state.threadsChannelId,
@@ -124,7 +119,6 @@ function restoreChannelsEntryState(
return {
...current,
tab: restored.tab,
- mobileTab: restored.mobileTab,
expandedGroups: restored.expandedGroups,
collapsedLabels: restored.collapsedLabels,
threadsChannelId: restored.threadsChannelId,
diff --git a/apps/web/src/features/channels-view/types.ts b/apps/web/src/features/channels-view/types.ts
index 4579bf7057..96893c69bc 100644
--- a/apps/web/src/features/channels-view/types.ts
+++ b/apps/web/src/features/channels-view/types.ts
@@ -14,7 +14,6 @@ export type ChannelsQueryScope = ChannelsGroup | 'recents';
export type ChannelsViewState = {
tab: ChannelsTab;
- mobileTab: ChannelsQueryScope;
expandedGroups: Record<ChannelsRailSection, boolean>;
/**
* Channel labels this user has collapsed. Labels themselves are team data;
diff --git a/apps/web/src/features/command/CommandItem.tsx b/apps/web/src/features/command/CommandItem.tsx
index 8489bf0111..abeece805c 100644
--- a/apps/web/src/features/command/CommandItem.tsx
+++ b/apps/web/src/features/command/CommandItem.tsx
@@ -218,7 +218,7 @@ function AskAiDisplay(props: { item: AskAiItem }) {
);
}
-function ItemDisplay(props: { item: CommandMenuItem }) {
+export function ItemDisplay(props: { item: CommandMenuItem }) {
return (
<Switch>
<Match when={props.item.kind === 'initiative' && props.item}>
diff --git a/apps/web/src/features/command/category-search-filters.ts b/apps/web/src/features/command/category-search-filters.ts
index 164562f8f1..2d4ea71242 100644
--- a/apps/web/src/features/command/category-search-filters.ts
+++ b/apps/web/src/features/command/category-search-filters.ts
@@ -3,8 +3,8 @@ import type { Query } from '@app/features/next-soup/filters/filter-store/types';
import {
SEARCH_INDEX_SEEDS,
type SearchIndexId,
-} from '@app/features/next-soup/soup-view/filters-bar/search/search-filters-state';
-import type { CategoryFilter } from './types';
+} from '@app/features/next-soup/soup-view/filters-bar/search/search-index-seeds';
+import type { EntitySearchCategory } from './queries/entity-search';
type CategorySearchFilters = {
filters: Query;
@@ -16,7 +16,11 @@ type CategorySearchFilters = {
// maps to the same channels index as Channels for now; channelType-based
// narrowing (DMs vs non-DMs) is left for a follow-up once the search
// backend honors it.
-const CATEGORY_TO_INDEX: Partial<Record<CategoryFilter, SearchIndexId>> = {
+const CATEGORY_TO_INDEX: Partial<
+ Record<EntitySearchCategory | 'commands', SearchIndexId>
+> = {
+ email: 'email',
+ people: 'channels',
channels: 'channels',
dms: 'channels',
documents: 'document-or-file',
@@ -25,7 +29,7 @@ const CATEGORY_TO_INDEX: Partial<Record<CategoryFilter, SearchIndexId>> = {
};
export function getCategorySearchFilters(
- category: CategoryFilter
+ category: EntitySearchCategory | 'commands'
): CategorySearchFilters | undefined {
const indexValue = CATEGORY_TO_INDEX[category];
if (!indexValue) return undefined;
diff --git a/apps/web/src/features/command/mobile/MobileSearchInput.test.tsx b/apps/web/src/features/command/mobile/MobileSearchInput.test.tsx
new file mode 100644
index 0000000000..a37351ecf7
--- /dev/null
+++ b/apps/web/src/features/command/mobile/MobileSearchInput.test.tsx
@@ -0,0 +1,39 @@
+import { cleanup, fireEvent, render, screen } from '@solidjs/testing-library';
+import { afterEach, expect, it, vi } from 'vitest';
+import { MobileSearchInput } from './MobileSearchInput';
+import { SearchState } from './mobileSearchState';
+
+const navigate = vi.fn();
+vi.mock('@components/app/mobile/use-mobile-nav', () => ({
+ useForegroundMobileView: () => () => 'search',
+ useMobileNavNavigate: () => navigate,
+}));
+vi.mock('@core/mobile/haptics', () => ({ hapticImpact: vi.fn() }));
+vi.mock('@core/mobile/isTouchDevice', () => ({ isTouchDevice: () => true }));
+afterEach(() => {
+ cleanup();
+ SearchState.close();
+ vi.clearAllMocks();
+});
+
+it('keeps the same focused input through category and mode changes and Enter only dismisses the keyboard', () => {
+ SearchState.open();
+ render(() => <MobileSearchInput />);
+ const input = screen.getByPlaceholderText('Search…');
+ input.focus();
+ fireEvent.input(input, { target: { value: 'teo' } });
+ SearchState.setCategory('email');
+ SearchState.searchFullText();
+ expect(document.activeElement).toBe(input);
+ expect(screen.getByPlaceholderText('Search…')).toBe(input);
+ fireEvent.input(input, { target: { value: 'teo update' } });
+ expect(SearchState.mode()).toBe('full-text');
+ fireEvent.keyDown(input, { key: 'Enter' });
+ expect(document.activeElement).not.toBe(input);
+ expect(SearchState.isOpen()).toBe(true);
+ expect(screen.queryByText('Ask AI')).toBeNull();
+ fireEvent.click(screen.getByRole('button', { name: 'Close search' }));
+ expect(SearchState.isOpen()).toBe(false);
+ expect(SearchState.query()).toBe('');
+ expect(navigate).toHaveBeenCalledWith('home');
+});
diff --git a/apps/web/src/features/command/mobile/MobileSearchInput.tsx b/apps/web/src/features/command/mobile/MobileSearchInput.tsx
index cb53f4444a..fb66da605e 100644
--- a/apps/web/src/features/command/mobile/MobileSearchInput.tsx
+++ b/apps/web/src/features/command/mobile/MobileSearchInput.tsx
@@ -5,61 +5,11 @@ import {
import { hapticImpact } from '@core/mobile/haptics';
import { usePreserveFocusOnButtonTaps } from '@core/mobile/usePreserveFocusOnButtonTaps';
import XIcon from '@phosphor/x.svg';
-import { cn } from '@ui';
import { createEffect, on } from 'solid-js';
import { SearchState } from './mobileSearchState';
-import { openMobileAskAi } from './open-mobile-ask-ai';
-// This component only writes the global session state. The active split's
-// search accessor (useMobileSearchText) overlays the session on its own
-// search text — the input lives in the app chrome outside every split and
-// stays mounted for the whole session, so switching scope views never
-// remounts (and thereby blurs) it. It mounts and unmounts only with the
-// session itself (see MobileDockRow's search layout).
-
-/**
- * Sends the current query to a new AI conversation and ends the search session.
- */
-function submitAskAi() {
- const query = SearchState.query().trim();
- if (!query) return;
- void openMobileAskAi(query);
- SearchState.close();
-}
-
-/**
- * "Ask AI" island shown beside the search input while a session is active
- * (see MobileDockRow's search layout).
- */
-export function MobileAskAiButton() {
- const hasQuery = () => SearchState.query().trim().length > 0;
-
- return (
- <button
- type="button"
- // Tapping it must not drop the keyboard before the action runs.
- data-keep-keyboard
- class={cn(
- 'island pointer-events-auto flex h-11 shrink-0 items-center rounded-full px-3 text-xs font-medium',
- hasQuery() ? 'bg-accent text-chrome' : 'text-ink-extra-muted'
- )}
- onPointerDown={(e) => {
- // Keep the input focused while tapping.
- e.preventDefault();
- hapticImpact('light');
- }}
- onClick={() => submitAskAi()}
- >
- Ask AI
- </button>
- );
-}
-
-/**
- * The dock search bar ("Search or ask AI..."). Focusing it opens the search
- * session while the current view stays visible; a typed term feeds the
- * selected view's own soup search directly.
- */
+// The input lives in app chrome, outside result/category boundaries, and stays
+// mounted throughout the session so switching categories preserves the keyboard.
export function MobileSearchInput() {
let containerRef: HTMLDivElement | undefined;
@@ -69,25 +19,21 @@ export function MobileSearchInput() {
// iOS ends the editing session (dropping the keyboard) while processing
// button taps even when pointerdown is cancelled. This keeps the input
// focused for taps on its own buttons and on [data-keep-keyboard] regions —
- // notably the pill rows, so switching search scope keeps the keyboard up.
+ // notably the category pills, so switching categories keeps the keyboard up.
usePreserveFocusOnButtonTaps(() => containerRef);
- const hasQuery = () => SearchState.query().trim().length > 0;
-
- // Opening an entity ends the session (and with it the view's search
- // filter). Pill navigation between views keeps it —
- // and a session started while an entity is already foregrounded stays too
- // (both sides undefined).
+ // Navigation outside Search ends the session even when another surface
+ // opens the result (for example a link inside a full-text snippet).
createEffect(
on(foregroundView, (view, prevView) => {
if (!SearchState.isOpen()) return;
- if (prevView !== undefined && view === undefined) SearchState.close();
+ if (prevView === 'search' && view !== 'search') SearchState.close();
})
);
// The X is how search mode ends (besides opening a result): close() resets
// the query and unmounts the search row with its input (dropping the
- // keyboard). The All view only exists for searching, so exiting from it
+ // keyboard). The Search view only exists for searching, so exiting from it
// returns to the default view.
const handleClear = () => {
SearchState.close();
@@ -106,14 +52,8 @@ export function MobileSearchInput() {
type="text"
enterkeyhint="search"
class="h-full min-w-0 flex-1 border-0 bg-transparent text-ink outline-none ring-0 placeholder:text-ink-placeholder focus:outline-none focus:ring-0"
- placeholder="Search or ask AI..."
+ placeholder="Search…"
value={SearchState.query()}
- onFocus={() => {
- if (!SearchState.isOpen()) SearchState.open();
- // With nothing typed a search starts from the everything ("All")
- // view; an existing term keeps its current scope.
- if (!hasQuery() && foregroundView() !== 'search') navigate('search');
- }}
// Blurring never ends the session — the keyboard drops but search
// mode stays until the X is pressed (or a result opens).
onInput={(e) => SearchState.setQuery(e.currentTarget.value)}
diff --git a/apps/web/src/features/command/mobile/MobileSearchResults.test.tsx b/apps/web/src/features/command/mobile/MobileSearchResults.test.tsx
new file mode 100644
index 0000000000..c63e0226ff
--- /dev/null
+++ b/apps/web/src/features/command/mobile/MobileSearchResults.test.tsx
@@ -0,0 +1,468 @@
+import type { EntityData, SearchLocation } from '@entity';
+import {
+ cleanup,
+ fireEvent,
+ render,
+ screen,
+ waitFor,
+} from '@solidjs/testing-library';
+import { type Accessor, createSignal } from 'solid-js';
+import { afterEach, beforeEach, expect, it, vi } from 'vitest';
+import type { EntitySearchItem } from '../queries/entity-search';
+import { MobileSearchInput } from './MobileSearchInput';
+import { MobileSearchResults } from './MobileSearchResults';
+import { SearchState } from './mobileSearchState';
+
+const mocks = vi.hoisted(() => ({
+ fullText: vi.fn(),
+ fullTextItems: [] as EntityData[],
+ fullTextData: (() => []) as Accessor<EntityData[]>,
+ fullTextLoading: (() => false) as Accessor<boolean>,
+ fullTextSettling: (() => false) as Accessor<boolean>,
+ open: vi.fn(),
+ directMessage: vi.fn(),
+ failure: vi.fn(),
+ loadMore: vi.fn(),
+ hasMore: true,
+ loadingMore: false,
+ fetchNextPage: vi.fn(),
+ items: (() => []) as Accessor<EntitySearchItem[]>,
+}));
+vi.mock('@app/lib/analytics/posthog', () => ({
+ useFeatureFlag: () => () => ({ enabled: true }),
+}));
+vi.mock('@app/features/crm/record-adapter', () => ({
+ useCrmContactDiscovery: vi.fn(),
+}));
+vi.mock('@app/features/next-soup/utils', () => ({
+ openEntityInSplitFromUnifiedList: mocks.open,
+}));
+vi.mock('@components/app/split-layout/layout', () => ({
+ useSplitLayout: () => ({ openWithSplit: mocks.open }),
+}));
+vi.mock('@components/app/split-layout/layoutUtils', () => ({
+ useSplitPanelOrThrow: () => ({ handle: {} }),
+}));
+vi.mock('@components/app/mobile/use-mobile-nav', () => ({
+ useForegroundMobileView: () => () => 'search',
+ useMobileNavNavigate: () => vi.fn(),
+}));
+vi.mock('@core/mobile/haptics', () => ({ hapticImpact: vi.fn() }));
+vi.mock(
+ '@core/component/LexicalMarkdown/component/core/StaticMarkdown',
+ () => ({
+ StaticMarkdownContext: (props: {
+ children: import('solid-js').JSX.Element;
+ }) => props.children,
+ })
+);
+vi.mock('@core/component/Toast/Toast', () => ({
+ toast: { failure: mocks.failure },
+}));
+vi.mock('@queries/channel/get-or-create-dm', () => ({
+ useGetOrCreateDirectMessageMutation: () => ({
+ mutateAsync: mocks.directMessage,
+ }),
+}));
+vi.mock('@queries/storage/databases', () => ({
+ useDatabaseDiscoverySync: vi.fn(),
+}));
+vi.mock('../CommandItem', () => ({
+ ItemDisplay: (props: { item: EntitySearchItem }) => (
+ <span>{props.item.searchText}</span>
+ ),
+}));
+vi.mock('@entity', () => ({
+ ListEntityMetadataQueryProvider: (props: {
+ children: import('solid-js').JSX.Element;
+ }) => props.children,
+ ListLayoutProvider: (props: { children: import('solid-js').JSX.Element }) =>
+ props.children,
+ ListEntity: (props: {
+ entity: EntityData;
+ onContentHitClick: (event: MouseEvent, location: SearchLocation) => void;
+ }) => (
+ <button
+ type="button"
+ onClick={(event) =>
+ props.onContentHitClick(event, {
+ type: 'email',
+ messageId: 'matching-message',
+ })
+ }
+ >
+ {props.entity.name} snippet
+ </button>
+ ),
+}));
+vi.mock('../queries/entity-search', () => ({
+ useEntitySearch: () => ({
+ items: () => mocks.items(),
+ rankItems: (items: EntitySearchItem[]) => items,
+ isLoadingEntities: () => false,
+ pagination: {
+ hasMore: () => mocks.hasMore,
+ isLoadingMore: () => mocks.loadingMore,
+ loadMore: mocks.loadMore,
+ },
+ }),
+}));
+vi.mock('../queries/mobile-full-text-search', () => ({
+ createMobileFullTextSearch: (...args: unknown[]) => {
+ mocks.fullText(...args);
+ return {
+ data: () => mocks.fullTextData(),
+ isLoading: () => mocks.fullTextLoading(),
+ isSettling: () => mocks.fullTextSettling(),
+ error: () => undefined,
+ hasNextPage: () => mocks.hasMore,
+ isFetchingNextPage: () => mocks.loadingMore,
+ fetchNextPage: mocks.fetchNextPage,
+ };
+ },
+}));
+beforeEach(() => {
+ vi.spyOn(HTMLElement.prototype, 'offsetParent', 'get').mockReturnValue(
+ document.body
+ );
+ vi.stubGlobal(
+ 'ResizeObserver',
+ class implements ResizeObserver {
+ constructor(private callback: ResizeObserverCallback) {}
+ observe(target: Element) {
+ this.callback(
+ [
+ {
+ target,
+ contentRect: new DOMRect(0, 0, 400, 400),
+ borderBoxSize: [],
+ contentBoxSize: [],
+ devicePixelContentBoxSize: [],
+ },
+ ],
+ this
+ );
+ }
+ unobserve() {}
+ disconnect() {}
+ }
+ );
+ mocks.hasMore = true;
+ mocks.loadingMore = false;
+ mocks.items = () => [];
+ mocks.fullTextItems = [];
+ mocks.fullTextData = () => mocks.fullTextItems;
+ mocks.fullTextLoading = () => false;
+ mocks.fullTextSettling = () => mocks.fullTextLoading();
+ SearchState.open();
+});
+afterEach(() => {
+ cleanup();
+ SearchState.close();
+ vi.resetAllMocks();
+ vi.unstubAllGlobals();
+ vi.restoreAllMocks();
+});
+
+it('offers full text above empty results, only mounts it explicitly, and keeps the input during mode changes', () => {
+ render(() => (
+ <>
+ <MobileSearchInput />
+ <MobileSearchResults />
+ </>
+ ));
+ const input = screen.getByPlaceholderText('Search…');
+ input.focus();
+ fireEvent.input(input, { target: { value: 'teo' } });
+ expect(screen.getByText('No results')).toBeTruthy();
+ expect(mocks.fullText).not.toHaveBeenCalled();
+ fireEvent.click(
+ screen.getByRole('button', { name: 'Search full text for “teo”' })
+ );
+ expect(mocks.fullText).toHaveBeenCalledOnce();
+ expect(document.activeElement).toBe(input);
+ fireEvent.input(input, { target: { value: 'teo update' } });
+ expect(SearchState.mode()).toBe('full-text');
+ SearchState.setCategory('email');
+ expect(mocks.fullText).toHaveBeenCalledOnce();
+ fireEvent.input(input, { target: { value: ' ' } });
+ expect(SearchState.mode()).toBe('name');
+ expect(SearchState.category()).toBe('email');
+ expect(screen.queryByText(/Search full text for/)).toBeNull();
+ expect(screen.getByPlaceholderText('Search…')).toBe(input);
+});
+
+it('omits full text for Projects and ends the session on result opening', async () => {
+ const [items, setItems] = createSignal<EntitySearchItem[]>([]);
+ mocks.items = items;
+ render(() => <MobileSearchResults />);
+ SearchState.setQuery('teo');
+ SearchState.searchFullText();
+ SearchState.setCategory('projects');
+ expect(screen.queryByText(/Search full text for/)).toBeNull();
+ expect(screen.queryByRole('button', { name: 'Load more' })).toBeNull();
+ setItems([
+ {
+ id: 'project',
+ kind: 'initiative',
+ bucket: 'initiative',
+ name: 'Teo project',
+ searchText: 'Teo project',
+ sortTimestamp: 0,
+ timestamps: {},
+ },
+ ]);
+ fireEvent.click(screen.getByRole('button', { name: 'Teo project' }));
+ expect(SearchState.isOpen()).toBe(false);
+ expect(mocks.open).toHaveBeenCalled();
+ SearchState.open();
+ expect(SearchState.mode()).toBe('name');
+ expect(SearchState.category()).toBe('all');
+});
+
+it('preserves the search after a failed person lookup and closes after a successful retry', async () => {
+ mocks.items = () => [
+ {
+ id: 'macro|[email protected]',
+ kind: 'user',
+ bucket: 'person',
+ searchText: 'Teo',
+ sortTimestamp: 0,
+ timestamps: {},
+ data: {
+ id: 'macro|[email protected]',
+ email: '[email protected]',
+ name: 'Teo',
+ },
+ },
+ ];
+ mocks.directMessage.mockRejectedValueOnce(new Error('Unavailable'));
+ mocks.directMessage.mockResolvedValueOnce({ channel_id: 'direct-message' });
+ SearchState.setQuery('teo');
+ SearchState.setCategory('people');
+ render(() => <MobileSearchResults />);
+ fireEvent.click(screen.getByRole('button', { name: 'Teo' }));
+ await waitFor(() =>
+ expect(mocks.failure).toHaveBeenCalledWith(
+ 'Unable to open result. Please try again.'
+ )
+ );
+ expect(mocks.open).not.toHaveBeenCalled();
+ expect(SearchState.isOpen()).toBe(true);
+ expect(SearchState.query()).toBe('teo');
+ expect(SearchState.category()).toBe('people');
+ expect(SearchState.mode()).toBe('name');
+ fireEvent.click(screen.getByRole('button', { name: 'Teo' }));
+ expect(SearchState.isOpen()).toBe(true);
+ await waitFor(() =>
+ expect(mocks.open).toHaveBeenCalledWith(
+ { type: 'channel', id: 'direct-message' },
+ { reopen: 'latest' }
+ )
+ );
+ expect(SearchState.isOpen()).toBe(false);
+ expect(SearchState.query()).toBe('');
+ expect(SearchState.category()).toBe('all');
+});
+
+it('opens the selected full-text message and resets the session', () => {
+ const email: EntityData = {
+ id: 'thread',
+ type: 'email',
+ name: 'Weekly update',
+ ownerId: 'owner',
+ createdAt: '2026-01-01T00:00:00Z',
+ updatedAt: '2026-01-02T00:00:00Z',
+ isRead: true,
+ isDraft: false,
+ isImportant: false,
+ done: false,
+ };
+ mocks.fullTextItems = [email];
+ SearchState.setQuery('teo');
+ SearchState.setCategory('email');
+ SearchState.searchFullText();
+ render(() => <MobileSearchResults />);
+ fireEvent.click(
+ screen.getByRole('button', { name: 'Weekly update snippet' })
+ );
+ expect(mocks.open).toHaveBeenCalledWith(email, {
+ splitHandle: {},
+ location: { type: 'email', messageId: 'matching-message' },
+ });
+ expect(SearchState.isOpen()).toBe(false);
+ expect(SearchState.query()).toBe('');
+ expect(SearchState.category()).toBe('all');
+});
+
+it('bounds mounted recent rows while keeping the first result usable', () => {
+ mocks.items = () =>
+ Array.from({ length: 2000 }, (_, index) => ({
+ id: `project-${index}`,
+ kind: 'initiative',
+ bucket: 'initiative',
+ name: `Project ${index}`,
+ searchText: `Project ${index}`,
+ sortTimestamp: 0,
+ timestamps: {},
+ }));
+ render(() => <MobileSearchResults />);
+ expect(screen.getAllByRole('button').length).toBeLessThan(50);
+ fireEvent.click(screen.getByRole('button', { name: 'Project 0' }));
+ expect(mocks.open).toHaveBeenCalled();
+ expect(SearchState.isOpen()).toBe(false);
+});
+
+it('loads another name page near the end without a persistent paging bar', async () => {
+ mocks.items = () =>
+ Array.from({ length: 100 }, (_, index) => ({
+ id: `project-${index}`,
+ kind: 'initiative',
+ bucket: 'initiative',
+ name: `Project ${index}`,
+ searchText: `Project ${index}`,
+ sortTimestamp: 0,
+ timestamps: {},
+ }));
+ render(() => <MobileSearchResults />);
+ expect(screen.queryByRole('button', { name: 'Load more' })).toBeNull();
+ const list = screen.getByRole('region', { name: 'Search results' });
+ fireEvent.scroll(list, { target: { scrollTop: 1 } });
+ expect(mocks.loadMore).not.toHaveBeenCalled();
+ fireEvent.scroll(list, { target: { scrollTop: 100000 } });
+ await waitFor(() => expect(mocks.loadMore).toHaveBeenCalledOnce());
+ mocks.loadingMore = true;
+ fireEvent.scroll(list, { target: { scrollTop: 100001 } });
+ expect(mocks.loadMore).toHaveBeenCalledOnce();
+ mocks.loadingMore = false;
+ mocks.hasMore = false;
+ fireEvent.scroll(list, { target: { scrollTop: 100002 } });
+ expect(mocks.loadMore).toHaveBeenCalledOnce();
+});
+
+it('loads full-text pages near the end without a persistent paging bar', () => {
+ SearchState.setQuery('teo');
+ SearchState.searchFullText();
+ render(() => <MobileSearchResults />);
+ expect(screen.queryByRole('button', { name: 'Load more' })).toBeNull();
+ const list = screen.getByRole('region', { name: 'Search results' });
+ Object.defineProperties(list, {
+ scrollHeight: { value: 2000 },
+ clientHeight: { value: 400 },
+ });
+ fireEvent.scroll(list, { target: { scrollTop: 100 } });
+ expect(mocks.fetchNextPage).not.toHaveBeenCalled();
+ fireEvent.scroll(list, { target: { scrollTop: 1550 } });
+ expect(mocks.fetchNextPage).toHaveBeenCalledOnce();
+ mocks.loadingMore = true;
+ fireEvent.scroll(list, { target: { scrollTop: 1551 } });
+ expect(mocks.fetchNextPage).toHaveBeenCalledOnce();
+ mocks.loadingMore = false;
+ mocks.hasMore = false;
+ fireEvent.scroll(list, { target: { scrollTop: 1552 } });
+ expect(mocks.fetchNextPage).toHaveBeenCalledOnce();
+});
+
+it('fills an empty name page without requiring a scroll and stops once rows fill the viewport', async () => {
+ const [items, setItems] = createSignal<EntitySearchItem[]>([]);
+ mocks.items = items;
+ mocks.loadMore.mockImplementationOnce(async () => {
+ setItems([]);
+ });
+ mocks.loadMore.mockImplementationOnce(async () => {
+ setItems(
+ Array.from({ length: 100 }, (_, index) => ({
+ id: `project-${index}`,
+ kind: 'initiative',
+ bucket: 'initiative',
+ name: `Project ${index}`,
+ searchText: `Project ${index}`,
+ sortTimestamp: 0,
+ timestamps: {},
+ }))
+ );
+ });
+ render(() => <MobileSearchResults />);
+ await waitFor(() =>
+ expect(screen.getByRole('button', { name: 'Project 0' })).toBeTruthy()
+ );
+ expect(mocks.loadMore).toHaveBeenCalledTimes(2);
+});
+
+it('does not automatically retry an unchanged empty page or fetch after closing', async () => {
+ const view = render(() => <MobileSearchResults />);
+ await waitFor(() => expect(mocks.loadMore).toHaveBeenCalledOnce());
+ view.unmount();
+ render(() => <MobileSearchResults />).unmount();
+ await Promise.resolve();
+ expect(mocks.loadMore).toHaveBeenCalledOnce();
+});
+
+it('fills empty full-text pages until pagination is exhausted', async () => {
+ const [items, setItems] = createSignal<EntityData[]>([]);
+ mocks.fullTextData = items;
+ mocks.fetchNextPage.mockImplementationOnce(async () => {
+ setItems([]);
+ });
+ mocks.fetchNextPage.mockImplementationOnce(async () => {
+ mocks.hasMore = false;
+ setItems([]);
+ });
+ SearchState.setQuery('teo');
+ SearchState.searchFullText();
+ render(() => <MobileSearchResults />);
+ await waitFor(() => expect(mocks.fetchNextPage).toHaveBeenCalledTimes(2));
+});
+
+it('keeps full-text rows mounted during same-query refreshes but clears them for a new query', () => {
+ const email: EntityData = {
+ id: 'thread',
+ type: 'email',
+ name: 'Weekly update',
+ ownerId: 'owner',
+ createdAt: '2026-01-01T00:00:00Z',
+ updatedAt: '2026-01-02T00:00:00Z',
+ isRead: true,
+ isDraft: false,
+ isImportant: false,
+ done: false,
+ };
+ const [items, setItems] = createSignal<EntityData[]>([email]);
+ const [loading, setLoading] = createSignal(false);
+ const [settling, setSettling] = createSignal(false);
+ mocks.fullTextData = items;
+ mocks.fullTextLoading = loading;
+ mocks.fullTextSettling = () => loading() || settling();
+ SearchState.setQuery('teo');
+ SearchState.searchFullText();
+ render(() => <MobileSearchResults />);
+ const row = screen.getByRole('button', { name: 'Weekly update snippet' });
+ setLoading(true);
+ setItems([]);
+ expect(screen.getByRole('button', { name: 'Weekly update snippet' })).toBe(
+ row
+ );
+ expect(screen.queryByText('Searching…')).toBeNull();
+ setItems([email]);
+ setLoading(false);
+ expect(screen.getByRole('button', { name: 'Weekly update snippet' })).toBe(
+ row
+ );
+ // Service page selection rematerializes existing entities when it appends.
+ setItems([
+ { ...email, name: 'Updated subject' },
+ { ...email, id: 'next', name: 'Next page' },
+ ]);
+ expect(screen.getByRole('button', { name: 'Updated subject snippet' })).toBe(
+ row
+ );
+ expect(
+ screen.getByRole('button', { name: 'Next page snippet' })
+ ).toBeTruthy();
+ // The real source keeps old rows briefly while the new query debounces.
+ setSettling(true);
+ SearchState.setQuery('different');
+ expect(
+ screen.queryByRole('button', { name: 'Updated subject snippet' })
+ ).toBeNull();
+});
diff --git a/apps/web/src/features/command/mobile/MobileSearchResults.tsx b/apps/web/src/features/command/mobile/MobileSearchResults.tsx
new file mode 100644
index 0000000000..32cebdfc57
--- /dev/null
+++ b/apps/web/src/features/command/mobile/MobileSearchResults.tsx
@@ -0,0 +1,268 @@
+import { useCrmContactDiscovery } from '@app/features/crm/record-adapter';
+import { openEntityInSplitFromUnifiedList } from '@app/features/next-soup/utils';
+import { projectRouteId } from '@app/features/projects/core/route';
+import { createSoupRowStore } from '@app/features/soup/collection/row-store';
+import { useSplitLayout } from '@components/app/split-layout/layout';
+import { useSplitPanelOrThrow } from '@components/app/split-layout/layoutUtils';
+import { StaticMarkdownContext } from '@core/component/LexicalMarkdown/component/core/StaticMarkdown';
+import { toast } from '@core/component/Toast/Toast';
+import {
+ type EntityData,
+ ListEntity,
+ ListEntityMetadataQueryProvider,
+ ListLayoutProvider,
+ type SearchLocation,
+} from '@entity';
+import { Telemetry } from '@macro-inc/observability';
+import { useGetOrCreateDirectMessageMutation } from '@queries/channel/get-or-create-dm';
+import { useDatabaseDiscoverySync } from '@queries/storage/databases';
+import { Button, CommandMenuListItem } from '@ui';
+import { createMemo, createSignal, For, Show, Suspense } from 'solid-js';
+import { type VirtualizerHandle, VList } from 'virtua/solid';
+import { ItemDisplay } from '../CommandItem';
+import {
+ type EntitySearchCategory,
+ type EntitySearchItem,
+ useEntitySearch,
+} from '../queries/entity-search';
+import { createMobileFullTextSearch } from '../queries/mobile-full-text-search';
+import { createSearchPagination } from './create-search-pagination';
+import { SearchState } from './mobileSearchState';
+import { useMobileSearchCategory } from './use-mobile-search-category';
+
+function MobileNameResults() {
+ let virtualizer: VirtualizerHandle | undefined;
+ const [container, setContainer] = createSignal<HTMLDivElement>();
+ const category = useMobileSearchCategory();
+ const source = useEntitySearch(SearchState.query, category, {
+ enabled: SearchState.isOpen,
+ contactDiscovery: useCrmContactDiscovery,
+ });
+ useDatabaseDiscoverySync(SearchState.isOpen);
+ const items = createMemo(() =>
+ source.rankItems(source.items(), SearchState.query())
+ );
+ const loadMoreNearEnd = createSearchPagination({
+ items,
+ container,
+ remaining: () =>
+ items().length === 0
+ ? 0
+ : virtualizer
+ ? virtualizer.scrollSize -
+ virtualizer.scrollOffset -
+ virtualizer.viewportSize
+ : undefined,
+ hasMore: source.pagination.hasMore,
+ busy: () => source.isLoadingEntities() || source.pagination.isLoadingMore(),
+ loadMore: source.pagination.loadMore,
+ });
+ const { openWithSplit } = useSplitLayout();
+ const panel = useSplitPanelOrThrow();
+ const directMessage = useGetOrCreateDirectMessageMutation();
+ const open = async (item: EntitySearchItem) => {
+ await Telemetry.span('mobile.search.open', async (span) => {
+ span.setAttr('entity.id', item.id);
+ span.setAttr('entity.type', item.bucket);
+ if (item.kind === 'initiative') {
+ SearchState.close();
+ openWithSplit({
+ type: 'component',
+ id: projectRouteId({ id: item.id, section: 'overview' }),
+ });
+ } else if (item.kind === 'user') {
+ const result = await directMessage.mutateAsync({
+ recipient_id: item.id,
+ });
+ SearchState.close();
+ openWithSplit(
+ { type: 'channel', id: result.channel_id },
+ { reopen: 'latest' }
+ );
+ } else {
+ SearchState.close();
+ await openEntityInSplitFromUnifiedList(item.data, {
+ splitHandle: panel.handle,
+ });
+ }
+ });
+ };
+ const select = async (item: EntitySearchItem) => {
+ try {
+ await open(item);
+ } catch {
+ toast.failure('Unable to open result. Please try again.');
+ }
+ };
+ return (
+ <div
+ ref={setContainer}
+ class="flex h-full min-h-0 flex-col px-3 mobile:pt-(--mobile-content-inset-top) mobile:pb-(--mobile-content-inset-bottom)"
+ >
+ <Show when={SearchState.query().trim() && category() !== 'projects'}>
+ <div
+ data-keep-keyboard
+ onPointerDown={(event) => event.preventDefault()}
+ onMouseDown={(event) => event.preventDefault()}
+ >
+ <CommandMenuListItem
+ class="min-h-11"
+ onClick={SearchState.searchFullText}
+ >
+ <span class="truncate">
+ Search full text for “{SearchState.query().trim()}”
+ </span>
+ </CommandMenuListItem>
+ </div>
+ </Show>
+ <Show when={items().length > 0}>
+ <VList
+ ref={(handle) => {
+ virtualizer = handle;
+ }}
+ data={items()}
+ role="region"
+ aria-label="Search results"
+ class="min-h-0 flex-1 overscroll-none"
+ onScroll={loadMoreNearEnd}
+ >
+ {(item) => (
+ <CommandMenuListItem
+ class="min-h-11"
+ onClick={() => void select(item)}
+ >
+ <ItemDisplay item={item} />
+ </CommandMenuListItem>
+ )}
+ </VList>
+ </Show>
+ <Show when={source.isLoadingEntities()}>
+ <p role="status" class="p-3 text-ink-muted">
+ Loading…
+ </p>
+ </Show>
+ <Show when={!source.isLoadingEntities() && items().length === 0}>
+ <p class="p-3 text-ink-muted">No results</p>
+ </Show>
+ </div>
+ );
+}
+
+function MobileFullTextResults() {
+ const category = useMobileSearchCategory();
+ const search = createMobileFullTextSearch(SearchState.query, category);
+ const panel = useSplitPanelOrThrow();
+ const [container, setContainer] = createSignal<HTMLDivElement>();
+ // A same-query refresh must not collapse the scroller between pages.
+ const results = createMemo<{
+ query: string;
+ category: EntitySearchCategory;
+ items: EntityData[];
+ }>((previous) => {
+ const query = SearchState.query().trim();
+ const scope = category();
+ const items = search.data();
+ if (search.isSettling()) {
+ if (previous?.query === query && previous.category === scope)
+ return previous;
+ return { query, category: scope, items: [] };
+ }
+ return { query, category: scope, items };
+ });
+ // Page selection rematerializes entities; retain row identity as pages append.
+ const rows = createSoupRowStore(() => results().items);
+ const loadMoreNearEnd = createSearchPagination({
+ items: () => results().items,
+ container,
+ remaining: () => {
+ const list = container();
+ return list
+ ? list.scrollHeight - list.scrollTop - list.clientHeight
+ : undefined;
+ },
+ hasMore: search.hasNextPage,
+ busy: () =>
+ search.isSettling() || search.isFetchingNextPage() || !!search.error(),
+ loadMore: search.fetchNextPage,
+ });
+ const open = async (entity: EntityData, location?: SearchLocation) => {
+ try {
+ await Telemetry.span('mobile.search.open', async (span) => {
+ span.setAttr('entity.id', entity.id);
+ span.setAttr('entity.type', entity.type);
+ span.setAttr('search.content_hit', !!location);
+ SearchState.close();
+ await openEntityInSplitFromUnifiedList(entity, {
+ splitHandle: panel.handle,
+ location,
+ });
+ });
+ } catch {
+ toast.failure('Unable to open result. Please try again.');
+ }
+ };
+ return (
+ <div
+ ref={setContainer}
+ role="region"
+ aria-label="Search results"
+ onScroll={loadMoreNearEnd}
+ class="soup-list h-full overflow-y-auto overscroll-none mobile:pt-(--mobile-content-inset-top) mobile:pb-(--mobile-content-inset-bottom)"
+ >
+ <ListEntityMetadataQueryProvider>
+ <ListLayoutProvider ref={container}>
+ <StaticMarkdownContext>
+ <For each={rows()}>
+ {(entity) => (
+ <ListEntity
+ entity={entity}
+ hideCheckbox
+ hideContentHits={false}
+ onClick={() => void open(entity)}
+ onContentHitClick={(event, location) => {
+ event.stopPropagation();
+ void open(entity, location);
+ }}
+ />
+ )}
+ </For>
+ </StaticMarkdownContext>
+ </ListLayoutProvider>
+ </ListEntityMetadataQueryProvider>
+ <Show when={search.isSettling() && results().items.length === 0}>
+ <p role="status" class="p-3 text-ink-muted">
+ Searching…
+ </p>
+ </Show>
+ <Show when={search.error()}>
+ <p role="alert" class="p-3 text-ink-muted">
+ Search failed. Please try again.
+ </p>
+ <Button onClick={() => void search.refetch()}>Retry</Button>
+ </Show>
+ <Show
+ when={
+ !search.isSettling() &&
+ !search.error() &&
+ results().items.length === 0
+ }
+ >
+ <p class="p-3 text-ink-muted">No results</p>
+ </Show>
+ </div>
+ );
+}
+
+/** The dock owns the input; only the result subtree changes search modes. */
+export function MobileSearchResults() {
+ return (
+ <Suspense fallback={<p role="status">Loading…</p>}>
+ <Show
+ when={SearchState.mode() === 'full-text'}
+ fallback={<MobileNameResults />}
+ >
+ <MobileFullTextResults />
+ </Show>
+ </Suspense>
+ );
+}
diff --git a/apps/web/src/features/command/mobile/create-search-pagination.ts b/apps/web/src/features/command/mobile/create-search-pagination.ts
new file mode 100644
index 0000000000..75f8d06d43
--- /dev/null
+++ b/apps/web/src/features/command/mobile/create-search-pagination.ts
@@ -0,0 +1,45 @@
+import { createResizeObserver } from '@solid-primitives/resize-observer';
+import { type Accessor, createEffect, on, onCleanup } from 'solid-js';
+
+/** Fill short pages as well as paging on scroll, without retrying a failed page in a loop. */
+export function createSearchPagination<T>(options: {
+ items: Accessor<readonly T[]>;
+ container: Accessor<HTMLElement | undefined>;
+ remaining: Accessor<number | undefined>;
+ hasMore: Accessor<boolean>;
+ busy: Accessor<boolean>;
+ loadMore: () => Promise<unknown>;
+}) {
+ let disposed = false;
+ let queued = false;
+ let lastAutoPage: readonly T[] | undefined;
+ onCleanup(() => {
+ disposed = true;
+ });
+
+ const loadNearEnd = (automatic = false) => {
+ if (disposed || !options.hasMore() || options.busy()) return;
+ const remaining = options.remaining();
+ if (remaining === undefined || remaining > 44 * 3) return;
+ const page = options.items();
+ if (automatic && page === lastAutoPage) return;
+ lastAutoPage = page;
+ void options.loadMore();
+ };
+
+ // DOM measurements settle after rendering and ResizeObserver updates. A new
+ // result array allows another automatic page; a failed/no-op fetch does not.
+ const scheduleCheck = () => {
+ if (queued) return;
+ queued = true;
+ queueMicrotask(() => {
+ queued = false;
+ loadNearEnd(true);
+ });
+ };
+ createResizeObserver(options.container, scheduleCheck);
+ createEffect(
+ on([options.items, options.hasMore, options.busy], scheduleCheck)
+ );
+ return () => loadNearEnd();
+}
diff --git a/apps/web/src/features/command/mobile/mobileSearchState.test.ts b/apps/web/src/features/command/mobile/mobileSearchState.test.ts
new file mode 100644
index 0000000000..94c52249b1
--- /dev/null
+++ b/apps/web/src/features/command/mobile/mobileSearchState.test.ts
@@ -0,0 +1,48 @@
+import { afterEach, describe, expect, it } from 'vitest';
+import { createMobileSearchState } from './mobileSearchState';
+
+const state = createMobileSearchState();
+afterEach(() => state.close());
+describe('mobile search session', () => {
+ it('keeps full text while editing and switching categories, then resets on whitespace', () => {
+ state.open();
+ state.setCategory('email');
+ state.setQuery('teo');
+ state.searchFullText();
+ state.setQuery('teo update');
+ state.setCategory('tasks');
+ expect(state.mode()).toBe('full-text');
+ expect(state.query()).toBe('teo update');
+ state.setQuery(' \t ');
+ expect(state.mode()).toBe('name');
+ expect(state.category()).toBe('tasks');
+ state.setQuery('t');
+ expect(state.mode()).toBe('name');
+ });
+ it('keeps Projects name-only and retains the query when selected', () => {
+ state.open();
+ state.setQuery('teo');
+ state.searchFullText();
+ state.setCategory('projects');
+ expect(state.mode()).toBe('name');
+ expect(state.query()).toBe('teo');
+ state.searchFullText();
+ expect(state.mode()).toBe('name');
+ });
+ it('ignores repeated open and starts a new session in All/name after close', () => {
+ state.open();
+ state.setCategory('email');
+ state.setQuery('teo');
+ state.searchFullText();
+ state.open();
+ expect(state.mode()).toBe('full-text');
+ expect(state.category()).toBe('email');
+ state.close();
+ state.open();
+ expect(state.query()).toBe('');
+ expect(state.category()).toBe('all');
+ expect(state.mode()).toBe('name');
+ state.searchFullText();
+ expect(state.mode()).toBe('name');
+ });
+});
diff --git a/apps/web/src/features/command/mobile/mobileSearchState.ts b/apps/web/src/features/command/mobile/mobileSearchState.ts
index 89b20db481..6085b917ed 100644
--- a/apps/web/src/features/command/mobile/mobileSearchState.ts
+++ b/apps/web/src/features/command/mobile/mobileSearchState.ts
@@ -1,5 +1,7 @@
import { createControlledOpenSignal } from '@core/util/createControlledOpenSignal';
+import { Telemetry } from '@macro-inc/observability';
import { type Accessor, batch, createSignal } from 'solid-js';
+import type { EntitySearchCategory } from '../queries/entity-search';
interface IMobileSearchState {
/**
@@ -11,30 +13,66 @@ interface IMobileSearchState {
open: () => void;
close: () => void;
+ category: Accessor<EntitySearchCategory>;
+ setCategory: (category: EntitySearchCategory) => void;
+ mode: Accessor<'name' | 'full-text'>;
+ searchFullText: () => void;
+
/** query (the dock input's live value) */
query: Accessor<string>;
setQuery: (value: string) => void;
}
-function createMobileSearchState(): IMobileSearchState {
+export function createMobileSearchState(): IMobileSearchState {
const [isOpen, setIsOpen] = createControlledOpenSignal(false, {
id: 'command',
});
- const [query, setQuery] = createSignal('');
+ const [query, writeQuery] = createSignal('');
+ const [category, writeCategory] = createSignal<EntitySearchCategory>('all');
+ const [mode, setMode] = createSignal<'name' | 'full-text'>('name');
+ const setQuery = (value: string) =>
+ batch(() => {
+ writeQuery(value);
+ if (!value.trim()) setMode('name');
+ });
+ const setCategory = (value: EntitySearchCategory) =>
+ batch(() => {
+ writeCategory(value);
+ if (value === 'projects') setMode('name');
+ });
+ const searchFullText = () => {
+ if (!query().trim() || category() === 'projects') return;
+ const span = Telemetry.span('mobile.search.full_text');
+ try {
+ span.setAttr('search.category', category());
+ span.setAttr('search.query_length', query().trim().length);
+ setMode('full-text');
+ } finally {
+ span.end();
+ }
+ };
function open() {
- setIsOpen(true);
+ if (isOpen()) return;
+ batch(() => {
+ writeQuery('');
+ writeCategory('all');
+ setMode('name');
+ setIsOpen(true);
+ });
}
/**
* Ends and resets the session. Passes `shouldReturnFocus: false` — the
- * session opened from the input's own focus, so returning focus would
- * re-raise the keyboard.
+ * dock mounts and focuses the input when opening; restoring focus during
+ * teardown could re-raise the keyboard.
*/
function close() {
batch(() => {
setIsOpen(false, false);
- setQuery('');
+ writeQuery('');
+ writeCategory('all');
+ setMode('name');
});
}
@@ -45,11 +83,15 @@ function createMobileSearchState(): IMobileSearchState {
query,
setQuery,
+ category,
+ setCategory,
+ mode,
+ searchFullText,
};
}
/**
* Global mobile search session singleton — the dock input whose query feeds
- * the active view's own soup search.
+ * the Search route's transient entity and full-text search.
*/
export const SearchState = createMobileSearchState();
diff --git a/apps/web/src/features/command/mobile/open-mobile-ask-ai.test.ts b/apps/web/src/features/command/mobile/open-mobile-ask-ai.test.ts
deleted file mode 100644
index 3fb82e1182..0000000000
--- a/apps/web/src/features/command/mobile/open-mobile-ask-ai.test.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { expect, it, vi } from 'vitest';
-
-vi.mock('@app/features/chat/ChatWithAgentButton', () => ({
- openChatWithMessage: vi.fn(),
-}));
-
-import { openChatWithMessage } from '@app/features/chat/ChatWithAgentButton';
-import { openMobileAskAi } from './open-mobile-ask-ai';
-
-it('uses the same agent handoff as desktop search and the command menu', () => {
- expect(openMobileAskAi).toBe(openChatWithMessage);
-});
diff --git a/apps/web/src/features/command/mobile/open-mobile-ask-ai.ts b/apps/web/src/features/command/mobile/open-mobile-ask-ai.ts
deleted file mode 100644
index 2769c41515..0000000000
--- a/apps/web/src/features/command/mobile/open-mobile-ask-ai.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-// Mobile search shares the agent handoff used by desktop search and the command menu.
-export { openChatWithMessage as openMobileAskAi } from '@app/features/chat/ChatWithAgentButton';
diff --git a/apps/web/src/features/command/mobile/use-mobile-search-category.ts b/apps/web/src/features/command/mobile/use-mobile-search-category.ts
new file mode 100644
index 0000000000..010813edae
--- /dev/null
+++ b/apps/web/src/features/command/mobile/use-mobile-search-category.ts
@@ -0,0 +1,11 @@
+import { useFeatureFlag } from '@app/lib/analytics/posthog';
+import { enableProjects } from '@core/constant/featureFlags';
+import { SearchState } from './mobileSearchState';
+
+export function useMobileSearchCategory() {
+ const projects = useFeatureFlag(enableProjects);
+ return () =>
+ SearchState.category() === 'projects' && !projects().enabled
+ ? 'all'
+ : SearchState.category();
+}
diff --git a/apps/web/src/features/command/mobile/use-mobile-search-text.test.ts b/apps/web/src/features/command/mobile/use-mobile-search-text.test.ts
deleted file mode 100644
index ef5a8fb1ed..0000000000
--- a/apps/web/src/features/command/mobile/use-mobile-search-text.test.ts
+++ /dev/null
@@ -1,70 +0,0 @@
-import { isTouchDevice } from '@core/mobile/isTouchDevice';
-import { createRoot, createSignal } from 'solid-js';
-import { beforeEach, describe, expect, it, vi } from 'vitest';
-import { SearchState } from './mobileSearchState';
-import { useMobileSearchText } from './use-mobile-search-text';
-
-vi.mock('@core/mobile/isTouchDevice', () => ({ isTouchDevice: vi.fn() }));
-vi.mock('./mobileSearchState', async () => {
- const { createSignal } = await import('solid-js');
- const [isOpen, setOpen] = createSignal(false);
- const [query, setQuery] = createSignal('');
- return {
- SearchState: {
- isOpen,
- query,
- setQuery,
- open: () => setOpen(true),
- close: () => {
- setOpen(false);
- setQuery('');
- },
- },
- };
-});
-
-describe('mobile view search text', () => {
- beforeEach(() => {
- SearchState.close();
- vi.mocked(isTouchDevice).mockReturnValue(true);
- });
-
- it('carries the query between scopes and restores each view on close', () => {
- createRoot((dispose) => {
- const [scope, setScope] = createSignal('tasks');
- const [savedTasks, setSavedTasks] = createSignal('saved task search');
- const tasks = useMobileSearchText(savedTasks, () => scope() === 'tasks');
- const email = useMobileSearchText(
- () => 'saved email search',
- () => scope() === 'mail'
- );
- SearchState.open();
- SearchState.setQuery('project');
- expect(tasks()).toBe('project');
- expect(email()).toBe('saved email search');
- setScope('mail');
- expect(email()).toBe('project');
- expect(tasks()).toBe('saved task search');
- SearchState.setQuery('');
- expect(email()).toBe('');
- SearchState.close();
- expect(email()).toBe('saved email search');
- expect(savedTasks()).toBe('saved task search');
- setSavedTasks('updated desktop search');
- expect(tasks()).toBe('updated desktop search');
- dispose();
- });
- });
-
- it('keeps desktop search independent of an open dock session', () => {
- vi.mocked(isTouchDevice).mockReturnValue(false);
- SearchState.open();
- SearchState.setQuery('mobile query');
- expect(
- useMobileSearchText(
- () => 'desktop query',
- () => true
- )()
- ).toBe('desktop query');
- });
-});
diff --git a/apps/web/src/features/command/mobile/use-mobile-search-text.ts b/apps/web/src/features/command/mobile/use-mobile-search-text.ts
deleted file mode 100644
index 0c6e2ee00d..0000000000
--- a/apps/web/src/features/command/mobile/use-mobile-search-text.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import { isTouchDevice } from '@core/mobile/isTouchDevice';
-import type { Accessor } from 'solid-js';
-import { SearchState } from './mobileSearchState';
-
-/** Overlay the dock query without persisting it into the view's own state. */
-export function useMobileSearchText(
- localText: Accessor<string>,
- isActive: Accessor<boolean>
-): Accessor<string> {
- return () =>
- isTouchDevice() && SearchState.isOpen() && isActive()
- ? SearchState.query()
- : localText();
-}
diff --git a/apps/web/src/features/command/queries/entity-search.ts b/apps/web/src/features/command/queries/entity-search.ts
new file mode 100644
index 0000000000..2b0d6a636d
--- /dev/null
+++ b/apps/web/src/features/command/queries/entity-search.ts
@@ -0,0 +1,164 @@
+import {
+ type Bucket,
+ type QuickAccessItem,
+ useQuickAccess,
+} from '@core/context/quickAccess';
+import { exclude } from '@core/context/quickAccess/types';
+import { useUserId } from '@core/context/user';
+import { type Accessor, createMemo } from 'solid-js';
+import { contactCommandItems } from '../contact-items';
+import {
+ type ProjectCommandItem,
+ useProjectCommandItems,
+} from '../project-items';
+import { rankCommandSearchItems } from '../rank-command-search-items';
+import type { CategoryFilter } from '../types';
+import type { CommandContactSource, CommandMenuItem } from '../useCommandItems';
+
+export type EntitySearchCategory =
+ | Exclude<CategoryFilter, 'commands'>
+ | 'email';
+export type EntitySearchItem = QuickAccessItem | ProjectCommandItem;
+
+const QUICK_ACCESS_BUCKETS_BY_CATEGORY: Partial<
+ Record<EntitySearchCategory, Bucket[]>
+> = {
+ all: exclude('person', 'initiative', 'crm_contact'),
+ email: ['email'],
+ channels: ['channel'],
+ dms: ['dm'],
+ documents: ['note', 'document', 'snippet', 'project', 'database', 'form'],
+ tasks: ['task'],
+ chats: ['chat'],
+ people: ['person'],
+};
+const CONTACT_CATEGORIES = new Set<EntitySearchCategory | 'commands'>([
+ 'all',
+ 'dms',
+ 'people',
+]);
+
+function showInRecencyList(item: CommandMenuItem): boolean {
+ return item.bucket !== 'crm_company' || item.timestamps.viewedAt != null;
+}
+
+/** Shared entity composition; desktop commands and session state stay with their host. */
+export function useEntitySearch(
+ query: Accessor<string>,
+ categoryFilter: Accessor<EntitySearchCategory | 'commands'>,
+ options: {
+ enabled: Accessor<boolean>;
+ excludeEmails?: boolean;
+ contactDiscovery?: (
+ search: Accessor<string>,
+ active: Accessor<boolean>
+ ) => CommandContactSource;
+ }
+) {
+ const quickAccess = useQuickAccess();
+ const searchActive = options.enabled;
+ const scopedSearchTerm = () => (searchActive() ? query() : '');
+ const activeList = createMemo(() => {
+ if (!searchActive()) return;
+ const category = categoryFilter();
+ const buckets =
+ category === 'commands'
+ ? undefined
+ : QUICK_ACCESS_BUCKETS_BY_CATEGORY[category];
+ if (!buckets) return;
+ return quickAccess.useList({
+ buckets: options.excludeEmails
+ ? buckets.filter((bucket) => bucket !== 'email')
+ : buckets,
+ searchTerm: scopedSearchTerm,
+ enabled: searchActive,
+ });
+ });
+ const projectEnabled = () =>
+ searchActive() &&
+ (categoryFilter() === 'all' || categoryFilter() === 'projects');
+ const projects = useProjectCommandItems(scopedSearchTerm, projectEnabled);
+ const contactsActive = () =>
+ searchActive() &&
+ CONTACT_CATEGORIES.has(categoryFilter()) &&
+ query().trim().length > 0;
+ const contacts = options?.contactDiscovery?.(
+ scopedSearchTerm,
+ contactsActive
+ );
+ const contactPeople = contacts
+ ? {
+ users: quickAccess.useList('person').items,
+ directMessages: quickAccess.useList('dm').items,
+ viewerId: useUserId(),
+ }
+ : undefined;
+ const contactItems = createMemo((): EntitySearchItem[] =>
+ contacts && contactPeople && contactsActive()
+ ? contactCommandItems({
+ contacts: contacts.contacts(),
+ users: contactPeople.users(),
+ directMessages: contactPeople.directMessages(),
+ viewerId: contactPeople.viewerId(),
+ })
+ : []
+ );
+ const contactItemIds = createMemo(
+ () => new Set(contactItems().map((item) => item.id))
+ );
+ const cachedItems = (): EntitySearchItem[] => activeList()?.items() ?? [];
+ const withDiscovery = <T extends CommandMenuItem>(
+ baseItems: T[]
+ ): (T | EntitySearchItem)[] => {
+ const items = [...baseItems, ...projects.items()];
+ // A contact's row keeps its CRM name searchable, so it replaces the same
+ // conversation listed under its own name.
+ const contactIds = contactItemIds();
+ if (contactIds.size === 0) return items;
+ return [
+ ...items.filter((item) => !contactIds.has(item.id)),
+ ...contactItems(),
+ ];
+ };
+
+ const rankItems = <T extends CommandMenuItem>(
+ items: T[],
+ queryText: string
+ ): T[] => {
+ if (!queryText.trim()) return items.filter(showInRecencyList);
+ return rankCommandSearchItems(items, queryText, {
+ preserveAdditionalEntityMatches:
+ quickAccess.usesRecordSelection() || quickAccess.usesSearchProjection(),
+ preservedIds: contactItemIds(),
+ });
+ };
+
+ return {
+ items: () => withDiscovery(cachedItems()),
+ cachedItems,
+ withDiscovery,
+ rankItems,
+ projectsEnabled: projects.enabled,
+ isLoadingEntities: () =>
+ (!!activeList()?.isLoading() && activeList()?.items().length === 0) ||
+ projects.isLoading() ||
+ (contactsActive() && (contacts?.isLoading() ?? false)),
+ pagination: {
+ hasMore: () =>
+ (activeList()?.hasMore() ?? false) ||
+ projects.hasMore() ||
+ (contactsActive() && (contacts?.hasMore() ?? false)),
+ isLoadingMore: () =>
+ (activeList()?.isLoadingMore() ?? false) ||
+ projects.isLoadingMore() ||
+ (contactsActive() && (contacts?.isLoadingMore() ?? false)),
+ loadMore: async () => {
+ await Promise.all([
+ activeList()?.loadMore(),
+ projects.loadMore(),
+ contactsActive() ? contacts?.loadMore() : undefined,
+ ]);
+ },
+ },
+ };
+}
diff --git a/apps/web/src/features/command/queries/mobile-full-text-search.test.ts b/apps/web/src/features/command/queries/mobile-full-text-search.test.ts
new file mode 100644
index 0000000000..a546f11e3b
--- /dev/null
+++ b/apps/web/src/features/command/queries/mobile-full-text-search.test.ts
@@ -0,0 +1,48 @@
+import { NIL_UUID } from '@app/features/next-soup/filters/filter-store';
+import type { CreateSearchStateOptions } from '@app/features/soup/search/create-search-state';
+import { createRoot, createSignal } from 'solid-js';
+import { expect, it, vi } from 'vitest';
+import type { EntitySearchCategory } from './entity-search';
+import { createMobileFullTextSearch } from './mobile-full-text-search';
+
+const capture = vi.hoisted(() => ({
+ options: undefined as CreateSearchStateOptions | undefined,
+}));
+vi.mock('@app/features/soup/search', () => ({
+ createSearchState: (options: CreateSearchStateOptions) => {
+ capture.options = options;
+ return {};
+ },
+}));
+
+it('maps Email and People without mailbox facets and gates Projects/empty queries', () => {
+ createRoot((dispose) => {
+ const [category, setCategory] = createSignal<EntitySearchCategory>('email');
+ const [query, setQuery] = createSignal('teo');
+ createMobileFullTextSearch(query, category);
+ const options = capture.options!;
+ const email = options.buildRequest({
+ query: query(),
+ matchType: 'partial',
+ }).body;
+ expect(email.query).toBe('teo');
+ expect(email.search_on).toBe('name_content');
+ expect(email.filters?.email_filters).toBeUndefined();
+ expect(email.filters?.channel_filters?.channel_ids).toEqual([NIL_UUID]);
+ expect(email.filters?.document_filters?.document_ids).toEqual([NIL_UUID]);
+ expect(options.disableLocalSearch?.()).toBe(true);
+ setCategory('dms');
+ const people = options.buildRequest({
+ query: query(),
+ matchType: 'partial',
+ }).body;
+ expect(people.filters?.email_filters?.email_thread_ids).toEqual([NIL_UUID]);
+ expect(people.filters?.channel_filters).toBeUndefined();
+ setCategory('projects');
+ expect(options.enabled?.()).toBe(false);
+ setCategory('all');
+ setQuery(' ');
+ expect(options.enabled?.()).toBe(false);
+ dispose();
+ });
+});
diff --git a/apps/web/src/features/command/queries/mobile-full-text-search.ts b/apps/web/src/features/command/queries/mobile-full-text-search.ts
new file mode 100644
index 0000000000..eac9d3c649
--- /dev/null
+++ b/apps/web/src/features/command/queries/mobile-full-text-search.ts
@@ -0,0 +1,28 @@
+import { queryStateFrom } from '@app/features/next-soup/filters/filter-store';
+import { getViewPreset } from '@app/features/next-soup/sidebar/soup-filter-presets';
+import { buildSoupSearchRequest } from '@app/features/next-soup/soup-view/search-request';
+import { createSearchState } from '@app/features/soup/search';
+import type { Accessor } from 'solid-js';
+import { getCategorySearchFilters } from '../category-search-filters';
+import type { EntitySearchCategory } from './entity-search';
+
+/** Transient category-only search; never reads saved view facets or mailbox selections. */
+export function createMobileFullTextSearch(
+ text: Accessor<string>,
+ category: Accessor<EntitySearchCategory>
+) {
+ return createSearchState({
+ text,
+ disableLocalSearch: () => true,
+ enabled: () => category() !== 'projects' && !!text().trim(),
+ buildRequest: (search) =>
+ buildSoupSearchRequest(
+ queryStateFrom(
+ getCategorySearchFilters(category())?.filters ??
+ getViewPreset('search')?.filters ??
+ {}
+ ),
+ search
+ ),
+ });
+}
diff --git a/apps/web/src/features/command/rank-command-search-items.ts b/apps/web/src/features/command/rank-command-search-items.ts
index bdb16a4093..44129a3a2a 100644
--- a/apps/web/src/features/command/rank-command-search-items.ts
+++ b/apps/web/src/features/command/rank-command-search-items.ts
@@ -1,20 +1,6 @@
import { createFreshSearch } from '@core/util/freshSort';
import type { CommandMenuItem } from './useCommandItems';
-const search = createFreshSearch<CommandMenuItem>({
- config: {
- useViewedAt: true,
- dmBoost: 1.8,
- fuzzyWeight: 0.7,
- timeWeight: 0.7,
- minFuzzyThreshold: 0.1,
- commaSeparatedChannelMatch: true,
- },
- getName: (item) => item.searchText,
- isDmItem: (item) => item.bucket === 'dm',
- getTimestamp: (item) => item.timestamps,
-});
-
function compareRecency(left: CommandMenuItem, right: CommandMenuItem) {
return (
right.sortTimestamp - left.sortTimestamp || left.id.localeCompare(right.id)
@@ -30,7 +16,7 @@ function isPeopleItem(item: CommandMenuItem) {
}
/** Keep the existing order within each group and the positions of other results. */
-function prioritizeInternalPeople(items: CommandMenuItem[]): CommandMenuItem[] {
+function prioritizeInternalPeople<T extends CommandMenuItem>(items: T[]): T[] {
const people = items
.filter(isPeopleItem)
.sort(
@@ -45,8 +31,8 @@ function prioritizeInternalPeople(items: CommandMenuItem[]): CommandMenuItem[] {
}
/** Rank cached and local candidates together using the command menu's rules. */
-export function rankCommandSearchItems(
- items: CommandMenuItem[],
+export function rankCommandSearchItems<T extends CommandMenuItem>(
+ items: T[],
query: string,
options: {
preserveAdditionalEntityMatches: boolean;
@@ -54,7 +40,21 @@ export function rankCommandSearchItems(
* fuzzy matcher would not match them. */
preservedIds?: ReadonlySet<string>;
}
-): CommandMenuItem[] {
+): T[] {
+ const search = createFreshSearch<T>({
+ config: {
+ useViewedAt: true,
+ dmBoost: 1.8,
+ fuzzyWeight: 0.7,
+ timeWeight: 0.7,
+ minFuzzyThreshold: 0.1,
+ commaSeparatedChannelMatch: true,
+ },
+ getName: (item) => item.searchText,
+ isDmItem: (item) => item.bucket === 'dm',
+ getTimestamp: (item) => item.timestamps,
+ });
+
const ranked = search(items, query)
.sort(
(left, right) =>
diff --git a/apps/web/src/features/command/useCommandItems.test.ts b/apps/web/src/features/command/useCommandItems.test.ts
index d0b4a11c36..499bbcbc74 100644
--- a/apps/web/src/features/command/useCommandItems.test.ts
+++ b/apps/web/src/features/command/useCommandItems.test.ts
@@ -7,6 +7,7 @@ import type {
import type { CommandWithInfo } from '@core/hotkey/getCommands';
import { createRoot, createSignal } from 'solid-js';
import { afterEach, describe, expect, it, vi } from 'vitest';
+import { useEntitySearch } from './queries/entity-search';
import type { CategoryFilter } from './types';
import { useCommandItems } from './useCommandItems';
@@ -198,3 +199,39 @@ describe('command menu database categories', () => {
}
});
});
+
+it('keeps desktop All email-free while mobile composes emails without desktop command state', () => {
+ const { result, setEntityMode, setItems } = setup();
+ result.items();
+ expect(mocks.requestedBuckets).not.toContain('email');
+ setEntityMode(true);
+ const email: QuickAccessItem = {
+ id: 'thread',
+ kind: 'entity',
+ bucket: 'email',
+ searchText: 'Weekly update Teo',
+ sortTimestamp: 1,
+ timestamps: {},
+ data: {
+ type: 'email',
+ id: 'thread',
+ name: 'Weekly update',
+ ownerId: 'owner',
+ isRead: true,
+ isDraft: false,
+ isImportant: false,
+ done: false,
+ },
+ };
+ setItems([email]);
+ createRoot((cleanup) => {
+ const mobile = useEntitySearch(
+ () => 'teo',
+ () => 'email',
+ { enabled: () => true }
+ );
+ expect(mocks.requestedBuckets).toEqual(['email']);
+ expect(mobile.rankItems(mobile.items(), 'teo')).toEqual([email]);
+ cleanup();
+ });
+});
diff --git a/apps/web/src/features/command/useCommandItems.ts b/apps/web/src/features/command/useCommandItems.ts
index c137f7b46b..90587eba7b 100644
--- a/apps/web/src/features/command/useCommandItems.ts
+++ b/apps/web/src/features/command/useCommandItems.ts
@@ -1,18 +1,11 @@
import { GO_TO_COMMAND_SCOPE, GO_TO_LEADER_KEY } from '@app/constants/hotkeys';
import { useFeatureFlag } from '@app/lib/analytics/posthog';
import { enableProjects } from '@core/constant/featureFlags';
-import {
- type Bucket,
- type EntityItem,
- type QuickAccessItem,
- type UserItem,
- useQuickAccess,
+import type {
+ EntityItem,
+ QuickAccessItem,
+ UserItem,
} from '@core/context/quickAccess';
-// Imported from the module rather than the barrel: the barrel pulls in
-// QuickAccessProvider, which cycles back here, and `exclude` runs at module
-// evaluation time below.
-import { exclude } from '@core/context/quickAccess/types';
-import { useUserId } from '@core/context/user';
import { HotkeyTags } from '@core/hotkey/constants';
import {
type CommandWithInfo,
@@ -25,14 +18,12 @@ import type { TimestampedItem } from '@core/util/freshSort';
import { mergeSortedArrays } from '@core/util/list';
import type { CrmContactEntity } from '@entity';
import { type Accessor, createMemo } from 'solid-js';
-import { contactCommandItems } from './contact-items';
import {
type CreateProjectCommandItem,
newProjectCommand,
type ProjectCommandItem,
- useProjectCommandItems,
} from './project-items';
-import { rankCommandSearchItems } from './rank-command-search-items';
+import { useEntitySearch } from './queries/entity-search';
import { getCommandLastUsedAt } from './recency';
import { CommandState } from './state';
import type { CategoryFilter, DisplayHotkeyStep } from './types';
@@ -114,19 +105,6 @@ function isAskAiItem(item: CommandMenuItem): item is AskAiItem {
return item.kind === 'ask-ai';
}
-/**
- * Entities shown in the no-query recency list. Unopened CRM companies (no
- * `viewedAt`) are excluded so the recency view sorts companies purely by when
- * the user last opened them — without this they'd fall back to `updatedAt` and
- * surface companies the user has never touched. They stay reachable via search.
- */
-function showInRecencyList(item: CommandMenuItem): boolean {
- if (item.bucket === 'crm_company') {
- return item.timestamps.viewedAt != null;
- }
- return true;
-}
-
/** Categories that surface a "Search for [query]" row in the command menu */
const SEARCHABLE_CATEGORIES: ReadonlySet<CategoryFilter> = new Set([
'all',
@@ -351,84 +329,6 @@ function useCommandsList(
});
}
-const QUICK_ACCESS_BUCKETS_BY_CATEGORY: Partial<
- Record<CategoryFilter, Bucket[]>
-> = {
- // Projects come from the command menu's own server search. CRM contacts
- // have no view history, so a no-query list would surface the whole team's
- // contacts; typed queries find them through contact discovery instead.
- all: exclude('person', 'initiative', 'crm_contact'),
- channels: ['channel'],
- dms: ['dm'],
- documents: ['note', 'document', 'snippet', 'project', 'database', 'form'],
- tasks: ['task'],
- chats: ['chat'],
-
- people: ['person'],
-};
-
-/** Categories listing people, where a typed query also finds CRM contacts. */
-const CONTACT_CATEGORIES: ReadonlySet<CategoryFilter> = new Set([
- 'all',
- 'dms',
- 'people',
-]);
-
-/** Creates only the Quick Access list needed by the active category. */
-function useQuickAccessCategory(
- categoryFilter: Accessor<CategoryFilter>,
- commandScopeCommands: Accessor<CommandWithInfo[]>,
- searchTerm: Accessor<string>,
- enabled: Accessor<boolean>
-) {
- const quickAccess = useQuickAccess();
- const commands = useCommandsList(commandScopeCommands);
- const activeList = createMemo(() => {
- if (
- commandScopeCommands().length > 0 ||
- CommandState.isEntityActionMode()
- ) {
- return undefined;
- }
- const buckets = QUICK_ACCESS_BUCKETS_BY_CATEGORY[categoryFilter()];
- return buckets
- ? quickAccess.useList({ buckets, searchTerm, enabled })
- : undefined;
- });
- const items = createMemo((): CommandMenuItem[] => {
- if (
- commandScopeCommands().length > 0 ||
- CommandState.isEntityActionMode() ||
- categoryFilter() === 'commands'
- ) {
- return commands();
- }
-
- const entities: CommandMenuItem[] = activeList()?.items() ?? [];
- if (categoryFilter() !== 'all') return entities;
- return mergeSortedArrays(
- entities,
- commands(),
- (a, b) => b.sortTimestamp - a.sortTimestamp
- );
- });
-
- return {
- items,
- isLoadingEntities: () => {
- const list = activeList();
- return !!list?.isLoading() && list.items().length === 0;
- },
- pagination: {
- hasMore: () => activeList()?.hasMore() ?? false,
- isLoadingMore: () => activeList()?.isLoadingMore() ?? false,
- loadMore: async () => {
- await activeList()?.loadMore();
- },
- } satisfies PaginationControls,
- };
-}
-
export function useCommandItems(
query: () => string,
categoryFilter: () => CategoryFilter,
@@ -436,7 +336,7 @@ export function useCommandItems(
showSearchRow?: boolean;
/**
* Source of multi-stage command-scope commands. Defaults to the desktop
- * command menu state; mobile search passes its own scope state.
+ * command menu state.
*/
commandScopeCommands?: Accessor<CommandWithInfo[]>;
/** Whether this menu should drive cache-backed Quick Access search. */
@@ -451,82 +351,40 @@ export function useCommandItems(
const showSearchRow = options?.showSearchRow ?? true;
const commandScopeCommands =
options?.commandScopeCommands ?? CommandState.commandScopeCommands;
- const quickAccess = useQuickAccess();
- const searchActive = () => options?.searchActive?.() === true;
- const scopedSearchTerm = () => (searchActive() ? query() : '');
- const category = useQuickAccessCategory(
- categoryFilter,
- commandScopeCommands,
- scopedSearchTerm,
- searchActive
- );
- const projectEnabled = () =>
- searchActive() &&
- commandScopeCommands().length === 0 &&
- !CommandState.isEntityActionMode() &&
- (categoryFilter() === 'all' || categoryFilter() === 'projects');
- const projects = useProjectCommandItems(scopedSearchTerm, projectEnabled);
- const contactsActive = () =>
- searchActive() &&
+ const commands = useCommandsList(commandScopeCommands);
+ const entityEnabled = () =>
+ options?.searchActive?.() === true &&
commandScopeCommands().length === 0 &&
- !CommandState.isEntityActionMode() &&
- CONTACT_CATEGORIES.has(categoryFilter()) &&
- query().trim().length > 0;
- const contacts = options?.contactDiscovery?.(
- scopedSearchTerm,
- contactsActive
- );
- const contactPeople = contacts
- ? {
- users: quickAccess.useList('person').items,
- directMessages: quickAccess.useList('dm').items,
- viewerId: useUserId(),
- }
- : undefined;
- const contactItems = createMemo((): CommandMenuItem[] =>
- contacts && contactPeople && contactsActive()
- ? contactCommandItems({
- contacts: contacts.contacts(),
- users: contactPeople.users(),
- directMessages: contactPeople.directMessages(),
- viewerId: contactPeople.viewerId(),
- })
- : []
- );
- const contactItemIds = createMemo(
- () => new Set(contactItems().map((item) => item.id))
- );
- const categoryItems = () => {
- const items = [
- ...category.items(),
- ...projects.items(),
- // All/Commands already include the registered Create project command.
- // The Projects category excludes general commands, so keep its shortcut.
- ...(projects.enabled() && categoryFilter() === 'projects'
+ !CommandState.isEntityActionMode();
+ const entities = useEntitySearch(query, categoryFilter, {
+ enabled: entityEnabled,
+ excludeEmails: true,
+ contactDiscovery: options?.contactDiscovery,
+ });
+ const categoryItems = (): CommandMenuItem[] => {
+ if (
+ commandScopeCommands().length > 0 ||
+ CommandState.isEntityActionMode() ||
+ categoryFilter() === 'commands'
+ )
+ return commands();
+ if (categoryFilter() === 'all')
+ return entities.withDiscovery(
+ mergeSortedArrays<CommandMenuItem>(
+ entities.cachedItems(),
+ commands(),
+ (a, b) => b.sortTimestamp - a.sortTimestamp
+ )
+ );
+ const items = entities.items();
+ return [
+ ...items,
+ ...(entities.projectsEnabled() && categoryFilter() === 'projects'
? [newProjectCommand]
: []),
];
- // A contact's row keeps its CRM name searchable, so it replaces the same
- // conversation listed under its own name.
- const contactIds = contactItemIds();
- if (contactIds.size === 0) return items;
- return [
- ...items.filter((item) => !contactIds.has(item.id)),
- ...contactItems(),
- ];
- };
-
- const rankItems = (
- items: CommandMenuItem[],
- queryText: string
- ): CommandMenuItem[] => {
- if (!queryText.trim()) return items.filter(showInRecencyList);
- return rankCommandSearchItems(items, queryText, {
- preserveAdditionalEntityMatches:
- quickAccess.usesRecordSelection() || quickAccess.usesSearchProjection(),
- preservedIds: contactItemIds(),
- });
};
+ const rankItems = entities.rankItems;
const shouldShowSearchRow = (q: string) => {
if (!showSearchRow) return false;
@@ -580,27 +438,8 @@ export function useCommandItems(
return {
items: filteredItems,
- isLoadingEntities: () =>
- category.isLoadingEntities() ||
- projects.isLoading() ||
- (contacts?.isLoading() ?? false),
- pagination: {
- hasMore: () =>
- category.pagination.hasMore() ||
- projects.hasMore() ||
- (contacts?.hasMore() ?? false),
- isLoadingMore: () =>
- category.pagination.isLoadingMore() ||
- projects.isLoadingMore() ||
- (contacts?.isLoadingMore() ?? false),
- loadMore: async () => {
- await Promise.all([
- category.pagination.loadMore(),
- projects.loadMore(),
- contacts?.loadMore(),
- ]);
- },
- },
+ isLoadingEntities: entities.isLoadingEntities,
+ pagination: entities.pagination,
};
}
diff --git a/apps/web/src/features/drive-view/drive-view.tsx b/apps/web/src/features/drive-view/drive-view.tsx
index dcd30eee75..8df6c66e59 100644
--- a/apps/web/src/features/drive-view/drive-view.tsx
+++ b/apps/web/src/features/drive-view/drive-view.tsx
@@ -1,5 +1,4 @@
import { listOwnedSlotName } from '@app/components/list';
-import { useMobileSearchText } from '@app/features/command/mobile/use-mobile-search-text';
import { openEntityInSplitFromUnifiedList } from '@app/features/next-soup/utils';
import {
type FacetSelection,
@@ -70,10 +69,7 @@ function DriveComposition(props: { route: DriveRouteState }) {
formsFlag().enabled
)
);
- const searchText = useMobileSearchText(
- () => view.value().search,
- panel.handle.isActive
- );
+ const searchText = () => view.value().search;
const selection = () => ({ ...viewState(), search: searchText() });
const sidebar = createDriveSidebarSource();
const source = withSplitPanelOwner(listOwnedSlotName('data-source'), () =>
diff --git a/apps/web/src/features/email-view/email-view-context.tsx b/apps/web/src/features/email-view/email-view-context.tsx
index a79be4658d..c8c7550116 100644
--- a/apps/web/src/features/email-view/email-view-context.tsx
+++ b/apps/web/src/features/email-view/email-view-context.tsx
@@ -6,7 +6,6 @@ import {
listOwnedSlotName,
} from '@app/components/list';
import { setSidebarSectionCollapsed } from '@app/components/view-shell';
-import { useMobileSearchText } from '@app/features/command/mobile/use-mobile-search-text';
import { normalizeFacetSelection } from '@app/features/soup';
import { registerListNavigationSource } from '@app/features/soup/collection/list-navigation-source';
import { useFeatureFlag } from '@app/lib/analytics/posthog';
@@ -33,7 +32,6 @@ import {
type Accessor,
createEffect,
createMemo,
- mergeProps,
on,
onCleanup,
} from 'solid-js';
@@ -157,15 +155,7 @@ export const [EmailViewProvider, useEmailView] = createAssertedContextProvider<
restorePreferences: initial.collapsedSidebarSectionIds === undefined,
})
);
- const searchText = useMobileSearchText(
- () => persistedState.search,
- panel.handle.isActive
- );
- const state = mergeProps(persistedState, {
- get search() {
- return searchText();
- },
- });
+ const state = persistedState;
createEffect(
on(
diff --git a/apps/web/src/features/home/home-view-context.tsx b/apps/web/src/features/home/home-view-context.tsx
index c2b9026b4d..c6f19b2bd2 100644
--- a/apps/web/src/features/home/home-view-context.tsx
+++ b/apps/web/src/features/home/home-view-context.tsx
@@ -1,5 +1,4 @@
import { channelsSearch } from '@app/features/channels-view/channels-route';
-import { useMobileSearchText } from '@app/features/command/mobile/use-mobile-search-text';
import { driveSearch } from '@app/features/drive-view/primitives/drive-search';
import type { FacetSelection } from '@app/features/soup/filters/facets/types';
import { makePersistedState } from '@app/lib/persistence';
@@ -31,7 +30,6 @@ import {
createEffect,
createMemo,
createSignal,
- mergeProps,
on,
} from 'solid-js';
import {
@@ -113,15 +111,7 @@ export const [HomeViewProvider, useHomeView] = createAssertedContextProvider<
})
);
- const searchText = useMobileSearchText(
- () => persistedState.search,
- panel.handle.isActive
- );
- const state = mergeProps(persistedState, {
- get search() {
- return searchText();
- },
- });
+ const state = persistedState;
createEffect(
on(
diff --git a/apps/web/src/features/next-soup/route-views.tsx b/apps/web/src/features/next-soup/route-views.tsx
index 89a080cac7..1225a0dc0f 100644
--- a/apps/web/src/features/next-soup/route-views.tsx
+++ b/apps/web/src/features/next-soup/route-views.tsx
@@ -7,6 +7,7 @@ import {
withAuth,
} from '@components/app/split-layout/split-router/app-route-shell';
import { useUserContext } from '@core/context/user';
+import { isTouchDevice } from '@core/mobile/isTouchDevice';
import { lazy, Show } from 'solid-js';
import type { SetPredicatesInput } from './filters/filter-store/predicates-store';
import type { Query } from './filters/filter-store/types';
@@ -14,6 +15,11 @@ import { getViewPreset } from './sidebar/soup-filter-presets';
import { foldersTour } from './tour';
import { useRecentViewFlag } from './use-recent-view-flag';
+const MobileSearchResults = lazy(async () => ({
+ default: (await import('@app/features/command/mobile/MobileSearchResults'))
+ .MobileSearchResults,
+}));
+
const CallsView = lazy(async () => ({
default: (await import('@app/features/calls-view/views/calls-view'))
.CallsView,
@@ -94,13 +100,20 @@ export const SearchRouteView = withAuth(() => {
usePageViewTracking('search');
const preset = getViewPreset('search');
return (
- <SoupView
- viewName="Search"
- initialFilters={params().initialFilters ?? preset?.filters}
- initialClientFilters={
- params().initialClientFilters ?? preset?.clientFilters
+ <Show
+ when={isTouchDevice()}
+ fallback={
+ <SoupView
+ viewName="Search"
+ initialFilters={params().initialFilters ?? preset?.filters}
+ initialClientFilters={
+ params().initialClientFilters ?? preset?.clientFilters
+ }
+ initialSearchText={params().initialQuery}
+ />
}
- initialSearchText={params().initialQuery}
- />
+ >
+ <MobileSearchResults />
+ </Show>
);
});
diff --git a/apps/web/src/features/next-soup/soup-view/create-search-state.ts b/apps/web/src/features/next-soup/soup-view/create-search-state.ts
index 18547ef7c7..abab4f20da 100644
--- a/apps/web/src/features/next-soup/soup-view/create-search-state.ts
+++ b/apps/web/src/features/next-soup/soup-view/create-search-state.ts
@@ -1,196 +1,15 @@
import type { SoupState } from '@app/features/next-soup/create-soup-state';
import type { FilterContext } from '@app/features/next-soup/filters/configs/base';
-import {
- NIL_UUID,
- type QueryState,
-} from '@app/features/next-soup/filters/filter-store';
+import type { QueryState } from '@app/features/next-soup/filters/filter-store';
import {
createSearchState as createSharedSearchState,
intersectEntityPools,
- type SoupSearchRequest,
useSearchContext,
} from '@app/features/soup/search';
import { useGlobalNotificationSource } from '@components/app/GlobalAppState';
import { useUserId } from '@core/context/user';
-import type {
- EntityFilters,
- PropertyFilter,
- UnifiedSearchRequest,
-} from '@service-search/generated/models';
import { type Accessor, createMemo, type Setter } from 'solid-js';
-import { agentSessionSearchFilters } from './agent-session-search-filters';
-
-// Map the tasks-view property filters (status/priority/assignee/custom) into the
-// search request shape, mirroring the soup path so search and soup agree. Values
-// are grouped by property id: multiple values on one property are OR'd (a task
-// matches any of them), and different properties are AND'd. Select options go to
-// option_ids, entity refs to entity_ids.
-function includePropertiesToFilters(
- properties: QueryState['include']['properties']
-): PropertyFilter[] {
- if (!properties?.length) return [];
- const byPropId = new Map<string, PropertyFilter>();
- for (const p of properties) {
- let filter = byPropId.get(p.propertyId);
- if (!filter) {
- filter = { property_definition_id: p.propertyId };
- byPropId.set(p.propertyId, filter);
- }
- if (p.type === 'select') {
- filter.option_ids = [...(filter.option_ids ?? []), p.value];
- } else {
- filter.entity_ids = [...(filter.entity_ids ?? []), p.value];
- }
- }
- return [...byPropId.values()];
-}
-
-function filterDataToQueryFilters(data: QueryState): EntityFilters {
- const filters: EntityFilters = {};
- const { include } = data;
- filters.agent_session_filters = agentSessionSearchFilters(include);
-
- // Calendar events are searchable by title, so they are scoped like every
- // other entity type: a view that names ids gets them, one that names none
- // leaves the type unfiltered. Views that should not surface events keep
- // NIL-excluding them (the inbox feed does), and every view's client
- // predicates gate the merged pool regardless.
- if (include.calendarEventId?.length) {
- filters.calendar_event_filters = {
- calendar_event_ids: include.calendarEventId,
- };
- }
-
- // Document filters
- if (
- include.documentId?.length ||
- include.fileType?.length ||
- include.subType?.length ||
- include.projectId?.length ||
- include.documentOwnerId?.length
- ) {
- filters.document_filters = {
- document_ids: include.documentId,
- file_types: include.fileType,
- sub_types: include.subType,
- project_ids: include.projectId,
- owners: include.documentOwnerId,
- };
- }
-
- // Email filters
- if (
- include.threadId?.length ||
- include.emailSender?.length ||
- include.emailShared ||
- include.emailImportance !== undefined ||
- include.emailLinkId?.length
- ) {
- filters.email_filters = {
- email_thread_ids: include.threadId,
- senders: include.emailSender,
- shared: include.emailShared,
- importance: include.emailImportance,
- link_ids: include.emailLinkId,
- };
- }
-
- // Channel filters
- if (
- include.channelId?.length ||
- include.channelType?.length ||
- include.channelSenderId?.length ||
- include.channelMessageThreadId?.length
- ) {
- filters.channel_filters = {
- channel_ids: include.channelId,
- channel_types: include.channelType,
- sender_ids: include.channelSenderId,
- thread_ids: include.channelMessageThreadId,
- };
- }
-
- // Channel thread filters
- if (
- include.channelThreadId?.length ||
- include.channelThreadRootSenderId?.length ||
- include.channelThreadParticipantId?.length
- ) {
- filters.channel_thread_filters = {
- thread_ids: include.channelThreadId,
- root_sender_ids: include.channelThreadRootSenderId,
- participant_ids: include.channelThreadParticipantId,
- };
- }
-
- // Chat filters
- if (
- include.chatId?.length ||
- include.chatOwnerId?.length ||
- include.chatProjectId?.length
- ) {
- filters.chat_filters = {
- chat_ids: include.chatId,
- owners: include.chatOwnerId,
- project_ids: include.chatProjectId,
- };
- }
-
- // Project/folder filters
- if (include.folderId?.length || include.folderOwnerId?.length) {
- filters.project_filters = {
- project_ids: include.folderId,
- owners: include.folderOwnerId,
- };
- }
-
- // Call filters
- if (
- include.callId?.length ||
- include.callChannelId?.length ||
- include.callSpeakerId?.length ||
- include.callStatus !== undefined ||
- include.callAttended !== undefined
- ) {
- filters.call_filters = {
- call_ids: include.callId,
- channel_ids: include.callChannelId,
- speaker_ids: include.callSpeakerId,
- status: include.callStatus,
- attended:
- include.callStatus === undefined ? include.callAttended : undefined,
- };
- }
-
- // Foreign entity filters
- if (
- include.foreignEntityRecordId?.length ||
- include.foreignEntitySource?.length
- ) {
- filters.foreign_entity_filters = {
- ids: include.foreignEntityRecordId,
- foreign_entity_sources: include.foreignEntitySource,
- };
- }
-
- // Property filters (status, priority, assignees, custom)
- const propertyFilters = includePropertiesToFilters(include.properties);
- if (propertyFilters.length) {
- filters.property_filters = propertyFilters;
- }
-
- // Tags: match on the option ids alone (globally unique), combined across
- // all tag definitions. No definition id is sent — the backend matches
- // values only. The mode picks any-of (default) vs all-of combining.
- if (include.tagFilters?.length) {
- filters.tag_option_ids = include.tagFilters.map((t) => t.value);
- if (include.tagFilterMode === 'all') {
- filters.tag_filter_mode = 'all';
- }
- }
-
- return filters;
-}
+import { buildSoupSearchRequest } from './search-request';
interface CreateSearchStateArgs {
soup: SoupState;
@@ -259,48 +78,9 @@ export const createSearchState = ({
);
};
- const buildRequest = ({
- query,
- matchType,
- }: SoupSearchRequest): {
- params: { page_size: number };
- body: UnifiedSearchRequest;
- } => {
- const state = filters();
- const baseFilters = filterDataToQueryFilters(state);
-
- // CRM is opt-in on the backend. A view includes CRM in search unless it
- // NIL-excludes the CRM target (the same sentinel pattern other entity
- // types use) — so the Companies view (CRM-scoped) searches CRM, while
- // every other view (including the global Search view) excludes it.
- const includeCrm = !(state.include.crmCompanyId ?? []).includes(NIL_UUID);
- const body: UnifiedSearchRequest = includeCrm
- ? {
- search_on: 'name_content',
- match_type: matchType,
- query,
- include_crm: true,
- filters: {
- ...baseFilters,
- crm_company_filters: {
- company_ids: state.include.crmCompanyId,
- hidden: state.include.crmCompanyHidden,
- },
- },
- }
- : {
- search_on: 'name_content',
- match_type: matchType,
- query,
- filters: baseFilters,
- };
-
- return { params: { page_size: 100 }, body };
- };
-
const search = createSharedSearchState({
text: searchText,
- buildRequest,
+ buildRequest: (search) => buildSoupSearchRequest(filters(), search),
localPool,
disableLocalSearch,
hideLocalResults,
diff --git a/apps/web/src/features/next-soup/soup-view/filters-bar/search/search-filters-state.ts b/apps/web/src/features/next-soup/soup-view/filters-bar/search/search-filters-state.ts
index 1c77a7137e..a8721e241c 100644
--- a/apps/web/src/features/next-soup/soup-view/filters-bar/search/search-filters-state.ts
+++ b/apps/web/src/features/next-soup/soup-view/filters-bar/search/search-filters-state.ts
@@ -1,5 +1,8 @@
+import { SEARCH_INDEX_SEEDS, type SearchIndexId } from './search-index-seeds';
+
+export { SEARCH_INDEX_SEEDS, type SearchIndexId } from './search-index-seeds';
+
import {
- defineQueryFilters,
NIL_UUID,
type Query,
} from '@app/features/next-soup/filters/filter-store';
@@ -15,16 +18,6 @@ import { useSoupView } from '@app/features/next-soup/soup-view/soup-view-context
import { SYSTEM_PROPERTY_IDS } from '@property/constants';
import { batch, createMemo } from 'solid-js';
-export type SearchIndexId =
- | 'channels'
- | 'document-or-file'
- | 'task'
- | 'email'
- | 'calls'
- | 'folders'
- | 'agent'
- | 'calendar';
-
export type SearchTypeValue = SearchIndexId | 'all';
/** Search types where tag filtering applies: documents/tasks, emails, chats,
@@ -40,23 +33,6 @@ export const TAG_SEARCH_TYPES = new Set<SearchTypeValue>([
'folders',
]);
-/**
- * Server-side narrowing for each index type. `defineQueryFilters` NIL-fills
- * the id field of every target the input doesn't reference, so each seed
- * matches only its own entity type. Sub-facet values (importance, channel
- * ids, ...) are layered on top by `compileSearchQuery`.
- */
-export const SEARCH_INDEX_SEEDS: Record<SearchIndexId, Query> = {
- channels: defineQueryFilters({ exclude: { channelId: [NIL_UUID] } }),
- 'document-or-file': defineQueryFilters({ exclude: { subType: ['task'] } }),
- task: defineQueryFilters({ include: { subType: ['task'] } }),
- email: defineQueryFilters({}, { skipTargets: ['ef'] }),
- calls: defineQueryFilters({}, { skipTargets: ['callf'] }),
- folders: defineQueryFilters({ exclude: { folderId: [NIL_UUID] } }),
- agent: defineQueryFilters({ exclude: { chatId: [NIL_UUID] } }),
- calendar: defineQueryFilters({}, { skipTargets: ['calf'] }),
-};
-
export type SearchFiltersSections = {
// inboxIds: `undefined` = all inboxes (default), `[]` = explicitly none,
// a subset = those inboxes — same model as the mail view's inbox filter.
diff --git a/apps/web/src/features/next-soup/soup-view/filters-bar/search/search-index-seeds.ts b/apps/web/src/features/next-soup/soup-view/filters-bar/search/search-index-seeds.ts
new file mode 100644
index 0000000000..d6dfb074a1
--- /dev/null
+++ b/apps/web/src/features/next-soup/soup-view/filters-bar/search/search-index-seeds.ts
@@ -0,0 +1,32 @@
+import {
+ defineQueryFilters,
+ NIL_UUID,
+ type Query,
+} from '@app/features/next-soup/filters/filter-store';
+
+export type SearchIndexId =
+ | 'channels'
+ | 'document-or-file'
+ | 'task'
+ | 'email'
+ | 'calls'
+ | 'folders'
+ | 'agent'
+ | 'calendar';
+
+/**
+ * Server-side narrowing for each index type. `defineQueryFilters` NIL-fills
+ * the id field of every target the input doesn't reference, so each seed
+ * matches only its own entity type. Sub-facet values (importance, channel
+ * ids, ...) are layered on top by `compileSearchQuery`.
+ */
+export const SEARCH_INDEX_SEEDS: Record<SearchIndexId, Query> = {
+ channels: defineQueryFilters({ exclude: { channelId: [NIL_UUID] } }),
+ 'document-or-file': defineQueryFilters({ exclude: { subType: ['task'] } }),
+ task: defineQueryFilters({ include: { subType: ['task'] } }),
+ email: defineQueryFilters({}, { skipTargets: ['ef'] }),
+ calls: defineQueryFilters({}, { skipTargets: ['callf'] }),
+ folders: defineQueryFilters({ exclude: { folderId: [NIL_UUID] } }),
+ agent: defineQueryFilters({ exclude: { chatId: [NIL_UUID] } }),
+ calendar: defineQueryFilters({}, { skipTargets: ['calf'] }),
+};
diff --git a/apps/web/src/features/next-soup/soup-view/search-request.ts b/apps/web/src/features/next-soup/soup-view/search-request.ts
new file mode 100644
index 0000000000..8953446cde
--- /dev/null
+++ b/apps/web/src/features/next-soup/soup-view/search-request.ts
@@ -0,0 +1,219 @@
+import {
+ NIL_UUID,
+ type QueryState,
+} from '@app/features/next-soup/filters/filter-store';
+import type { SoupSearchRequest } from '@app/features/soup/search';
+import type {
+ EntityFilters,
+ PropertyFilter,
+ UnifiedSearchRequest,
+} from '@service-search/generated/models';
+import { agentSessionSearchFilters } from './agent-session-search-filters';
+
+// Map the tasks-view property filters (status/priority/assignee/custom) into the
+// search request shape, mirroring the soup path so search and soup agree. Values
+// are grouped by property id: multiple values on one property are OR'd (a task
+// matches any of them), and different properties are AND'd. Select options go to
+// option_ids, entity refs to entity_ids.
+function includePropertiesToFilters(
+ properties: QueryState['include']['properties']
+): PropertyFilter[] {
+ if (!properties?.length) return [];
+ const byPropId = new Map<string, PropertyFilter>();
+ for (const p of properties) {
+ let filter = byPropId.get(p.propertyId);
+ if (!filter) {
+ filter = { property_definition_id: p.propertyId };
+ byPropId.set(p.propertyId, filter);
+ }
+ if (p.type === 'select') {
+ filter.option_ids = [...(filter.option_ids ?? []), p.value];
+ } else {
+ filter.entity_ids = [...(filter.entity_ids ?? []), p.value];
+ }
+ }
+ return [...byPropId.values()];
+}
+
+function filterDataToQueryFilters(data: QueryState): EntityFilters {
+ const filters: EntityFilters = {};
+ const { include } = data;
+ filters.agent_session_filters = agentSessionSearchFilters(include);
+
+ // Calendar events are searchable by title, so they are scoped like every
+ // other entity type: a view that names ids gets them, one that names none
+ // leaves the type unfiltered. Views that should not surface events keep
+ // NIL-excluding them (the inbox feed does), and every view's client
+ // predicates gate the merged pool regardless.
+ if (include.calendarEventId?.length) {
+ filters.calendar_event_filters = {
+ calendar_event_ids: include.calendarEventId,
+ };
+ }
+
+ // Document filters
+ if (
+ include.documentId?.length ||
+ include.fileType?.length ||
+ include.subType?.length ||
+ include.projectId?.length ||
+ include.documentOwnerId?.length
+ ) {
+ filters.document_filters = {
+ document_ids: include.documentId,
+ file_types: include.fileType,
+ sub_types: include.subType,
+ project_ids: include.projectId,
+ owners: include.documentOwnerId,
+ };
+ }
+
+ // Email filters
+ if (
+ include.threadId?.length ||
+ include.emailSender?.length ||
+ include.emailShared ||
+ include.emailImportance !== undefined ||
+ include.emailLinkId?.length
+ ) {
+ filters.email_filters = {
+ email_thread_ids: include.threadId,
+ senders: include.emailSender,
+ shared: include.emailShared,
+ importance: include.emailImportance,
+ link_ids: include.emailLinkId,
+ };
+ }
+
+ // Channel filters
+ if (
+ include.channelId?.length ||
+ include.channelType?.length ||
+ include.channelSenderId?.length ||
+ include.channelMessageThreadId?.length
+ ) {
+ filters.channel_filters = {
+ channel_ids: include.channelId,
+ channel_types: include.channelType,
+ sender_ids: include.channelSenderId,
+ thread_ids: include.channelMessageThreadId,
+ };
+ }
+
+ // Channel thread filters
+ if (
+ include.channelThreadId?.length ||
+ include.channelThreadRootSenderId?.length ||
+ include.channelThreadParticipantId?.length
+ ) {
+ filters.channel_thread_filters = {
+ thread_ids: include.channelThreadId,
+ root_sender_ids: include.channelThreadRootSenderId,
+ participant_ids: include.channelThreadParticipantId,
+ };
+ }
+
+ // Chat filters
+ if (
+ include.chatId?.length ||
+ include.chatOwnerId?.length ||
+ include.chatProjectId?.length
+ ) {
+ filters.chat_filters = {
+ chat_ids: include.chatId,
+ owners: include.chatOwnerId,
+ project_ids: include.chatProjectId,
+ };
+ }
+
+ // Project/folder filters
+ if (include.folderId?.length || include.folderOwnerId?.length) {
+ filters.project_filters = {
+ project_ids: include.folderId,
+ owners: include.folderOwnerId,
+ };
+ }
+
+ // Call filters
+ if (
+ include.callId?.length ||
+ include.callChannelId?.length ||
+ include.callSpeakerId?.length ||
+ include.callStatus !== undefined ||
+ include.callAttended !== undefined
+ ) {
+ filters.call_filters = {
+ call_ids: include.callId,
+ channel_ids: include.callChannelId,
+ speaker_ids: include.callSpeakerId,
+ status: include.callStatus,
+ attended:
+ include.callStatus === undefined ? include.callAttended : undefined,
+ };
+ }
+
+ // Foreign entity filters
+ if (
+ include.foreignEntityRecordId?.length ||
+ include.foreignEntitySource?.length
+ ) {
+ filters.foreign_entity_filters = {
+ ids: include.foreignEntityRecordId,
+ foreign_entity_sources: include.foreignEntitySource,
+ };
+ }
+
+ // Property filters (status, priority, assignees, custom)
+ const propertyFilters = includePropertiesToFilters(include.properties);
+ if (propertyFilters.length) {
+ filters.property_filters = propertyFilters;
+ }
+
+ // Tags: match on the option ids alone (globally unique), combined across
+ // all tag definitions. No definition id is sent — the backend matches
+ // values only. The mode picks any-of (default) vs all-of combining.
+ if (include.tagFilters?.length) {
+ filters.tag_option_ids = include.tagFilters.map((t) => t.value);
+ if (include.tagFilterMode === 'all') {
+ filters.tag_filter_mode = 'all';
+ }
+ }
+
+ return filters;
+}
+
+/** Shared full-text request mapping for Search surfaces. */
+export function buildSoupSearchRequest(
+ state: QueryState,
+ { query, matchType }: SoupSearchRequest
+): { params: { page_size: number }; body: UnifiedSearchRequest } {
+ const baseFilters = filterDataToQueryFilters(state);
+
+ // CRM is opt-in on the backend. A view includes CRM in search unless it
+ // NIL-excludes the CRM target (the same sentinel pattern other entity
+ // types use) — so the Companies view (CRM-scoped) searches CRM, while
+ // every other view (including the global Search view) excludes it.
+ const includeCrm = !(state.include.crmCompanyId ?? []).includes(NIL_UUID);
+ const body: UnifiedSearchRequest = includeCrm
+ ? {
+ search_on: 'name_content',
+ match_type: matchType,
+ query,
+ include_crm: true,
+ filters: {
+ ...baseFilters,
+ crm_company_filters: {
+ company_ids: state.include.crmCompanyId,
+ hidden: state.include.crmCompanyHidden,
+ },
+ },
+ }
+ : {
+ search_on: 'name_content',
+ match_type: matchType,
+ query,
+ filters: baseFilters,
+ };
+
+ return { params: { page_size: 100 }, body };
+}
diff --git a/apps/web/src/features/next-soup/soup-view/soup-view-context.tsx b/apps/web/src/features/next-soup/soup-view/soup-view-context.tsx
index f7199f7958..321d9f5d24 100644
--- a/apps/web/src/features/next-soup/soup-view/soup-view-context.tsx
+++ b/apps/web/src/features/next-soup/soup-view/soup-view-context.tsx
@@ -3,7 +3,7 @@ import {
isListViewID,
type ListView,
} from '@app/constants/list-views';
-import { useMobileSearchText } from '@app/features/command/mobile/use-mobile-search-text';
+import { SearchState } from '@app/features/command/mobile/mobileSearchState';
import {
createSoupState,
type GroupMeta,
@@ -493,7 +493,10 @@ export const createSoupViewState = (props: SoupViewContextProviderProps) => {
const filterByTag = (optionId: string) => tagFilter.onChange([optionId]);
const [searchPaused, setSearchPaused] = createSignal(false);
- const sourceSearchPaused = createMemo(() => searchPaused() || !enabled());
+ const sourceSearchPaused = createMemo(
+ () =>
+ searchPaused() || !enabled() || (isTouchDevice() && SearchState.isOpen())
+ );
const [assigneeFilter, setAssigneeFilter] = makeFlaggedPersisted(
useEntryState<string[]>('soup.assigneeFilter', { default: [] }),
{
@@ -791,25 +794,13 @@ export const createSoupViewState = (props: SoupViewContextProviderProps) => {
default: props.initialSearchText ?? '',
});
- // The split's effective search text — derived, never synchronized: while
- // the dock search session is open and this split is foregrounded, it IS the
- // session's query (the dock input lives in the stable app chrome — see
- // Layout — so navigation never remounts it, and the query never enters
- // per-split state: nothing to clear on close, nothing to reapply on pill
- // navigation). Otherwise it is the split's own persisted text, which only
- // the desktop search bar writes.
- const effectiveSearchText = useMobileSearchText(
- searchText,
- panel.handle.isActive
- );
-
const search = createSearchState({
soup,
filters: () => applyViewFilters(queryFilters.state),
assignees: assigneeFilter,
disableLocalSearch: () => config().disableLocalSearch ?? false,
searchPaused: sourceSearchPaused,
- searchText: effectiveSearchText,
+ searchText,
setSearchText,
});
diff --git a/apps/web/src/features/tasks-view/tasks-view-context.tsx b/apps/web/src/features/tasks-view/tasks-view-context.tsx
index 43a57e8ec7..f1ff79e82b 100644
--- a/apps/web/src/features/tasks-view/tasks-view-context.tsx
+++ b/apps/web/src/features/tasks-view/tasks-view-context.tsx
@@ -6,7 +6,6 @@ import {
listOwnedSlotName,
} from '@app/components/list';
import { setSidebarSectionCollapsed } from '@app/components/view-shell';
-import { useMobileSearchText } from '@app/features/command/mobile/use-mobile-search-text';
import { normalizeFacetSelection } from '@app/features/soup';
import { useFeatureFlag } from '@app/lib/analytics/posthog';
import {
@@ -195,15 +194,8 @@ export const [TasksViewProvider, useTasksView] = createAssertedContextProvider<
const [persistedState, setState] = props.scopeKey
? withSplitPanelOwner(ownedSlot('view-state'), createState)
: createState();
- const searchText = useMobileSearchText(
- () => persistedState.search,
- () => !props.scopeKey && panel.handle.isActive()
- );
// Rollout fallbacks must not overwrite saved tab or layout selections.
const state = mergeProps(persistedState, {
- get search() {
- return searchText();
- },
get layout() {
if (
isTouchDevice() ||
diff --git a/apps/web/src/lib/core/context/quickAccess/QuickAccessSource.test.ts b/apps/web/src/lib/core/context/quickAccess/QuickAccessSource.test.ts
index d25c81e1f9..778b38ba57 100644
--- a/apps/web/src/lib/core/context/quickAccess/QuickAccessSource.test.ts
+++ b/apps/web/src/lib/core/context/quickAccess/QuickAccessSource.test.ts
@@ -26,9 +26,11 @@ import {
} from '@tanstack/solid-query';
import {
createComponent,
+ createMemo,
createRenderEffect,
createRoot,
createSignal,
+ untrack,
} from 'solid-js';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import { useQuickAccess } from './context';
@@ -60,6 +62,7 @@ const mocks = vi.hoisted(() => ({
initiatives: [] as InitiativeEntity[],
databases: [] as ListedDatabase[],
crmEnabled: (): boolean => true,
+ graphqlEnabled: (): boolean => true,
cacheEnabled: true,
queries: {} as Partial<
Record<
@@ -72,10 +75,16 @@ vi.mock('@core/constant/featureFlags', () => ({
enableCrm: {},
enableDatabases: {},
enableForms: {},
+ enableGraphqlSoup: { key: 'enable-graphql-soup' },
isFeatureEnabled: () => mocks.crmEnabled(),
}));
vi.mock('@app/lib/analytics/posthog', () => ({
- useFeatureFlag: () => () => ({ enabled: mocks.crmEnabled() }),
+ useFeatureFlag: (flag: { key?: string }) => () => ({
+ enabled:
+ flag.key === 'enable-graphql-soup'
+ ? mocks.graphqlEnabled()
+ : mocks.crmEnabled(),
+ }),
}));
vi.mock('@core/constant/allBlocks', () => ({
itemToSafeName: (item: { name: string }) => item.name,
@@ -183,12 +192,15 @@ vi.mock('@service-storage/util/filename', () => ({
formatDocumentName: (name: string) => name,
}));
vi.mock('@service-storage/graphql-soup', () => ({
- getGraphqlSoupCacheHost: () => ({
- search: mocks.search,
- onCacheChanged: mocks.onCacheChanged,
- readRecordsByKeys: mocks.readRecordsByKeys,
- disabled: !mocks.cacheEnabled,
- }),
+ getGraphqlSoupCacheHost: () =>
+ untrack(mocks.graphqlEnabled)
+ ? {
+ search: mocks.search,
+ onCacheChanged: mocks.onCacheChanged,
+ readRecordsByKeys: mocks.readRecordsByKeys,
+ disabled: !mocks.cacheEnabled,
+ }
+ : undefined,
}));
let dispose: (() => void) | undefined;
@@ -232,6 +244,7 @@ beforeEach(() => {
mocks.initiatives = [];
mocks.databases = [];
mocks.crmEnabled = () => true;
+ mocks.graphqlEnabled = () => true;
mocks.cacheEnabled = true;
mocks.queries = {};
mocks.readRecordsByKeys.mockReset().mockResolvedValue({
@@ -392,6 +405,75 @@ function renderRetainedList(
}
describe('Quick Access source integration', () => {
+ it('starts cached email search when the GraphQL flag arrives after mounting', async () => {
+ const [enabled, setEnabled] = createSignal(false);
+ mocks.graphqlEnabled = enabled;
+ mocks.search.mockResolvedValue({
+ documents: [
+ {
+ profile: 'quick-access-v1',
+ recordKey: 'GraphqlSoupEmailThread:thread-1',
+ bucket: 'email',
+ searchText: 'weekly update | teo | [email protected]',
+ timestampMs: 1,
+ sourceHash: 'email-hash',
+ },
+ ],
+ nextCursor: null,
+ });
+ mocks.readRecordsByKeys.mockResolvedValue({
+ revision: INITIAL_CACHE_REVISION,
+ records: [
+ {
+ recordKey: 'GraphqlSoupEmailThread:thread-1',
+ record: {
+ __typename: 'GraphqlSoupEmailThread',
+ id: 'thread-1',
+ name: 'Weekly update',
+ ownerId: 'owner',
+ createdAt: '2026-01-01T00:00:00Z',
+ updatedAt: '2026-01-01T00:00:00Z',
+ viewedAt: null,
+ senderName: 'Teo',
+ senderEmail: '[email protected]',
+ linkId: 'inbox',
+ isRead: true,
+ isDraft: false,
+ isImportant: false,
+ inboxVisible: true,
+ },
+ },
+ ],
+ });
+ const { source, list } = setup((source) => ({
+ source,
+ // The shared mobile/desktop entity source owns lists in a memo.
+ list: createMemo(() =>
+ source.useList({
+ buckets: ['email'],
+ searchTerm: () => 'teo',
+ })
+ ),
+ }));
+ expect(source.usesSearchProjection()).toBe(false);
+ expect(list().items()).toEqual([]);
+ expect(mocks.search).not.toHaveBeenCalled();
+
+ setEnabled(true);
+ await vi.waitFor(() => {
+ expect(source.usesSearchProjection()).toBe(true);
+ expect(
+ list()
+ .items()
+ .map((item) => item.id)
+ ).toEqual(['thread-1']);
+ });
+
+ setEnabled(false);
+ expect(source.usesSearchProjection()).toBe(false);
+ expect(list().items()).toEqual([]);
+ });
+
it('keeps cached document order and fuzzy matches stable across typing and backspacing', async () => {
const names = [
'Seamus snip',
diff --git a/apps/web/src/lib/core/context/quickAccess/QuickAccessSource.tsx b/apps/web/src/lib/core/context/quickAccess/QuickAccessSource.tsx
index 0dc811ad5f..a8b96c6664 100644
--- a/apps/web/src/lib/core/context/quickAccess/QuickAccessSource.tsx
+++ b/apps/web/src/lib/core/context/quickAccess/QuickAccessSource.tsx
@@ -12,6 +12,7 @@ import {
enableCrm,
enableDatabases,
enableForms,
+ enableGraphqlSoup,
} from '@core/constant/featureFlags';
import {
useChannelsContext,
@@ -37,6 +38,7 @@ import {
type CachedGraphqlChannel,
materializeCachedGraphqlChannels,
} from '@queries/channel/graphql';
+import { materializeCachedEmailItems } from '@queries/email/quick-access';
import { queryReadyGate } from '@queries/gate';
import { materializeCachedGraphqlHistoryItems } from '@queries/history/graphql';
import { type HistoryItem, useHistoryQuery } from '@queries/history/history';
@@ -378,6 +380,7 @@ function sortIndexEntries(entries: IndexEntry[]): IndexEntry[] {
/** Builds Quick Access from history and its supporting entity sources. */
export function createQuickAccessValue(): QuickAccessContextValue {
const crmFlag = useFeatureFlag(enableCrm);
+ const graphqlFlag = useFeatureFlag(enableGraphqlSoup);
// queries
const historyQuery = useHistoryQuery();
const { channels, isLoading: channelsLoading } = useChannelsContext();
@@ -391,6 +394,9 @@ export function createQuickAccessValue(): QuickAccessContextValue {
// Access falls back to the REST channel list instead of the dead host. The
// memo keeps the subscription below until the host itself changes.
const cacheHost = createMemo(() => {
+ // The host getter reads PostHog imperatively; retry when the remote flag
+ // arrives after mount, while leaving cache lifetime decisions to the getter.
+ graphqlFlag();
const graphqlCacheHost = getGraphqlSoupCacheHost();
return graphqlCacheHost?.disabled ? undefined : graphqlCacheHost;
});
@@ -1174,11 +1180,13 @@ export function createQuickAccessValue(): QuickAccessContextValue {
cachedChannelItems,
cachedCompanies,
cachedContacts,
+ cachedEmails,
] = await Promise.all([
materializeCachedGraphqlHistoryItems(projectionHost, missing),
materializeCachedGraphqlChannels(projectionHost, missing),
materializeCachedGraphqlCrmCompanies(projectionHost, missing),
materializeCachedGraphqlCrmContacts(projectionHost, missing),
+ materializeCachedEmailItems(projectionHost, documents),
]);
const historyById = new Map(
historyItems.map((item) => [item.id, item])
@@ -1192,8 +1200,15 @@ export function createQuickAccessValue(): QuickAccessContextValue {
const contactsById = new Map(
cachedContacts.map((contact) => [contact.id, contact])
);
+ const emailsById = new Map(
+ cachedEmails.map((item) => [item.id, item])
+ );
return documents.flatMap((document): QuickAccessItem[] => {
const id = idOf(document.recordKey);
+ if (document.bucket === 'email') {
+ const email = emailsById.get(id);
+ return email ? [email] : [];
+ }
const cached = itemCache.get(id)?.item;
if (cached) return [cached];
const historyItem = historyById.get(id);
diff --git a/apps/web/src/lib/core/context/quickAccess/projected-list.test.ts b/apps/web/src/lib/core/context/quickAccess/projected-list.test.ts
index d2898b0782..b837b00d33 100644
--- a/apps/web/src/lib/core/context/quickAccess/projected-list.test.ts
+++ b/apps/web/src/lib/core/context/quickAccess/projected-list.test.ts
@@ -511,12 +511,12 @@ describe('Quick Access local projection', () => {
});
it('searches only materializable buckets before applying the limit', async () => {
- const emailHits = Array.from({ length: 500 }, (_, i) =>
- document(`email-${i}`, 'email')
+ const unsupportedHits = Array.from({ length: 500 }, (_, i) =>
+ document(`session-${i}`, 'agent_session')
);
const search = vi.fn(
async (args: SearchCacheArgs): Promise<SearchCachePage> => ({
- documents: [...emailHits, document('target')]
+ documents: [...unsupportedHits, document('target')]
.filter((hit) => args.buckets?.includes(hit.bucket))
.slice(0, args.limit),
nextCursor: null,
@@ -535,7 +535,7 @@ describe('Quick Access local projection', () => {
expect(list.items()).toEqual([{ id: 'GraphqlSoupDocument:target' }])
);
expect(search.mock.calls[0][0].buckets).not.toEqual(
- expect.arrayContaining(['email'])
+ expect.arrayContaining(['agent_session'])
);
expect(search.mock.calls[0][0].buckets).toEqual(
expect.arrayContaining(['crm_company'])
@@ -550,7 +550,7 @@ describe('Quick Access local projection', () => {
const list = root(() =>
createProjectedList({
host: { search },
- buckets: ['email', 'person', 'agent_session'],
+ buckets: ['person', 'agent_session'],
revision: () => 0,
materialize,
})
diff --git a/apps/web/src/lib/core/context/quickAccess/projected-list.ts b/apps/web/src/lib/core/context/quickAccess/projected-list.ts
index c5a3963e8b..590431bedf 100644
--- a/apps/web/src/lib/core/context/quickAccess/projected-list.ts
+++ b/apps/web/src/lib/core/context/quickAccess/projected-list.ts
@@ -3,6 +3,7 @@ import type {
SearchCursor,
SearchDocumentWire,
} from '@graphql-cache/index';
+import { Telemetry } from '@macro-inc/observability';
import {
type Accessor,
createEffect,
@@ -22,6 +23,7 @@ const PROJECTED_BUCKETS: ReadonlySet<Bucket> = new Set([
'skill',
'chat',
'project',
+ 'email',
'channel',
'dm',
'crm_company',
@@ -107,17 +109,36 @@ export function createProjectedList<T extends { id: string }>(options: {
let foundNewRow = false;
let cursor = append ? request.cursor : undefined;
let pages = append ? request.pages : 0;
+ const span = Telemetry.span('quick_access.search');
+ span.setAttr('search.buckets', request.buckets.join(','));
+ span.setAttr('search.query_length', request.query.length);
+ span.setAttr('search.append', append);
try {
do {
- const page = await options.host.search({
- profile: 'quick-access-v1',
- buckets: request.buckets,
- query: request.query,
- limit: request.query ? SEARCH_LIMIT : BROWSE_PAGE_SIZE,
- ...(cursor ? { cursor } : {}),
- });
+ const page = await span.span(
+ 'quick_access.search_page',
+ async (span) => {
+ span.setAttr('search.buckets', request.buckets.join(','));
+ span.setAttr('search.query_length', request.query.length);
+ const result = await options.host.search({
+ profile: 'quick-access-v1',
+ buckets: request.buckets,
+ query: request.query,
+ limit: request.query ? SEARCH_LIMIT : BROWSE_PAGE_SIZE,
+ ...(cursor ? { cursor } : {}),
+ });
+ span.setAttr('search.result_count', result.documents.length);
+ return result;
+ }
+ );
if (current !== request) return;
- const materialized = await options.materialize(page.documents);
+ const materialized = await span.span(
+ 'quick_access.materialize',
+ async (span) => {
+ span.setAttr('search.result_count', page.documents.length);
+ return options.materialize(page.documents);
+ }
+ );
if (current !== request) return;
for (const item of materialized) {
merged.set(item.id, item);
@@ -139,6 +160,7 @@ export function createProjectedList<T extends { id: string }>(options: {
setItems([...merged.values()]);
setHasMore(cursor !== undefined);
} catch (error) {
+ span.error('Quick Access cache search failed');
if (current !== request) return;
// Rows and their continuation are a committed window. A failed replay
// (or append) must leave both intact so normal pagination can retry.
@@ -146,6 +168,7 @@ export function createProjectedList<T extends { id: string }>(options: {
setHasMore(request.cursor !== undefined);
console.warn('Quick Access cache search failed', error);
} finally {
+ span.end();
finishRequest(request);
}
};
diff --git a/apps/web/src/lib/core/directive/focusInput.test.ts b/apps/web/src/lib/core/directive/focusInput.test.ts
new file mode 100644
index 0000000000..c25d4018c6
--- /dev/null
+++ b/apps/web/src/lib/core/directive/focusInput.test.ts
@@ -0,0 +1,41 @@
+import { afterEach, beforeEach, expect, it, vi } from 'vitest';
+import { triggerFocusInput } from './focusInput';
+
+vi.mock('@core/mobile/isTouchDevice', () => ({ isTouchDevice: () => false }));
+vi.mock('@core/util/platform', () => ({ isPlatform: () => false }));
+
+beforeEach(() => vi.useFakeTimers());
+afterEach(() => {
+ window.dispatchEvent(new Event('beforeunload'));
+ document.body.replaceChildren();
+ vi.useRealTimers();
+ vi.restoreAllMocks();
+});
+
+it('transfers focus once despite several mutations before the timer runs', async () => {
+ const input = document.createElement('input');
+ Object.defineProperty(input, 'offsetParent', { value: document.body });
+ const focus = vi.spyOn(input, 'focus');
+ triggerFocusInput(() => document.querySelector('input'));
+ document.body.append(input);
+ await Promise.resolve();
+ document.body.append(document.createElement('div'));
+ await Promise.resolve();
+ document.body.append(document.createElement('div'));
+ await Promise.resolve();
+ vi.runAllTimers();
+ expect(focus).toHaveBeenCalledOnce();
+ expect(document.activeElement).toBe(input);
+});
+
+it('cancels a queued focus transfer when the page unloads', async () => {
+ const input = document.createElement('input');
+ Object.defineProperty(input, 'offsetParent', { value: document.body });
+ const focus = vi.spyOn(input, 'focus');
+ triggerFocusInput(() => document.querySelector('input'));
+ document.body.append(input);
+ await Promise.resolve();
+ window.dispatchEvent(new Event('beforeunload'));
+ vi.runAllTimers();
+ expect(focus).not.toHaveBeenCalled();
+});
diff --git a/apps/web/src/lib/core/directive/focusInput.ts b/apps/web/src/lib/core/directive/focusInput.ts
index b5e5d39b62..72e4a5ff00 100644
--- a/apps/web/src/lib/core/directive/focusInput.ts
+++ b/apps/web/src/lib/core/directive/focusInput.ts
@@ -36,10 +36,12 @@ export function triggerFocusInput(
let observer: MutationObserver | undefined;
let timeoutId: ReturnType<typeof setTimeout> | undefined;
+ let focusTimeoutId: ReturnType<typeof setTimeout> | undefined;
let tempEl: HTMLInputElement | undefined;
function cleanup() {
if (timeoutId !== undefined) clearTimeout(timeoutId);
+ if (focusTimeoutId !== undefined) clearTimeout(focusTimeoutId);
if (tempEl && document.body.contains(tempEl))
document.body.removeChild(tempEl);
observer?.disconnect();
@@ -47,7 +49,10 @@ export function triggerFocusInput(
}
function handleAppearance(el: HTMLElement) {
- setTimeout(() => {
+ // Stop watching before the timer: list mounting can deliver more mutations
+ // before focus transfers, and each focus forces synchronous WebKit layout.
+ observer?.disconnect();
+ focusTimeoutId = setTimeout(() => {
el.focus();
cleanup();
}, 0);
diff --git a/apps/web/src/lib/queries/email/quick-access.test.ts b/apps/web/src/lib/queries/email/quick-access.test.ts
new file mode 100644
index 0000000000..69b1108811
--- /dev/null
+++ b/apps/web/src/lib/queries/email/quick-access.test.ts
@@ -0,0 +1,90 @@
+import { rankCommandSearchItems } from '@app/features/command/rank-command-search-items';
+import {
+ filterQuickAccessItems,
+ searchQuickAccessItems,
+} from '@core/context/quickAccess/entity-search';
+import type { CacheHost, SearchDocumentWire } from '@graphql-cache/index';
+import { INITIAL_CACHE_REVISION } from '@graphql-cache/index';
+import { describe, expect, it, vi } from 'vitest';
+import { materializeCachedEmailItems } from './quick-access';
+
+const hit: SearchDocumentWire = {
+ profile: 'quick-access-v1',
+ recordKey: 'GraphqlSoupEmailThread:thread',
+ bucket: 'email',
+ searchText:
+ 'weekly update | alex | [email protected] | teo earlier | [email protected]',
+ timestampMs: 100,
+ sourceHash: 'hash',
+};
+const thread = {
+ __typename: 'GraphqlSoupEmailThread',
+ id: 'thread',
+ name: 'Weekly update',
+ ownerId: 'owner',
+ createdAt: '2026-01-01T00:00:00Z',
+ updatedAt: '2026-01-02T00:00:00Z',
+ viewedAt: null,
+ senderName: 'Alex',
+ senderEmail: '[email protected]',
+ senders: [{ name: 'Teo Earlier', email: '[email protected]' }],
+ isRead: true,
+ isDraft: false,
+ isImportant: false,
+ inboxVisible: true,
+ linkId: 'inbox',
+};
+
+describe('cached email Quick Access', () => {
+ it('materializes one thread and retains sender-only matches during frontend ranking and pending search', async () => {
+ const read = vi.fn<CacheHost['readRecordsByKeys']>().mockResolvedValue({
+ revision: INITIAL_CACHE_REVISION,
+ records: [{ recordKey: hit.recordKey, record: thread }],
+ });
+ const items = await materializeCachedEmailItems(
+ { readRecordsByKeys: read },
+ [hit, hit]
+ );
+ expect(items).toHaveLength(1);
+ expect(items[0].data.name).toBe('Weekly update');
+ for (const query of ['t', 'te', 'teo', '[email protected]', 'weekly']) {
+ expect(filterQuickAccessItems(items, query)).toEqual(items);
+ expect(searchQuickAccessItems(items, query)).toEqual(items);
+ expect(
+ rankCommandSearchItems(items, query, {
+ preserveAdditionalEntityMatches: true,
+ })
+ ).toEqual(items);
+ }
+ expect(filterQuickAccessItems(items, 'quartz')).toEqual([]);
+ expect(items[0].data).not.toHaveProperty('snippet');
+ });
+ it('reads fresh records and respects missing/inaccessible cached records', async () => {
+ const read = vi
+ .fn<CacheHost['readRecordsByKeys']>()
+ .mockResolvedValueOnce({
+ revision: INITIAL_CACHE_REVISION,
+ records: [
+ { recordKey: hit.recordKey, record: { ...thread, name: null } },
+ ],
+ })
+ .mockResolvedValueOnce({
+ revision: INITIAL_CACHE_REVISION,
+ records: [
+ { recordKey: hit.recordKey, record: { ...thread, name: 'Renamed' } },
+ ],
+ })
+ .mockResolvedValueOnce({ revision: INITIAL_CACHE_REVISION, records: [] });
+ expect(
+ (await materializeCachedEmailItems({ readRecordsByKeys: read }, [hit]))[0]
+ .data.name
+ ).toBe('');
+ expect(
+ (await materializeCachedEmailItems({ readRecordsByKeys: read }, [hit]))[0]
+ .data.name
+ ).toBe('Renamed');
+ expect(
+ await materializeCachedEmailItems({ readRecordsByKeys: read }, [hit])
+ ).toEqual([]);
+ });
+});
diff --git a/apps/web/src/lib/queries/email/quick-access.ts b/apps/web/src/lib/queries/email/quick-access.ts
new file mode 100644
index 0000000000..c39c070eb9
--- /dev/null
+++ b/apps/web/src/lib/queries/email/quick-access.ts
@@ -0,0 +1,65 @@
+import type { EntityItem } from '@core/context/quickAccess/types';
+import type { EmailEntity } from '@entity';
+import {
+ type CacheHost,
+ readRecordsByKeys,
+ type SearchDocumentWire,
+ selectRecords,
+} from '@graphql-cache/index';
+import { EmailQuickAccessFieldsFragmentDoc } from '@service-storage/graphql/generated/graphql';
+
+/** Materialize cached thread hits only; matching uses the projection's subject/sender text. */
+export async function materializeCachedEmailItems(
+ host: Pick<CacheHost, 'readRecordsByKeys'>,
+ documents: SearchDocumentWire[]
+): Promise<EntityItem<EmailEntity>[]> {
+ const emails = new Map(
+ documents
+ .filter(
+ (document) =>
+ document.bucket === 'email' &&
+ document.recordKey.startsWith('GraphqlSoupEmailThread:')
+ )
+ .map((document) => [document.recordKey, document])
+ );
+ if (!emails.size) return [];
+ const records = await readRecordsByKeys(
+ host,
+ selectRecords(EmailQuickAccessFieldsFragmentDoc),
+ [...emails.keys()]
+ );
+ return records.records.flatMap(({ recordKey, record }) => {
+ const document = emails.get(recordKey);
+ if (!document || record.__typename !== 'GraphqlSoupEmailThread') return [];
+ return [
+ {
+ id: record.id,
+ kind: 'entity',
+ bucket: 'email',
+ searchText: document.searchText,
+ sortTimestamp: document.timestampMs,
+ timestamps: {
+ viewedAt: record.viewedAt,
+ updatedAt: record.updatedAt,
+ createdAt: record.createdAt,
+ },
+ data: {
+ type: 'email',
+ id: record.id,
+ name: record.name ?? '',
+ ownerId: record.ownerId,
+ createdAt: record.createdAt,
+ updatedAt: record.updatedAt,
+ viewedAt: record.viewedAt,
+ senderName: record.senderName ?? undefined,
+ senderEmail: record.senderEmail ?? undefined,
+ linkId: record.linkId,
+ isRead: record.isRead,
+ isDraft: record.isDraft,
+ isImportant: record.isImportant,
+ done: !record.inboxVisible,
+ },
+ },
+ ];
+ });
+}
diff --git a/apps/web/src/lib/service-clients/service-storage/graphql/email-thread.graphql b/apps/web/src/lib/service-clients/service-storage/graphql/email-thread.graphql
index 765d8a1597..91061cb89b 100644
--- a/apps/web/src/lib/service-clients/service-storage/graphql/email-thread.graphql
+++ b/apps/web/src/lib/service-clients/service-storage/graphql/email-thread.graphql
@@ -126,3 +126,22 @@ fragment EmailThreadIdentityFields on GraphqlSoupEmailThread {
id
cacheProjection @cacheOnly
}
+
+# Compact cached Quick Access rows: no snippets or message bodies.
+fragment EmailQuickAccessFields on GraphqlSoupEmailThread {
+ __typename
+ id
+ name
+ ownerId
+ createdAt
+ updatedAt
+ viewedAt
+ senderName
+ senderEmail
+ senders { name email }
+ isRead
+ isDraft
+ isImportant
+ inboxVisible
+ linkId
+}
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.ts
index 2116f2c984..865d206dfb 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
@@ -4287,6 +4287,8 @@ export type EmailThreadMessageFieldsFragment = { __typename: 'GraphqlSoupEmailMe
export type EmailThreadIdentityFieldsFragment = { id: string, cacheProjection: string | null };
+export type EmailQuickAccessFieldsFragment = { __typename: 'GraphqlSoupEmailThread', id: string, name: string | null, ownerId: string, createdAt: string, updatedAt: string, viewedAt: string | null, senderName: string | null, senderEmail: string | null, isRead: boolean, isDraft: boolean, isImportant: boolean, inboxVisible: boolean, linkId: string, senders: Array<{ name: string | null, email: string | null }> };
+
type EntityMutationResultFields_GraphqlMutationError_Fragment = { __typename: 'GraphqlMutationError', errorCode: GraphqlEntityMutationErrorCode, message: string };
type EntityMutationResultFields_GraphqlMutationSuccess_Fragment = { __typename: 'GraphqlMutationSuccess', effects: Array<
@@ -18314,6 +18316,7 @@ export const EmailDraftThreadFieldsFragmentDoc = {"kind":"Document","definitions
export const EmailReadStateFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailReadStateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEmailThread"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isRead"}}]}}]} as unknown as DocumentNode<EmailReadStateFieldsFragment, unknown>;
export const EmailThreadPageFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailThreadPageFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEmailThread"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupItemFields"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"providerId"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"inboxVisible"}},{"kind":"Field","name":{"kind":"Name","value":"isRead"}},{"kind":"Field","name":{"kind":"Name","value":"projectId"}},{"kind":"Field","name":{"kind":"Name","value":"latestInboundMessageTs"}},{"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":"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":"messages"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EmailThreadMessageFields"}}]}}]}},{"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":"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":"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","name":{"kind":"Name","value":"companyId"}},{"kind":"Field","name":{"kind":"Name","value":"companyName"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"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":"InlineFragment","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":"isArchived"}},{"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":"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":"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":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"latestInboundMessageTs"}},{"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":"sortTs"}},{"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":"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":"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":"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":"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":"SoupItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupItemPreviewFields"}},{"kind":"Field","name":{"kind":"Name","value":"notifications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailThreadMessageFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEmailMessage"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"providerId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"replyingToId"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"subject"}},{"kind":"Field","name":{"kind":"Name","value":"snippet"}},{"kind":"Field","name":{"kind":"Name","value":"internalDateTs"}},{"kind":"Field","name":{"kind":"Name","value":"sentAt"}},{"kind":"Field","name":{"kind":"Name","value":"isRead"}},{"kind":"Field","name":{"kind":"Name","value":"isStarred"}},{"kind":"Field","name":{"kind":"Name","value":"isSent"}},{"kind":"Field","name":{"kind":"Name","value":"isDraft"}},{"kind":"Field","name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","name":{"kind":"Name","value":"scheduledSendTime"}},{"kind":"Field","name":{"kind":"Name","value":"from"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"photoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"to"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"photoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"cc"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"photoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"bcc"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"photoUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"labels"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"providerLabelId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"bodyText"}},{"kind":"Field","name":{"kind":"Name","value":"bodyHtmlSanitized"}},{"kind":"Field","name":{"kind":"Name","value":"bodyMacro"}},{"kind":"Field","name":{"kind":"Name","value":"calendarInvitations"}},{"kind":"Field","name":{"kind":"Name","value":"bodyReplyless"}},{"kind":"Field","name":{"kind":"Name","value":"attachments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"providerId"}},{"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":"sfsId"}},{"kind":"Field","name":{"kind":"Name","value":"contentId"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachmentsDraft"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"draftId"}},{"kind":"Field","name":{"kind":"Name","value":"fileName"}},{"kind":"Field","name":{"kind":"Name","value":"contentType"}},{"kind":"Field","name":{"kind":"Name","value":"sha"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"s3Key"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attachmentsForwarded"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"attachmentId"}},{"kind":"Field","name":{"kind":"Name","value":"draftId"}},{"kind":"Field","name":{"kind":"Name","value":"providerAttachmentId"}},{"kind":"Field","name":{"kind":"Name","value":"messageProviderId"}},{"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":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<EmailThreadPageFieldsFragment, unknown>;
export const EmailThreadIdentityFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailThreadIdentityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEmailThread"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"cacheProjection"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"cacheOnly"}}]}]}}]} as unknown as DocumentNode<EmailThreadIdentityFieldsFragment, unknown>;
+export const EmailQuickAccessFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EmailQuickAccessFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEmailThread"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"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":"senderName"}},{"kind":"Field","name":{"kind":"Name","value":"senderEmail"}},{"kind":"Field","name":{"kind":"Name","value":"senders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"email"}}]}},{"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":"inboxVisible"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}}]}}]} as unknown as DocumentNode<EmailQuickAccessFieldsFragment, unknown>;
export const SoupPatchFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPatchFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SoupPatch"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SoupUpdated"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"item"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupItemFields"}}]}}]}},{"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":"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":"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":"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","name":{"kind":"Name","value":"companyId"}},{"kind":"Field","name":{"kind":"Name","value":"companyName"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"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":"InlineFragment","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":"isArchived"}},{"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":"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":"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":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"latestInboundMessageTs"}},{"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":"sortTs"}},{"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":"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":"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":"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":"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":"SoupItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupItemPreviewFields"}},{"kind":"Field","name":{"kind":"Name","value":"notifications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}}]} as unknown as DocumentNode<SoupPatchFieldsFragment, unknown>;
export const EntityMutationResultFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EntityMutationResultFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityMutationResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMutationSuccess"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"effects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPatchFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMutationError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"errorCode"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}},{"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":"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":"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","name":{"kind":"Name","value":"companyId"}},{"kind":"Field","name":{"kind":"Name","value":"companyName"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"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":"InlineFragment","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":"isArchived"}},{"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":"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":"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":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"latestInboundMessageTs"}},{"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":"sortTs"}},{"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":"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":"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":"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":"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":"SoupItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupItemPreviewFields"}},{"kind":"Field","name":{"kind":"Name","value":"notifications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPatchFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SoupPatch"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SoupUpdated"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"item"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupItemFields"}}]}}]}},{"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"}}]}}]}}]} as unknown as DocumentNode<EntityMutationResultFieldsFragment, unknown>;
export const EntityMutationPayloadFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EntityMutationPayloadFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EntityMutationPayload"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"results"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"EntityMutationResultFields"}}]}}]}},{"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":"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":"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","name":{"kind":"Name","value":"companyId"}},{"kind":"Field","name":{"kind":"Name","value":"companyName"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"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":"InlineFragment","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":"isArchived"}},{"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":"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":"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":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"latestInboundMessageTs"}},{"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":"sortTs"}},{"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":"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":"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":"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":"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":"SoupItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupItemPreviewFields"}},{"kind":"Field","name":{"kind":"Name","value":"notifications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPatchFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SoupPatch"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SoupUpdated"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"item"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupItemFields"}}]}}]}},{"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":"EntityMutationResultFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityMutationResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMutationSuccess"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"effects"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPatchFields"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMutationError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"errorCode"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]} as unknown as DocumentNode<EntityMutationPayloadFieldsFragment, unknown>;
diff --git a/apps/web/src/lib/signals/focus.ts b/apps/web/src/lib/signals/focus.ts
index 8a92a43e4f..81b6ea8fd2 100644
--- a/apps/web/src/lib/signals/focus.ts
+++ b/apps/web/src/lib/signals/focus.ts
@@ -24,7 +24,15 @@ export function mountGlobalFocusListener(withDebug?: boolean) {
onMount(() => {
document.addEventListener('focusin', setDirty);
document.addEventListener('focusout', setDirty);
+ // Removing a focused editor (or one of its ancestors) does not reliably
+ // emit focusout. Reconcile after DOM changes so consumers cannot keep
+ // treating a detached search input/composer as the active editor.
+ const observer = new MutationObserver(() => {
+ if (rawActiveElement() !== document.activeElement) setDirty();
+ });
+ observer.observe(document, { childList: true, subtree: true });
onCleanup(() => {
+ observer.disconnect();
document.removeEventListener('focusin', setDirty);
document.removeEventListener('focusout', setDirty);
});
diff --git a/crates/client/cache-core/AGENTS.md b/crates/client/cache-core/AGENTS.md
index 2a1370648b..7e07073083 100644
--- a/crates/client/cache-core/AGENTS.md
+++ b/crates/client/cache-core/AGENTS.md
@@ -24,6 +24,7 @@ GraphQL response shape for callers. A concrete `Storage` impl (e.g.
- `src/store.rs`: the `Storage` trait every backend (e.g. `cache-turso`) implements.
- `src/predicate.rs` + `src/record_selection.rs`: the predicate/projection IR
used to select which cached records satisfy a query.
+- `src/search.rs`: disposable Quick Access projection (version 3); email matches subjects and all embedded senders, never snippets or bodies.
- `src/queue.rs`: the optimistic mutation queue.
- `tests/`: the primary spec for engine behavior — one file per concern
(optimistic updates, calendar range, search, subscriptions, fuzz).
diff --git a/crates/client/cache-core/src/search.rs b/crates/client/cache-core/src/search.rs
index 70221f492f..409f0729b7 100644
--- a/crates/client/cache-core/src/search.rs
+++ b/crates/client/cache-core/src/search.rs
@@ -132,7 +132,7 @@ pub enum SearchError {
/// Revision of the derived Quick Access rows. Storage adapters rebuild existing
/// rows when this changes; normalized records and pending writes remain valid.
-pub const QUICK_ACCESS_PROJECTION_VERSION: u32 = 2;
+pub const QUICK_ACCESS_PROJECTION_VERSION: u32 = 3;
/// Normalized entity types used by the Quick Access projection. Storage rebuilds
/// restrict decoding to this set so unrelated payloads do not delay readiness.
@@ -204,7 +204,7 @@ fn quick_access_fields<'a>(
"GraphqlSoupProject" => ("project", &["projectName", "name"]),
"GraphqlSoupEmailThread" => (
"email",
- &["emailName", "name", "senderName", "senderEmail", "snippet"],
+ &["emailName", "name", "senderName", "senderEmail", "senders"],
),
"GraphqlSoupChannel" => (channel_bucket(record), &["channelName", "name"]),
"GraphqlSoupCrmCompany" => ("crm_company", &["crmCompanyName", "name", "domains"]),
diff --git a/crates/client/cache-core/src/search/changes.rs b/crates/client/cache-core/src/search/changes.rs
index 8717b55b88..1dd14b6920 100644
--- a/crates/client/cache-core/src/search/changes.rs
+++ b/crates/client/cache-core/src/search/changes.rs
@@ -22,6 +22,11 @@ const PRESENTATION_FIELDS: &[&str] = &[
"channelType",
"participants",
"senders",
+ "isRead",
+ "isDraft",
+ "isImportant",
+ "inboxVisible",
+ "linkId",
];
/// Retains only the projection/row fields needed for a before/after comparison.
diff --git a/crates/client/cache-core/src/search/changes/test.rs b/crates/client/cache-core/src/search/changes/test.rs
index 7b02f98b44..5d2cdf6c4d 100644
--- a/crates/client/cache-core/src/search/changes/test.rs
+++ b/crates/client/cache-core/src/search/changes/test.rs
@@ -131,3 +131,34 @@ fn bucket_moves_and_hidden_rows_invalidate_the_old_bucket_too() {
BTreeSet::from(["note".into()])
);
}
+
+#[test]
+fn email_subject_sender_and_visibility_refresh_but_bodies_do_not() {
+ let typename = "GraphqlSoupEmailThread";
+ let before = record(typename);
+ for field in ["name", "senderName", "senderEmail", "deletedAt", "linkId"] {
+ let mut after = before.clone();
+ after
+ .fields
+ .insert(field.into(), CacheValue::String("changed".into()));
+ assert_eq!(
+ changes(typename, Some(&before), Some(&after)),
+ BTreeSet::from(["email".to_owned()])
+ );
+ }
+ for field in ["hidden", "isRead", "isDraft", "isImportant", "inboxVisible"] {
+ let mut after = before.clone();
+ after.fields.insert(field.into(), CacheValue::Bool(true));
+ assert_eq!(
+ changes(typename, Some(&before), Some(&after)),
+ BTreeSet::from(["email".to_owned()])
+ );
+ }
+ for field in ["snippet", "bodyText", "bodyHtmlSanitized"] {
+ let mut after = before.clone();
+ after
+ .fields
+ .insert(field.into(), CacheValue::String("teo".into()));
+ assert!(changes(typename, Some(&before), Some(&after)).is_empty());
+ }
+}
diff --git a/crates/client/cache-core/src/search/test.rs b/crates/client/cache-core/src/search/test.rs
index fd1d810999..874d11762a 100644
--- a/crates/client/cache-core/src/search/test.rs
+++ b/crates/client/cache-core/src/search/test.rs
@@ -144,3 +144,63 @@ fn crm_contact_projection_indexes_name_email_and_removes_hidden_records() {
.insert("hidden".into(), CacheValue::Bool(true));
assert!(project_search_documents(&key, &record).is_empty());
}
+
+#[test]
+fn email_projection_matches_subject_and_all_senders_but_never_bodies() {
+ let key = EntityKey::entity("GraphqlSoupEmailThread", &["thread"]);
+ let mut record = string_record(&[
+ ("__typename", "GraphqlSoupEmailThread"),
+ ("name", "Weekly update"),
+ ("senderName", "Alex"),
+ ("senderEmail", "[email protected]"),
+ ("snippet", "quartz"),
+ ("bodyText", "zebra"),
+ ]);
+ record.fields.insert(
+ "senders".into(),
+ CacheValue::List(vec![
+ CacheValue::Object(
+ string_record(&[("name", "Teo Earlier"), ("email", "[email protected]")]).fields,
+ ),
+ CacheValue::Object(
+ string_record(&[("name", "Alex"), ("email", "[email protected]")]).fields,
+ ),
+ ]),
+ );
+ let documents = project_search_documents(&key, &record);
+ assert_eq!(documents.len(), 1);
+ assert!(documents[0].search_text.contains("teo earlier"));
+ assert!(documents[0].search_text.contains("[email protected]"));
+ assert!(!documents[0].search_text.contains("quartz"));
+ assert!(!documents[0].search_text.contains("zebra"));
+ for query in ["t", "te", "teo", "[email protected]", "weekly"] {
+ let page = rank_documents(
+ &SearchRequest {
+ profile: SearchProfile::QuickAccessV1,
+ buckets: vec!["email".into()],
+ query: query.into(),
+ cursor: None,
+ limit: 50,
+ now_ms: 0,
+ },
+ &documents,
+ );
+ assert_eq!(page.documents.len(), 1, "{query}");
+ }
+ record.fields.insert("name".into(), CacheValue::Null);
+ assert!(
+ project_search_documents(&key, &record)[0]
+ .search_text
+ .contains("teo")
+ );
+ record
+ .fields
+ .insert("hidden".into(), CacheValue::Bool(true));
+ assert!(project_search_documents(&key, &record).is_empty());
+ record.fields.remove("hidden");
+ record.fields.insert(
+ "deletedAt".into(),
+ CacheValue::String("2026-01-01T00:00:00Z".into()),
+ );
+ assert!(project_search_documents(&key, &record).is_empty());
+}
diff --git a/crates/client/cache-turso/AGENTS.md b/crates/client/cache-turso/AGENTS.md
index a7f4a0b398..d301af51aa 100644
--- a/crates/client/cache-turso/AGENTS.md
+++ b/crates/client/cache-turso/AGENTS.md
@@ -39,6 +39,8 @@ GraphQL cache — native for tests/Tauri, OPFS-backed on wasm32.
## Gotchas
+- Quick Access projection version upgrades rebuild derived rows from retained normalized records; preserve the mutation queue and storage generation (covered by `src/storage/test/search_projection.rs`).
+
- `#![forbid(unsafe_code)]` and `#![deny(missing_docs)]` — this crate is held to
a stricter bar than most because it's the single physical-disk commit point.
- The compound-key schema and payload encoding are frozen; an incompatible or
diff --git a/crates/client/cache-turso/src/storage/test/search_projection.rs b/crates/client/cache-turso/src/storage/test/search_projection.rs
index 05245c5168..899992fbbb 100644
--- a/crates/client/cache-turso/src/storage/test/search_projection.rs
+++ b/crates/client/cache-turso/src/storage/test/search_projection.rs
@@ -73,7 +73,7 @@ fn viewed_first_browse_order_is_applied_before_the_page_limit() {
#[test]
fn reopen_rebuilds_old_search_rows_once_without_replacing_durable_data() {
block_on(async {
- for old_version in [None, Some("1")] {
+ for old_version in [None, Some("1"), Some("2")] {
let database =
TursoMemoryDatabase::new(format!("projection-upgrade-{old_version:?}.db"));
let mut storage = database.open("scope").unwrap();
@@ -91,6 +91,28 @@ fn reopen_rebuilds_old_search_rows_once_without_replacing_durable_data() {
key("GraphqlSoupDocument:document"),
quick_access_document("Document", 2),
));
+ let email = Record {
+ fields: [
+ (
+ "__typename".into(),
+ CacheValue::String("GraphqlSoupEmailThread".into()),
+ ),
+ ("name".into(), CacheValue::String("Weekly update".into())),
+ ("snippet".into(), CacheValue::String("quartz".into())),
+ (
+ "senders".into(),
+ CacheValue::List(vec![CacheValue::Object(
+ [
+ ("name".into(), CacheValue::String("Teo".into())),
+ ("email".into(), CacheValue::String("[email protected]".into())),
+ ]
+ .into(),
+ )]),
+ ),
+ ]
+ .into(),
+ };
+ entries.push((key("GraphqlSoupEmailThread:thread"), email));
entries.push((key("Thing:retained"), record("unchanged")));
storage.put_batch(entries.clone()).await.unwrap();
storage.enqueue_mutation(queued("Pending")).await.unwrap();
@@ -98,6 +120,11 @@ fn reopen_rebuilds_old_search_rows_once_without_replacing_durable_data() {
let mut engine = Engine::new(storage);
let generation = engine.current_storage_generation().await.unwrap();
let storage = engine.into_storage();
+ raw_execute(
+ &storage,
+ "UPDATE search_documents SET search_text = 'weekly update quartz' WHERE __typename = 'GraphqlSoupEmailThread'",
+ vec![],
+ );
// Model rows written by the previous max(viewedAt, updatedAt) projection.
raw_execute(
&storage,
@@ -129,6 +156,13 @@ fn reopen_rebuilds_old_search_rows_once_without_replacing_durable_data() {
.await
.unwrap(),
);
+ let emails = storage
+ .load_search_documents(SearchProfile::QuickAccessV1, "email")
+ .await
+ .unwrap();
+ assert_eq!(emails.len(), 1);
+ assert!(emails[0].search_text.contains("[email protected]"));
+ assert!(!emails[0].search_text.contains("quartz"));
assert_eq!(rows.len(), 602);
assert_eq!(rows.iter().filter(|row| row.timestamp_ms == 1).count(), 600);
assert_eq!(
diff --git a/docs/agent-guide/ai-chat.md b/docs/agent-guide/ai-chat.md
index 6212d04888..b0627652c4 100644
--- a/docs/agent-guide/ai-chat.md
+++ b/docs/agent-guide/ai-chat.md
@@ -224,11 +224,10 @@ or stop.
## Ask AI entry points
-**Ask AI** in search (including Tab), the command menu, and mobile search opens
+**Ask AI** in desktop search (including Tab) and the command menu opens
an agent session. A nonempty search query is sent as the first prompt once the
session is ready; an empty search opens an empty composer. Desktop search replaces
-its current split into the Agents workspace, while command-menu and mobile
-actions open a new split.
+its current split into the Agents workspace, while command-menu actions open a new split.
**Ask Macro** and **Chat with Agent** on documents, tasks, PDFs, DOCX files,
code files, images, canvases, spreadsheets, email, channels, calls, and projects
@@ -547,14 +546,12 @@ icons instead of flashing back to loading placeholders. Check an answer with
multiple mentions while more text arrives and when generation finishes, in both
chat and agent sessions. A newly encountered mention may load once.
-On mobile, every screen has a single-line AI composer directly above the bottom
-dock. A labeled glass button beside it opens the current view's create action:
-**+ Email**, **+ Task**, **+ Document**, **+ Message**, or **+ Event**. Home’s
-**+ New** unfolds Email, Message, Document, Event, Task, and More above the button;
-More opens the full create menu in a glass bottom sheet. Other views show
-**+ New** for that full menu. The AI input narrows to fit the button, ending
-to the left of the navigation pill's right edge below. Agents has no separate
-create button; its AI input fills the row.
+On mobile, only the AI/Agents view has a floating AI composer above the bottom
+dock. Its input fills the row with no separate create button. Other views keep
+their right-aligned creation action: **+ Email**, **+ Task**, **+ Document**,
+**+ Message**, or **+ Event**. Home’s **+ New** unfolds Email, Message, Document,
+Event, Task, and More above the button; More opens the full create menu in a glass
+bottom sheet. Other views show **+ New** for that full menu.
The composer's compact height is 46px, matching the mobile chrome buttons,
with a paperclip attachment control and centered text and actions. It expands for
longer prompts while focused, including text that wraps without an explicit
@@ -564,9 +561,9 @@ draft or widening the pane restores the compact layout when the text fits
beside its controls. Leaving the AI composer collapses a long draft to
a single-line preview in the accessory row; tapping it expands the same editor
with the full draft intact. Screens with an available composer or reply controls show those
-instead; opening mobile search shows scope pills in their place. When neither
-is available, the AI composer returns with its draft intact, including in
-documents without a comment composer. Type a
+instead; opening mobile search shows category pills in their place. On Agents,
+the AI composer returns with its draft intact when higher-priority controls close.
+Other views have no floating AI fallback. Type a
prompt, optionally choose a model or
attach context, and tap **Send** to create the chat and send its first message.
Enter on the virtual keyboard adds a line to the draft rather than sending it.
@@ -584,12 +581,10 @@ The area behind the composer is transparent, without a bottom gradient overlay.
The composer has one editable field. Its placeholder appears only while empty;
placeholder updates and disabled-state changes preserve the editor and draft.
-The **Ask AI** button beside the mobile search field sends the typed query.
-It opens an agent session and delivers the query as the first prompt, regardless
-of `enable-chat-v3-agents`. Mobile uses the agent session surface at
-`/app/agent/<id>`; desktop uses the Agents workspace.
+Mobile search uses the dock solely for entity and explicit full-text search;
+it has no Ask AI button.
-Almost every list surface (Home, Agents, Files, Tasks, Customers, Email) has a bottom
+On desktop, list surfaces (Home, Agents, Files, Tasks, Customers, Email) have a bottom
composer with placeholder **`Ask AI, @mention anything`**. Click it, `type_text` the message,
press Enter — the app creates a chat and navigates to `/app/chat/<uuid>`. Alternatively,
when `enable-chat-v3-agents` is on (default in dev;
diff --git a/docs/agent-guide/channels.md b/docs/agent-guide/channels.md
index a6a32e5d19..562b711790 100644
--- a/docs/agent-guide/channels.md
+++ b/docs/agent-guide/channels.md
@@ -658,7 +658,7 @@ seen without moving the conversation. No notification read marking runs
from an abbreviated list result, even if that result is empty. Access failures
show **Conversation unavailable** and stay hidden during retry until access is
confirmed. A route without cached channel metadata shows **Loading conversation**
-until its channel arrives. On mobile, opening from Recent, Channels, or DMs
+until its channel arrives. On mobile, opening from the Recent conversation list
also navigates immediately: a slow or failed notification lookup must not prevent
messages and the composer from loading. Full-edge notification hydration runs
only after navigation is accepted; failure leaves unread state unchanged and
@@ -860,18 +860,13 @@ conversation cards on `Recent`. Switching tabs preserves the active search and
query, then scrolls the results to the selected channel when present or to the
start. Closing search restores the active tab and applies the same scroll
behavior to its lists. An empty result uses the standard search empty state
-artwork and wraps long queries. Desktop and the mobile dock use the same channel
-name search: local fuzzy matches plus service results, deduplicated by channel
-ID. Desktop searches across channels and DMs; mobile retains its Recent,
-Channels, or DMs scope. An empty query shows the ordinary list. Scrolling search
-results loads the next search page; clearing the query restores ordinary list
-pagination. Check both surfaces with a matching query, a query with no matches,
-and a clear/reopen cycle.
-On mobile, a nonempty query with no matches shows **No results**, echoes the
-query, and offers **Clear search**. Clearing restores the selected tab's list
-and keeps the dock search session open. The tab's usual empty state and create
-actions appear only when no search text is entered; loading and request errors
-keep their own states.
+artwork and wraps long queries. Desktop channel name search combines local fuzzy
+matches and service results,
+deduplicated by channel ID, across channels and DMs. An empty query shows the
+ordinary list. Scrolling search results loads the next search page; clearing the
+query restores ordinary list pagination. Check a matching query, a query with no
+matches, and a clear/reopen cycle. Mobile dock search uses the independent Search
+route described below.
Recent search includes both channels and DMs, including service hits without
message previews. It does not require message metadata or an importance filter.
Loaded conversation metadata is preserved when a service hit has the same ID.
@@ -901,25 +896,18 @@ into the appended rows. If the section has no next page, navigation proceeds
to the next section. `[` and `]` jump between the visible Favorites,
Channels, and DMs section headers.
-On touch layouts, the `Recent`, `Channels`, and `DMs` pill tabs each retain
-their own loaded pages and load more as their active list approaches the end.
-The mobile dock search filters the selected tab by conversation name as you type:
-`DMs` searches people, `Channels` searches non-DM channels, and `Recent` searches
-both. Loaded matches appear immediately; queries of at least three characters
-also search the server, including conversations beyond the loaded page. Changing
-tabs keeps the query and changes its scope. Closing search restores the ordinary
-list. Verify `Channels` → `DMs` → type a person's name with GraphQL enabled:
-unrelated rows disappear, no matches shows **No results**, and switching to
-Channels never keeps DM search hits. Changing the query resets list scroll
-without blurring the dock input. While a background browse-list refresh is still
-pending, scroll near the end of search results: the next search page should load
-without waiting for that refresh or requiring another scroll. Clearing search
-restores the browse list's own pagination and fetching state. A failed browse
-request must not show a load-error message over valid search hits or replace
-**No results**, including during debounce and short local-only queries. Search
-failures still show their own error; clearing search restores the browse error.
-With `enable-graphql-soup` enabled, open an unread conversation from each tab
-and return to the list: all notifications on top-level messages should be seen,
+On touch layouts, Channels shows only the Recent conversation feed, with channel
+and DM message previews. There are no view tabs or reserved tab-header space;
+older saved tab selections and mobile-tab links cannot change the list. It loads
+more as the list approaches the end and supports pull to refresh.
+The mobile dock Search button opens the independent Search route. Its Channels
+and People categories search cached channel names and people directly; the
+conversation list does not constrain results. Full-text search is explicit,
+and People uses the existing channel-content scope. Closing search resets its
+session; the conversation list retains its browse pagination. See
+[Search](search.md) for mode, keyboard, and session-reset checks.
+With `enable-graphql-soup` enabled, open an unread conversation from the mobile
+list and return to the list: all notifications on top-level messages should be seen,
including mentions and reactions older than the global feed's loaded page.
Replies and mentions inside threads remain unread. Channel-view unread badges
only represent top-level messages and mentions; unread replies and reactions do
@@ -1169,8 +1157,9 @@ and admins when team settings are available. People keeps search and the compact
`Add participants` opens a bottom sheet; Bots has its own full-height list and an
`Invite bot` sheet. Bots uses the same search toolbar and plain rows as People;
`Search bots` filters existing bots by name, handle, or description, with compact
-`New bot` and `Invite bot` actions beside it. The fallback AI composer and New
-button are hidden throughout this page and return when leaving it. Both sheets use the standard mobile keyboard-aware layout and
+`New bot` and `Invite bot` actions beside it. The fallback New button is hidden
+throughout this page and returns when leaving it. Channel views have no floating
+AI composer. Both sheets use the standard mobile keyboard-aware layout and
close after a successful add. Check switching tabs, closing/reopening both sheets,
and scrolling a long participant list above the bottom dock, with and without the
keyboard open. An invite-bot request from the channel menu opens the Bots tab and
diff --git a/docs/agent-guide/documents.md b/docs/agent-guide/documents.md
index b79b8cfa8a..d986d87ee2 100644
--- a/docs/agent-guide/documents.md
+++ b/docs/agent-guide/documents.md
@@ -2479,8 +2479,9 @@ trash button. Deleting a comment's first message deletes the whole discussion
the confirmation reads `Delete comment`, the replies under it go too, and an
anchored comment's highlight clears from the document. Deleting a reply removes
only that reply. On mobile, the new-comment composer is docked above the navigation bar,
-replacing Ask AI and New when commenting is available in documents and tasks.
-When the comment composer is unavailable, the default Ask AI row appears instead.
+replacing New when commenting is available in documents and tasks.
+When the comment composer is unavailable, New remains available; these views
+have no floating Ask AI input.
Tap `Leave a comment...`
to expand the channel-style input; use Send comment to submit (Enter inserts a
newline on mobile). Submitting clears and unfocuses the mobile input, returning
diff --git a/docs/agent-guide/home.md b/docs/agent-guide/home.md
index 03e40fd0b4..1861641cd1 100644
--- a/docs/agent-guide/home.md
+++ b/docs/agent-guide/home.md
@@ -185,7 +185,7 @@ an older reminder stays in its older section after the event's metadata syncs;
opening its details should show the expected occurrence. A newer reminder or your
own later activity can move the row forward, but a calendar sync alone should not.
-On mobile, the dock and search scope use the bell icon and **Notifications**
+On mobile, the dock uses the bell icon and **Notifications**
label; Home is desktop-only. Notifications has no merged own-activity feed or
chat starting pane. Opening a row navigates to its entity. On iOS, rows fade
underneath the filters and status bar using the shared top edge gradient.
@@ -213,7 +213,8 @@ longer notifies the thread. Settings → notifications lists them under `AI`.
## Home — `/app/component/home`
Greeting, example prompt buttons (`Draft a document`, `Draft an email`,
-`Search & research`), and the ubiquitous `Ask AI` composer. Finishing onboarding
+`Search & research`), and the desktop `Ask AI` composer. Mobile Home keeps its
+New action without a floating AI input. Finishing onboarding
without a deep link lands here. The retired Getting Started page's old
`/app/getting-started` and `/app/component/getting-started` links also open Home.
diff --git a/docs/agent-guide/navigation.md b/docs/agent-guide/navigation.md
index 63ff97630f..3b54e81ff6 100644
--- a/docs/agent-guide/navigation.md
+++ b/docs/agent-guide/navigation.md
@@ -203,8 +203,8 @@ and breadcrumb nesting remain in the path. Home, Email, Tasks, Channels, and
Customers store the selected tab under `sN.home.tab`, `sN.mail.tab`,
`sN.tasks.tab`, `sN.channels.tab`, and `sN.crm.tab`. Customers uses `people`,
`pipeline:<uuid>`, `list:<uuid>`, or `hidden`. Companies is the default and
-omits the key. Channels also stores the phone list selection as
-`sN.channels.mobileTab`. Omitted tab keys mean each view's default.
+omits the key. Omitted tab keys mean each view's default. Mobile Channels always opens its
+Recent conversation feed and ignores legacy mobile-tab selections.
Changing tabs updates the URL, and browser Back and Forward restore the
selection independently in each pane. Inline detail links preserve these keys.
Desktop panes expose Close when available and omit split-history back/forward
@@ -546,12 +546,12 @@ The inline `/app/debug/create-menu-demo` keeps all three layouts for comparison
without creating data. Mobile continues to use its create sheet.
On mobile, the bottom dock fits fixed-width buttons in this order: Notifications,
-Calendar, Email, Channels, Files, Agents, Tasks, Calls, and CRM (when enabled). Calendar appears in the
-dock and search scope pills only when the calendar UI flag is enabled.
+Calendar, Email, Channels, Agents, Files, Tasks, Calls, and CRM (when enabled). Calendar appears in the
+dock only when the calendar UI flag is enabled. Search has its own entity categories.
Resizing the screen moves views between the dock
and More views, which always includes Settings and lists the overflow views in
reverse order. More and the separate bottom-right Search button always retain
-their space. Search opens the search input and scope pills.
+their space. Search opens the persistent Search… input and entity category pills (see [Search](search.md)).
Once every view fits, the navigation island stops growing; Search stays aligned
to the right edge.
Scheduling is a drawer-only destination in **More views** when the
@@ -595,12 +595,16 @@ sheet on mobile, with broad, screen-scaled corners and an even 8px outer inset;
home-indicator clearance is inside the glass. The mobile full menu is a scrollable
list of available create actions ordered by recent usage, with a Close create menu
button and no search field. Desktop retains search and keyboard controls. Other views
-show **+ New** for that full menu. The AI composer narrows beside this
-button; on Agents it fills the row with no duplicate create action. The row
+show **+ New** for that full menu. Only Agents has the floating AI composer,
+which fills the row with no duplicate create action. Other views keep their
+right-aligned New button without an AI input. The row
hides during search, when a page supplies its own reply or compose controls, or
when an editable field outside Ask AI is focused on a touch device. The AI draft
is preserved when the row returns.
The New button also hides while the software keyboard is open.
+After closing mobile search with the keyboard open or leaving a focused editor,
+verify that the current view’s New action returns once the keyboard closes.
+Removing the focused editor must not leave the action hidden on subsequent views.
Mobile drawers and floating dialogs share this inset glass sheet treatment,
including filters, task/event creation, file/message actions, sharing, and model
@@ -791,7 +795,7 @@ A failed local refresh keeps displayed rows and their continuation available for
another pagination attempt. Missing items may still be uncached, but should appear
after hydration without retyping, including channels outside the first cached
page. Cmd+K's
-local search excludes unsupported email hits before limiting entity results;
+local search explicitly excludes email hits before limiting entity results;
email mentions keep their separate search-service path. Text search loads only
its requested cache buckets, so a document-only category must not read the email
catalog. Switching categories still discovers previously unopened buckets;
diff --git a/docs/agent-guide/notifications.md b/docs/agent-guide/notifications.md
index 54f9b55d04..049083918b 100644
--- a/docs/agent-guide/notifications.md
+++ b/docs/agent-guide/notifications.md
@@ -59,9 +59,9 @@ input without a surface background, rounded frame, or shadow. Attachment and
formatting actions stay available.
On mobile, open documents and tasks put their new-comment composer in the
accessory dock above navigation, using the channel input's compact pill and
-expanded surface. Ask AI and New are hidden in these open views only when the
-comment composer is available; their list screens keep those controls. Users
-without comment permission have no comment composer, so Ask AI remains visible.
+expanded surface. New is hidden when the comment composer is available; list
+screens keep New. Users without comment permission have no comment composer.
+The floating Ask AI input appears only on the AI/Agents view.
On touch devices, an email thread's floating action bar has Previous email and
Next email arrows beside the larger Mark done checkmark. The arrows follow the
diff --git a/docs/agent-guide/search.md b/docs/agent-guide/search.md
index d75e644adf..5531fba2d3 100644
--- a/docs/agent-guide/search.md
+++ b/docs/agent-guide/search.md
@@ -6,16 +6,53 @@ Sidebar `Search` button → `/app/search` with a focused query box. Results
(including a `Featured Results` group) filter live as you type; no Enter needed. `Ctrl+K` is
usually faster for jump-to-entity; `/` opens workspace search when no editor is focused.
-On touch devices, the dock's **Search** button opens a persistent input. Type a
-query, then switch the scope pills between **All**, **Notifications**, **Email**,
-**Channels**, **Files**, **Agents**, and **Tasks**. The selected view searches with
-the same query and retains its tab/facet restrictions. Channels searches
-conversation names. Clearing the
-input restores the current scope's unsearched list; **Close search** ends the
-session. Switching scopes keeps the input mounted and focused. The dock query is
-not saved into the view's desktop search or restored entry state. Home and
-top-level Tasks use this same overlay; embedded project task lists retain their
-own search while the dock is open.
+On touch devices, the dock's **Search** button opens a persistent **Search…**
+input in `/app/search`. It starts in **All** with Command Menu-style Quick Access
+name search. Categories are **All, Email, Agents, Files, Tasks, Projects, Channels,
+People**; Projects respects its feature flag. Categories filter entities directly,
+independently of view tabs, mailbox selections, and saved facets. Commands and
+creation shortcuts are excluded. Empty queries show recent entities.
+
+For a nonempty query, **Search full text for “…”** appears above name results,
+including when there are no matches. It retains the query and category and stays
+in full-text mode while editing or switching categories. Clearing the query,
+including whitespace-only input, returns to name search and retains the category.
+Projects is always name-only: selecting it returns to name results and omits the
+full-text action. People full-text search uses the existing channel-content scope.
+Name mode makes no full-text requests; explicit full-text mode retains the search
+service's validation for short queries.
+
+Email Quick Access searches cached thread subjects, sender display names, and
+sender addresses, including the thread's earlier senders after someone else
+replies. It returns one row per thread and never matches only a snippet or body.
+Coverage is existing cached mail: automatic backfill includes 90 days of signal
+mail and 30 days of noise mail, plus other cached threads. Use full-text search
+for uncached older mail. No new backfill or server name-search fallback is added.
+Email name results require the existing normalized GraphQL cache rollout. When
+verifying a local iOS build without PostHog configuration, enable that path with
+the build-time `VITE_ENABLE_GRAPHQL_SOUP=true` override; see the
+[cache guide](../../apps/web/docs/graphql-normalized-cache-plan.md#cached-email-quick-access).
+
+Category/mode changes keep the same input mounted and focused. Enter dismisses
+the keyboard without ending search. Opening a result or **Close search** ends the
+session; reopening starts in All/name mode. Mobile query/category state is transient
+and does not modify desktop search state. The dock search row has no Ask AI button.
+If a person’s conversation lookup fails, search stays open with its query and
+category intact so the result can be retried.
+
+Verify sender-only `teo` matches with one- and two-character prefixes, then switch
+categories with the keyboard up. Select full text, edit the query, open a snippet,
+reopen search, and check All/name reset. Clear with whitespace and check category
+retention; select Projects from full-text mode and confirm it shows name results.
+Repeat opening with a large recent list: results are virtualized, so transferring
+keyboard focus should not mount every cached row. Scroll through later results
+to the end to verify additional pages load automatically without a fixed Load more bar.
+Search starts below the status-bar safe area without reserving space for the
+hidden view/filter header; check both name and full-text results with the keyboard
+open and dismissed. Same-query full-text refreshes keep the current rows visible
+so paging does not collapse the list and reset its scroll position. Appending a
+page preserves existing row elements, including when the service rematerializes
+their data; scroll through multiple pages to check that the position stays put.
Search snippets carry their target in the destination pane's route search. Channel
messages open Chat at the message (replies open their parent thread); email snippets
diff --git a/docs/agent-guide/tasks.md b/docs/agent-guide/tasks.md
index 22398f9aee..731fa0e121 100644
--- a/docs/agent-guide/tasks.md
+++ b/docs/agent-guide/tasks.md
@@ -44,8 +44,8 @@ per-group `Load More` rows. A failed continuation stops automatic requests and s
The sidebar has no Tags section: filter by tag from the `Tags` group of the `Filter` menu,
and switching tabs clears it like any other filter. On mobile, the tabs
are pills and the leading sliders button opens one drawer containing Sort, Group, and
-Filters (including Tags). The mobile bottom dock has the Ask AI input, a separate **+ Task**
-button, and Search.
+Filters (including Tags). The mobile bottom dock has **+ Task** and Search,
+with no floating Ask AI input.
Mobile does not show the separate layout, sort, group, and filter toolbar.
Use the compact sliders drawer for task-list controls; project task lists use the
same drawer. Mobile supports List only. Opening a Board or Gantt link, or