Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
Seanaye/feat/batch gql previews and remove waterfall (#6259)
Sean Ayee897a69edf92
diff --git a/apps/web/src/lib/core/component/DocumentPreview.tsx b/apps/web/src/lib/core/component/DocumentPreview.tsxindex 67bb06ca5e..ce23ab58d5 100644--- a/apps/web/src/lib/core/component/DocumentPreview.tsx+++ b/apps/web/src/lib/core/component/DocumentPreview.tsx@@ -515,7 +515,8 @@ export function DocumentPreviewContent(props: DocumentPreviewContentProps) {return { id: props.documentInfo.id, type, messageId };};- const { item, ItemEntityIcon } = useItemPreviewData(itemPreviewEntity);+ const { item, ItemEntityIcon, documentProperties } =+ useItemPreviewData(itemPreviewEntity);// Resolve the caller-provided type against the item's actual subType so// that e.g. a markdown doc with `subType: { type: 'task' }` routes to the@@ -882,6 +883,7 @@ export function DocumentPreviewContent(props: DocumentPreviewContentProps) {<TaskPropertiesPreviewtaskId={props.documentInfo.id}taskName={accessibleItem().name}+ previewProperties={documentProperties()}/></Suspense></Show>diff --git a/apps/web/src/lib/core/component/InlineTaskProperties.tsx b/apps/web/src/lib/core/component/InlineTaskProperties.tsxnew file mode 100644index 0000000000..e6a7ccbf4c--- /dev/null+++ b/apps/web/src/lib/core/component/InlineTaskProperties.tsx@@ -0,0 +1,85 @@+import { UserIcon } from '@core/component/UserIcon';+import { PropertyValueIcon } from '@property/component/propertyValue/PropertyValueIcon';+import { SYSTEM_PROPERTY_IDS } from '@property/constants';+import { useEntityProperties } from '@property/hooks';+import type { Property } from '@property/types';+import type { PreviewDocumentProperties } from '@queries/preview/types';+import { type Accessor, createMemo, Show } from 'solid-js';++/** Inline task badges use their preview's edges; only REST previews fetch separately. */+export function InlineTaskProperties(props: {+ taskId: string;+ previewProperties?: PreviewDocumentProperties;+}) {+ return (+ <Show+ when={props.previewProperties}+ fallback={<RestInlineTaskProperties taskId={props.taskId} />}+ >+ {(metadata) => (+ <InlineTaskPropertyValues+ properties={() => metadata().properties ?? []}+ />+ )}+ </Show>+ );+}++function RestInlineTaskProperties(props: { taskId: string }) {+ const { properties, isLoading } = useEntityProperties(+ props.taskId,+ 'TASK',+ false+ );+ return (+ <InlineTaskPropertyValues+ properties={() => (isLoading() ? [] : properties())}+ />+ );+}++function InlineTaskPropertyValues(props: { properties: Accessor<Property[]> }) {+ const statusOptionId = createMemo(() => {+ const p = props+ .properties()+ .find((p) => p.propertyDefinitionId === SYSTEM_PROPERTY_IDS.STATUS);+ return p?.valueType === 'SELECT_STRING' ? p.value?.[0] : undefined;+ });+ const priorityOptionId = createMemo(() => {+ const p = props+ .properties()+ .find((p) => p.propertyDefinitionId === SYSTEM_PROPERTY_IDS.PRIORITY);+ return p?.valueType === 'SELECT_STRING' ? p.value?.[0] : undefined;+ });+ const firstAssigneeId = createMemo(() => {+ const p = props+ .properties()+ .find((p) => p.propertyDefinitionId === SYSTEM_PROPERTY_IDS.ASSIGNEES);+ return p?.valueType === 'ENTITY' ? p.value?.[0]?.entity_id : undefined;+ });+ return (+ <Show when={statusOptionId() || priorityOptionId() || firstAssigneeId()}>+ <span class="inline-flex items-center gap-1 mx-1 align-middle relative top-[-0.05em]">+ <Show when={statusOptionId()}>+ {(id) => <PropertyValueIcon optionId={id()} class="size-3" />}+ </Show>+ <Show when={priorityOptionId()}>+ {(id) => <PropertyValueIcon optionId={id()} class="size-3" />}+ </Show>+ <Show when={firstAssigneeId()}>+ {(id) => (+ <span class="inline-flex ml-0.5 size-3.25">+ <UserIcon+ id={id()}+ isDeleted={false}+ size="fill"+ suppressClick+ showTooltip={false}+ />+ </span>+ )}+ </Show>+ </span>+ </Show>+ );+}diff --git a/apps/web/src/lib/core/component/ItemPreview.tsx b/apps/web/src/lib/core/component/ItemPreview.tsxindex 96c3563c9b..44e823b7a1 100644--- a/apps/web/src/lib/core/component/ItemPreview.tsx+++ b/apps/web/src/lib/core/component/ItemPreview.tsx@@ -38,7 +38,7 @@ import {import { HoverCard } from './HoverCard';export function useItemPreviewData(entity: Accessor<ItemEntity>) {- const [item] = useItemPreview(entity);+ const [item, { documentProperties }] = useItemPreview(entity);const bulkWakeupEnabled = useFeatureFlag(BULK_DOCUMENT_WAKEUP_FEATURE_FLAG);createEffect(() => {@@ -109,6 +109,7 @@ export function useItemPreviewData(entity: Accessor<ItemEntity>) {return {item,+ documentProperties,name,onPreviewClick,targetType,diff --git a/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/DocumentCard.tsx b/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/DocumentCard.tsxindex 6af29dc44f..7b83344714 100644--- a/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/DocumentCard.tsx+++ b/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/DocumentCard.tsx@@ -93,10 +93,12 @@ function DocumentCardInner(props: DocumentCardDecoratorProps) {const previewType = () =>blockNameToItemType(verifyBlockName(props.blockName));- const { item, ItemEntityIcon } = useItemPreviewData(() => ({- id: props.documentId,- type: previewType(),- }));+ const { item, ItemEntityIcon, documentProperties } = useItemPreviewData(+ () => ({+ id: props.documentId,+ type: previewType(),+ })+ );const channelMessageId = () => {if (previewType() !== 'channel') return undefined;@@ -447,7 +449,10 @@ function DocumentCardInner(props: DocumentCardDecoratorProps) {<DocumentInfo item={item()} blockName={props.blockName} /><Show when={props.blockName === 'task'}><Suspense fallback={<div class="w-full bg-active h-4 m-2" />}>- <TaskPropertiesPreview taskId={item().id} />+ <TaskPropertiesPreview+ taskId={item().id}+ previewProperties={documentProperties()}+ /></Suspense></Show><Show when={previewComponent()}>diff --git a/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/DocumentMention.tsx b/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/DocumentMention.tsxindex 5f55c7b758..9974ad2896 100644--- a/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/DocumentMention.tsx+++ b/apps/web/src/lib/core/component/LexicalMarkdown/component/decorator/DocumentMention.tsx@@ -14,8 +14,8 @@ import {} from '@core/component/DocumentPreview';import { EntityIcon } from '@core/component/EntityIcon';import { HoverCard } from '@core/component/HoverCard';+import { InlineTaskProperties } from '@core/component/InlineTaskProperties';import { useItemPreviewData } from '@core/component/ItemPreview';-import { UserIcon } from '@core/component/UserIcon';import {itemToBlockName,resolveBlockAlias,@@ -35,16 +35,12 @@ import {} from '@macro-inc/lexical-core';import EyeSlashDuo from '@phosphor/eye-slash.svg';import TrashSimple from '@phosphor/trash-simple.svg';-import { PropertyValueIcon } from '@property/component/propertyValue/PropertyValueIcon';-import { SYSTEM_PROPERTY_IDS } from '@property/constants';-import { useEntityProperties } from '@property/hooks';import {type ItemEntity,isAccessiblePreviewItem,isCalendarEventPreviewItem,type PreviewCalendarEventAccess,type PreviewItemNoAccess,- useItemPreview,} from '@queries/preview';import { useSystemSkillsQuery } from '@queries/storage/system-skills';import { blockNameToItemType } from '@service-storage/client';@@ -170,68 +166,8 @@ export function calendarMentionTimeLabel(return startDate ? formatDate(startDate) : undefined;}-function InlineTaskProperties(props: { taskId: string }) {- const { properties, isLoading } = useEntityProperties(- props.taskId,- 'TASK',- false- );-- const statusOptionId = createMemo(() => {- const p = properties().find(- (p) => p.propertyDefinitionId === SYSTEM_PROPERTY_IDS.STATUS- );- return p?.valueType === 'SELECT_STRING' ? p.value?.[0] : undefined;- });-- const priorityOptionId = createMemo(() => {- const p = properties().find(- (p) => p.propertyDefinitionId === SYSTEM_PROPERTY_IDS.PRIORITY- );- return p?.valueType === 'SELECT_STRING' ? p.value?.[0] : undefined;- });-- const firstAssigneeId = createMemo(() => {- const p = properties().find(- (p) => p.propertyDefinitionId === SYSTEM_PROPERTY_IDS.ASSIGNEES- );- return p?.valueType === 'ENTITY' ? p.value?.[0]?.entity_id : undefined;- });-- const hasAny = createMemo(- () =>- !isLoading() &&- !!(statusOptionId() || priorityOptionId() || firstAssigneeId())- );-- return (- <Show when={hasAny()}>- <span class="inline-flex items-center gap-1 mx-1 align-middle relative top-[-0.05em]">- <Show when={statusOptionId()}>- {(id) => <PropertyValueIcon optionId={id()} class="size-3" />}- </Show>- <Show when={priorityOptionId()}>- {(id) => <PropertyValueIcon optionId={id()} class="size-3" />}- </Show>- <Show when={firstAssigneeId()}>- {(id) => (- <span class="inline-flex ml-0.5 size-3.25">- <UserIcon- id={id()}- isDeleted={false}- size="fill"- suppressClick- showTooltip={false}- />- </span>- )}- </Show>- </span>- </Show>- );-}-function InlinePreview(props: {+ previewData: ReturnType<typeof useItemPreviewData>;entity: ItemEntity;blockName: BlockName | BlockAlias;blockParams: Record<string, string>;@@ -241,7 +177,7 @@ function InlinePreview(props: {createdAt?: number;isRecentMention: () => boolean;}) {- const { item, ItemEntityIcon } = useItemPreviewData(() => props.entity);+ const { item, ItemEntityIcon, documentProperties } = props.previewData;const shouldShowFallback = createMemo(() => {return (@@ -407,7 +343,10 @@ function InlinePreview(props: {</span><Show when={props.blockName === 'task'}><Suspense>- <InlineTaskProperties taskId={accessibleItem().id} />+ <InlineTaskProperties+ taskId={accessibleItem().id}+ previewProperties={documentProperties()}+ /></Suspense></Show></span>@@ -439,6 +378,23 @@ export function DocumentMention(props: DocumentMentionDecoratorProps) {if (lexicalWrapper?.skipPreviewFetch) {return <DocumentMentionStatic {...props} />;}+ // Only skill mentions need to distinguish built-ins from stored documents.+ // Ordinary mentions must not wait for a once-per-session skills request.+ return (+ <Show+ when={props.blockName === 'skill'}+ fallback={+ <Suspense>+ <DocumentMentionInner {...props} />+ </Suspense>+ }+ >+ <SkillDocumentMention {...props} />+ </Show>+ );+}++function SkillDocumentMention(props: DocumentMentionDecoratorProps) {const systemSkills = useSystemSkillsQuery();return (<Switch>@@ -558,7 +514,8 @@ function DocumentMentionInner(props: DocumentMentionDecoratorProps) {return baseEntity;};- const [item] = useItemPreview(itemEntity);+ const previewData = useItemPreviewData(itemEntity);+ const { item } = previewData;const isSelectedAsNode = createMemo(() => {const sel = selection();@@ -699,6 +656,7 @@ function DocumentMentionInner(props: DocumentMentionDecoratorProps) {<Switch><Match when={item()}><InlinePreview+ previewData={previewData}entity={itemEntity()}blockName={verifyBlockName(props.blockName)}blockParams={props.blockParams || {}}diff --git a/apps/web/src/lib/core/component/TaskPreviewProperties.test.tsx b/apps/web/src/lib/core/component/TaskPreviewProperties.test.tsxnew file mode 100644index 0000000000..4e5d408679--- /dev/null+++ b/apps/web/src/lib/core/component/TaskPreviewProperties.test.tsx@@ -0,0 +1,122 @@+import type { Property } from '@property/types';+import type { PreviewDocumentProperties } from '@queries/preview/types';+import { render } from '@solidjs/testing-library';+import { createSignal } from 'solid-js';+import { beforeEach, describe, expect, it, vi } from 'vitest';++const propertiesQuery = vi.hoisted(() => vi.fn());+const accessQuery = vi.hoisted(() => vi.fn());+vi.mock('@property/hooks', () => ({ useEntityProperties: propertiesQuery }));+vi.mock('@queries/storage/document-metadata', () => ({+ useDocumentAccessLevelQuery: accessQuery,+}));+vi.mock('@queries/properties/entity', () => ({+ useBulkSaveEntityPropertiesMutation: () => ({ mutateAsync: vi.fn() }),+}));+vi.mock('@core/component/UserIcon', () => ({+ UserIcon: () => <span>avatar</span>,+}));+vi.mock('@property/component/propertyValue/PropertyValueIcon', () => ({+ PropertyValueIcon: (props: { optionId: string }) => (+ <span>{props.optionId}</span>+ ),+}));+vi.mock('@block-md/component/InlinePropertyValue', () => ({+ InlinePropertyValue: (props: { property: Property }) => (+ <span>{props.property.displayName}</span>+ ),+}));+vi.mock('@core/component/SharePermissions', () => ({+ getPermissions: (value: unknown) => value,+ hasPermissions: () => false,+ Permissions: { CAN_EDIT: 1 },+}));+vi.mock('@property/component/modal', () => ({ Modals: () => null }));+vi.mock('@property/context/PropertiesContext', () => ({+ PropertiesProvider: (props: {+ canEdit: boolean;+ children: import('solid-js').JSX.Element;+ }) => (+ <section data-can-edit={String(props.canEdit)}>{props.children}</section>+ ),+}));++import { SYSTEM_PROPERTY_IDS } from '@property/constants';+import { InlineTaskProperties } from './InlineTaskProperties';+import { TaskPropertiesPreview } from './TaskPropertiesPreview';++beforeEach(() => {+ vi.clearAllMocks();+ propertiesQuery.mockReturnValue({+ properties: () => [],+ isLoading: () => false,+ refetch: vi.fn(),+ });+ accessQuery.mockReturnValue({ isSuccess: true, data: 'view' });+});++const status = {+ propertyId: 'assignment',+ propertyDefinitionId: SYSTEM_PROPERTY_IDS.STATUS,+ displayName: 'Status',+ valueType: 'SELECT_STRING',+ value: ['status-1'],+ isMultiSelect: false,+} as Property;++describe('task preview data ownership', () => {+ it('never mounts child queries for pending or loaded GraphQL edges', () => {+ const [metadata, setMetadata] = createSignal<PreviewDocumentProperties>({+ properties: undefined,+ canEdit: false,+ refetch: vi.fn(async () => {}),+ });+ const view = render(() => (+ <>+ <InlineTaskProperties taskId="task" previewProperties={metadata()} />+ <TaskPropertiesPreview taskId="task" previewProperties={metadata()} />+ </>+ ));+ try {+ expect(propertiesQuery).not.toHaveBeenCalled();+ expect(accessQuery).not.toHaveBeenCalled();+ setMetadata((old) => ({ ...old, properties: [], canEdit: false }));+ expect(view.container.textContent).toBe('');+ setMetadata((old) => ({ ...old, properties: [status], canEdit: true }));+ expect(view.container.textContent).toContain('status-1');+ expect(view.container.querySelector('section')?.dataset.canEdit).toBe(+ 'true'+ );+ // A live property write and permission change flow through without a refetch.+ setMetadata((old) => ({+ ...old,+ properties: [{ ...status, value: ['status-2'] } as Property],+ canEdit: false,+ }));+ expect(view.container.textContent).toContain('status-2');+ expect(view.container.textContent).not.toContain('status-1');+ expect(view.container.querySelector('section')?.dataset.canEdit).toBe(+ 'false'+ );+ expect(propertiesQuery).not.toHaveBeenCalled();+ expect(accessQuery).not.toHaveBeenCalled();+ } finally {+ view.unmount();+ }+ });++ it('retains standalone/REST fallback queries', () => {+ const view = render(() => (+ <>+ <InlineTaskProperties taskId="task" />+ <TaskPropertiesPreview taskId="task" />+ </>+ ));+ try {+ expect(propertiesQuery).toHaveBeenCalledTimes(2);+ expect(accessQuery).toHaveBeenCalledTimes(1);+ } finally {+ view.unmount();+ }+ });+});diff --git a/apps/web/src/lib/core/component/TaskPropertiesPreview.tsx b/apps/web/src/lib/core/component/TaskPropertiesPreview.tsxindex 89edf92ab0..a5ec33b5c3 100644--- a/apps/web/src/lib/core/component/TaskPropertiesPreview.tsx+++ b/apps/web/src/lib/core/component/TaskPropertiesPreview.tsx@@ -12,9 +12,10 @@ import {} from '@property/context/PropertiesContext';import { useEntityProperties } from '@property/hooks';import type { Property, PropertyApiValues } from '@property/types';+import type { PreviewDocumentProperties } from '@queries/preview/types';import { useBulkSaveEntityPropertiesMutation } from '@queries/properties/entity';import { useDocumentAccessLevelQuery } from '@queries/storage/document-metadata';-import { createMemo, For, Show } from 'solid-js';+import { type Accessor, createMemo, For, Show } from 'solid-js';const TASK_PREVIEW_PROPERTIES = [SYSTEM_PROPERTY_IDS.STATUS,@@ -22,32 +23,73 @@ const TASK_PREVIEW_PROPERTIES = [SYSTEM_PROPERTY_IDS.ASSIGNEES,];-/** Status, priority, and assignee editors for a task preview card. */-export function TaskPropertiesPreview(props: {- taskId: string;- taskName?: string;-}) {+type TaskPreviewProps = { taskId: string; taskName?: string };++/** Status, priority, and assignee editors; GraphQL previews own their data. */+export function TaskPropertiesPreview(+ props: TaskPreviewProps & {+ previewProperties?: PreviewDocumentProperties;+ }+) {+ return (+ <Show+ when={props.previewProperties}+ fallback={<RestTaskPropertiesPreview {...props} />}+ >+ {(metadata) => (+ <TaskPropertiesPreviewContent+ taskId={props.taskId}+ taskName={props.taskName}+ properties={() => metadata().properties ?? []}+ isLoading={metadata().properties === undefined}+ canEdit={metadata().canEdit}+ refetch={() => void metadata().refetch()}+ />+ )}+ </Show>+ );+}++function RestTaskPropertiesPreview(props: TaskPreviewProps) {const { properties, isLoading, refetch } = useEntityProperties(props.taskId,'TASK',false);const accessQuery = useDocumentAccessLevelQuery(() => props.taskId);+ return (+ <TaskPropertiesPreviewContent+ {...props}+ properties={() => (isLoading() ? [] : properties())}+ isLoading={isLoading()}+ canEdit={+ accessQuery.isSuccess &&+ hasPermissions(getPermissions(accessQuery.data), Permissions.CAN_EDIT)+ }+ refetch={refetch}+ />+ );+}++function TaskPropertiesPreviewContent(+ props: TaskPreviewProps & {+ properties: Accessor<Property[]>;+ isLoading: boolean;+ canEdit: boolean;+ refetch: () => void;+ }+) {const saveMutation = useBulkSaveEntityPropertiesMutation();const previewProperties = createMemo(() =>TASK_PREVIEW_PROPERTIES.flatMap((id) => {- const property = properties().find(- (candidate) => candidate.propertyDefinitionId === id- );+ const property = props+ .properties()+ .find((candidate) => candidate.propertyDefinitionId === id);return property ? [property] : [];}));- const canEdit = () =>- accessQuery.isSuccess &&- hasPermissions(getPermissions(accessQuery.data), Permissions.CAN_EDIT);-const saveOne = (property: Property, apiValues: PropertyApiValues) =>saveMutation.mutateAsync({properties: [@@ -62,16 +104,16 @@ export function TaskPropertiesPreview(props: {};return (- <Show when={!isLoading() && previewProperties().length > 0}>+ <Show when={!props.isLoading && previewProperties().length > 0}><PropertiesProviderentityId={props.taskId}entityType="TASK"- canEdit={canEdit()}+ canEdit={props.canEdit}documentName={props.taskName}properties={previewProperties}- onRefresh={refetch}- onPropertyAdded={refetch}- onPropertyDeleted={refetch}+ onRefresh={props.refetch}+ onPropertyAdded={props.refetch}+ onPropertyDeleted={props.refetch}saveHandler={saveHandler}><div class="px-2 pb-2 flex flex-row flex-wrap gap-1 text-xs justify-start">diff --git a/apps/web/src/lib/queries/preview/graphql.ts b/apps/web/src/lib/queries/preview/graphql.tsindex af948b5061..a135033e91 100644--- a/apps/web/src/lib/queries/preview/graphql.ts+++ b/apps/web/src/lib/queries/preview/graphql.ts@@ -4,10 +4,12 @@ import {selectRecords,} from '@app/lib/graphql-cache';import { createUrqlQuery } from '@app/lib/urql-solid';+import { soupPropertyToProperty } from '@entity/extractors-property/property-helpers';import type { EntityType } from '@service-properties/generated/schemas/entityType';import { DEFAULT_ITEM_TYPE, type ItemType } from '@service-storage/client';import type { FileType } from '@service-storage/generated/schemas/fileType';import {+ type ItemPreviewDetailsFieldsFragment,ItemPreviewDocument,type ItemPreviewFieldsFragment,ItemPreviewFieldsFragmentDoc,@@ -17,21 +19,30 @@ import {type ItemPreviewNameCacheWriteQuery,type ItemPreviewQuery,type ItemPreviewQueryVariables,+ ItemPreviewsDocument,+ type ItemPreviewsQuery,} from '@service-storage/graphql/generated/graphql';import {getGraphqlSoupCacheHost,getGraphqlSoupClient,+ mapGraphqlProperties,} from '@service-storage/graphql-soup';-import { stringifyDocument } from '@urql/core';+import { type Client, stringifyDocument } from '@urql/core';import type { Accessor } from 'solid-js';import {createComputed,createEffect,+ createMemo,+ createRoot,createSignal,onCleanup,} from 'solid-js';-import { buildGraphqlEntitySoupInput } from '../soup/graphql/entity-input';+import {+ buildGraphqlEntitiesSoupInput,+ buildGraphqlEntitySoupInput,+} from '../soup/graphql/entity-input';import { registerActiveGraphqlPreviewQuery } from './active-queries';+import { createLivePreviewBatcher } from './live-batcher';import type { ItemEntity, PreviewItem } from './types';const previewSelection = selectRecords(ItemPreviewFieldsFragmentDoc);@@ -141,7 +152,7 @@ function documentSubType(}export function graphqlRecordToPreview(- record: ItemPreviewFieldsFragment+ record: ItemPreviewFieldsFragment | ItemPreviewDetailsFieldsFragment): PreviewItem | undefined {switch (record.__typename) {case 'GraphqlSoupDocument':@@ -154,6 +165,31 @@ export function graphqlRecordToPreview(name: record.displayName ?? record.documentName,fileType: (record.fileType ?? undefined) as FileType | undefined,subType: documentSubType(record.subType),+ ...('properties' in record+ ? {+ documentMetadata: {+ properties: mapGraphqlProperties(record.properties).flatMap(+ (property) => {+ try {+ const mapped = soupPropertyToProperty(property);+ return mapped.isMetadata ? [] : [mapped];+ } catch (error) {+ console.warn(+ 'Skipping unsupported preview property',+ error+ );+ return [];+ }+ }+ ),+ canEdit:+ record.viewerPermission?.__typename ===+ 'GraphqlAccessLevelPermission' &&+ (record.viewerPermission.accessLevel === 'EDIT' ||+ record.viewerPermission.accessLevel === 'OWNER'),+ },+ }+ : {}),};case 'GraphqlSoupChat':return {@@ -238,10 +274,13 @@ export function graphqlRecordToPreview(}function previewFromQuery(- data: ItemPreviewQuery,+ data: ItemPreviewQuery | ItemPreviewsQuery,item: ItemEntity): PreviewItem | undefined {- const record = data.user.soup.items.find(({ id }) => id === item.id);+ const recordKey = normalizedRecordKey(item);+ const record = data.user.soup.items.find(+ (record) => `${record.__typename}:${record.id}` === recordKey+ );return record ? graphqlRecordToPreview(record) : undefined;}@@ -448,114 +487,179 @@ export type GraphqlItemPreviewQuery = {refetch: () => Promise<void>;};-/** Creates a live urql-solid preview query and seeds it from keyed records. */-export function createGraphqlItemPreviewQuery(- item: Accessor<ItemEntity>,- enabled: Accessor<boolean>-): GraphqlItemPreviewQuery {- const [cached, setCached] = createSignal<- { recordKey: string; preview: PreviewItem | undefined } | undefined- >();- let cacheRequest = 0;-- createEffect(() => {- const current = item();- const recordKey = normalizedRecordKey(current);- if (!enabled() || !recordKey) {- cacheRequest += 1;- setCached(undefined);- return;- }- const request = ++cacheRequest;- void readCachedGraphqlItemPreview(current)- .then((preview) => {- if (request === cacheRequest) setCached({ recordKey, preview });- })- .catch(() => undefined);- });-- const result = createUrqlQuery<- ItemPreviewQuery,- ItemPreviewQueryVariables,- PreviewItem | undefined- >(() => {- const current = item();- const input = itemPreviewInput(current);- const client = getGraphqlSoupClient();- if (!enabled() || !input) {- return { query: ItemPreviewDocument, client, enabled: false };- }- return {- query: ItemPreviewDocument,+function startPreviewBatch(+ client: Client,+ items: ItemEntity[],+ includeProperties: boolean+) {+ return createRoot((dispose) => {+ const input = buildGraphqlEntitiesSoupInput(+ items.map((item) => ({+ entityId: item.id,+ entityType: graphqlEntityType(+ normalizedItemType(item) as GraphqlPreviewType+ ),+ }))+ )!;+ const result = createUrqlQuery<+ ItemPreviewQuery | ItemPreviewsQuery,+ ItemPreviewQueryVariables+ >(() => ({client,+ query: includeProperties ? ItemPreviewsDocument : ItemPreviewDocument,variables: { input },requestPolicy: 'cache-and-network',keepPreviousData: false,- select: (data) => previewFromQuery(data, current),+ }));+ const [cached, setCached] = createSignal(new Map<string, PreviewItem>());+ const host = getGraphqlSoupCacheHost();+ let disposed = false;+ onCleanup(() => {+ disposed = true;+ });+ if (host) {+ // One keyed read for the entire batch. Minimal cached titles can render+ // while the richer selection loads, without spawning child queries.+ void readRecordsByKeys(+ host,+ previewSelection,+ items.map((item) => normalizedRecordKey(item)!)+ )+ .then(({ records }) => {+ if (disposed) return;+ const previews = new Map<string, PreviewItem>();+ for (const { recordKey, record } of records) {+ const preview = graphqlRecordToPreview(record);+ if (preview) previews.set(recordKey, preview);+ }+ setCached(previews);+ })+ .catch(() => undefined);+ }+ let refreshing: Promise<void> | undefined;+ const refresh = () => {+ // A save can settle after its hover card/mention has unmounted. Never+ // resurrect an orphan query when that callback requests a refresh.+ if (disposed) return Promise.resolve();+ // Re-register cache dependencies as well as forcing a network refresh,+ // so a failed/offline refresh does not disconnect later optimistic edits.+ refreshing ??= result+ .refetch({ requestPolicy: 'cache-and-network' })+ .then(() => undefined)+ .finally(() => {+ refreshing = undefined;+ });+ return refreshing;};+ return { value: { result, cached, refresh }, dispose };});+}++type PreviewBatch = ReturnType<typeof startPreviewBatch>['value'];+const previewBatchers = new WeakMap<+ Client,+ Map<+ boolean,+ ReturnType<typeof createLivePreviewBatcher<ItemEntity, PreviewBatch>>+ >+>();++function previewBatcher(client: Client, includeProperties: boolean) {+ let selections = previewBatchers.get(client);+ if (!selections) {+ selections = new Map();+ previewBatchers.set(client, selections);+ }+ let batcher = selections.get(includeProperties);+ if (!batcher) {+ batcher = createLivePreviewBatcher<ItemEntity, PreviewBatch>({+ start: (items) => startPreviewBatch(client, items, includeProperties),+ });+ selections.set(includeProperties, batcher);+ }+ return batcher;+}- const unregister = registerActiveGraphqlPreviewQuery({- itemId: () => item().id,- isEnabled: () => result.isEnabled,- refresh: async () => {- await result.refetch({ requestPolicy: 'network-only' });- },+/** Joins a shared live preview batch; rich document edges load in the first request. */+export function createGraphqlItemPreviewQuery(+ item: Accessor<ItemEntity>,+ enabled: Accessor<boolean>,+ includeProperties = true+): GraphqlItemPreviewQuery {+ const [group, setGroup] = createSignal<PreviewBatch>();+ let ready: Promise<PreviewBatch | undefined> = Promise.resolve(undefined);+ const isEnabled = () => enabled() && isGraphqlPreviewItem(item());+ createComputed(() => {+ const current = item();+ setGroup(undefined);+ ready = Promise.resolve(undefined);+ if (!isEnabled()) return;+ const subscription = previewBatcher(+ getGraphqlSoupClient(),+ includeProperties+ ).acquire(normalizedRecordKey(current)!, current, setGroup);+ ready = subscription.ready;+ onCleanup(subscription.dispose);+ });+ const result = () => group()?.result;+ const livePreview = createMemo(() => {+ const data = result()?.data;+ return data ? previewFromQuery(data, item()) : undefined;});- onCleanup(unregister);+ const cachedPreview = () =>+ group()?.cached().get(normalizedRecordKey(item())!);+ const data = () => livePreview() ?? cachedPreview();+ const refetch = async () => {+ await (await ready)?.refresh();+ };+ onCleanup(+ registerActiveGraphqlPreviewQuery({+ itemId: () => item().id,+ isEnabled,+ refresh: refetch,+ })+ );createEffect(() => {- if (result.data !== undefined && !result.stale && !result.isFetching) {+ if (+ livePreview() !== undefined &&+ !result()?.stale &&+ !result()?.isFetching+ )clearCreationGrace(item());- }});-- const cachedPreview = () => {- const current = cached();- if (!current || current.recordKey !== normalizedRecordKey(item())) {- return undefined;- }- return current.preview;+ const currentNeedsFallback = () => {+ // GraphQL can return useful records alongside an error for a sibling.+ // A partial batch failure must not send successful previews back to REST.+ if (livePreview() !== undefined) return false;+ const query = result();+ return (+ (query?.isError &&+ (query.error?.networkError == null || cachedPreview() === undefined)) ||+ (query?.isFetched &&+ !query.isFetching &&+ livePreview() === undefined &&+ cachedPreview() === undefined &&+ !hasCreationGrace(item()))+ );};- const data = () => result.data ?? cachedPreview();- const currentNeedsFallback = () =>- (result.isError &&- (result.error?.networkError == null || cachedPreview() === undefined)) ||- (result.isFetched &&- !result.isFetching &&- result.data === undefined &&- cachedPreview() === undefined &&- !hasCreationGrace(item()));const [fallbackRecordKey, setFallbackRecordKey] = createSignal<string>();-createComputed(() => {const recordKey = normalizedRecordKey(item());- if (- !enabled() ||- !recordKey ||- result.data !== undefined ||- cachedPreview() !== undefined- ) {+ if (!isEnabled() || !recordKey || data() !== undefined) {setFallbackRecordKey(undefined);- return;- }- if (currentNeedsFallback()) setFallbackRecordKey(recordKey);+ } else if (currentNeedsFallback()) setFallbackRecordKey(recordKey);});-- const shouldFallback = () =>- isGraphqlPreviewItem(item()) &&- (fallbackRecordKey() === normalizedRecordKey(item()) ||- currentNeedsFallback());-return {data,- error: () => result.error,- isLoading: () => result.isLoading,- isFetching: () => result.isFetching,- isEnabled: () => result.isEnabled,- shouldFallback,- refetch: async () => {- await result.refetch({ requestPolicy: 'network-only' });- },+ error: () => result()?.error ?? null,+ isLoading: () => isEnabled() && (result()?.isLoading ?? true),+ isFetching: () => isEnabled() && (result()?.isFetching ?? true),+ isEnabled,+ shouldFallback: () =>+ isEnabled() &&+ (fallbackRecordKey() === normalizedRecordKey(item()) ||+ !!currentNeedsFallback()),+ refetch,};}diff --git a/apps/web/src/lib/queries/preview/live-batcher.ts b/apps/web/src/lib/queries/preview/live-batcher.tsnew file mode 100644index 0000000000..b898d372fd--- /dev/null+++ b/apps/web/src/lib/queries/preview/live-batcher.ts@@ -0,0 +1,88 @@+type Entry<Item, Batch> = {+ item: Item;+ listeners: Set<(batch: Batch) => void>;+ ready: Promise<Batch | undefined>;+ resolve: (batch: Batch | undefined) => void;+ group?: { entries: Entry<Item, Batch>[]; value: Batch; dispose: () => void };+};++/**+ * Coalesces mounted lookups into stable, reference-counted live query batches.+ * A batch's variables never grow/change after dispatch: sibling mounts cannot+ * cancel a request or clear another preview. The last consumer owns teardown.+ * Create one batcher per client/session and query selection, not per component.+ */+export function createLivePreviewBatcher<Item, Batch>(options: {+ start: (items: Item[]) => { value: Batch; dispose: () => void };+ wait?: number;+ maxSize?: number;+}) {+ const entries = new Map<string, Entry<Item, Batch>>();+ const pending = new Map<string, Entry<Item, Batch>>();+ const maxSize = options.maxSize ?? 50;+ let timer: ReturnType<typeof setTimeout> | undefined;++ const flush = () => {+ clearTimeout(timer);+ timer = undefined;+ while (pending.size) {+ const next = [...pending.entries()].slice(0, maxSize);+ for (const [key] of next) pending.delete(key);+ const members = next.map(([, entry]) => entry);+ const started = options.start(members.map((entry) => entry.item));+ const group = { ...started, entries: members };+ // Assign every member before notifying: a synchronous consumer cleanup+ // must not dispose a group whose other listeners haven't been notified.+ for (const entry of members) entry.group = group;+ for (const entry of members) {+ entry.resolve(group.value);+ for (const listener of entry.listeners) listener(group.value);+ }+ }+ };++ return {+ acquire(key: string, item: Item, listener: (batch: Batch) => void) {+ let entry = entries.get(key);+ if (!entry) {+ let resolve!: Entry<Item, Batch>['resolve'];+ const ready = new Promise<Batch | undefined>((done) => {+ resolve = done;+ });+ entry = { item, listeners: new Set(), ready, resolve };+ entries.set(key, entry);+ pending.set(key, entry);+ }+ const current = entry;+ current.listeners.add(listener);+ if (current.group) listener(current.group.value);+ else if (pending.size >= maxSize) flush();+ else timer ??= setTimeout(flush, options.wait ?? 30);++ let disposed = false;+ return {+ ready: current.ready,+ dispose() {+ if (disposed) return;+ disposed = true;+ current.listeners.delete(listener);+ if (current.listeners.size) return;+ entries.delete(key);+ pending.delete(key);+ current.resolve(undefined);+ if (!pending.size) {+ clearTimeout(timer);+ timer = undefined;+ }+ const group = current.group;+ if (+ group &&+ group.entries.every((entry) => entry.listeners.size === 0)+ ) {+ group.dispose();+ }+ },+ };+ },+ };+}diff --git a/apps/web/src/lib/queries/preview/preview.ts b/apps/web/src/lib/queries/preview/preview.tsindex d9efd1bafc..07e66aa831 100644--- a/apps/web/src/lib/queries/preview/preview.ts+++ b/apps/web/src/lib/queries/preview/preview.ts@@ -33,6 +33,7 @@ import {type AccessiblePreviewItem,type ItemEntity,isAccessiblePreviewItem,+ type PreviewDocumentProperties,type PreviewItem,} from './types';@@ -113,11 +114,16 @@ export async function getItemPreview(function useItemPreviewQuery(item: Accessor<ItemEntity>,- restStaleTime = PREVIEW_STALE_TIME+ restStaleTime = PREVIEW_STALE_TIME,+ includeProperties = true) {const graphqlSoupFlag = useFeatureFlag(enableGraphqlSoup);const graphqlRequested = () => graphqlSoupFlag().enabled;- const graphqlQuery = createGraphqlItemPreviewQuery(item, graphqlRequested);+ const graphqlQuery = createGraphqlItemPreviewQuery(+ item,+ graphqlRequested,+ includeProperties+ );const usesGraphql = () =>graphqlRequested() &&isGraphqlPreviewItem(item()) &&@@ -139,6 +145,10 @@ function useItemPreviewQuery(isSuccess: () =>usesGraphql() ? graphqlQuery.data() !== undefined : restQuery.isSuccess,usesGraphql,+ refetch: async () => {+ if (usesGraphql()) await graphqlQuery.refetch();+ else await restQuery.refetch();+ },};}@@ -187,7 +197,27 @@ export function useItemPreview(item: Accessor<ItemEntity>) {return dataWithName;});- return [preview] as const;+ // Presence selects the GraphQL-owned metadata path even when a lightweight+ // cached title arrives before properties. Pending edges must never mount a+ // fallback child query, or the waterfall returns on a warm cache.+ const documentProperties = (): PreviewDocumentProperties | undefined => {+ if (+ !previewQuery.usesGraphql() ||+ (item().type ?? DEFAULT_ITEM_TYPE) !== 'document'+ )+ return undefined;+ const current = preview();+ const metadata =+ isAccessiblePreviewItem(current) && current.type === 'document'+ ? current.documentMetadata+ : undefined;+ return {+ properties: metadata?.properties,+ canEdit: metadata?.canEdit ?? false,+ refetch: previewQuery.refetch,+ };+ };+ return [preview, { documentProperties }] as const;}/** Stale time for live display names (e.g. open-document titles), which@@ -205,7 +235,7 @@ const RAW_NAME_STALE_TIME = 5 * 60 * 1000;export function useItemRawName(item: Accessor<{ id: string; type?: ItemType }>): Accessor<string | undefined> {- const query = useItemPreviewQuery(item, RAW_NAME_STALE_TIME);+ const query = useItemPreviewQuery(item, RAW_NAME_STALE_TIME, false);return () => {const data = query.data();diff --git a/apps/web/src/lib/queries/preview/tests/graphql.test.ts b/apps/web/src/lib/queries/preview/tests/graphql.test.tsindex 99656e43d7..709f1fed95 100644--- a/apps/web/src/lib/queries/preview/tests/graphql.test.ts+++ b/apps/web/src/lib/queries/preview/tests/graphql.test.ts@@ -1,9 +1,13 @@import type { CacheHost, ReadRecordsByKeysArgs } from '@graphql-cache/index';import { INITIAL_CACHE_REVISION } from '@graphql-cache/index';-import type { ItemPreviewFieldsFragment } from '@service-storage/graphql/generated/graphql';+import type {+ ItemPreviewDetailsFieldsFragment,+ ItemPreviewFieldsFragment,+ ItemPreviewQuery,+} from '@service-storage/graphql/generated/graphql';import { createRoot } from 'solid-js';import { createStore } from 'solid-js/store';-import { describe, expect, it, vi } from 'vitest';+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';const createUrqlQueryMock = vi.hoisted(() => vi.fn());const getGraphqlSoupCacheHostMock = vi.hoisted(() => vi.fn());@@ -16,6 +20,7 @@ vi.mock('@app/lib/urql-solid', () => ({vi.mock('@service-storage/graphql-soup', () => ({getGraphqlSoupCacheHost: getGraphqlSoupCacheHostMock,getGraphqlSoupClient: getGraphqlSoupClientMock,+ mapGraphqlProperties: (properties: unknown[]) => properties,}));import {@@ -28,7 +33,14 @@ import {setGraphqlPreviewName,setGraphqlPreviewOnCreate,} from '../graphql';-import type { PreviewItem } from '../types';++beforeEach(() => {+ vi.useFakeTimers();+ getGraphqlSoupClientMock.mockReturnValue({});+ getGraphqlSoupCacheHostMock.mockReturnValue(undefined);+ createUrqlQueryMock.mockClear();+});+afterEach(() => vi.useRealTimers());function cacheHost(read: (@@ -69,6 +81,155 @@ describe('GraphQL item previews', () => {});});+ it('carries loaded-empty properties and permission on the preview', () => {+ const record = {+ __typename: 'GraphqlSoupDocument',+ id: 'task-1',+ displayName: 'Task',+ documentName: 'Task',+ fileType: 'md',+ subType: null,+ properties: [],+ viewerPermission: {+ __typename: 'GraphqlAccessLevelPermission',+ accessLevel: 'EDIT',+ },+ } satisfies ItemPreviewDetailsFieldsFragment;+ expect(graphqlRecordToPreview(record)).toMatchObject({+ documentMetadata: { properties: [], canEdit: true },+ });+ expect(+ graphqlRecordToPreview({ ...record, viewerPermission: null })+ ).toMatchObject({ documentMetadata: { canEdit: false } });+ });++ it('shares a live rich query, keyed cache read, and refresh for multiple previews', async () => {+ const read = vi.fn(async () => []);+ getGraphqlSoupCacheHostMock.mockReturnValue(cacheHost(read));+ const [result, setResult] = createStore({+ data: undefined as ItemPreviewQuery | undefined,+ error: null,+ isError: false,+ isFetched: false,+ isFetching: true,+ isLoading: true,+ isEnabled: true,+ stale: false,+ refetch: vi.fn(async () => undefined),+ });+ createUrqlQueryMock.mockReturnValue(result);+ const { queries, dispose } = createRoot((dispose) => ({+ queries: ['one', 'two', 'one'].map((id) =>+ createGraphqlItemPreviewQuery(+ () => ({ id, type: 'document' }),+ () => true+ )+ ),+ dispose,+ }));+ try {+ expect(queries.every((q) => q.isLoading())).toBe(true);+ await vi.advanceTimersByTimeAsync(30);+ expect(createUrqlQueryMock).toHaveBeenCalledTimes(1);+ expect(read).toHaveBeenCalledTimes(1);+ const options = createUrqlQueryMock.mock.calls[0][0]();+ expect(options.query.definitions[0].name.value).toBe('ItemPreviews');+ expect(options.variables.input.initial.limit).toBe(2);+ const records = ['one', 'two'].map((id) => ({+ __typename: 'GraphqlSoupDocument' as const,+ id,+ displayName: id,+ documentName: id,+ fileType: 'md',+ subType: null,+ }));+ setResult({+ data: { user: { id: 'viewer', soup: { items: records } } },+ isFetched: true,+ isFetching: false,+ isLoading: false,+ });+ expect(queries.map((q) => q.data())).toMatchObject([+ { name: 'one' },+ { name: 'two' },+ { name: 'one' },+ ]);+ // Simulate a pushed normalized-cache update: all consumers remain live.+ setResult('data', 'user', 'soup', 'items', 0, 'displayName', 'Renamed');+ expect(queries[0].data()).toMatchObject({ name: 'Renamed' });+ expect(queries[2].data()).toMatchObject({ name: 'Renamed' });+ await Promise.all(queries.map((q) => q.refetch()));+ expect(result.refetch).toHaveBeenCalledTimes(1);+ } finally {+ dispose();+ }+ });++ it('isolates missing records and partial errors within a heterogeneous batch', async () => {+ const [result] = createStore({+ data: {+ user: {+ id: 'viewer',+ soup: {+ items: [+ {+ __typename: 'GraphqlSoupProject' as const,+ id: 'same',+ displayName: 'Project',+ projectName: 'Project',+ },+ {+ __typename: 'GraphqlSoupDocument' as const,+ id: 'same',+ displayName: 'Document',+ documentName: 'Document',+ fileType: 'md',+ subType: null,+ },+ ],+ },+ },+ },+ error: new Error('A sibling resolver failed'),+ isError: true,+ isFetched: true,+ isFetching: false,+ isLoading: false,+ isEnabled: true,+ stale: false,+ refetch: vi.fn(async () => undefined),+ });+ createUrqlQueryMock.mockReturnValue(result);+ const { queries, dispose } = createRoot((dispose) => ({+ queries: [+ createGraphqlItemPreviewQuery(+ () => ({ id: 'same', type: 'document' }),+ () => true+ ),+ createGraphqlItemPreviewQuery(+ () => ({ id: 'same', type: 'project' }),+ () => true+ ),+ createGraphqlItemPreviewQuery(+ () => ({ id: 'missing', type: 'document' }),+ () => true+ ),+ ],+ dispose,+ }));+ await vi.advanceTimersByTimeAsync(30);+ expect(queries[0].data()).toMatchObject({ name: 'Document' });+ expect(queries[1].data()).toMatchObject({ name: 'Project' });+ expect(queries.map((query) => query.shouldFallback())).toEqual([+ false,+ false,+ true,+ ]);+ dispose();+ await queries[0].refetch();+ expect(result.refetch).not.toHaveBeenCalled();+ });+it('uses a cached viewer-relative direct-message name when available', () => {const record = {__typename: 'GraphqlSoupChannel',@@ -176,6 +337,7 @@ describe('GraphQL item previews', () => {() => true);+ vi.advanceTimersByTime(30);expect(query.data()).toBeUndefined();expect(query.shouldFallback()).toBe(false);dispose();@@ -192,7 +354,7 @@ describe('GraphQL item previews', () => {it('keeps an established REST fallback selected during GraphQL refresh', () => {getGraphqlSoupCacheHostMock.mockReturnValue(undefined);const [result, setResult] = createStore({- data: undefined as PreviewItem | undefined,+ data: undefined as ItemPreviewQuery | undefined,error: null,isError: false,isFetched: true,@@ -210,17 +372,27 @@ describe('GraphQL item previews', () => {() => true);+ vi.advanceTimersByTime(30);expect(query.shouldFallback()).toBe(true);setResult({ isFetching: true });expect(query.shouldFallback()).toBe(true);setResult({data: {- id: 'missing-doc',- type: 'document',- access: 'access',- loading: false,- rawName: 'Now available',- name: 'Now available',+ user: {+ id: 'user-1',+ soup: {+ items: [+ {+ __typename: 'GraphqlSoupDocument',+ id: 'missing-doc',+ displayName: 'Now available',+ documentName: 'Now available',+ fileType: 'md',+ subType: null,+ },+ ],+ },+ },},isFetched: true,isFetching: false,@@ -241,7 +413,7 @@ describe('GraphQL item previews', () => {);getGraphqlSoupCacheHostMock.mockReturnValue(cacheHost(() => read));const [result] = createStore({- data: undefined as PreviewItem | undefined,+ data: undefined as ItemPreviewQuery | undefined,error: { networkError: new Error('offline') },isError: true,isFetched: true,@@ -262,6 +434,7 @@ describe('GraphQL item previews', () => {}));try {+ await vi.advanceTimersByTimeAsync(30);expect(query.shouldFallback()).toBe(true);finishRead([{diff --git a/apps/web/src/lib/queries/preview/tests/live-batcher.test.ts b/apps/web/src/lib/queries/preview/tests/live-batcher.test.tsnew file mode 100644index 0000000000..ab75fa578c--- /dev/null+++ b/apps/web/src/lib/queries/preview/tests/live-batcher.test.ts@@ -0,0 +1,90 @@+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';+import { createLivePreviewBatcher } from '../live-batcher';++beforeEach(() => vi.useFakeTimers());+afterEach(() => vi.useRealTimers());++function setup(maxSize = 50) {+ const disposers: ReturnType<typeof vi.fn>[] = [];+ const start = vi.fn((items: string[]) => {+ const dispose = vi.fn();+ disposers.push(dispose);+ return { value: items, dispose };+ });+ return {+ start,+ disposers,+ batcher: createLivePreviewBatcher({ start, maxSize }),+ };+}++describe('live preview batching', () => {+ it('coalesces a render burst, deduplicates IDs, and retains one live owner', async () => {+ const { batcher, start, disposers } = setup();+ const first = vi.fn();+ const second = vi.fn();+ const a = batcher.acquire('a', 'a', first);+ const a2 = batcher.acquire('a', 'a', second);+ const b = batcher.acquire('b', 'b', vi.fn());+ expect(start).not.toHaveBeenCalled();+ vi.advanceTimersByTime(30);+ expect(start).toHaveBeenCalledExactlyOnceWith(['a', 'b']);+ expect(first).toHaveBeenCalledExactlyOnceWith(['a', 'b']);+ expect(second).toHaveBeenCalledExactlyOnceWith(['a', 'b']);+ expect(await a.ready).toBe(await a2.ready);+ a.dispose();+ a2.dispose();+ expect(disposers[0]).not.toHaveBeenCalled();+ b.dispose();+ expect(disposers[0]).toHaveBeenCalledTimes(1);+ b.dispose();+ expect(disposers[0]).toHaveBeenCalledTimes(1);+ });++ it('caps batches and does not restart older batches for late mounts', () => {+ const { batcher, start } = setup(2);+ const subscriptions = ['a', 'b', 'c', 'd', 'e'].map((id) =>+ batcher.acquire(id, id, vi.fn())+ );+ expect(start.mock.calls.map(([ids]) => ids)).toEqual([+ ['a', 'b'],+ ['c', 'd'],+ ]);+ vi.advanceTimersByTime(30);+ expect(start.mock.calls.map(([ids]) => ids)).toEqual([+ ['a', 'b'],+ ['c', 'd'],+ ['e'],+ ]);+ const again = vi.fn();+ const duplicate = batcher.acquire('a', 'a', again);+ expect(again).toHaveBeenCalledWith(['a', 'b']);+ expect(start).toHaveBeenCalledTimes(3);+ duplicate.dispose();+ subscriptions.forEach((s) => s.dispose());+ });++ it('drops unmounted pending items and resolves their waiters without sending', async () => {+ const { batcher, start } = setup();+ const listener = vi.fn();+ const a = batcher.acquire('a', 'a', listener);+ a.dispose();+ expect(await a.ready).toBeUndefined();+ vi.runAllTimers();+ expect(start).not.toHaveBeenCalled();+ expect(listener).not.toHaveBeenCalled();+ });++ it('keeps query selections and sessions isolated', () => {+ const one = setup();+ const two = setup();+ const a = one.batcher.acquire('same', 'same', vi.fn());+ const b = two.batcher.acquire('same', 'same', vi.fn());+ vi.advanceTimersByTime(30);+ expect(one.start).toHaveBeenCalledTimes(1);+ expect(two.start).toHaveBeenCalledTimes(1);+ a.dispose();+ expect(two.disposers[0]).not.toHaveBeenCalled();+ b.dispose();+ });+});diff --git a/apps/web/src/lib/queries/preview/tests/preview.test.ts b/apps/web/src/lib/queries/preview/tests/preview.test.tsindex b83d76df41..72424b0578 100644--- a/apps/web/src/lib/queries/preview/tests/preview.test.ts+++ b/apps/web/src/lib/queries/preview/tests/preview.test.ts@@ -1,5 +1,6 @@-import { createRoot } from 'solid-js';+import { createRoot, createSignal } from 'solid-js';import { beforeEach, describe, expect, it, vi } from 'vitest';+import type { PreviewItem } from '../types';const useQueryMock = vi.hoisted(() => vi.fn());const useQueryOptions = vi.hoisted(() => [] as Array<() => unknown>);@@ -62,6 +63,7 @@ const {setPreviewName,setPreviewOnCreate,useItemPreview,+ useItemRawName,} = await import('../preview');const preview = {@@ -112,6 +114,50 @@ describe('preview transport facade', () => {});});+ it('keeps pending GraphQL metadata distinct from REST and loaded-empty properties', () => {+ createRoot((dispose) => {+ const [data, setData] = createSignal<PreviewItem>(preview);+ const [fallback, setFallback] = createSignal(false);+ createGraphqlItemPreviewQueryMock.mockReturnValue({+ data,+ shouldFallback: fallback,+ refetch: vi.fn(),+ });+ const [, controls] = useItemPreview(() => ({+ id: 'doc-1',+ type: 'document',+ }));+ expect(controls.documentProperties()).toMatchObject({+ properties: undefined,+ canEdit: false,+ });+ setData({+ ...preview,+ documentMetadata: { properties: [], canEdit: true },+ });+ expect(controls.documentProperties()).toMatchObject({+ properties: [],+ canEdit: true,+ });+ setFallback(true);+ expect(controls.documentProperties()).toBeUndefined();+ dispose();+ });+ });++ it('keeps raw-name reads on the lightweight selection', () => {+ createRoot((dispose) => {+ const name = useItemRawName(() => ({ id: 'doc-1', type: 'document' }));+ expect(name()).toBe('Document');+ expect(createGraphqlItemPreviewQueryMock).toHaveBeenCalledWith(+ expect.any(Function),+ expect.any(Function),+ false+ );+ dispose();+ });+ });+it('derives the pending preview from urql-solid loading state', () => {createGraphqlItemPreviewQueryMock.mockReturnValue({data: () => undefined,diff --git a/apps/web/src/lib/queries/preview/types.ts b/apps/web/src/lib/queries/preview/types.tsindex 1251899c42..f758d8b8bb 100644--- a/apps/web/src/lib/queries/preview/types.ts+++ b/apps/web/src/lib/queries/preview/types.ts@@ -1,5 +1,6 @@import type { DateValue } from '@core/util/date';import type { SubType } from '@entity';+import type { Property } from '@property/types';import type { ChannelType } from '@service-cognition/generated/schemas/channelType';import type {ApiChannelContextMessage,@@ -47,6 +48,19 @@ type PreviewProjectAccess = {channelType?: never;} & BasePreviewItem<'project'>;+/** Properties and viewer permission loaded by the same operation as a preview. */+export type PreviewDocumentMetadata = {+ properties: Property[];+ canEdit: boolean;+};++/** Undefined properties mean the rich preview is pending, not a REST fallback. */+export type PreviewDocumentProperties = {+ properties: Property[] | undefined;+ canEdit: boolean;+ refetch: () => Promise<void>;+};+type PreviewDocumentAccess = {access: Extract<AccessType, 'access'>;loading: false;@@ -55,6 +69,8 @@ type PreviewDocumentAccess = {fileType?: FileType;subType?: SubType;channelType?: never;+ /** Absent on lightweight cache seeds and REST previews. */+ documentMetadata?: PreviewDocumentMetadata;} & BasePreviewItem<'document'>;export type MessageContext = ApiChannelContextMessage;diff --git a/apps/web/src/lib/queries/soup/graphql/entity-input.test.ts b/apps/web/src/lib/queries/soup/graphql/entity-input.test.tsnew file mode 100644index 0000000000..be0f939595--- /dev/null+++ b/apps/web/src/lib/queries/soup/graphql/entity-input.test.ts@@ -0,0 +1,62 @@+import { describe, expect, it } from 'vitest';+import { buildGraphqlEntitiesSoupInput } from './entity-input';++const nil = '00000000-0000-0000-0000-000000000000';++describe('batched entity Soup inputs', () => {+ it('targets exact IDs across types and excludes unrelated branches', () => {+ const input = buildGraphqlEntitiesSoupInput([+ { entityType: 'DOCUMENT', entityId: 'doc-2' },+ { entityType: 'TASK', entityId: 'doc-1' },+ { entityType: 'DOCUMENT', entityId: 'doc-1' },+ { entityType: 'CHANNEL', entityId: 'channel-1' },+ { entityType: 'THREAD', entityId: 'email-1' },+ ]);+ expect(input).toMatchObject({+ initial: {+ limit: 4,+ expand: true,+ emailView: 'ALL',+ filters: {+ documentFilter: {+ or: {+ left: { literal: { id: 'doc-1' } },+ right: { literal: { id: 'doc-2' } },+ },+ },+ channelFilter: { literal: { channelId: 'channel-1' } },+ emailFilter: { tree: { literal: { threadId: 'email-1' } } },+ calendarEventFilter: { literal: { id: nil } },+ channelThreadFilter: { literal: { threadId: nil } },+ chatFilter: { literal: { chatId: nil } },+ projectFilter: { literal: { projectIdSelf: nil } },+ callFilter: { literal: { callId: nil } },+ crmCompanyFilter: { literal: { id: nil } },+ foreignEntityFilter: { literal: { id: nil } },+ },+ },+ });+ });++ it('has deterministic variables and balanced trees for a full batch', () => {+ const entities = Array.from({ length: 50 }, (_, i) => ({+ entityType: 'DOCUMENT' as const,+ entityId: `doc-${i}`,+ }));+ const input = buildGraphqlEntitiesSoupInput(entities);+ expect(input).toEqual(buildGraphqlEntitiesSoupInput(entities.toReversed()));+ const depth = (value: unknown): number =>+ !value || typeof value !== 'object'+ ? 0+ : 1 + Math.max(0, ...Object.values(value).map(depth));+ expect(depth(input)).toBeLessThan(64);+ expect(input?.initial?.limit).toBe(50);+ });++ it('does not issue empty or unsupported lookups', () => {+ expect(buildGraphqlEntitiesSoupInput([])).toBeUndefined();+ expect(+ buildGraphqlEntitiesSoupInput([{ entityType: 'USER', entityId: 'user' }])+ ).toBeUndefined();+ });+});diff --git a/apps/web/src/lib/queries/soup/graphql/entity-input.ts b/apps/web/src/lib/queries/soup/graphql/entity-input.tsindex 6a31085e03..3082883e00 100644--- a/apps/web/src/lib/queries/soup/graphql/entity-input.ts+++ b/apps/web/src/lib/queries/soup/graphql/entity-input.ts@@ -7,6 +7,75 @@ import { match } from 'ts-pattern';const NIL_ENTITY_ID = '00000000-0000-0000-0000-000000000000';+type OrExpr<T> = T | { or: { left: OrExpr<T>; right: OrExpr<T> } };++// Balanced trees stay below the GraphQL filter ingress depth limit even for+// a full preview batch. A left-folded OR tree does not.+function or<T>(items: T[]): OrExpr<T> | undefined {+ if (items.length < 2) return items[0];+ const middle = Math.floor(items.length / 2);+ return {+ or: { left: or(items.slice(0, middle))!, right: or(items.slice(middle))! },+ };+}++/** Exact multi-entity lookup, with every non-target entity branch excluded. */+export function buildGraphqlEntitiesSoupInput(+ entities: ReadonlyArray<{ entityType: EntityType; entityId: string }>+): SoupInput | undefined {+ const ids = (...types: EntityType[]) =>+ [+ ...new Set(+ entities+ .filter((e) => types.includes(e.entityType))+ .map((e) => e.entityId)+ ),+ ].sort();+ const input = buildGraphqlEntitySoupInput('DOCUMENT', NIL_ENTITY_ID);+ if (!input || !('initial' in input) || !input.initial) return undefined;+ const base = input.initial.filters!;+ const filters: GraphqlEntityFilterAst = {+ ...base,+ documentFilter:+ or(ids('DOCUMENT', 'TASK').map((id) => ({ literal: { id } }))) ??+ base.documentFilter,+ projectFilter:+ or(+ ids('PROJECT').map((projectIdSelf) => ({ literal: { projectIdSelf } }))+ ) ?? base.projectFilter,+ chatFilter:+ or(ids('CHAT').map((chatId) => ({ literal: { chatId } }))) ??+ base.chatFilter,+ emailFilter: {+ tree:+ or(ids('THREAD').map((threadId) => ({ literal: { threadId } }))) ??+ base.emailFilter!.tree,+ },+ channelFilter:+ or(ids('CHANNEL').map((channelId) => ({ literal: { channelId } }))) ??+ base.channelFilter,+ callFilter:+ or(ids('CALL_RECORD').map((callId) => ({ literal: { callId } }))) ??+ base.callFilter,+ crmCompanyFilter:+ or(ids('COMPANY').map((id) => ({ literal: { id } }))) ??+ base.crmCompanyFilter,+ calendarEventFilter:+ or(ids('CALENDAR_EVENT').map((id) => ({ literal: { id } }))) ??+ base.calendarEventFilter,+ };+ const count = new Set(+ entities+ .filter((e) => e.entityType !== 'USER')+ .map(+ (e) =>+ `${e.entityType === 'TASK' ? 'DOCUMENT' : e.entityType}:${e.entityId}`+ )+ ).size;+ if (!count) return undefined;+ return { initial: { ...input.initial, limit: count, filters } };+}+/** Builds an exact single-entity Soup query with every non-target branch excluded. */export function buildGraphqlEntitySoupInput(entityType: EntityType,diff --git a/apps/web/src/lib/service-clients/service-storage/graphql/generated/graphql.ts b/apps/web/src/lib/service-clients/service-storage/graphql/generated/graphql.tsindex 5bcb2ffd12..f3379cb065 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@@ -5683,6 +5683,95 @@ export type ItemPreviewQuery = { user: { id: string, soup: { items: Array<| { __typename: 'GraphqlSoupReminder', id: string, displayName: string | null }> } } };+export type ItemPreviewsQueryVariables = Exact<{+ input: SoupInput;+}>;+++export type ItemPreviewsQuery = { user: { id: string, soup: { items: Array<+ | { __typename: 'GraphqlSoupCalendarEvent', id: string, displayName: string | null }+ | { __typename: 'GraphqlSoupCall', customName: string | null, channelName: string | null, id: string, displayName: string | null }+ | { __typename: 'GraphqlSoupChannel', channelType: string, id: string, displayName: string | null, channelDisplayName: string | null }+ | { __typename: 'GraphqlSoupChannelMessage', id: string, displayName: string | null }+ | { __typename: 'GraphqlSoupChat', id: string, displayName: string | null, chatName: string }+ | { __typename: 'GraphqlSoupCrmCompany', domains: Array<string>, id: string, displayName: string | null, companyName: string | null }+ | { __typename: 'GraphqlSoupDocument', fileType: string | null, id: string, displayName: string | null, documentName: string, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }>, viewerPermission:+ | { __typename: 'GraphqlAccessLevelPermission', accessLevel: GraphqlEntityAccessLevel }+ | { __typename: 'GraphqlChannelRolePermission' }+ | { __typename: 'GraphqlChannelViewOnlyPermission' }+ | { __typename: 'GraphqlTeamRolePermission' }+ | null, subType:+ | { __typename: 'GraphqlSkillSubType' }+ | { __typename: 'GraphqlSnippetSubType' }+ | { __typename: 'GraphqlTaskSubType', isCompleted: boolean }+ | null }+ | { __typename: 'GraphqlSoupEmailThread', senderEmail: string | null, senderName: string | null, id: string, displayName: string | null, emailName: string | null }+ | { __typename: 'GraphqlSoupForeignEntity', id: string, displayName: string | null }+ | { __typename: 'GraphqlSoupProject', id: string, displayName: string | null, projectName: string }+ | { __typename: 'GraphqlSoupReminder', id: string, displayName: string | null }+ > } } };++type ItemPreviewDetailsFields_GraphqlSoupCalendarEvent_Fragment = { __typename: 'GraphqlSoupCalendarEvent', id: string, displayName: string | null };++type ItemPreviewDetailsFields_GraphqlSoupCall_Fragment = { __typename: 'GraphqlSoupCall', customName: string | null, channelName: string | null, id: string, displayName: string | null };++type ItemPreviewDetailsFields_GraphqlSoupChannel_Fragment = { __typename: 'GraphqlSoupChannel', channelType: string, id: string, displayName: string | null, channelDisplayName: string | null };++type ItemPreviewDetailsFields_GraphqlSoupChannelMessage_Fragment = { __typename: 'GraphqlSoupChannelMessage', id: string, displayName: string | null };++type ItemPreviewDetailsFields_GraphqlSoupChat_Fragment = { __typename: 'GraphqlSoupChat', id: string, displayName: string | null, chatName: string };++type ItemPreviewDetailsFields_GraphqlSoupCrmCompany_Fragment = { __typename: 'GraphqlSoupCrmCompany', domains: Array<string>, id: string, displayName: string | null, companyName: string | null };++type ItemPreviewDetailsFields_GraphqlSoupDocument_Fragment = { __typename: 'GraphqlSoupDocument', fileType: string | null, id: string, displayName: string | null, documentName: string, properties: Array<{ id: string, propertyDefinitionId: string, displayName: string, dataType: GraphqlPropertyDataType, isMultiSelect: boolean, specificEntityType: GraphqlPropertyEntityType | null, isSystem: boolean, isMetadata: boolean, value:+ | { __typename: 'GraphqlBooleanPropertyValue', boolValue: boolean }+ | { __typename: 'GraphqlDatePropertyValue', dateValue: string }+ | { __typename: 'GraphqlEntityReferencePropertyValue', references: Array<{ entityId: string, entityType: GraphqlPropertyEntityType, specificMessageId: string | null }> }+ | { __typename: 'GraphqlLinkPropertyValue', urls: Array<string> }+ | { __typename: 'GraphqlNumberPropertyValue', numberValue: number }+ | { __typename: 'GraphqlSelectOptionPropertyValue', optionIds: Array<string> }+ | { __typename: 'GraphqlStringPropertyValue', stringValue: string }+ | null }>, viewerPermission:+ | { __typename: 'GraphqlAccessLevelPermission', accessLevel: GraphqlEntityAccessLevel }+ | { __typename: 'GraphqlChannelRolePermission' }+ | { __typename: 'GraphqlChannelViewOnlyPermission' }+ | { __typename: 'GraphqlTeamRolePermission' }+ | null, subType:+ | { __typename: 'GraphqlSkillSubType' }+ | { __typename: 'GraphqlSnippetSubType' }+ | { __typename: 'GraphqlTaskSubType', isCompleted: boolean }+ | null };++type ItemPreviewDetailsFields_GraphqlSoupEmailThread_Fragment = { __typename: 'GraphqlSoupEmailThread', senderEmail: string | null, senderName: string | null, id: string, displayName: string | null, emailName: string | null };++type ItemPreviewDetailsFields_GraphqlSoupForeignEntity_Fragment = { __typename: 'GraphqlSoupForeignEntity', id: string, displayName: string | null };++type ItemPreviewDetailsFields_GraphqlSoupProject_Fragment = { __typename: 'GraphqlSoupProject', id: string, displayName: string | null, projectName: string };++type ItemPreviewDetailsFields_GraphqlSoupReminder_Fragment = { __typename: 'GraphqlSoupReminder', id: string, displayName: string | null };++export type ItemPreviewDetailsFieldsFragment =+ | ItemPreviewDetailsFields_GraphqlSoupCalendarEvent_Fragment+ | ItemPreviewDetailsFields_GraphqlSoupCall_Fragment+ | ItemPreviewDetailsFields_GraphqlSoupChannel_Fragment+ | ItemPreviewDetailsFields_GraphqlSoupChannelMessage_Fragment+ | ItemPreviewDetailsFields_GraphqlSoupChat_Fragment+ | ItemPreviewDetailsFields_GraphqlSoupCrmCompany_Fragment+ | ItemPreviewDetailsFields_GraphqlSoupDocument_Fragment+ | ItemPreviewDetailsFields_GraphqlSoupEmailThread_Fragment+ | ItemPreviewDetailsFields_GraphqlSoupForeignEntity_Fragment+ | ItemPreviewDetailsFields_GraphqlSoupProject_Fragment+ | ItemPreviewDetailsFields_GraphqlSoupReminder_Fragment+;+type ItemPreviewFields_GraphqlSoupCalendarEvent_Fragment = { __typename: 'GraphqlSoupCalendarEvent', id: string, displayName: string | null };type ItemPreviewFields_GraphqlSoupCall_Fragment = { __typename: 'GraphqlSoupCall', customName: string | null, channelName: string | null, id: string, displayName: string | null };@@ -8475,6 +8564,7 @@ export const GraphqlChatQuickAccessNameFragmentDoc = {"kind":"Document","definitexport const GraphqlProjectQuickAccessNameFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"GraphqlProjectQuickAccessName"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupProject"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]} as unknown as DocumentNode<GraphqlProjectQuickAccessNameFragment, unknown>;export const GraphqlChannelQuickAccessFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"GraphqlChannelQuickAccessFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannel"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","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":"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":"participants"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"userId"}}]}}]}}]} as unknown as DocumentNode<GraphqlChannelQuickAccessFieldsFragment, unknown>;export const ItemPreviewFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ItemPreviewFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"fileType"}},{"kind":"Field","name":{"kind":"Name","value":"subType"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskSubType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isCompleted"}}]}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChat"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"chatName"},"name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupProject"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"projectName"},"name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEmailThread"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"emailName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"senderEmail"}},{"kind":"Field","name":{"kind":"Name","value":"senderName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannel"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelDisplayName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCall"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"customName"}},{"kind":"Field","name":{"kind":"Name","value":"channelName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCrmCompany"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"companyName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"domains"}}]}}]}}]} as unknown as DocumentNode<ItemPreviewFieldsFragment, unknown>;+export const ItemPreviewDetailsFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ItemPreviewDetailsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ItemPreviewFields"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewerPermission"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAccessLevelPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ItemPreviewFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"fileType"}},{"kind":"Field","name":{"kind":"Name","value":"subType"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskSubType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isCompleted"}}]}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChat"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"chatName"},"name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupProject"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"projectName"},"name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEmailThread"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"emailName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"senderEmail"}},{"kind":"Field","name":{"kind":"Name","value":"senderName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannel"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelDisplayName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCall"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"customName"}},{"kind":"Field","name":{"kind":"Name","value":"channelName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCrmCompany"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"companyName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"domains"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPropertyFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlProperty"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"propertyDefinitionId"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"isMultiSelect"}},{"kind":"Field","name":{"kind":"Name","value":"specificEntityType"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isMetadata"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"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"}}]}}]}}]}}]} as unknown as DocumentNode<ItemPreviewDetailsFieldsFragment, unknown>;export const SoupNotificationsEntityFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationsEntityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"notifications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationMetadataFields"},"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":"channelMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"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":"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":"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":"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":"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":"channelMessageSendSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelType"},"name":{"kind":"Name","value":"channelType"}},{"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":"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":"channelReplySenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"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":"Field","alias":{"kind":"Name","value":"channelReplyChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"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":"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":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"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":"done"}},{"kind":"Field","name":{"kind":"Name","value":"seen"}},{"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":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationMetadataFields"}}]}}]}}]} as unknown as DocumentNode<SoupNotificationsEntityFieldsFragment, unknown>;export const MyActivityDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MyActivity"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ActivityFeedInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"activity"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActivityEventFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"nextCursor"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ActivityEventFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"actorId"}},{"kind":"Field","name":{"kind":"Name","value":"subjectId"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"occurredAt"}},{"kind":"Field","name":{"kind":"Name","value":"action"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityPropertyChanged"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"property"}},{"kind":"Field","name":{"kind":"Name","value":"from"}},{"kind":"Field","name":{"kind":"Name","value":"to"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityParticipantAdded"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"participant"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityParticipantRemoved"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"participant"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityCallStarted"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"callId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityUnknownAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tag"}},{"kind":"Field","name":{"kind":"Name","value":"payload"}}]}}]}}]}}]} as unknown as DocumentNode<MyActivityQuery, MyActivityQueryVariables>;export const MyActivityOverviewDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MyActivityOverview"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ActivityOverviewInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"activityOverview"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"from"}},{"kind":"Field","name":{"kind":"Name","value":"to"}},{"kind":"Field","name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","name":{"kind":"Name","value":"total"}},{"kind":"Field","name":{"kind":"Name","value":"days"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"count"}}]}},{"kind":"Field","name":{"kind":"Name","value":"topEntities"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"count"}}]}}]}}]}}]}}]} as unknown as DocumentNode<MyActivityOverviewQuery, MyActivityOverviewQueryVariables>;@@ -8501,6 +8591,7 @@ export const NotificationUpdatesDocument = {"kind":"Document","definitions":[{"kexport const ItemPreviewNameCacheWriteDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ItemPreviewNameCacheWrite"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SoupInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"soup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}}]}}]}}]}}]}}]} as unknown as DocumentNode<ItemPreviewNameCacheWriteQuery, ItemPreviewNameCacheWriteQueryVariables>;export const ItemPreviewFileTypeCacheWriteDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ItemPreviewFileTypeCacheWrite"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SoupInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"soup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fileType"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<ItemPreviewFileTypeCacheWriteQuery, ItemPreviewFileTypeCacheWriteQueryVariables>;export const ItemPreviewDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ItemPreview"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SoupInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"soup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ItemPreviewFields"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ItemPreviewFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"fileType"}},{"kind":"Field","name":{"kind":"Name","value":"subType"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskSubType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isCompleted"}}]}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChat"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"chatName"},"name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupProject"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"projectName"},"name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEmailThread"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"emailName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"senderEmail"}},{"kind":"Field","name":{"kind":"Name","value":"senderName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannel"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelDisplayName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCall"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"customName"}},{"kind":"Field","name":{"kind":"Name","value":"channelName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCrmCompany"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"companyName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"domains"}}]}}]}}]} as unknown as DocumentNode<ItemPreviewQuery, ItemPreviewQueryVariables>;+export const ItemPreviewsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ItemPreviews"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SoupInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"soup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ItemPreviewDetailsFields"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ItemPreviewFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"fileType"}},{"kind":"Field","name":{"kind":"Name","value":"subType"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskSubType"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isCompleted"}}]}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChat"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"chatName"},"name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupProject"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"projectName"},"name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEmailThread"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"emailName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"senderEmail"}},{"kind":"Field","name":{"kind":"Name","value":"senderName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupChannel"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelDisplayName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCall"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"customName"}},{"kind":"Field","name":{"kind":"Name","value":"channelName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupCrmCompany"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"companyName"},"name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"domains"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPropertyFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlProperty"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"propertyDefinitionId"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"isMultiSelect"}},{"kind":"Field","name":{"kind":"Name","value":"specificEntityType"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isMetadata"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"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":"ItemPreviewDetailsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ItemPreviewFields"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewerPermission"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAccessLevelPermission"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessLevel"}}]}}]}}]}}]}}]} as unknown as DocumentNode<ItemPreviewsQuery, ItemPreviewsQueryVariables>;export const SetEntityPropertyDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SetEntityProperty"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SetEntityPropertyInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"setEntityProperty"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"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":"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"}}]}}]}}]}}]} as unknown as DocumentNode<SetEntityPropertyMutation, SetEntityPropertyMutationVariables>;export const SoupMembershipDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"SoupMembership"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SoupInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"soup"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]}}]} as unknown as DocumentNode<SoupMembershipQuery, SoupMembershipQueryVariables>;export const SoupUpdatesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"SoupUpdates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"soupUpdates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPatchFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationMetadataFields"},"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":"channelMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"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":"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":"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":"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":"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":"channelMessageSendSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelType"},"name":{"kind":"Name","value":"channelType"}},{"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":"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":"channelReplySenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"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":"Field","alias":{"kind":"Name","value":"channelReplyChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"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":"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":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"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":"done"}},{"kind":"Field","name":{"kind":"Name","value":"seen"}},{"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":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationMetadataFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupEntityCoreFields"},"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":"Field","name":{"kind":"Name","value":"notifications"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}},{"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":"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":"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":"SoupItemFields"},"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":"SoupEntityCoreFields"}},{"kind":"Field","name":{"kind":"Name","value":"frecencyScore"}},{"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":"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","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","name":{"kind":"Name","value":"participants"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"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","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":"properties"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyFields"}}]}}]}},{"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":"GraphqlSoupReminder"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"reminderDescription"},"name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"scheduleType"}},{"kind":"Field","name":{"kind":"Name","value":"remindAt"}},{"kind":"Field","name":{"kind":"Name","value":"cron"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"nextRunAt"}},{"kind":"Field","name":{"kind":"Name","value":"enabled"}},{"kind":"Field","name":{"kind":"Name","value":"completedAt"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"referencedEntity"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"fileType"}},{"kind":"Field","name":{"kind":"Name","value":"subType"}}]}},{"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":"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":"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<SoupUpdatesSubscription, SoupUpdatesSubscriptionVariables>;diff --git a/apps/web/src/lib/service-clients/service-storage/graphql/preview.graphql b/apps/web/src/lib/service-clients/service-storage/graphql/preview.graphqlindex 7481dd6a5f..cce0c8b184 100644--- a/apps/web/src/lib/service-clients/service-storage/graphql/preview.graphql+++ b/apps/web/src/lib/service-clients/service-storage/graphql/preview.graphql@@ -37,6 +37,34 @@ query ItemPreview($input: SoupInput!) {}}+# Rich display previews load task metadata before their children mount.+# Keep ItemPreviewFields minimal for cached creation seeds and name-only reads.+query ItemPreviews($input: SoupInput!) {+ user {+ id+ soup(input: $input) {+ items {+ ...ItemPreviewDetailsFields+ }+ }+ }+}++fragment ItemPreviewDetailsFields on GraphqlSoupEntity {+ ...ItemPreviewFields+ ... on GraphqlSoupDocument {+ properties {+ ...SoupPropertyFields+ }+ viewerPermission {+ __typename+ ... on GraphqlAccessLevelPermission {+ accessLevel+ }+ }+ }+}+fragment ItemPreviewFields on GraphqlSoupEntity {__typenameiddiff --git a/docs/AGENT_GUIDE/channels.md b/docs/AGENT_GUIDE/channels.mdindex 8e255d2d44..bcdfb15690 100644--- a/docs/AGENT_GUIDE/channels.md+++ b/docs/AGENT_GUIDE/channels.md@@ -52,7 +52,12 @@ answer text to expand it in place (`Show less` collapses it again); click thebottom row to open the agent session. Before ananswer exists, clicking the answer area also opens the session.Agent replies may contain mention chips (`<m-document-mention>`) that render like any-other channel mention.+other channel mention. With GraphQL enabled, document mentions and preview cards load+in bounded batches, including task status/priority/assignees and the viewer's edit+permission. Task badges can appear with the initial preview rather than waiting for+separate properties/document-metadata requests; cached titles may appear first while+those edges load. Ordinary document/task mentions do not wait for the built-in skills+list. Built-in skill mentions retain their non-document behavior.The Magic Chip that streams the agent's reply stays inside the message column: longthoughts, file paths, and unbreakable tokens wrap or truncate instead of expanding thethread past the chat's right edge.