Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
feat(calendar): let guests add guests to events (#8479)
gbirman107ceea04a56
diff --git a/apps/web/docs/graphql-normalized-cache-plan.md b/apps/web/docs/graphql-normalized-cache-plan.mdindex 0757c66629..f63510e843 100644--- a/apps/web/docs/graphql-normalized-cache-plan.md+++ b/apps/web/docs/graphql-normalized-cache-plan.md@@ -663,7 +663,7 @@ Invalidations arriving during a refresh cause a trailing authorized read insteadof being discarded; simultaneous refresh requests share one read.[Mutation coverage](../src/lib/queries/mutation-coverage.test.ts) enumerates all-35 mutation documents and fails when a document has no declared strategy.+37 mutation documents and fails when a document has no declared strategy.Because predictions are keyed by mutation field, it also checks that localresolver documents select only resolved fields, and that any other documentreaching a field resolver is a listed exception the resolver declines.@@ -675,8 +675,8 @@ every schema argument of its field with the schema's type:| Strategy | Operations || --- | --- || Local resolver (7) | MarkEmailThreadSeen, MarkEmailThreadUnread, SetEmailThreadArchived, UpdateNotifications, RenameEntities, UpdateInitiative, DeleteEntityProperty |-| Existing domain optimistic recipe (11) | SaveEmailDraft, DeleteEmailDraft, SetFavorite, ReorderFavorites, SetEntityProperty, UpdateEntityPropertyOptions, CreateCalendarEvent, UpdateCalendarEvent, DeleteCalendarEvent, RespondToCalendarEvent, MarkWorkFeedItemsDone |-| Authoritative outcome (10) | CreateInitiative, DeleteInitiative, EnsureInitiativeDescriptionSurface, RenameDatabase, TrashDatabase, RenameForm, TrashForm, RecordChannelActivity, UpdateNotificationsForEntity, UndoWorkFeedItemsDone |+| Existing domain optimistic recipe (12) | SaveEmailDraft, DeleteEmailDraft, SetFavorite, ReorderFavorites, SetEntityProperty, UpdateEntityPropertyOptions, CreateCalendarEvent, UpdateCalendarEvent, DeleteCalendarEvent, RespondToCalendarEvent, InviteCalendarEventGuests, MarkWorkFeedItemsDone |+| Authoritative outcome (11) | SendEmailMessage, CreateInitiative, DeleteInitiative, EnsureInitiativeDescriptionSurface, RenameDatabase, TrashDatabase, RenameForm, TrashForm, RecordChannelActivity, UpdateNotificationsForEntity, UndoWorkFeedItemsDone || Document only; no production caller (7) | MoveEntities, UpdateEntitySharePolicies, TrashEntities, RestoreEntities, DeleteEntitiesPermanently, DuplicateEntities, SetEntityFavorite |The project resolver predicts names and members; sharing waits for the server.diff --git a/apps/web/src/features/block-calendar/components/EventComposerSplit.test.tsx b/apps/web/src/features/block-calendar/components/EventComposerSplit.test.tsxindex 26850974eb..98e027bf62 100644--- a/apps/web/src/features/block-calendar/components/EventComposerSplit.test.tsx+++ b/apps/web/src/features/block-calendar/components/EventComposerSplit.test.tsx@@ -11,6 +11,9 @@ const mocks = vi.hoisted(() => ({vi.mock('@app/features/meetings/use-quick-calls-flag', () => ({useQuickCallsFlag: () => () => mocks.flag(),}));+vi.mock('@app/features/calendar/hooks/use-calendar-ui-flag', () => ({+ useCalendarGuestInvitesFlag: () => () => false,+}));vi.mock('@components/app/split-layout/layoutUtils', () => ({useSplitPanelOrThrow: () => ({handle: { close: vi.fn(), setDisplayName: vi.fn() },diff --git a/apps/web/src/features/block-calendar/components/EventComposerSplit.tsx b/apps/web/src/features/block-calendar/components/EventComposerSplit.tsxindex 602d63dcbe..ea8bab6e32 100644--- a/apps/web/src/features/block-calendar/components/EventComposerSplit.tsx+++ b/apps/web/src/features/block-calendar/components/EventComposerSplit.tsx@@ -4,9 +4,10 @@ import {defaultEditorInitialValues,type EventEditorInitialValues,} from '@app/features/calendar/components/composer/event-form-model';+import { useCalendarGuestInvitesFlag } from '@app/features/calendar/hooks/use-calendar-ui-flag';import { useEventEditor } from '@app/features/calendar/hooks/use-event-editor';import type { CalendarEvent } from '@app/features/calendar/types';-import { viewerCanEditGuests } from '@app/features/calendar/utils/event-guest-editing';+import { viewerReplacesGuests } from '@app/features/calendar/utils/event-guest-editing';import { EventReplacementAction } from '@app/features/calendar/views/event-replacement';import { useQuickCallsFlag } from '@app/features/meetings/use-quick-calls-flag';import { useSplitPanelOrThrow } from '@components/app/split-layout/layoutUtils';@@ -57,6 +58,7 @@ function EventComposerContent(const editor = useEventEditor({event: () => props.event,macroCallsEnabled,+ guestInvitesEnabled: useCalendarGuestInvitesFlag(),onSaved: () => {props.onSaveSuccess?.();close();@@ -90,6 +92,8 @@ function EventComposerContent(isEdit={isEdit()}saveError={editor.saveError()}disabledFields={editor.disabledFields()}+ addOnlyGuests={editor.addOnlyGuests()}+ guestsReadOnlyReason={editor.guestsReadOnlyReason()}showRecurringEditNotice={editor.showRecurringEditNotice()}pending={editor.pending()}onCalendarChange={props.onCalendarChange}@@ -102,7 +106,7 @@ function EventComposerContent(props.event?.calendar.provider === 'outlook' &&props.event &&!props.event.isCancelled &&- viewerCanEditGuests(props.event)+ viewerReplacesGuests(props.event)? props.event: undefined}diff --git a/apps/web/src/features/calendar-view/components/EventGuests.test.tsx b/apps/web/src/features/calendar-view/components/EventGuests.test.tsxnew file mode 100644index 0000000000..27f046bceb--- /dev/null+++ b/apps/web/src/features/calendar-view/components/EventGuests.test.tsx@@ -0,0 +1,343 @@+/**+ * @vitest-environment jsdom+ */++import { createGuestInviteController } from '@app/features/calendar/hooks/create-guest-invite-controller';+import type { CalendarEvent } from '@app/features/calendar/types';+import type { CalendarAttendee } from '@service-storage/generated/schemas/calendarAttendee';+import { cleanup, render, screen, waitFor } from '@solidjs/testing-library';+import userEvent from '@testing-library/user-event';+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';+import { EventGuests } from './EventGuests';++const mocks = vi.hoisted(() => ({+ invite: vi.fn(),+ success: vi.fn(),+ failure: vi.fn(),+ alert: vi.fn(),+}));++vi.mock('@core/component/UserIcon', () => ({+ UserIcon: () => document.createElement('span'),+}));+vi.mock('@core/component/Toast/Toast', () => ({+ toast: {+ success: mocks.success,+ failure: mocks.failure,+ alert: mocks.alert,+ },+}));+vi.mock('@core/mobile/isMobile', () => ({ isMobile: () => false }));+vi.mock('./use-open-event-email', () => ({ useOpenEventEmail: () => vi.fn() }));+vi.mock('@core/user', async (importOriginal) => ({+ ...(await importOriginal<typeof import('@core/user')>()),+ useContacts: () => () => [+ {+ id: 'macro|[email protected]',+ email: '[email protected]',+ name: 'Ada Lovelace',+ },+ {+ id: 'macro|[email protected]',+ email: '[email protected]',+ name: 'Grace Hopper',+ },+ ],+}));+vi.mock('@queries/calendar/mutations', () => ({+ useInviteCalendarEventGuestsMutation: () => ({ mutateAsync: mocks.invite }),+ isGuestInviteRefused: (error: unknown) =>+ (error as { code?: string }).code === 'guests_cannot_invite',+}));+// The picker itself is the composer's and is tested there; this stand-in+// offers every pool member it is not told to exclude.+vi.mock('@property/editors/selectors/PropertyEntitySelector', async () => {+ const { createRenderEffect } = await import('solid-js');+ return {+ PropertyEntitySelector: (props: {+ config: {+ placeholder: string;+ users?: () => { id: string; name: string }[];+ excludedIds?: () => ReadonlySet<string>;+ };+ selectedOptions: () => Set<string>;+ setSelectedOptions: (ids: Set<string>) => void;+ onClose?: () => void;+ }) => {+ const root = document.createElement('div');+ const input = document.createElement('input');+ input.type = 'text';+ input.setAttribute('aria-label', 'Search for guests');+ input.placeholder = props.config.placeholder;+ input.addEventListener('keydown', (event) => {+ if (event.key === 'Escape') props.onClose?.();+ });+ const suggestions = document.createElement('div');+ root.append(input, suggestions);+ createRenderEffect(() => {+ const excluded = props.config.excludedIds?.() ?? new Set();+ suggestions.replaceChildren(+ ...(props.config.users?.() ?? [])+ .filter((user) => !excluded.has(user.id))+ .map((user) => {+ const option = document.createElement('button');+ option.type = 'button';+ option.textContent = `Suggest ${user.name}`;+ option.addEventListener('click', () =>+ props.setSelectedOptions(+ new Set([...props.selectedOptions(), user.id])+ )+ );+ return option;+ })+ );+ });+ return root;+ },+ };+});++class ResizeObserverStub {+ observe() {}+ unobserve() {}+ disconnect() {}+}++function attendee(overrides: Partial<CalendarAttendee>): CalendarAttendee {+ return {+ email: '[email protected]',+ isOptional: false,+ isOrganizer: false,+ isSelf: false,+ responseStatus: 'accepted',+ ...overrides,+ };+}++const MAY_INVITE = {+ editDetails: false,+ inviteGuests: true,+ removeGuests: false,+ setGuestPolicy: false,+ rsvp: true,+};++function event(overrides: Partial<CalendarEvent> = {}): CalendarEvent {+ return {+ id: '["event-1","2026-10-22T14:00:00Z"]',+ eventId: 'event-1',+ occurrenceKey: '2026-10-22T14:00:00Z',+ isCancelled: false,+ isReadOnly: false,+ guestPolicy: {+ canModify: false,+ canInviteOthers: true,+ canSeeOtherGuests: true,+ },+ viewerCan: MAY_INVITE,+ attendees: [+ attendee({ email: '[email protected]', isOrganizer: true }),+ attendee({ email: '[email protected]', isSelf: true }),+ ],+ recurrenceLines: [],+ sourceCalendarIds: ['calendar-1'],+ calendarId: 'calendar-1',+ title: 'Planning',+ start: '2026-10-22T14:00:00Z',+ end: '2026-10-22T15:00:00Z',+ allDay: false,+ calendar: { id: 'calendar-1', name: 'Calendar', color: 'orange' },+ visibleCalendars: [],+ ...overrides,+ };+}++function renderGuests(current: CalendarEvent, invitesEnabled = true) {+ render(() => {+ const invites = createGuestInviteController(+ () => current,+ () => invitesEnabled+ );+ return (+ <EventGuests event={current} invites={invites} closeDetails={vi.fn()} />+ );+ });+}++beforeEach(() => {+ vi.clearAllMocks();+ mocks.invite.mockResolvedValue('sent');+ Element.prototype.scrollIntoView = vi.fn();+ vi.stubGlobal('ResizeObserver', ResizeObserverStub);+});++afterEach(() => {+ cleanup();+ vi.unstubAllGlobals();+});++describe('adding guests from event details', () => {+ it('lists the current guests as fixed and invites an optional guest to the whole series', async () => {+ const user = userEvent.setup();+ renderGuests(event({ recurrenceLines: ['RRULE:FREQ=WEEKLY'] }));++ await user.click(screen.getByRole('button', { name: 'Add guests' }));+ const invited = screen.getByRole('list', { name: 'Invited guests' });+ expect(invited.textContent).toContain('[email protected]');+ expect(invited.textContent).toContain('[email protected]');+ expect(screen.queryByRole('button', { name: /Remove host/ })).toBeNull();++ await user.click(+ screen.getByRole('button', { name: 'Suggest Ada Lovelace' })+ );+ expect(+ screen.queryByRole('button', { name: 'Suggest Ada Lovelace' })+ ).toBeNull();+ await user.click(screen.getByRole('checkbox', { name: 'Optional' }));+ await user.click(screen.getByRole('radio', { name: 'All events' }));+ await user.click(screen.getByRole('button', { name: 'Send invitations' }));++ expect(mocks.invite).toHaveBeenCalledWith({+ eventId: 'event-1',+ calendarId: 'calendar-1',+ guests: [{ email: '[email protected]', optional: true }],+ scope: 'all',+ recurrenceId: undefined,+ occurrenceKey: undefined,+ });+ expect(+ screen+ .getByRole('button', { name: 'Add guests' })+ .getAttribute('aria-expanded')+ ).toBe('false');+ await waitFor(() =>+ expect(mocks.success).toHaveBeenCalledWith(+ 'Invitation sent to Ada Lovelace'+ )+ );+ });++ it('sends to this occurrence with Cmd+Enter and drops a guest removed before sending', async () => {+ const user = userEvent.setup();+ renderGuests(+ event({+ recurrenceLines: ['RRULE:FREQ=WEEKLY'],+ recurrenceId: '2026-10-22T14:00:00Z',+ })+ );++ await user.click(screen.getByRole('button', { name: 'Add guests' }));+ await user.click(+ screen.getByRole('button', { name: 'Suggest Ada Lovelace' })+ );+ await user.click(+ screen.getByRole('button', { name: 'Suggest Grace Hopper' })+ );+ await user.click(+ screen.getByRole('button', { name: 'Remove Ada Lovelace' })+ );+ await user.click(+ screen.getByRole('button', { name: 'Suggest Ada Lovelace' })+ );+ screen.getByRole('textbox', { name: 'Search for guests' }).focus();+ await user.keyboard('{Meta>}{Enter}{/Meta}');++ expect(mocks.invite).toHaveBeenCalledWith({+ eventId: 'event-1',+ calendarId: 'calendar-1',+ guests: [+ { email: '[email protected]', optional: false },+ { email: '[email protected]', optional: false },+ ],+ scope: 'this_event',+ recurrenceId: '2026-10-22T14:00:00Z',+ occurrenceKey: '2026-10-22T14:00:00Z',+ });+ await waitFor(() =>+ expect(mocks.success).toHaveBeenCalledWith('Invitations sent to 2 people')+ );+ });++ it('offers no scope for a single event and closes on Escape without sending', async () => {+ const user = userEvent.setup();+ renderGuests(event());++ await user.click(screen.getByRole('button', { name: 'Add guests' }));+ expect(screen.queryByRole('radio', { name: 'All events' })).toBeNull();+ await user.click(+ screen.getByRole('button', { name: 'Suggest Ada Lovelace' })+ );+ screen.getByRole('textbox', { name: 'Search for guests' }).focus();+ await user.keyboard('{Escape}');++ expect(+ screen+ .getByRole('button', { name: 'Add guests' })+ .getAttribute('aria-expanded')+ ).toBe('false');+ expect(mocks.invite).not.toHaveBeenCalled();+ });++ it('does not call a queued invitation sent', async () => {+ mocks.invite.mockResolvedValue('queued');+ const user = userEvent.setup();+ renderGuests(event());++ await user.click(screen.getByRole('button', { name: 'Add guests' }));+ await user.click(+ screen.getByRole('button', { name: 'Suggest Ada Lovelace' })+ );+ await user.click(screen.getByRole('button', { name: 'Send invitations' }));++ await waitFor(() =>+ expect(mocks.alert).toHaveBeenCalledWith(+ 'Invitations will be sent when you are back online'+ )+ );+ expect(mocks.success).not.toHaveBeenCalled();+ });++ it('explains instead of offering the action when the organizer does not let guests invite', () => {+ renderGuests(event({ viewerCan: { ...MAY_INVITE, inviteGuests: false } }));++ expect(screen.queryByRole('button', { name: 'Add guests' })).toBeNull();+ expect(+ screen.getByText('Only the organizer can invite guests.')+ ).toBeTruthy();+ });++ it('switches to the explanation when the organizer refuses the invitation', async () => {+ mocks.invite.mockRejectedValue({ code: 'guests_cannot_invite' });+ const user = userEvent.setup();+ renderGuests(event());++ await user.click(screen.getByRole('button', { name: 'Add guests' }));+ await user.click(+ screen.getByRole('button', { name: 'Suggest Ada Lovelace' })+ );+ await user.click(screen.getByRole('button', { name: 'Send invitations' }));++ await waitFor(() =>+ expect(mocks.failure).toHaveBeenCalledWith(+ 'Only the organizer can invite guests.'+ )+ );+ expect(screen.queryByRole('button', { name: 'Add guests' })).toBeNull();+ expect(+ screen.getByText('Only the organizer can invite guests.')+ ).toBeTruthy();+ expect(mocks.success).not.toHaveBeenCalled();+ });++ it('keeps today’s guest actions while guest invites are off', () => {+ renderGuests(event(), false);++ expect(+ screen.getByRole('button', { name: 'Copy guest emails' })+ ).toBeTruthy();+ expect(screen.queryByRole('button', { name: 'Add guests' })).toBeNull();+ expect(+ screen.queryByText('Only the organizer can invite guests.')+ ).toBeNull();+ });+});diff --git a/apps/web/src/features/calendar-view/components/EventGuests.tsx b/apps/web/src/features/calendar-view/components/EventGuests.tsxnew file mode 100644index 0000000000..51b2acf027--- /dev/null+++ b/apps/web/src/features/calendar-view/components/EventGuests.tsx@@ -0,0 +1,292 @@+import { EventComposerPopoverPortal } from '@app/features/calendar/components/composer/EventComposerPopoverPortal';+import {+ AddOnlyGuestsEditor,+ guestDisplayName,+} from '@app/features/calendar/components/composer/EventGuestsEditor';+import {+ type EventEditorGuestOption,+ guestEmail,+ initialGuestOptions,+ type SelectedEventEditorGuest,+} from '@app/features/calendar/components/composer/event-form-model';+import { EventAttendeesSection } from '@app/features/calendar/components/EventDetails';+import type {+ GuestInvitation,+ GuestInviteController,+} from '@app/features/calendar/hooks/create-guest-invite-controller';+import type { CalendarEvent } from '@app/features/calendar/types';+import { GUEST_INVITES_RESTRICTED } from '@app/features/calendar/utils/event-guest-editing';+import {+ eventEmailRecipients,+ guestEmails,+} from '@app/features/calendar/utils/guest-emails';+import { useOpenEventEmail } from '@app/features/calendar-view/components/use-open-event-email';+import { copyGuestEmails } from '@app/features/calendar-view/copy-guest-emails';+import { isMobile } from '@core/mobile/isMobile';+import { recipientEntityMapper, useContacts } from '@core/user';+import { Popover } from '@kobalte/core/popover';+import CopyIcon from '@phosphor/copy.svg';+import EnvelopeIcon from '@phosphor/envelope.svg';+import UserPlusIcon from '@phosphor/user-plus.svg';+import type { CalendarInviteScope } from '@service-email/client';+import { Button, Checkbox, Dialog, Layer, SegmentedControl } from '@ui';+import { createMemo, createSignal, Show } from 'solid-js';++/** Same wording as the RSVP and delete scope choices. */+const INVITE_SCOPE_OPTIONS = [+ { value: 'this_event', label: 'This event' },+ { value: 'all', label: 'All events' },+] satisfies { value: CalendarInviteScope; label: string }[];++/**+ * The composer's add-only guest editor, plus what an invitation from event+ * details needs: an Optional choice per new guest, the occurrence scope of a+ * recurring event, and the send button.+ */+function InviteGuestsForm(props: {+ event: CalendarEvent;+ onSend: (invitation: GuestInvitation) => void;+ onClose: () => void;+}) {+ const contacts = useContacts();+ const options = createMemo<EventEditorGuestOption[]>(() =>+ contacts().map(recipientEntityMapper('user'))+ );+ const current = createMemo(() =>+ initialGuestOptions(+ props.event.attendees.map((attendee) => attendee.email).join(', '),+ options()+ )+ );+ const [added, setAdded] = createSignal<SelectedEventEditorGuest[]>([]);+ const [optionalIds, setOptionalIds] = createSignal<ReadonlySet<string>>(+ new Set()+ );+ const [scope, setScope] = createSignal<CalendarInviteScope>('this_event');+ const recurring = () =>+ props.event.recurrenceLines.length > 0 ||+ props.event.recurrenceId !== undefined;++ const setOptional = (guest: SelectedEventEditorGuest, optional: boolean) => {+ const next = new Set(optionalIds());+ if (optional) next.add(guest.id);+ else next.delete(guest.id);+ setOptionalIds(next);+ };+ const send = () => {+ if (added().length === 0) return;+ props.onSend({+ guests: added().map((guest) => ({+ email: guestEmail(guest),+ name: guestDisplayName(guest),+ optional: optionalIds().has(guest.id),+ })),+ scope: recurring() ? scope() : 'all',+ });+ };++ return (+ <div+ class="flex min-h-0 flex-1 flex-col"+ // Registered on the element so it runs before the picker's document+ // listener, which adds the highlighted suggestion on every Enter.+ on:keydown={(event) => {+ if (event.key !== 'Enter') return;+ if (event.metaKey || event.ctrlKey) {+ event.preventDefault();+ event.stopPropagation();+ send();+ return;+ }+ const target = event.target;+ if (!(target instanceof HTMLInputElement && target.type === 'text')) {+ event.stopPropagation();+ }+ }}+ >+ <AddOnlyGuestsEditor+ options={options}+ current={current()}+ added={added()}+ onAddedChange={setAdded}+ onClose={props.onClose}+ addedControls={(guest) => (+ <Checkbox+ checked={optionalIds().has(guest.id)}+ onChange={(optional) => setOptional(guest, optional)}+ class="shrink-0"+ >+ <Checkbox.Control />+ <Checkbox.Label class="text-xs text-ink-muted">+ Optional+ </Checkbox.Label>+ </Checkbox>+ )}+ />+ <div class="flex shrink-0 flex-wrap items-center gap-2 border-t border-edge-muted p-2">+ <Show when={recurring()}>+ <SegmentedControl+ aria-label="Invite to"+ size="sm"+ value={scope()}+ options={INVITE_SCOPE_OPTIONS}+ onChange={setScope}+ />+ </Show>+ <Button+ variant="strong"+ size="sm"+ depth={3}+ class="ml-auto"+ disabled={added().length === 0}+ onClick={send}+ >+ Send invitations+ </Button>+ </div>+ </div>+ );+}++/**+ * The attendees header's "Add guests" action and the editor it opens,+ * anchored to the action on desktop and a bottom sheet on phones.+ */+function EventInviteGuestsAction(props: {+ event: CalendarEvent;+ invites: GuestInviteController;+}) {+ const close = () => props.invites.setEditorOpen(false);+ const form = () => (+ <InviteGuestsForm+ event={props.event}+ onSend={props.invites.send}+ onClose={close}+ />+ );++ return (+ <Show+ when={isMobile()}+ fallback={+ <Popover+ open={props.invites.editorOpen()}+ onOpenChange={props.invites.setEditorOpen}+ placement="bottom-end"+ gutter={4}+ flip+ slide+ >+ <Popover.Trigger+ as={Button}+ label="Add guests"+ variant="ghost"+ size="icon-sm"+ depth={3}+ class="text-ink-muted [&_svg]:size-4"+ >+ <UserPlusIcon />+ </Popover.Trigger>+ <EventComposerPopoverPortal>+ <Layer depth={3}>+ <Popover.Content class="z-action-menu flex max-h-[min(30rem,var(--kb-popper-content-available-height,30rem))] w-80 max-w-[calc(100vw-1rem)] flex-col overflow-hidden rounded-xl border border-edge bg-menu-glass text-sm glass menu-open-animation">+ <Popover.Title class="sr-only">Add guests</Popover.Title>+ {form()}+ </Popover.Content>+ </Layer>+ </EventComposerPopoverPortal>+ </Popover>+ }+ >+ <Button+ label="Add guests"+ variant="ghost"+ size="icon-sm"+ depth={3}+ class="text-ink-muted [&_svg]:size-4"+ onClick={() => props.invites.setEditorOpen(true)}+ >+ <UserPlusIcon />+ </Button>+ <Dialog+ open={props.invites.editorOpen()}+ onOpenChange={props.invites.setEditorOpen}+ >+ <Dialog.Title class="px-4 pb-2 text-base font-semibold text-ink">+ Add guests+ </Dialog.Title>+ {form()}+ </Dialog>+ </Show>+ );+}++/**+ * The guest-row actions Google Calendar users know: copy every guest's+ * address, start an email to the other guests (hidden when the viewer is the+ * only one), or add guests when the organizer allows it. Emailing closes the+ * details first: closing hands focus back to the calendar chip, and the+ * composer's To field has to win that exchange.+ */+function EventGuestActions(props: {+ event: CalendarEvent;+ invites: GuestInviteController;+ closeDetails: () => void;+}) {+ const openEventEmail = useOpenEventEmail();++ return (+ <Show when={!props.event.teamProjection}>+ <Button+ label="Copy guest emails"+ variant="ghost"+ size="icon-sm"+ depth={3}+ class="text-ink-muted [&_svg]:size-4"+ onClick={() => copyGuestEmails(guestEmails(props.event.attendees))}+ >+ <CopyIcon />+ </Button>+ <Show when={eventEmailRecipients(props.event).length > 0}>+ <Button+ label="Email guests"+ variant="ghost"+ size="icon-sm"+ depth={3}+ class="text-ink-muted [&_svg]:size-4"+ onClick={() => {+ const event = props.event;+ props.closeDetails();+ openEventEmail(event);+ }}+ >+ <EnvelopeIcon />+ </Button>+ </Show>+ <Show when={props.invites.canInvite()}>+ <EventInviteGuestsAction event={props.event} invites={props.invites} />+ </Show>+ </Show>+ );+}++/** The attendees section with its header actions and explanation. */+export function EventGuests(props: {+ event: CalendarEvent;+ invites: GuestInviteController;+ closeDetails: () => void;+}) {+ return (+ <EventAttendeesSection+ attendees={props.event.attendees}+ notice={props.invites.restricted() ? GUEST_INVITES_RESTRICTED : undefined}+ actions={+ <EventGuestActions+ event={props.event}+ invites={props.invites}+ closeDetails={props.closeDetails}+ />+ }+ />+ );+}diff --git a/apps/web/src/features/calendar-view/components/SelectedEventDetails.tsx b/apps/web/src/features/calendar-view/components/SelectedEventDetails.tsxindex a11398dce8..ac24ca3dcb 100644--- a/apps/web/src/features/calendar-view/components/SelectedEventDetails.tsx+++ b/apps/web/src/features/calendar-view/components/SelectedEventDetails.tsx@@ -1,33 +1,25 @@import { hasEveryoneElseDeclined } from '@app/features/calendar/components/EventContent';-import {- EventAttendeesSection,- EventDetails,-} from '@app/features/calendar/components/EventDetails';+import { EventDetails } from '@app/features/calendar/components/EventDetails';+import { createGuestInviteController } from '@app/features/calendar/hooks/create-guest-invite-controller';+import { useCalendarGuestInvitesFlag } from '@app/features/calendar/hooks/use-calendar-ui-flag';import {type CalendarEvent,type CalendarTimeFormat,reminderCalendarIdOf,} from '@app/features/calendar/types';-import {- eventEmailRecipients,- guestEmails,-} from '@app/features/calendar/utils/guest-emails';import { handleOpenEventOutsidePress } from '@app/features/calendar/utils/open-event-outside-press';import { TeamEventDetails } from '@app/features/calendar-team/components/team-event-details';+import { EventGuests } from '@app/features/calendar-view/components/EventGuests';import { EventRsvpSection } from '@app/features/calendar-view/components/EventRsvpSection';import { useOpenEventComposer } from '@app/features/calendar-view/components/use-open-event-composer';-import { useOpenEventEmail } from '@app/features/calendar-view/components/use-open-event-email';import { copyCalendarEventMention } from '@app/features/calendar-view/copy-event-mention';-import { copyGuestEmails } from '@app/features/calendar-view/copy-guest-emails';import { downloadCalendarEventIcs } from '@app/features/calendar-view/download-event-ics';import { MobileDrawer } from '@components/app/mobile/MobileDrawer';import { toast } from '@core/component/Toast/Toast';import { isMobile } from '@core/mobile/isMobile';import { openExternalUrl } from '@core/util/url';import { Popover } from '@kobalte/core/popover';-import CopyIcon from '@phosphor/copy.svg';import DownloadSimpleIcon from '@phosphor/download-simple.svg';-import EnvelopeIcon from '@phosphor/envelope.svg';import ExclamationIcon from '@phosphor/exclamation-mark.svg';import LinkIcon from '@phosphor/link.svg';import PencilSimpleIcon from '@phosphor/pencil-simple.svg';@@ -176,56 +168,16 @@ function EveryoneElseDeclinedNotice(props: {);}-/**- * The guest-row actions Google Calendar users know: copy every guest's- * address, or start an email to the other guests (hidden when the viewer is- * the only one). Emailing closes the details first: closing hands focus back- * to the calendar chip, and the composer's To field has to win that exchange.- */-function EventGuestActions(props: {- event: CalendarEvent;- closeDetails: () => void;-}) {- const openEventEmail = useOpenEventEmail();-- return (- <Show when={!props.event.teamProjection}>- <Button- label="Copy guest emails"- variant="ghost"- size="icon-sm"- depth={3}- class="text-ink-muted [&_svg]:size-4"- onClick={() => copyGuestEmails(guestEmails(props.event.attendees))}- >- <CopyIcon />- </Button>- <Show when={eventEmailRecipients(props.event).length > 0}>- <Button- label="Email guests"- variant="ghost"- size="icon-sm"- depth={3}- class="text-ink-muted [&_svg]:size-4"- onClick={() => {- const event = props.event;- props.closeDetails();- openEventEmail(event);- }}- >- <EnvelopeIcon />- </Button>- </Show>- </Show>- );-}-function EventDetailsDrawer(props: EventDetailsOverlayProps) {const openEventComposer = useOpenEventComposer();const deleteDialog = useDeleteEventDialog({event: () => props.event,onDeleted: () => props.onOpenChange(false),});+ const invites = createGuestInviteController(+ () => props.event,+ useCalendarGuestInvitesFlag()+ );const canModify = () =>!props.event.teamProjection &&!props.event.isReadOnly &&@@ -240,7 +192,7 @@ function EventDetailsDrawer(props: EventDetailsOverlayProps) {side="bottom"openonOpenChange={(open) => {- if (!open && deleteDialog.isOpen()) return;+ if (!open && (deleteDialog.isOpen() || invites.editorOpen())) return;props.onOpenChange(open);}}preventScroll={false}@@ -337,14 +289,10 @@ function EventDetailsDrawer(props: EventDetailsOverlayProps) {</Show></div><Show when={!props.event.teamProjection}>- <EventAttendeesSection- attendees={props.event.attendees}- actions={- <EventGuestActions- event={props.event}- closeDetails={() => props.onOpenChange(false)}- />- }+ <EventGuests+ event={props.event}+ invites={invites}+ closeDetails={() => props.onOpenChange(false)}/></Show><Show when={!props.event.teamProjection}>@@ -474,6 +422,10 @@ function EventDetailsPopover(props: EventDetailsPopoverProps) {event: () => props.event,onDeleted: () => props.onOpenChange(false),});+ const invites = createGuestInviteController(+ () => props.event,+ useCalendarGuestInvitesFlag()+ );const canModify = () =>!props.event.teamProjection &&!props.event.isReadOnly &&@@ -489,8 +441,9 @@ function EventDetailsPopover(props: EventDetailsPopoverProps) {boundary={() => props.boundary}openonOpenChange={(open) => {- // Keep the popover mounted while its delete dialog is open.- if (!open && deleteDialog.isOpen()) return;+ // Keep the popover mounted while its delete dialog or guest editor+ // is open.+ if (!open && (deleteDialog.isOpen() || invites.editorOpen())) return;props.onOpenChange(open);}}placement="right-start"@@ -614,14 +567,10 @@ function EventDetailsPopover(props: EventDetailsPopoverProps) {</Show></div><Show when={!props.event.teamProjection}>- <EventAttendeesSection- attendees={props.event.attendees}- actions={- <EventGuestActions- event={props.event}- closeDetails={() => props.onOpenChange(false)}- />- }+ <EventGuests+ event={props.event}+ invites={invites}+ closeDetails={() => props.onOpenChange(false)}/></Show></div>diff --git a/apps/web/src/features/calendar/components/EventDetails.tsx b/apps/web/src/features/calendar/components/EventDetails.tsxindex 0a9e337fde..d28b6207f1 100644--- a/apps/web/src/features/calendar/components/EventDetails.tsx+++ b/apps/web/src/features/calendar/components/EventDetails.tsx@@ -678,10 +678,12 @@ export function EventDetails(props: {* are icon buttons for the header row's trailing edge — the copy-emails and* email-guests pair Google Calendar puts there — rendered beside the* disclosure trigger rather than inside it, since a button cannot nest one.+ * `notice` is a muted line above the list, such as why it cannot grow.*/export function EventAttendeesSection(props: {attendees: CalendarAttendee[];actions?: JSX.Element;+ notice?: string;}) {return (<Show when={props.attendees.length > 0}>@@ -704,6 +706,14 @@ export function EventAttendeesSection(props: {<div class="flex shrink-0 items-center gap-1">{props.actions}</div></div><Collapsible.Content class="data-closed:hidden">+ <Show when={props.notice}>+ {(notice) => (+ <div class="flex gap-4 pl-4 pr-4 pt-1.5 sm:gap-3">+ <span aria-hidden="true" class="size-5 shrink-0 sm:size-4" />+ <p class="text-ink-extra-muted">{notice()}</p>+ </div>+ )}+ </Show><div class="flex gap-4 pb-3 pl-4 pt-1.5 sm:gap-3"><span aria-hidden="true" class="size-5 shrink-0 sm:size-4" /><ScrollableAttendeeList attendees={props.attendees} />diff --git a/apps/web/src/features/calendar/components/composer/EventForm.tsx b/apps/web/src/features/calendar/components/composer/EventForm.tsxindex 0a289996b1..8ff93f9a39 100644--- a/apps/web/src/features/calendar/components/composer/EventForm.tsx+++ b/apps/web/src/features/calendar/components/composer/EventForm.tsx@@ -40,6 +40,10 @@ export interface EventFormProps {macroCallsEnabled: boolean;isEdit?: boolean;disabledFields?: EventEditorDisabledFields;+ /** The viewer may add guests but not remove the event's current ones. */+ addOnlyGuests?: boolean;+ /** Why a read-only guest list cannot change. */+ guestsReadOnlyReason?: string;showRecurringEditNotice?: boolean;/** Disable interaction without presenting the form as an in-flight save. */disabled?: boolean;@@ -268,6 +272,10 @@ export function EventForm(props: EventFormProps) {onChange={controller.setSelectedGuests}disabled={formIsDisabled()}readOnly={fieldIsReadOnly('guests')}+ readOnlyReason={props.guestsReadOnlyReason}+ currentGuests={+ props.addOnlyGuests ? controller.initialGuests() : undefined+ }/><EventComposerConferencePillvalue={state().conference}diff --git a/apps/web/src/features/calendar/components/composer/EventGuestsEditor.tsx b/apps/web/src/features/calendar/components/composer/EventGuestsEditor.tsxnew file mode 100644index 0000000000..3c93875f33--- /dev/null+++ b/apps/web/src/features/calendar/components/composer/EventGuestsEditor.tsx@@ -0,0 +1,173 @@+import { UserIcon } from '@core/component/UserIcon';+import { type IUser, idToEmail, recipientEntityMapper } from '@core/user';+import XIcon from '@phosphor/x.svg';+import { PropertyEntitySelector } from '@property/editors/selectors/PropertyEntitySelector';+import { Button } from '@ui';+import { type Accessor, createMemo, For, type JSX, Show } from 'solid-js';+import {+ type EventEditorGuestOption,+ guestEmail,+ type SelectedEventEditorGuest,+} from './event-form-model';++export function guestDisplayName(guest: SelectedEventEditorGuest) {+ return ('name' in guest.data && guest.data.name) || guest.data.email;+}++function guestToUser(guest: SelectedEventEditorGuest): IUser {+ return {+ id: guest.id,+ email: guestEmail(guest),+ name: guestDisplayName(guest),+ };+}++function guestFromId(+ id: string,+ options: EventEditorGuestOption[],+ known: SelectedEventEditorGuest[]+): SelectedEventEditorGuest {+ const option = options.find((guest) => guest.id === id);+ if (option) return option;+ const prior = known.find((guest) => guest.id === id);+ if (prior) return prior;+ return recipientEntityMapper('custom')({+ id,+ email: idToEmail(id),+ invalid: false,+ });+}++/** A guest's avatar, name and address, followed by any controls. */+export function EventGuestRow(props: {+ guest: SelectedEventEditorGuest;+ children?: JSX.Element;+}) {+ return (+ <div class="flex min-w-0 items-center gap-2 rounded-lg px-2 py-2 text-ink touch:min-h-11">+ <UserIcon id={props.guest.id} size="sm" isDeleted={false} suppressClick />+ <div class="min-w-0 flex-1 truncate text-sm">+ {guestDisplayName(props.guest)}+ <Show when={guestDisplayName(props.guest) !== guestEmail(props.guest)}>+ <span class="ml-[0.5em] text-ink-muted">+ {guestEmail(props.guest)}+ </span>+ </Show>+ </div>+ {props.children}+ </div>+ );+}++/**+ * The composer's guest picker: team and contact suggestions plus any typed+ * address, which joins only once its "Add" row is chosen. `excluded` guests+ * are neither offered nor toggled.+ */+export function EventGuestPicker(props: {+ options: Accessor<EventEditorGuestOption[]>;+ selected: SelectedEventEditorGuest[];+ excluded?: SelectedEventEditorGuest[];+ onChange: (selected: SelectedEventEditorGuest[]) => void;+ onClose: () => void;+}) {+ const known = () => [...(props.excluded ?? []), ...props.selected];+ const users = createMemo((): IUser[] => {+ const byId = new Map<string, IUser>();+ for (const guest of [...props.options(), ...known()]) {+ byId.set(guest.id, guestToUser(guest));+ }+ return [...byId.values()];+ });+ const excludedIds = createMemo(+ (): ReadonlySet<string> =>+ new Set((props.excluded ?? []).map((guest) => guest.id))+ );++ return (+ <PropertyEntitySelector+ config={{+ isMultiSelect: true,+ placeholder: 'Add guests...',+ specificEntityType: 'USER',+ users,+ excludedIds,+ allowCustomEmail: true,+ }}+ selectedOptions={() => new Set(props.selected.map((guest) => guest.id))}+ setSelectedOptions={(ids) => {+ props.onChange(+ [...ids].map((id) => guestFromId(id, props.options(), known()))+ );+ }}+ onClose={props.onClose}+ />+ );+}++/**+ * Guest editing for someone who may add guests but not remove them: the+ * event's current guests are listed without a remove control, and the picker+ * only adds. Added guests can be dropped again before they are invited.+ */+export function AddOnlyGuestsEditor(props: {+ options: Accessor<EventEditorGuestOption[]>;+ current: SelectedEventEditorGuest[];+ added: SelectedEventEditorGuest[];+ onAddedChange: (added: SelectedEventEditorGuest[]) => void;+ onClose: () => void;+ /** Controls shown on each added guest, before its remove button. */+ addedControls?: (guest: SelectedEventEditorGuest) => JSX.Element;+}) {+ return (+ <div class="flex min-h-0 flex-col">+ <EventGuestPicker+ options={props.options}+ selected={[]}+ excluded={[...props.current, ...props.added]}+ onChange={(picked) => props.onAddedChange([...props.added, ...picked])}+ onClose={props.onClose}+ />+ <div class="flex min-h-0 flex-col overflow-y-auto p-1.5">+ <Show when={props.added.length > 0}>+ <ul aria-label="New guests" class="flex flex-col">+ <For each={props.added}>+ {(guest) => (+ <li>+ <EventGuestRow guest={guest}>+ {props.addedControls?.(guest)}+ <Button+ label={`Remove ${guestDisplayName(guest)}`}+ variant="ghost"+ size="icon-sm"+ class="shrink-0 text-ink-muted [&_svg]:size-3.5"+ onClick={() =>+ props.onAddedChange(+ props.added.filter((added) => added.id !== guest.id)+ )+ }+ >+ <XIcon />+ </Button>+ </EventGuestRow>+ </li>+ )}+ </For>+ </ul>+ </Show>+ <Show when={props.current.length > 0}>+ <p class="px-2 pt-2 pb-1 text-xs text-ink-muted">Invited</p>+ <ul aria-label="Invited guests" class="flex flex-col">+ <For each={props.current}>+ {(guest) => (+ <li>+ <EventGuestRow guest={guest} />+ </li>+ )}+ </For>+ </ul>+ </Show>+ </div>+ </div>+ );+}diff --git a/apps/web/src/features/calendar/components/composer/EventPropertyPills.test.tsx b/apps/web/src/features/calendar/components/composer/EventPropertyPills.test.tsxindex 801ae00220..b3bd2cafbb 100644--- a/apps/web/src/features/calendar/components/composer/EventPropertyPills.test.tsx+++ b/apps/web/src/features/calendar/components/composer/EventPropertyPills.test.tsx@@ -28,14 +28,49 @@ vi.mock('@core/component/UserIcon', () => ({},}));-vi.mock('@property/editors/selectors/PropertyEntitySelector', () => ({- PropertyEntitySelector: () => {- const input = document.createElement('input');- input.setAttribute('aria-label', 'Search for guests');- input.setAttribute('placeholder', 'Add guests...');- return input;- },-}));+// Stands in for the shared picker: offers every pool member it is not told+// to exclude, and toggles the clicked one.+vi.mock('@property/editors/selectors/PropertyEntitySelector', async () => {+ const { createRenderEffect } = await import('solid-js');+ return {+ PropertyEntitySelector: (props: {+ config: {+ placeholder: string;+ users?: () => { id: string; name: string }[];+ excludedIds?: () => ReadonlySet<string>;+ };+ selectedOptions: () => Set<string>;+ setSelectedOptions: (ids: Set<string>) => void;+ }) => {+ const root = document.createElement('div');+ const input = document.createElement('input');+ input.setAttribute('aria-label', 'Search for guests');+ input.setAttribute('placeholder', props.config.placeholder);+ const suggestions = document.createElement('div');+ root.append(input, suggestions);+ createRenderEffect(() => {+ const excluded = props.config.excludedIds?.() ?? new Set();+ suggestions.replaceChildren(+ ...(props.config.users?.() ?? [])+ .filter((user) => !excluded.has(user.id))+ .map((user) => {+ const option = document.createElement('button');+ option.type = 'button';+ option.textContent = `Suggest ${user.name}`;+ option.addEventListener('click', () => {+ const next = new Set(props.selectedOptions());+ if (next.has(user.id)) next.delete(user.id);+ else next.add(user.id);+ props.setSelectedOptions(next);+ });+ return option;+ })+ );+ });+ return root;+ },+ };+});function guest(email: string, name: string): EventEditorGuestOption {return recipientEntityMapper('user')({@@ -164,6 +199,74 @@ describe('EventComposerGuestsPill', () => {});});+describe('EventComposerGuestsPill for a guest who may only add guests', () => {+ it('keeps the current guests fixed and adds or drops new ones', async () => {+ const user = userEvent.setup();+ const host = guest('[email protected]', 'Host Person');+ const [selected, setSelected] = createSignal<SelectedEventEditorGuest[]>([+ host,+ ]);+ render(() => (+ <Dialog open>+ <input aria-label="Title" />+ <EventComposerGuestsPill+ options={() => [host, guest('[email protected]', 'Ada Lovelace')]}+ selected={selected()}+ currentGuests={[host]}+ onChange={setSelected}+ />+ </Dialog>+ ));+ screen.getByLabelText('Title').focus();++ await user.click(screen.getByRole('button', { name: 'Guests' }));+ expect(+ screen.getByRole('list', { name: 'Invited guests' }).textContent+ ).toContain('Host Person');+ expect(+ screen.queryByRole('button', { name: 'Remove Host Person' })+ ).toBeNull();+ expect(+ screen.queryByRole('button', { name: 'Suggest Host Person' })+ ).toBeNull();++ await user.click(+ screen.getByRole('button', { name: 'Suggest Ada Lovelace' })+ );+ expect(selected().map((selectedGuest) => selectedGuest.data.email)).toEqual(+ ['[email protected]', '[email protected]']+ );+ expect(+ screen.getByRole('list', { name: 'New guests' }).textContent+ ).toContain('Ada Lovelace');++ await user.click(+ screen.getByRole('button', { name: 'Remove Ada Lovelace' })+ );+ expect(selected().map((selectedGuest) => selectedGuest.data.email)).toEqual(+ ['[email protected]']+ );+ });++ it('explains a read-only guest list inside its popover', async () => {+ const user = userEvent.setup();+ render(() => (+ <EventComposerGuestsPill+ options={() => []}+ selected={[guest('[email protected]', 'Host Person')]}+ onChange={vi.fn()}+ readOnly+ readOnlyReason="Only the organizer can invite guests."+ />+ ));++ await user.click(screen.getByRole('button', { name: 'Guests' }));+ expect(+ screen.getByText('Only the organizer can invite guests.')+ ).toBeTruthy();+ });+});+describe('EventComposerConferencePill', () => {it('offers Macro only after the host flag resolves enabled', async () => {const user = userEvent.setup();diff --git a/apps/web/src/features/calendar/components/composer/EventPropertyPills.tsx b/apps/web/src/features/calendar/components/composer/EventPropertyPills.tsxindex 3facb42522..aae066a177 100644--- a/apps/web/src/features/calendar/components/composer/EventPropertyPills.tsx+++ b/apps/web/src/features/calendar/components/composer/EventPropertyPills.tsx@@ -1,5 +1,3 @@-import { UserIcon } from '@core/component/UserIcon';-import { type IUser, idToEmail, recipientEntityMapper } from '@core/user';import { Popover } from '@kobalte/core/popover';import BellSimpleIcon from '@phosphor/bell-simple.svg';import CalendarDotsIcon from '@phosphor/calendar-dots.svg';@@ -15,12 +13,11 @@ import { useProperty } from '@property/core/context';import { Root as PropertyRoot } from '@property/core/Root';import { EditorPopover } from '@property/editors/popover/EditorPopover';import { OptionCheckBox } from '@property/editors/selectors/OptionCheckBox';-import { PropertyEntitySelector } from '@property/editors/selectors/PropertyEntitySelector';import { PropertyCaret } from '@property/extractors/PropertyCaret';import { PropertyPill } from '@property/extractors/PropertyPill';import type { EntityProperty } from '@property/types';import type { EventType } from '@service-storage/generated/schemas/eventType';-import { cn, Layer, Select } from '@ui';+import { cn, Layer, Select, Tooltip } from '@ui';import { type Accessor, createMemo, createSignal, For, Show } from 'solid-js';import {formatReminderOffset,@@ -28,6 +25,12 @@ import {REMINDER_PRESET_MINUTES,} from '../../utils/event-reminders';import { EventComposerPopoverPortal } from './EventComposerPopoverPortal';+import {+ AddOnlyGuestsEditor,+ EventGuestPicker,+ EventGuestRow,+ guestDisplayName,+} from './EventGuestsEditor';import {type EventEditorCalendarOption,type EventEditorConferenceChoice,@@ -54,30 +57,6 @@ export type EventComposerSelectOption = {const GUESTS_PROPERTY_ID = 'event-composer-guests';-function guestToUser(guest: SelectedEventEditorGuest): IUser {- return {- id: guest.id,- email: guestEmail(guest),- name: guestDisplayName(guest),- };-}--function guestFromId(- id: string,- options: EventEditorGuestOption[],- selected: SelectedEventEditorGuest[]-): SelectedEventEditorGuest {- const option = options.find((guest) => guest.id === id);- if (option) return option;- const prior = selected.find((guest) => guest.id === id);- if (prior) return prior;- return recipientEntityMapper('custom')({- id,- email: idToEmail(id),- invalid: false,- });-}-function guestsAsProperty(selected: SelectedEventEditorGuest[]): EntityProperty {@@ -104,13 +83,16 @@ export interface EventComposerGuestsPillProps {onChange: (selected: SelectedEventEditorGuest[]) => void;disabled?: boolean;readOnly?: boolean;+ /** Why a read-only guest list cannot change, shown as a tooltip. */+ readOnlyReason?: string;+ /**+ * The event's current guests when the viewer may add guests but not remove+ * them; they stay in `selected` and the editor only adds to them.+ */+ currentGuests?: SelectedEventEditorGuest[];hideIcon?: boolean;}-function guestDisplayName(guest: SelectedEventEditorGuest) {- return ('name' in guest.data && guest.data.name) || guest.data.email;-}-function guestPropertyLabel(selected: SelectedEventEditorGuest[]) {if (selected.length === 0) return 'Guests';if (selected.length > 1) return `${selected.length} guests`;@@ -129,30 +111,43 @@ function ReadOnlyEventComposerGuestsPill(props: EventComposerGuestsPillProps) {flipslide>- <Popover.Trigger- disabled={props.disabled}- aria-label="Guests"- aria-readonly="true"- class={cn(PROPERTY_TRIGGER_CLASS, 'max-w-48 overflow-hidden')}+ <Tooltip+ label={props.readOnlyReason ?? ''}+ disabled={!props.readOnlyReason || open()}>- <Show when={!props.hideIcon}>- <UsersIcon class="size-3.5 shrink-0 text-ink-extra-muted" />- </Show>- <span- class={cn(- 'min-w-0 truncate',- PROPERTY_VALUE_CLASS,- props.selected.length > 0 ? 'text-current' : 'text-ink-extra-muted'- )}+ <Popover.Trigger+ disabled={props.disabled}+ aria-label="Guests"+ aria-readonly="true"+ aria-description={props.readOnlyReason}+ class={cn(PROPERTY_TRIGGER_CLASS, 'max-w-48 overflow-hidden')}>- {guestPropertyLabel(props.selected)}- </span>- <CaretDownIcon class="size-3 shrink-0 text-ink-extra-muted" />- </Popover.Trigger>+ <Show when={!props.hideIcon}>+ <UsersIcon class="size-3.5 shrink-0 text-ink-extra-muted" />+ </Show>+ <span+ class={cn(+ 'min-w-0 truncate',+ PROPERTY_VALUE_CLASS,+ props.selected.length > 0+ ? 'text-current'+ : 'text-ink-extra-muted'+ )}+ >+ {guestPropertyLabel(props.selected)}+ </span>+ <CaretDownIcon class="size-3 shrink-0 text-ink-extra-muted" />+ </Popover.Trigger>+ </Tooltip><EventComposerPopoverPortal><Layer depth={3}><Popover.Content class="z-action-menu w-72 max-w-[calc(100vw-1rem)] rounded-xl border border-edge bg-menu-glass p-1.5 text-sm glass menu-open-animation"><Popover.Title class="sr-only">Event guests</Popover.Title>+ <Show when={props.readOnlyReason}>+ {(reason) => (+ <p class="px-2 pt-1 pb-2 text-xs text-ink-muted">{reason()}</p>+ )}+ </Show><Showwhen={props.selected.length > 0}fallback={@@ -163,26 +158,7 @@ function ReadOnlyEventComposerGuestsPill(props: EventComposerGuestsPillProps) {><div class="flex max-h-64 flex-col overflow-y-auto"><For each={props.selected}>- {(guest) => (- <div class="flex min-w-0 items-center gap-2 rounded-lg px-2 py-2 text-ink">- <UserIcon- id={guest.id}- size="sm"- isDeleted={false}- suppressClick- />- <div class="min-w-0 flex-1 truncate text-sm">- {guestDisplayName(guest)}- <Show- when={guestDisplayName(guest) !== guestEmail(guest)}- >- <span class="ml-[0.5em] text-ink-muted">- {guestEmail(guest)}- </span>- </Show>- </div>- </div>- )}+ {(guest) => <EventGuestRow guest={guest} />}</For></div></Show>@@ -194,17 +170,6 @@ function ReadOnlyEventComposerGuestsPill(props: EventComposerGuestsPillProps) {}function EditableEventComposerGuestsPill(props: EventComposerGuestsPillProps) {- const users = createMemo((): IUser[] => {- const byId = new Map<string, IUser>();- for (const guest of props.options()) {- byId.set(guest.id, guestToUser(guest));- }- for (const guest of props.selected) {- byId.set(guest.id, guestToUser(guest));- }- return [...byId.values()];- });-return (<PropertyRootproperty={guestsAsProperty(props.selected)}@@ -212,8 +177,8 @@ function EditableEventComposerGuestsPill(props: EventComposerGuestsPillProps) {><GuestsPillTrigger {...props} /><GuestsPopoverEditor- users={users}selected={props.selected}+ currentGuests={props.currentGuests}options={props.options}onChange={props.onChange}/>@@ -248,8 +213,8 @@ function GuestsPillTrigger(props: EventComposerGuestsPillProps) {}function GuestsPopoverEditor(props: {- users: Accessor<IUser[]>;selected: SelectedEventEditorGuest[];+ currentGuests?: SelectedEventEditorGuest[];options: Accessor<EventEditorGuestOption[]>;onChange: (selected: SelectedEventEditorGuest[]) => void;}) {@@ -257,26 +222,37 @@ function GuestsPopoverEditor(props: {return (<Show when={ctx.editorOpen()}><EditorPopover portalScope="local">- <PropertyEntitySelector- config={{- isMultiSelect: true,- placeholder: 'Add guests...',- specificEntityType: 'USER',- users: props.users,- allowCustomEmail: true,- }}- selectedOptions={() =>- new Set(props.selected.map((guest) => guest.id))+ <Show+ when={props.currentGuests}+ fallback={+ <EventGuestPicker+ options={props.options}+ selected={props.selected}+ onChange={props.onChange}+ onClose={() => ctx.closeEditor()}+ />}- setSelectedOptions={(ids) => {- props.onChange(- [...ids].map((id) =>- guestFromId(id, props.options(), props.selected)- )+ >+ {(currentGuests) => {+ const isCurrent = (guest: SelectedEventEditorGuest) =>+ currentGuests().some(+ (current) =>+ guestEmail(current).toLowerCase() ===+ guestEmail(guest).toLowerCase()+ );+ return (+ <AddOnlyGuestsEditor+ options={props.options}+ current={currentGuests()}+ added={props.selected.filter((guest) => !isCurrent(guest))}+ onAddedChange={(added) =>+ props.onChange([...currentGuests(), ...added])+ }+ onClose={() => ctx.closeEditor()}+ />);}}- onClose={() => ctx.closeEditor()}- />+ </Show></EditorPopover></Show>);diff --git a/apps/web/src/features/calendar/components/composer/create-calendar-event-form-controller.ts b/apps/web/src/features/calendar/components/composer/create-calendar-event-form-controller.tsindex 288ab9dc77..60b566a112 100644--- a/apps/web/src/features/calendar/components/composer/create-calendar-event-form-controller.ts+++ b/apps/web/src/features/calendar/components/composer/create-calendar-event-form-controller.ts@@ -141,17 +141,14 @@ export function createCalendarEventFormController();const [state, setState] = createSignal(cloneValue(options.initialValue));- const initialGuests = initialGuestOptions(- options.initialValue.guests,- options.guestOptions()+ const [initialGuests, setInitialGuests] = createSignal(+ initialGuestOptions(options.initialValue.guests, options.guestOptions()));+ const initialGuestEmails = () => initialGuests().map(guestEmail);- const [initialGuestEmails, setInitialGuestEmails] = createSignal(- initialGuests.map(guestEmail)- );-- const [selectedGuests, setSelectedGuestsState] =- createSignal<SelectedEventEditorGuest[]>(initialGuests);+ const [selectedGuests, setSelectedGuestsState] = createSignal<+ SelectedEventEditorGuest[]+ >(initialGuests());const recurrence = createEventEditorState({initialValues: options.initialValue,@@ -545,7 +542,7 @@ export function createCalendarEventFormController(batch(() => {setInitialValue(cloned);setState(cloned);- setInitialGuestEmails(guests.map(guestEmail));+ setInitialGuests(guests);setSelectedGuestsState(guests);setReminderEdits(undefined);recurrence.replaceInitialValues(cloned);@@ -557,6 +554,7 @@ export function createCalendarEventFormController(value,calendarOptions: availableCalendarOptions,guestOptions: options.guestOptions,+ initialGuests,selectedGuests,effectiveCalendarId,selectedCalendarOption,diff --git a/apps/web/src/features/calendar/hooks/create-guest-invite-controller.ts b/apps/web/src/features/calendar/hooks/create-guest-invite-controller.tsnew file mode 100644index 0000000000..204ac55d2d--- /dev/null+++ b/apps/web/src/features/calendar/hooks/create-guest-invite-controller.ts@@ -0,0 +1,119 @@+import { toast } from '@core/component/Toast/Toast';+import { fireAndForget } from '@core/util/fireAndForget';+import {+ type InviteCalendarEventGuestsArgs,+ isGuestInviteRefused,+ useInviteCalendarEventGuestsMutation,+} from '@queries/calendar/mutations';+import type { CalendarInviteScope } from '@service-email/client';+import { ResultAsync } from 'neverthrow';+import { type Accessor, createSignal } from 'solid-js';+import type { CalendarEvent } from '../types';+import {+ GUEST_INVITES_RESTRICTED,+ guestInvitesRestricted,+} from '../utils/event-guest-editing';++/** Guests an editor sends an invitation to, with the names its toast uses. */+export interface GuestInvitation {+ guests: { email: string; name: string; optional: boolean }[];+ scope: CalendarInviteScope;+}++export function invitationSentMessage(guests: readonly { name: string }[]) {+ return guests.length === 1+ ? `Invitation sent to ${guests[0]?.name}`+ : `Invitations sent to ${guests.length} people`;+}++/**+ * Inviting guests from event details. The editor closes as soon as the+ * invitation goes out, while the mutation shows the new guests as unanswered.+ * The outcome is announced once the provider answers, since that takes+ * seconds. A refusal means the organizer does not let guests invite, which+ * switches the details to their explanation.+ */+export function createGuestInviteController(+ event: Accessor<CalendarEvent>,+ enabled: Accessor<boolean>+) {+ const [editorOpen, setEditorOpen] = createSignal(false);+ const [refused, setRefused] = createSignal(false);+ const mutation = useInviteCalendarEventGuestsMutation();++ const deliver = async (+ args: InviteCalendarEventGuestsArgs,+ sentMessage: string+ ) => {+ const result = await ResultAsync.fromPromise(+ mutation.mutateAsync(args),+ (error) => error+ );+ if (result.isOk()) {+ if (result.value === 'queued') {+ toast.alert('Invitations will be sent when you are back online');+ return;+ }+ toast.success(sentMessage);+ return;+ }+ if (isGuestInviteRefused(result.error)) {+ setRefused(true);+ toast.failure(GUEST_INVITES_RESTRICTED);+ return;+ }+ toast.failure('Could not send invitations', {+ subtext: result.error instanceof Error ? result.error.message : undefined,+ });+ };++ return {+ editorOpen,+ setEditorOpen,+ canInvite: () => {+ const current = event();+ return (+ enabled() &&+ !refused() &&+ !current.isReadOnly &&+ !current.isCancelled &&+ !current.teamProjection &&+ current.viewerCan.inviteGuests+ );+ },+ restricted: () => refused() || guestInvitesRestricted(event()),+ send: (invitation: GuestInvitation) => {+ if (invitation.guests.length === 0) return;+ if (!navigator.onLine) {+ toast.failure('You are offline. Reconnect to send invitations.');+ return;+ }+ const current = event();+ const oneOccurrence = invitation.scope === 'this_event';+ setEditorOpen(false);+ fireAndForget(+ deliver(+ {+ eventId: current.eventId,+ calendarId: current.calendarId,+ guests: invitation.guests.map(({ email, optional }) => ({+ email,+ optional,+ })),+ scope: invitation.scope,+ recurrenceId: oneOccurrence+ ? (current.recurrenceId ?? current.occurrenceKey)+ : undefined,+ occurrenceKey: oneOccurrence ? current.occurrenceKey : undefined,+ },+ invitationSentMessage(invitation.guests)+ ),+ 'calendar-guest-invites'+ );+ },+ };+}++export type GuestInviteController = ReturnType<+ typeof createGuestInviteController+>;diff --git a/apps/web/src/features/calendar/hooks/use-calendar-ui-flag.ts b/apps/web/src/features/calendar/hooks/use-calendar-ui-flag.tsindex 6e422b4678..3924e68123 100644--- a/apps/web/src/features/calendar/hooks/use-calendar-ui-flag.ts+++ b/apps/web/src/features/calendar/hooks/use-calendar-ui-flag.ts@@ -1,5 +1,6 @@import { useFeatureFlag } from '@app/lib/analytics/posthog';import {+ enableCalendarGuestInvites,enableCalendarPromptMobile,enableCalendarPromptWeb,enableCalendarSearchUi,@@ -49,6 +50,12 @@ export function useCalendarTeamOooFlag(): Accessor<boolean> {return () => flag().enabled;}+/** Whether a guest the organizer allows to invite may add guests. */+export function useCalendarGuestInvitesFlag(): Accessor<boolean> {+ const flag = useFeatureFlag(enableCalendarGuestInvites);+ return () => flag().enabled;+}+export function useCalendarTeamSharingFlag(): Accessor<boolean> {const calendarUi = useCalendarUiFlag();const flag = useFeatureFlag(enableCalendarTeamSharing);diff --git a/apps/web/src/features/calendar/hooks/use-event-editor.test.ts b/apps/web/src/features/calendar/hooks/use-event-editor.test.tsindex 55911d068c..5a26d1673d 100644--- a/apps/web/src/features/calendar/hooks/use-event-editor.test.ts+++ b/apps/web/src/features/calendar/hooks/use-event-editor.test.ts@@ -5,11 +5,7 @@ import {calendarEventToEditorInitialValues,type EventEditorSubmitValues,} from '../components/composer/event-form-model';-import {- type CalendarEvent,- DEFAULT_GUEST_POLICY,- NO_VIEWER_CAPABILITIES,-} from '../types';+import { type CalendarEvent, DEFAULT_GUEST_POLICY } from '../types';import { useEventEditor } from './use-event-editor';const mocks = vi.hoisted(() => ({@@ -18,6 +14,7 @@ const mocks = vi.hoisted(() => ({failure: vi.fn(),alert: vi.fn(),updateEvent: vi.fn(),+ inviteGuests: vi.fn(),updateMeeting: vi.fn(),fetchMeeting: vi.fn(),quickCalls: true,@@ -46,6 +43,10 @@ vi.mock('@queries/calendar/mutations', () => ({mutateAsync: mocks.updateEvent,isPending: false,}),+ useInviteCalendarEventGuestsMutation: () => ({+ mutateAsync: mocks.inviteGuests,+ isPending: false,+ }),}));vi.mock('@queries/call/meetings', () => ({useCreateMeetingMutation: () => ({ mutateAsync: mocks.createMeeting }),@@ -74,7 +75,14 @@ const savedEvent: CalendarEvent = {isCancelled: false,isReadOnly: false,guestPolicy: DEFAULT_GUEST_POLICY,- viewerCan: NO_VIEWER_CAPABILITIES,+ // The viewer's own event with no guests yet: they organize it.+ viewerCan: {+ editDetails: true,+ inviteGuests: true,+ removeGuests: true,+ setGuestPolicy: true,+ rsvp: false,+ },attendees: [],recurrenceLines: [],title: 'Planning',@@ -97,6 +105,7 @@ beforeEach(() => {calendarId: 'calendar-1',});mocks.updateEvent.mockResolvedValue({ id: 'event-1' });+ mocks.inviteGuests.mockResolvedValue({ id: 'event-1' });mocks.createMeeting.mockResolvedValue({shareToken: '8m8mGwzHqxzYjeIN5-nJRquRbzyTEhGF',});@@ -797,6 +806,13 @@ describe('scheduling a Macro call', () => {it('retains an invited event link without managing another organizer’s call', async () => {const event = {...savedEvent,+ viewerCan: {+ editDetails: false,+ inviteGuests: true,+ removeGuests: false,+ setGuestPolicy: false,+ rsvp: true,+ },attendees: [{email: '[email protected]',@@ -992,3 +1008,172 @@ describe('scheduling a Macro call', () => {}});});++describe('guests of an event the viewer was invited to', () => {+ const invitedEvent = (+ viewerCan: CalendarEvent['viewerCan'],+ overrides: Partial<CalendarEvent> = {}+ ): CalendarEvent => ({+ ...savedEvent,+ location: '',+ viewerCan,+ attendees: [+ {+ email: '[email protected]',+ isOrganizer: true,+ isOptional: false,+ isSelf: false,+ responseStatus: 'accepted',+ },+ {+ email: '[email protected]',+ isOrganizer: false,+ isOptional: false,+ isSelf: true,+ responseStatus: 'accepted',+ },+ ],+ ...overrides,+ });+ const mayInvite = {+ editDetails: false,+ inviteGuests: true,+ removeGuests: false,+ setGuestPolicy: false,+ rsvp: true,+ };+ const mayNotInvite = { ...mayInvite, inviteGuests: false };+ const unchanged: EventEditorSubmitValues = {+ ...values,+ location: '',+ description: '',+ conferenceChoice: 'none',+ guestEmails: ['[email protected]'],+ };++ function editorFor(event: CalendarEvent, invitesEnabled: boolean) {+ return createRoot((dispose) => ({+ editor: useEventEditor({+ event: () => event,+ onSaved: vi.fn(),+ macroCallsEnabled: () => false,+ guestInvitesEnabled: () => invitesEnabled,+ }),+ dispose,+ }));+ }++ it('invites only the added guests instead of replacing the guest list', async () => {+ const { editor, dispose } = editorFor(invitedEvent(mayInvite), true);+ try {+ expect(editor.addOnlyGuests()).toBe(true);+ expect(editor.disabledFields()?.guests).toBe(false);+ expect(editor.disabledFields()?.conference).toBe(true);++ await editor.save({+ ...unchanged,+ title: 'Planning review',+ guestEmails: ['[email protected]', '[email protected]'],+ });++ expect(mocks.updateEvent).toHaveBeenCalledOnce();+ expect(mocks.updateEvent.mock.lastCall?.[0].patch).toEqual({+ title: 'Planning review',+ });+ expect(mocks.inviteGuests).toHaveBeenCalledWith({+ eventId: 'event-1',+ calendarId: 'calendar-1',+ guests: [{ email: '[email protected]' }],+ scope: 'all',+ recurrenceId: undefined,+ occurrenceKey: undefined,+ });+ expect(mocks.updateEvent.mock.invocationCallOrder[0]).toBeLessThan(+ mocks.inviteGuests.mock.invocationCallOrder[0]+ );+ } finally {+ dispose();+ }+ });++ it('sends no request when the guest added nobody', async () => {+ const { editor, dispose } = editorFor(invitedEvent(mayInvite), true);+ try {+ await editor.save(unchanged);+ expect(mocks.updateEvent).not.toHaveBeenCalled();+ expect(mocks.inviteGuests).not.toHaveBeenCalled();+ } finally {+ dispose();+ }+ });++ it('invites to the one occurrence an edit is scoped to', async () => {+ const { editor, dispose } = editorFor(+ invitedEvent(mayInvite, {+ recurrenceLines: ['RRULE:FREQ=WEEKLY'],+ recurrenceId: '2026-09-22T14:00:00Z',+ }),+ true+ );+ try {+ await editor.save(+ {+ ...unchanged,+ recurrenceLines: ['RRULE:FREQ=WEEKLY'],+ guestEmails: ['[email protected]', '[email protected]'],+ },+ 'this_event'+ );+ expect(mocks.inviteGuests).toHaveBeenCalledWith(+ expect.objectContaining({+ scope: 'this_event',+ recurrenceId: '2026-09-22T14:00:00Z',+ occurrenceKey: '2026-09-22T14:00:00Z',+ })+ );+ } finally {+ dispose();+ }+ });++ it('reports a refused invitation as a failed save', async () => {+ mocks.inviteGuests.mockRejectedValueOnce(+ new Error('Only the organizer can invite guests.')+ );+ const { editor, dispose } = editorFor(invitedEvent(mayInvite), true);+ try {+ await editor.save({+ ...unchanged,+ guestEmails: ['[email protected]', '[email protected]'],+ });+ expect(mocks.failure).toHaveBeenCalledWith('Failed to update event', {+ subtext: 'Only the organizer can invite guests.',+ });+ } finally {+ dispose();+ }+ });++ it('keeps the guest list read-only while guest invites are off', () => {+ const { editor, dispose } = editorFor(invitedEvent(mayInvite), false);+ try {+ expect(editor.addOnlyGuests()).toBe(false);+ expect(editor.disabledFields()?.guests).toBe(true);+ expect(editor.guestsReadOnlyReason()).toBeUndefined();+ } finally {+ dispose();+ }+ });++ it('explains why a guest the organizer does not let invite cannot add guests', () => {+ const { editor, dispose } = editorFor(invitedEvent(mayNotInvite), true);+ try {+ expect(editor.disabledFields()?.guests).toBe(true);+ expect(editor.guestsReadOnlyReason()).toBe(+ 'Only the organizer can invite guests.'+ );+ } finally {+ dispose();+ }+ });+});diff --git a/apps/web/src/features/calendar/hooks/use-event-editor.ts b/apps/web/src/features/calendar/hooks/use-event-editor.tsindex f32de236cb..3007217b5b 100644--- a/apps/web/src/features/calendar/hooks/use-event-editor.ts+++ b/apps/web/src/features/calendar/hooks/use-event-editor.ts@@ -4,6 +4,7 @@ import { recipientEntityMapper, useContacts } from '@core/user';import { useVisibleCalendarsQuery } from '@queries/calendar/calendars';import {useCreateCalendarEventMutation,+ useInviteCalendarEventGuestsMutation,useUpdateCalendarEventMutation,} from '@queries/calendar/mutations';import {@@ -31,8 +32,13 @@ import {spansMultipleInboxes,} from '../utils/calendar-label';import {+ addedGuestEmails,+ type EventGuestEditing,+ eventGuestEditing,+ GUEST_INVITES_RESTRICTED,+ guestInvitesRestricted,guestListChanged,- viewerCanEditGuests,+ viewerReplacesGuests,} from '../utils/event-guest-editing';import {attachCalendarMacroCall,@@ -83,6 +89,8 @@ interface UseEventEditorProps {event: Accessor<CalendarEvent | undefined>;onSaved: () => void;macroCallsEnabled: Accessor<boolean>;+ /** Whether a guest the organizer lets invite may add guests; off when omitted. */+ guestInvitesEnabled?: Accessor<boolean>;}/** Shared create/edit query and mutation orchestration for any editor shell. */@@ -143,9 +151,27 @@ export function useEventEditor(props: UseEventEditorProps) {}));});+ /**+ * How an edit may change the guest list. Guests written onto a copy other+ * than the primary one never reach the event Macro shows.+ */+ const guestEditing = createMemo<EventGuestEditing>(() => {+ const event = props.event();+ if (!event) return 'replace';+ if (!editsPrimaryCopy(event)) return 'none';+ return eventGuestEditing(event, props.guestInvitesEnabled?.() ?? false);+ });+ const guestsReadOnlyReason = () => {+ const event = props.event();+ return event && guestInvitesRestricted(event)+ ? GUEST_INVITES_RESTRICTED+ : undefined;+ };+const updateMeeting = useUpdateMeetingMutation();const create = useCreateCalendarEventMutation();const update = useUpdateCalendarEventMutation();+ const invite = useInviteCalendarEventGuestsMutation();const createMeeting = useCreateMeetingMutation();const [pending, setPending] = createSignal(false);@@ -215,10 +241,7 @@ export function useEventEditor(props: UseEventEditorProps) {event?.eventType !== 'out_of_office';const needsCall = () => props.macroCallsEnabled() && wantsMacroCall;const canManageCall =- !event ||- (!event.isReadOnly &&- editsPrimaryCopy(event) &&- viewerCanEditGuests(event));+ !event || (editsPrimaryCopy(event) && viewerReplacesGuests(event));if (needsCall() &&canManageCall &&@@ -301,6 +324,12 @@ export function useEventEditor(props: UseEventEditorProps) {values.recurrenceLines !== undefined &&values.recurrenceLines.join('\n') !== initialLines().join('\n');+ // A guest's additions go out as an invitation, which leaves the rest of+ // the guest list alone; only the organizer's save replaces the list.+ const invitedEmails =+ guestEditing() === 'add'+ ? addedGuestEmails(event, values.guestEmails)+ : [];const updateArgs = {eventId: event.eventId,calendarId: event.calendarId,@@ -321,7 +350,8 @@ export function useEventEditor(props: UseEventEditorProps) {...(recurrenceChanged? { recurrenceLines: values.recurrenceLines }: {}),- ...(guestListChanged(event, values.guestEmails)+ ...(guestEditing() === 'replace' &&+ guestListChanged(event, values.guestEmails)? {attendees: values.guestEmails.map((email) => ({ email })),}@@ -334,6 +364,16 @@ export function useEventEditor(props: UseEventEditorProps) {if (Object.keys(updateArgs.patch).length > 0) {await update.mutateAsync(updateArgs);}+ if (invitedEmails.length > 0) {+ await invite.mutateAsync({+ eventId: updateArgs.eventId,+ calendarId: updateArgs.calendarId,+ guests: invitedEmails.map((email) => ({ email })),+ scope: updateArgs.scope,+ recurrenceId: updateArgs.recurrenceId,+ occurrenceKey: updateArgs.occurrenceKey,+ });+ }calendarSaved = true;if (needsCall() && canManageCall && !existingMeetingUrl) {@@ -385,8 +425,8 @@ export function useEventEditor(props: UseEventEditorProps) {const editsOtherCopy = !editsPrimaryCopy(event);return {...EDIT_DISABLED_FIELDS,- guests: editsOtherCopy || !viewerCanEditGuests(event),- conference: editsOtherCopy || !viewerCanEditGuests(event),+ guests: guestEditing() === 'none',+ conference: editsOtherCopy || !viewerReplacesGuests(event),reminders: editsOtherCopy,};}@@ -395,6 +435,8 @@ export function useEventEditor(props: UseEventEditorProps) {return {initialValues,disabledFields,+ addOnlyGuests: () => guestEditing() === 'add',+ guestsReadOnlyReason,calendarOptions,guestOptions,showRecurringEditNotice,diff --git a/apps/web/src/features/calendar/utils/event-guest-editing.test.ts b/apps/web/src/features/calendar/utils/event-guest-editing.test.tsindex a16d2c618b..924450ed69 100644--- a/apps/web/src/features/calendar/utils/event-guest-editing.test.ts+++ b/apps/web/src/features/calendar/utils/event-guest-editing.test.ts@@ -1,11 +1,12 @@import type { CalendarAttendee } from '@service-storage/generated/schemas/calendarAttendee';import { describe, expect, it } from 'vitest';+import type { CalendarEvent } from '../types';import {- type CalendarEvent,- DEFAULT_GUEST_POLICY,- NO_VIEWER_CAPABILITIES,-} from '../types';-import { guestListChanged, viewerCanEditGuests } from './event-guest-editing';+ addedGuestEmails,+ eventGuestEditing,+ guestInvitesRestricted,+ guestListChanged,+} from './event-guest-editing';function attendee(overrides: Partial<CalendarAttendee>): CalendarAttendee {return {@@ -18,6 +19,35 @@ function attendee(overrides: Partial<CalendarAttendee>): CalendarAttendee {};}+const ORGANIZER = {+ editDetails: true,+ inviteGuests: true,+ removeGuests: true,+ setGuestPolicy: true,+ rsvp: true,+};+const MODIFYING_GUEST = {+ editDetails: true,+ inviteGuests: true,+ removeGuests: true,+ setGuestPolicy: false,+ rsvp: true,+};+const INVITING_GUEST = {+ editDetails: false,+ inviteGuests: true,+ removeGuests: false,+ setGuestPolicy: false,+ rsvp: true,+};+const GUEST = {+ editDetails: false,+ inviteGuests: false,+ removeGuests: false,+ setGuestPolicy: false,+ rsvp: true,+};+function event(overrides: Partial<CalendarEvent>): CalendarEvent {return {id: '["event","occurrence"]',@@ -25,8 +55,12 @@ function event(overrides: Partial<CalendarEvent>): CalendarEvent {occurrenceKey: 'occurrence',isCancelled: false,isReadOnly: false,- guestPolicy: DEFAULT_GUEST_POLICY,- viewerCan: NO_VIEWER_CAPABILITIES,+ guestPolicy: {+ canModify: false,+ canInviteOthers: true,+ canSeeOtherGuests: true,+ },+ viewerCan: ORGANIZER,attendees: [],recurrenceLines: [],sourceCalendarIds: [],@@ -40,63 +74,96 @@ function event(overrides: Partial<CalendarEvent>): CalendarEvent {};}-describe('viewerCanEditGuests', () => {- it('allows the organizer to edit guests', () => {+const invited = (viewerCan: CalendarEvent['viewerCan']) =>+ event({+ viewerCan,+ attendees: [+ attendee({ email: '[email protected]', isOrganizer: true }),+ attendee({ email: '[email protected]', isSelf: true }),+ ],+ });++describe('eventGuestEditing', () => {+ it('lets the organizer replace the guest list whether or not invites are enabled', () => {+ expect(eventGuestEditing(event({ viewerCan: ORGANIZER }), false)).toBe(+ 'replace'+ );+ expect(eventGuestEditing(event({ viewerCan: ORGANIZER }), true)).toBe(+ 'replace'+ );+ });++ it('lets a guest who may invite add guests only while invites are enabled', () => {+ expect(eventGuestEditing(invited(INVITING_GUEST), true)).toBe('add');+ expect(eventGuestEditing(invited(INVITING_GUEST), false)).toBe('none');+ });++ it('keeps a guest who may modify the event to adding guests', () => {+ expect(eventGuestEditing(invited(MODIFYING_GUEST), true)).toBe('add');+ });++ it('gives a guest who may not invite a read-only list', () => {+ expect(eventGuestEditing(invited(GUEST), true)).toBe('none');+ });++ it('gives a read-only copy or a team projection a read-only list', () => {+ expect(eventGuestEditing(event({ isReadOnly: true }), true)).toBe('none');expect(- viewerCanEditGuests(- event({- attendees: [- attendee({- email: '[email protected]',- isOrganizer: true,- isSelf: true,- }),- attendee({ email: '[email protected]' }),- ],- })+ eventGuestEditing(+ event({ teamProjection: { ownerId: 'teammate', kind: 'details' } }),+ true)- ).toBe(true);+ ).toBe('none');+ });+});++describe('guestInvitesRestricted', () => {+ it('explains the list of a guest the organizer does not let invite', () => {+ expect(guestInvitesRestricted(invited(GUEST))).toBe(true);});- it('blocks a mere guest from editing the list', () => {+ it('stays quiet for guests who may invite and for the organizer', () => {+ expect(guestInvitesRestricted(invited(INVITING_GUEST))).toBe(false);+ expect(guestInvitesRestricted(invited(ORGANIZER))).toBe(false);+ });++ it('stays quiet when the viewer is not on the event or cannot write to it', () => {expect(- viewerCanEditGuests(+ guestInvitesRestricted(event({- attendees: [- attendee({ email: '[email protected]', isOrganizer: true }),- attendee({ email: '[email protected]', isSelf: true }),- ],+ viewerCan: GUEST,+ attendees: [attendee({ email: '[email protected]' })],}))).toBe(false);+ expect(+ guestInvitesRestricted({ ...invited(GUEST), isReadOnly: true })+ ).toBe(false);});+});- it('allows editing a writable event that has no attendees yet', () => {- expect(viewerCanEditGuests(event({ attendees: [] }))).toBe(true);- });+describe('addedGuestEmails', () => {+ const current = invited(INVITING_GUEST);- it('blocks editing a read-only event with no attendees', () => {+ it('returns only the submitted guests the event lacks, in order', () => {expect(- viewerCanEditGuests(event({ attendees: [], isReadOnly: true }))- ).toBe(false);+ addedGuestEmails(current, [+ '[email protected]',+ '[email protected]',+ '[email protected]',+ ])+ ).toEqual(['[email protected]', '[email protected]']);});- it('blocks editing a read-only event even when self organizes it', () => {+ it('ignores case, surrounding space, repeats and the viewer', () => {expect(- viewerCanEditGuests(- event({- isReadOnly: true,- attendees: [- attendee({- email: '[email protected]',- isOrganizer: true,- isSelf: true,- }),- attendee({ email: '[email protected]' }),- ],- })- )- ).toBe(false);+ addedGuestEmails(current, [+ ' [email protected]',+ '[email protected]',+ '[email protected]',+ '[email protected] ',+ ])+ ).toEqual(['[email protected]']);});});@@ -137,12 +204,6 @@ describe('guestListChanged', () => {it('does not count the viewer-as-guest against the seed', () => {// A non-organizer self attendee is excluded from the seed, so resubmitting// the visible guest list alone is not a change.- const invited = event({- attendees: [- attendee({ email: '[email protected]', isOrganizer: true }),- attendee({ email: '[email protected]', isSelf: true }),- ],- });- expect(guestListChanged(invited, ['[email protected]'])).toBe(false);+ expect(guestListChanged(invited(GUEST), ['[email protected]'])).toBe(false);});});diff --git a/apps/web/src/features/calendar/utils/event-guest-editing.ts b/apps/web/src/features/calendar/utils/event-guest-editing.tsindex 8b004d96e5..d6f6d93e34 100644--- a/apps/web/src/features/calendar/utils/event-guest-editing.ts+++ b/apps/web/src/features/calendar/utils/event-guest-editing.ts@@ -1,8 +1,15 @@import { eventGuestEmails } from '../components/composer/event-form-model';import type { CalendarEvent } from '../types';+/** Shown where a guest would add guests when the organizer does not allow it. */+export const GUEST_INVITES_RESTRICTED = 'Only the organizer can invite guests.';++function normalizeGuestEmail(email: string) {+ return email.trim().toLowerCase();+}+function normalizeGuestEmails(emails: readonly string[]): string[] {- return [...new Set(emails.map((email) => email.trim().toLowerCase()))].sort();+ return [...new Set(emails.map(normalizeGuestEmail))].sort();}function emailListsEqual(first: readonly string[], second: readonly string[]) {@@ -15,20 +22,61 @@ function emailListsEqual(first: readonly string[], second: readonly string[]) {}/**- * Whether the viewer may change the guest list of an existing event. A- * read-only event never qualifies. Otherwise only the organizer can: the- * editor's replacement attendee list would otherwise drop the viewer, whose- * own email is seeded only when they organize the event.+ * How the viewer may change an existing event's guest list.*- * A writable event with no attendees at all is treated as the viewer's own- * (a solo event they created), so the first guest can still be added — there- * is no attendee to drop in that case.+ * - `replace`: add and remove guests; a save replaces the whole list.+ * - `add`: add guests through an invitation; the current guests stay fixed.+ * - `none`: the list is read-only.+ */+export type EventGuestEditing = 'replace' | 'add' | 'none';++/**+ * Whether the viewer may replace the event's guest list. Only the organizer,+ * the one viewer who may also set the guest policy, does: the editor's list+ * omits a guest's own entry, so a guest's replacement would drop them, and+ * guests add but never remove.+ */+export function viewerReplacesGuests(event: CalendarEvent): boolean {+ return (+ !event.isReadOnly &&+ !event.teamProjection &&+ event.viewerCan.removeGuests &&+ event.viewerCan.setGuestPolicy+ );+}++/**+ * How the viewer may change an existing event's guest list, from the+ * server's capabilities. A guest the organizer lets invite adds through a+ * separate invitation, while guest invites are enabled.*/-export function viewerCanEditGuests(event: CalendarEvent): boolean {- if (event.isReadOnly) return false;- const organizer = event.attendees.find((attendee) => attendee.isOrganizer);- if (organizer) return organizer.isSelf;- return event.attendees.length === 0;+export function eventGuestEditing(+ event: CalendarEvent,+ invitesEnabled: boolean+): EventGuestEditing {+ if (viewerReplacesGuests(event)) return 'replace';+ if (+ invitesEnabled &&+ !event.isReadOnly &&+ !event.teamProjection &&+ event.viewerCan.inviteGuests+ ) {+ return 'add';+ }+ return 'none';+}++/**+ * Whether the viewer is a guest on a writable event whose organizer does not+ * let guests invite others, so the guest list explains why it cannot grow.+ */+export function guestInvitesRestricted(event: CalendarEvent): boolean {+ return (+ !event.isReadOnly &&+ !event.teamProjection &&+ !event.viewerCan.inviteGuests &&+ event.attendees.some((attendee) => attendee.isSelf)+ );}/**@@ -42,3 +90,19 @@ export function guestListChanged(): boolean {return !emailListsEqual(eventGuestEmails(event), nextGuestEmails);}++/** Submitted guests the event does not have yet, in submitted order. */+export function addedGuestEmails(+ event: CalendarEvent,+ nextGuestEmails: readonly string[]+): string[] {+ const seen = new Set(+ event.attendees.map((attendee) => normalizeGuestEmail(attendee.email))+ );+ return nextGuestEmails.filter((email) => {+ const normalized = normalizeGuestEmail(email);+ if (seen.has(normalized)) return false;+ seen.add(normalized);+ return true;+ });+}diff --git a/apps/web/src/lib/core/constant/featureFlags.ts b/apps/web/src/lib/core/constant/featureFlags.tsindex 603e6b0df0..396ff5e2ac 100644--- a/apps/web/src/lib/core/constant/featureFlags.ts+++ b/apps/web/src/lib/core/constant/featureFlags.ts@@ -684,6 +684,17 @@ export const enableCalendarTeamSharing = defineFlag({default: onInDev,});+// A guest adding guests: the event details "Add guests" action and the+// composer's add-only guest editing. The invite endpoints enforce the+// organizer's policy unflagged, so this only hides the entry points.+// PostHog-gated with a dev-mode default; override with+// VITE_ENABLE_CALENDAR_GUEST_INVITES.+export const enableCalendarGuestInvites = defineFlag({+ key: 'enable-calendar-guest-invites',+ env: 'ENABLE_CALENDAR_GUEST_INVITES',+ default: onInDev,+});+// Sharing a personal tag with the team: the "Share with team" action on// personal tags in Settings › Tags, and the prompt that merges into an// existing team label when the names collide. The backend endpoints shipdiff --git a/apps/web/src/lib/queries/calendar/graphql/mutations.ts b/apps/web/src/lib/queries/calendar/graphql/mutations.tsindex 775e31c15b..6a96da1346 100644--- a/apps/web/src/lib/queries/calendar/graphql/mutations.ts+++ b/apps/web/src/lib/queries/calendar/graphql/mutations.ts@@ -27,6 +27,9 @@ import {type GraphqlCalendarOutOfOfficeAutoDeclineMode,type GraphqlCalendarRsvpScope,type GraphqlCalendarUpdateScope,+ InviteCalendarEventGuestsDocument,+ type InviteCalendarEventGuestsMutation,+ type InviteCalendarEventGuestsMutationVariables,RespondToCalendarEventDocument,type RespondToCalendarEventMutation,UpdateCalendarEventDocument,@@ -37,6 +40,7 @@ import type { AnyVariables, Client, OperationResult } from '@urql/core';import { v4 as uuidv4, v5 as uuidv5 } from 'uuid';import type {DeleteCalendarEventArgs,+ InviteCalendarEventGuestsArgs,RsvpCalendarEventArgs,UpdateCalendarEventArgs,} from '../mutations';@@ -51,6 +55,7 @@ import {occurrenceKeyOf,patchedEvent,patchedOccurrence,+ withInvitedGuests,withRsvp,} from './optimistic';import { epochDay } from './range';@@ -63,6 +68,7 @@ export type CalendarMutationHost = Pick<type EventRecord = CalendarEventFieldsFragment;type OccurrenceRecord = CalendarOccurrenceItemFieldsFragment;type Payload = CalendarMutationPayloadFieldsFragment;+type InviteScope = InviteCalendarEventGuestsMutationVariables['input']['scope'];/** A calendar mutation the server rejected; `code` is the REST error code. */export class CalendarMutationError extends Error {@@ -310,6 +316,71 @@ export async function executeGraphqlRsvp(return settle(host, result, result.data?.respondToCalendarEvent ?? undefined);}+/** Adds guests to the series or one occurrence through the durable queue. */+export async function executeGraphqlInviteGuests(+ host: CalendarMutationHost,+ args: InviteCalendarEventGuestsArgs,+ client: Client = getGraphqlSoupClient()+): Promise<CalendarMutationOutcome> {+ assertCreated(args.eventId);+ const oneOccurrence = args.scope === 'this_event';+ const [event, occurrences] = await Promise.all([+ cachedEvent(host, args.eventId),+ cachedOccurrences(host, args.eventId),+ ]);+ // Like an RSVP: guests added to one occurrence join that instance's own+ // attendee list; guests added to the series join the series list and every+ // instance that carries its own, as the provider applies it.+ const patchedOccurrences = occurrences+ .filter((occurrence) =>+ oneOccurrence+ ? occurrence.occurrenceKey === args.occurrenceKey+ : occurrence.overrideAttendees !== null+ )+ .map((occurrence) => ({+ __typename: occurrence.__typename,+ id: occurrence.id,+ overrideAttendees: withInvitedGuests(+ occurrence.overrideAttendees ?? event?.attendees ?? [],+ args.guests+ ),+ }));+ const result = await executeOptimisticMutation(+ client,+ InviteCalendarEventGuestsDocument,+ {+ input: {+ eventId: args.eventId,+ guests: args.guests.map((guest) => ({+ email: guest.email,+ optional: guest.optional ?? false,+ })),+ scope: graphqlEnum<InviteScope>(args.scope ?? 'all'),+ ...(args.calendarId ? { calendarId: args.calendarId } : {}),+ ...(args.recurrenceId ? { recurrenceId: args.recurrenceId } : {}),+ },+ },+ {+ inviteCalendarEventGuests: payloadOf(+ event && !oneOccurrence+ ? {+ __typename: EVENT_TYPENAME,+ id: args.eventId,+ attendees: withInvitedGuests(event.attendees, args.guests),+ }+ : undefined,+ patchedOccurrences+ ),+ } as OptimisticResponse<InviteCalendarEventGuestsMutation>,+ { uuid: uuidv4() }+ ).toPromise();+ return settle(+ host,+ result,+ result.data?.inviteCalendarEventGuests ?? undefined+ );+}+/** Patches an event, the series or one occurrence, through the durable queue. */export async function executeGraphqlUpdate(host: CalendarMutationHost,diff --git a/apps/web/src/lib/queries/calendar/graphql/optimistic.ts b/apps/web/src/lib/queries/calendar/graphql/optimistic.tsindex 9ef9352714..c7ddfc1271 100644--- a/apps/web/src/lib/queries/calendar/graphql/optimistic.ts+++ b/apps/web/src/lib/queries/calendar/graphql/optimistic.ts@@ -1,3 +1,4 @@+import type { CalendarGuestInputBody } from '@service-calendar/generated/schemas/calendarGuestInputBody';import type { EventReminders } from '@service-storage/generated/schemas/eventReminders';import type { EventTime } from '@service-storage/generated/schemas/eventTime';import type {@@ -99,6 +100,33 @@ export function withRsvp();}+/**+ * The attendee list with invited guests appended as unanswered, skipping+ * anyone already on it.+ */+export function withInvitedGuests(+ attendees: readonly CalendarAttendeeFieldsFragment[],+ guests: readonly CalendarGuestInputBody[]+): CalendarAttendeeFieldsFragment[] {+ const present = new Set(+ attendees.map((attendee) => attendee.email.toLowerCase())+ );+ return [+ ...attendees,+ ...guests+ .filter((guest) => !present.has(guest.email.toLowerCase()))+ .map((guest) => ({+ email: guest.email,+ displayName: null,+ responseStatus: 'NEEDS_ACTION' as const,+ isOrganizer: false,+ isOptional: guest.optional ?? false,+ isSelf: false,+ comment: null,+ })),+ ];+}+export interface EventFieldPatch {title?: string | null;description?: string | null;diff --git a/apps/web/src/lib/queries/calendar/graphql/tests/mutations.test.ts b/apps/web/src/lib/queries/calendar/graphql/tests/mutations.test.tsindex a15fdc6344..700d2ce011 100644--- a/apps/web/src/lib/queries/calendar/graphql/tests/mutations.test.ts+++ b/apps/web/src/lib/queries/calendar/graphql/tests/mutations.test.ts@@ -12,6 +12,7 @@ import {committedEvent,executeGraphqlCreate,executeGraphqlDelete,+ executeGraphqlInviteGuests,executeGraphqlRsvp,executeGraphqlUpdate,trackCalendarCreateSettlements,@@ -238,6 +239,87 @@ describe('executeGraphqlRsvp', () => {});});+describe('executeGraphqlInviteGuests', () => {+ it('adds guests to the series and every instance carrying its own attendee list', async () => {+ const declined = instance(6, {+ overrideAttendees: [attendee('[email protected]', 'DECLINED')],+ });+ const host = fakeHost(graphqlEvent(), [instance(5), declined]);+ const { calls, client } = fakeClient('committed');++ await executeGraphqlInviteGuests(+ host,+ {+ eventId: 'event-1',+ guests: [+ { email: '[email protected]', optional: true },+ { email: '[email protected]' },+ ],+ },+ client+ );++ const [call] = calls;+ expect(call?.variables.input).toEqual({+ eventId: 'event-1',+ guests: [+ { email: '[email protected]', optional: true },+ { email: '[email protected]', optional: false },+ ],+ scope: 'ALL',+ });+ const optimistic = response(call!);+ const dana = {+ ...attendee('[email protected]', 'NEEDS_ACTION'),+ isOptional: true,+ };+ expect(optimistic.event?.attendees).toEqual([+ attendee('[email protected]', 'NEEDS_ACTION'),+ dana,+ ]);+ expect(optimistic.occurrences).toEqual([+ {+ __typename: 'GraphqlCalendarOccurrence',+ id: declined.id,+ overrideAttendees: [attendee('[email protected]', 'DECLINED'), dana],+ },+ ]);+ });++ it('adds guests to one instance alone', async () => {+ const host = fakeHost(graphqlEvent(), [instance(5), instance(6)]);+ const { calls, client } = fakeClient('committed');++ await executeGraphqlInviteGuests(+ host,+ {+ eventId: 'event-1',+ guests: [{ email: '[email protected]' }],+ scope: 'this_event',+ recurrenceId: 'r6',+ occurrenceKey: '2026-10-06T09:00:00+00:00',+ },+ client+ );++ const optimistic = response(calls[0]!);+ expect(optimistic.event).toBeUndefined();+ expect(optimistic.occurrences).toEqual([+ expect.objectContaining({+ id: 'event-1:2026-10-06T09:00:00+00:00',+ overrideAttendees: [+ attendee('[email protected]', 'NEEDS_ACTION'),+ attendee('[email protected]', 'NEEDS_ACTION'),+ ],+ }),+ ]);+ expect(calls[0]?.variables.input).toMatchObject({+ scope: 'THIS_EVENT',+ recurrenceId: 'r6',+ });+ });+});+describe('executeGraphqlUpdate', () => {it('moves a standalone event and its occurrence', async () => {const event = graphqlEvent({ recurrenceLines: [] });diff --git a/apps/web/src/lib/queries/calendar/mutations.ts b/apps/web/src/lib/queries/calendar/mutations.tsindex a7f2fdb4c4..4765a8bee3 100644--- a/apps/web/src/lib/queries/calendar/mutations.ts+++ b/apps/web/src/lib/queries/calendar/mutations.ts@@ -1,12 +1,16 @@import { fireAndForget } from '@core/util/fireAndForget';-import { throwOnErr } from '@core/util/result';+import { thrownResultErrorHasCode, throwOnErr } from '@core/util/result';+import { Telemetry } from '@macro-inc/observability';import { queryClient } from '@queries/client';import { type MutationCallbacks, withCallbacks } from '@queries/utils';import type { CalendarEvent as CalendarEventEntity } from '@service-calendar/generated/schemas/calendarEvent';+import type { CalendarGuestInputBody } from '@service-calendar/generated/schemas/calendarGuestInputBody';+import { CalendarMutationErrorCode } from '@service-calendar/generated/schemas/calendarMutationErrorCode';import type { CreateCalendarEventRequest } from '@service-calendar/generated/schemas/createCalendarEventRequest';import type { UpdateCalendarEventRequest } from '@service-calendar/generated/schemas/updateCalendarEventRequest';import {type CalendarDeletionScope,+ type CalendarInviteScope,type CalendarRsvpScope,type CalendarUpdateScope,emailClient,@@ -18,9 +22,11 @@ import type { EventTime } from '@service-storage/generated/schemas/eventTime';import { useMutation } from '@tanstack/solid-query';import { answeringGraphqlCalendarHost } from './graphql/flag';import {+ CalendarMutationError,committedEvent,executeGraphqlCreate,executeGraphqlDelete,+ executeGraphqlInviteGuests,executeGraphqlRsvp,executeGraphqlUpdate,} from './graphql/mutations';@@ -339,6 +345,154 @@ export function useRsvpCalendarEventMutation(callbacks?: RsvpCallbacks) {}));}+export interface InviteCalendarEventGuestsArgs {+ eventId: string;+ /** Calendar whose copy the invitation goes through. Omit for the canonical copy. */+ calendarId?: string;+ guests: CalendarGuestInputBody[];+ /** How much of a recurring series gains the guests; defaults to all of it. */+ scope?: CalendarInviteScope;+ /** Original-start key of the occurrence a scoped invitation targets. */+ recurrenceId?: string;+ /** Cache key of the occurrence, for the optimistic update. */+ occurrenceKey?: string;+}++/** The cached item with invited guests appended as unanswered. */+function withInvitedGuests(+ item: CalendarOccurrenceItem,+ guests: readonly CalendarGuestInputBody[]+): CalendarOccurrenceItem {+ const present = new Set(+ item.event.attendees.map((attendee) => attendee.email.toLowerCase())+ );+ const added = guests.filter(+ (guest) => !present.has(guest.email.toLowerCase())+ );+ if (added.length === 0) return item;+ return {+ ...item,+ event: {+ ...item.event,+ attendees: [+ ...item.event.attendees,+ ...added.map((guest) => ({+ email: guest.email,+ responseStatus: 'needs_action' as const,+ isOrganizer: false,+ isOptional: guest.optional ?? false,+ isSelf: false,+ })),+ ],+ },+ };+}++/** Whether a write failed because the organizer does not let the viewer invite guests. */+export function isGuestInviteRefused(error: unknown): boolean {+ return (+ thrownResultErrorHasCode(+ error,+ CalendarMutationErrorCode.guests_cannot_invite+ ) ||+ (error instanceof CalendarMutationError &&+ error.code === CalendarMutationErrorCode.guests_cannot_invite)+ );+}++/**+ * Whether an invitation reached the provider, or waits in the durable queue+ * until the cache reconnects.+ */+export type InviteCalendarEventGuestsOutcome = 'sent' | 'queued';++type InviteCallbacks = MutationCallbacks<+ InviteCalendarEventGuestsOutcome,+ Error,+ InviteCalendarEventGuestsArgs,+ CalendarMutationContext+>;++async function inviteCalendarEventGuests(+ args: InviteCalendarEventGuestsArgs+): Promise<InviteCalendarEventGuestsOutcome> {+ return Telemetry.span('calendar.invite_guests', async (span) => {+ const host = answeringGraphqlCalendarHost();+ span.setAttr('calendar.event_id', args.eventId);+ span.setAttr('calendar.invite.guest_count', args.guests.length);+ span.setAttr('calendar.invite.scope', args.scope ?? 'all');+ span.setAttr(+ 'calendar.invite.one_occurrence',+ args.recurrenceId !== undefined+ );+ span.setAttr('calendar.transport', host ? 'graphql' : 'rest');+ try {+ if (host) {+ const outcome = await executeGraphqlInviteGuests(host, args);+ const result = outcome.kind === 'queued' ? 'queued' : 'sent';+ span.setAttr('calendar.invite.outcome', result);+ return result;+ }+ await throwOnErr(() =>+ emailClient.inviteCalendarEventGuests(args.eventId, {+ calendarId: args.calendarId,+ guests: args.guests,+ scope: args.scope,+ recurrenceId: args.recurrenceId,+ })+ );+ span.setAttr('calendar.invite.outcome', 'sent');+ return 'sent';+ } catch (error) {+ const refused = isGuestInviteRefused(error);+ span.setAttr('calendar.invite.outcome', refused ? 'refused' : 'failed');+ // Provider messages can quote addresses; record only the category.+ span.error(+ refused ? 'Guest invitation refused' : 'Guest invitation failed'+ );+ throw error;+ }+ });+}++/**+ * Adds guests without replacing the guest list, so a guest the organizer+ * lets invite can use it. The new guests show at once as unanswered on the+ * occurrences the scope covers.+ */+export function useInviteCalendarEventGuestsMutation(+ callbacks?: InviteCallbacks+) {+ return useMutation(() => ({+ mutationFn: inviteCalendarEventGuests,+ ...withCallbacks<+ InviteCalendarEventGuestsOutcome,+ Error,+ InviteCalendarEventGuestsArgs,+ CalendarMutationContext+ >(+ {+ onMutate: (args) =>+ patchOccurrenceCaches(+ patchEventItems(args.eventId, (item) =>+ args.scope === 'this_event' &&+ item.occurrence.occurrenceKey !== args.occurrenceKey+ ? item+ : withInvitedGuests(item, args.guests)+ )+ ),+ onError: (_error, _args, context) => context?.rollback(),+ onSettled: (_data, _error, args) => {+ fireAndForget(invalidateCalendarInvitations(), 'calendar-mutations');+ invalidateCalendarEventPreviews(args.eventId);+ return invalidateCalendarOccurrences();+ },+ },+ callbacks+ ),+ }));+}+export interface DeleteCalendarEventArgs {eventId: string;/** Calendar whose copy of the event is deleted. Omit for the canonical copy. */diff --git a/apps/web/src/lib/queries/calendar/tests/mutations.test.tsx b/apps/web/src/lib/queries/calendar/tests/mutations.test.tsxindex 817538f214..cb4cef573e 100644--- a/apps/web/src/lib/queries/calendar/tests/mutations.test.tsx+++ b/apps/web/src/lib/queries/calendar/tests/mutations.test.tsx@@ -8,7 +8,9 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';import { invalidateInvitationScheduling } from '../invitations';import { calendarKeys } from '../keys';import {+ isGuestInviteRefused,useDeleteCalendarEventMutation,+ useInviteCalendarEventGuestsMutation,useRsvpCalendarEventMutation,useUpdateCalendarEventMutation,} from '../mutations';@@ -17,12 +19,14 @@ import type { CalendarOccurrencesData } from '../occurrences';const rsvpCalendarEventMock = vi.hoisted(() => vi.fn());const deleteCalendarEventMock = vi.hoisted(() => vi.fn());const updateCalendarEventMock = vi.hoisted(() => vi.fn());+const inviteCalendarEventGuestsMock = vi.hoisted(() => vi.fn());vi.mock('@service-email/client', () => ({emailClient: {rsvpCalendarEvent: rsvpCalendarEventMock,deleteCalendarEvent: deleteCalendarEventMock,updateCalendarEvent: updateCalendarEventMock,+ inviteCalendarEventGuests: inviteCalendarEventGuestsMock,},}));@@ -706,6 +710,147 @@ describe('useUpdateCalendarEventMutation', () => {});});+describe('useInviteCalendarEventGuestsMutation', () => {+ const attendeesOf = (eventId: string, range = viewportA) =>+ viewportData(range)?.items.find((item) => item.event.id === eventId)?.event+ .attendees;++ it('shows the new guests as unanswered on every viewport while the request is in flight', async () => {+ const pending = deferredResult();+ inviteCalendarEventGuestsMock.mockReturnValue(pending.promise);+ const invite = renderHook(() => useInviteCalendarEventGuestsMutation());++ const sent = invite.mutateAsync({+ eventId: 'event-1',+ guests: [+ { email: '[email protected]', optional: true },+ { email: '[email protected]' },+ ],+ });+ await vi.waitFor(() =>+ expect(inviteCalendarEventGuestsMock).toHaveBeenCalled()+ );++ for (const range of [viewportA, viewportB]) {+ expect(attendeesOf('event-1', range)).toEqual([+ {+ email: '[email protected]',+ isSelf: true,+ responseStatus: 'needs_action',+ },+ {+ email: '[email protected]',+ isSelf: false,+ responseStatus: 'declined',+ },+ {+ email: '[email protected]',+ responseStatus: 'needs_action',+ isOrganizer: false,+ isOptional: true,+ isSelf: false,+ },+ ]);+ }+ expect(inviteCalendarEventGuestsMock).toHaveBeenCalledWith('event-1', {+ calendarId: undefined,+ guests: [+ { email: '[email protected]', optional: true },+ { email: '[email protected]' },+ ],+ scope: undefined,+ recurrenceId: undefined,+ });+ pending.resolve(ok({ id: 'event-1' }));+ expect(await sent).toBe('sent');+ });++ it('adds guests to the targeted occurrence alone', async () => {+ const keys = ['2026-08-04T09:00:00Z', '2026-08-05T09:00:00Z'];+ const occurrence = (key: string): CalendarOccurrenceItem =>+ ({+ event: {+ id: 'event-4',+ recurrenceLines: ['RRULE:FREQ=DAILY'],+ time: { kind: 'timed', startsAt: key, endsAt: key },+ attendees: [],+ },+ occurrence: {+ eventId: 'event-4',+ occurrenceKey: key,+ recurrenceId: key,+ time: { kind: 'timed', startsAt: key, endsAt: key },+ },+ }) as unknown as CalendarOccurrenceItem;+ testQueryClient.setQueryData(+ calendarKeys.occurrences('user', viewportA).queryKey,+ { items: keys.map(occurrence), syncStatus: 'ready' }+ );+ inviteCalendarEventGuestsMock.mockResolvedValue(ok({ id: 'event-4' }));+ const invite = renderHook(() => useInviteCalendarEventGuestsMutation());+ const emailsAt = (key: string) =>+ viewportData(viewportA)+ ?.items.find((item) => item.occurrence.occurrenceKey === key)+ ?.event.attendees.map((attendee) => attendee.email);++ await invite.mutateAsync({+ eventId: 'event-4',+ guests: [{ email: '[email protected]' }],+ scope: 'this_event',+ recurrenceId: keys[1],+ occurrenceKey: keys[1],+ });++ expect(emailsAt(keys[0])).toEqual([]);+ expect(emailsAt(keys[1])).toEqual(['[email protected]']);+ });++ it('removes the optimistic guests when the organizer does not allow inviting', async () => {+ inviteCalendarEventGuestsMock.mockResolvedValue(+ err([+ {+ code: 'guests_cannot_invite' as const,+ message: 'Only the organizer can invite guests.',+ },+ ])+ );+ const invite = renderHook(() => useInviteCalendarEventGuestsMutation());++ let error: unknown;+ try {+ await invite.mutateAsync({+ eventId: 'event-1',+ guests: [{ email: '[email protected]' }],+ });+ } catch (caught) {+ error = caught;+ }++ expect(isGuestInviteRefused(error)).toBe(true);+ expect(attendeesOf('event-1')?.map((attendee) => attendee.email)).toEqual([+ '[email protected]',+ '[email protected]',+ ]);+ });++ it('does not read other failures as a refusal', async () => {+ inviteCalendarEventGuestsMock.mockResolvedValue(failure());+ const invite = renderHook(() => useInviteCalendarEventGuestsMutation());++ let error: unknown;+ try {+ await invite.mutateAsync({+ eventId: 'event-1',+ guests: [{ email: '[email protected]' }],+ });+ } catch (caught) {+ error = caught;+ }++ expect(isGuestInviteRefused(error)).toBe(false);+ });+});+it('updates and rolls back invitation projections with no calendar viewport loaded', async () => {testQueryClient.removeQueries({ queryKey: calendarKeys.occurrences._def });const item = standaloneItem();diff --git a/apps/web/src/lib/queries/mutation-coverage.test.ts b/apps/web/src/lib/queries/mutation-coverage.test.tsindex 7974e09f34..d4b3ba90a5 100644--- a/apps/web/src/lib/queries/mutation-coverage.test.ts+++ b/apps/web/src/lib/queries/mutation-coverage.test.ts@@ -33,6 +33,7 @@ const policies = {UpdateCalendarEvent: 'custom: event and occurrence edits',DeleteCalendarEvent: 'custom: event and occurrence removal',RespondToCalendarEvent: 'custom: attendee response',+ InviteCalendarEventGuests: 'custom: added attendees',MarkWorkFeedItemsDone:'custom: feed rows stay hidden until the server removes them',CreateInitiative: 'authoritative: server assigns the project ID',diff --git a/apps/web/src/lib/service-clients/service-email/client.ts b/apps/web/src/lib/service-clients/service-email/client.tsindex 6d7dd80327..129e3798f5 100644--- a/apps/web/src/lib/service-clients/service-email/client.ts+++ b/apps/web/src/lib/service-clients/service-email/client.ts@@ -10,6 +10,7 @@ import type {CalendarEventProviderUrl,CalendarReplacementView,CreateCalendarEventRequest,+ InviteCalendarEventGuestsRequest,ListCalendarsResponse,PrepareCalendarReplacementRequest,RsvpCalendarEventRequest,@@ -78,6 +79,9 @@ export type CalendarRsvpScope = 'all' | 'this_event';/** How much of a recurring series a calendar update applies to. */export type CalendarUpdateScope = 'all' | 'this_event';+/** How much of a recurring series an invitation adds guests to. */+export type CalendarInviteScope = 'all' | 'this_event';+function emailLinkHeaders(linkId?: string): Record<string, string> | undefined {return linkId ? { [EMAIL_LINK_ID_HEADER]: linkId } : undefined;}@@ -847,6 +851,19 @@ export const emailClient = {});},+ async inviteCalendarEventGuests(+ eventId: string,+ args: InviteCalendarEventGuestsRequest+ ) {+ return fetchWithToken<CalendarEvent, CalendarMutationErrorCode>(+ `${calendarHost}/events/${eventId}/guests`,+ {+ method: 'POST',+ body: JSON.stringify(args),+ errorResponseHandler: calendarMutationErrorHandler,+ }+ );+ },async importGmailSignature(linkId?: string) {return fetchWithToken<diff --git a/apps/web/src/lib/service-clients/service-storage/graphql/calendar.graphql b/apps/web/src/lib/service-clients/service-storage/graphql/calendar.graphqlindex 217685f8f9..2c8dc9f33c 100644--- a/apps/web/src/lib/service-clients/service-storage/graphql/calendar.graphql+++ b/apps/web/src/lib/service-clients/service-storage/graphql/calendar.graphql@@ -229,3 +229,9 @@ mutation RespondToCalendarEvent($input: RespondToCalendarEventInput!) {...CalendarMutationPayloadFields}}++mutation InviteCalendarEventGuests($input: InviteCalendarEventGuestsInput!) {+ inviteCalendarEventGuests(input: $input) {+ ...CalendarMutationPayloadFields+ }+}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 7bcff02d3a..395a0482a7 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@@ -52,6 +52,14 @@ export type CalendarEventTimeInput =| { allDay?: never; /** A span with absolute instants. */timed: TimedEventTimeInput; };+/** A guest to add to an event. */+export type CalendarGuestInput = {+ /** Guest email address. */+ email: string;+ /** Whether attendance is optional. */+ optional?: boolean;+};+/** How far the client has applied one connected inbox's change log. */export type CalendarLinkWatermarkInput = {/** Connected inbox identifier. */@@ -1736,6 +1744,23 @@ export type InitiativeSharePermissionInput = {teamShareAccessLevel?: GraphqlEntityAccessLevel | null | undefined;};+/** Add guests to an event without touching anyone already invited. */+export type InviteCalendarEventGuestsInput = {+ /**+ * Calendar whose copy of the event is written, for an event synced from+ * more than one calendar. Omit to write the canonical copy.+ */+ calendarId?: string | number | null | undefined;+ /** Event to add guests to. */+ eventId: string | number;+ /** Guests to add; anyone already on the event is skipped. */+ guests: Array<CalendarGuestInput>;+ /** Original-start key of the occurrence; required with `THIS_EVENT`. */+ recurrenceId?: string | null | undefined;+ /** How much of a recurring series gains the guests. */+ scope: GraphqlCalendarUpdateScope;+};+/** Input for marking an email thread as seen. */export type MarkEmailThreadSeenInput = {/** Email thread to mark as seen. */@@ -2985,6 +3010,22 @@ export type RespondToCalendarEventMutation = { respondToCalendarEvent: { __typen| { __typename: 'GraphqlTimedEventTime', startsAt: string, endsAt: string, timeZone: string | null }, attendees: Array<{ email: string, displayName: string | null, responseStatus: GraphqlCalendarAttendeeResponseStatus, isOrganizer: boolean, isOptional: boolean, isSelf: boolean, comment: string | null }>, reminders: { useDefault: boolean, overrides: Array<{ method: string, minutes: number }> }, guestPolicy: { canModify: boolean, canInviteOthers: boolean, canSeeOtherGuests: boolean }, viewerCan: { editDetails: boolean, inviteGuests: boolean, removeGuests: boolean, setGuestPolicy: boolean, rsvp: boolean } } }> } };+export type InviteCalendarEventGuestsMutationVariables = Exact<{+ input: InviteCalendarEventGuestsInput;+}>;+++export type InviteCalendarEventGuestsMutation = { inviteCalendarEventGuests: { __typename: 'GraphqlCalendarMutationPayload', deletedEventId: string | null, event: { __typename: 'GraphqlCalendarEvent', id: string, ownerId: string, linkId: string, icalUid: string, calendarId: string | null, title: string, description: string | null, location: string | null, status: GraphqlCalendarEventStatus, visibility: GraphqlCalendarEventVisibility, transparency: GraphqlCalendarEventTransparency, eventType: GraphqlCalendarEventType, recurrenceLines: Array<string>, organizerEmail: string | null, organizerName: string | null, creatorEmail: string | null, creatorName: string | null, conferenceUrl: string | null, conferenceProvider: GraphqlCalendarConferenceProvider | null, sequence: number, isReadOnly: boolean, createdAt: string, updatedAt: string, sources: Array<{ calendarId: string, title: string, description: string | null, location: string | null, eventType: GraphqlCalendarEventType, visibility: GraphqlCalendarEventVisibility, transparency: GraphqlCalendarEventTransparency, isReadOnly: boolean, creatorEmail: string | null, creatorName: string | null, reminders: { useDefault: boolean, overrides: Array<{ method: string, minutes: number }> } }>, time:+ | { __typename: 'GraphqlAllDayEventTime', startDate: string, endDate: string }+ | { __typename: 'GraphqlTimedEventTime', startsAt: string, endsAt: string, timeZone: string | null }+ , attendees: Array<{ email: string, displayName: string | null, responseStatus: GraphqlCalendarAttendeeResponseStatus, isOrganizer: boolean, isOptional: boolean, isSelf: boolean, comment: string | null }>, reminders: { useDefault: boolean, overrides: Array<{ method: string, minutes: number }> }, guestPolicy: { canModify: boolean, canInviteOthers: boolean, canSeeOtherGuests: boolean }, viewerCan: { editDetails: boolean, inviteGuests: boolean, removeGuests: boolean, setGuestPolicy: boolean, rsvp: boolean } } | null, occurrences: Array<{ __typename: 'GraphqlCalendarOccurrence', id: string, eventId: string, linkId: string, occurrenceKey: string, recurrenceId: string | null, isCancelled: boolean, overrideTitle: string | null, overrideDescription: string | null, overrideLocation: string | null, overrideStatus: GraphqlCalendarEventStatus | null, time:+ | { __typename: 'GraphqlAllDayEventTime', startDate: string, endDate: string }+ | { __typename: 'GraphqlTimedEventTime', startsAt: string, endsAt: string, timeZone: string | null }+ , overrideAttendees: Array<{ email: string, displayName: string | null, responseStatus: GraphqlCalendarAttendeeResponseStatus, isOrganizer: boolean, isOptional: boolean, isSelf: boolean, comment: string | null }> | null, event: { __typename: 'GraphqlCalendarEvent', id: string, ownerId: string, linkId: string, icalUid: string, calendarId: string | null, title: string, description: string | null, location: string | null, status: GraphqlCalendarEventStatus, visibility: GraphqlCalendarEventVisibility, transparency: GraphqlCalendarEventTransparency, eventType: GraphqlCalendarEventType, recurrenceLines: Array<string>, organizerEmail: string | null, organizerName: string | null, creatorEmail: string | null, creatorName: string | null, conferenceUrl: string | null, conferenceProvider: GraphqlCalendarConferenceProvider | null, sequence: number, isReadOnly: boolean, createdAt: string, updatedAt: string, sources: Array<{ calendarId: string, title: string, description: string | null, location: string | null, eventType: GraphqlCalendarEventType, visibility: GraphqlCalendarEventVisibility, transparency: GraphqlCalendarEventTransparency, isReadOnly: boolean, creatorEmail: string | null, creatorName: string | null, reminders: { useDefault: boolean, overrides: Array<{ method: string, minutes: number }> } }>, time:+ | { __typename: 'GraphqlAllDayEventTime', startDate: string, endDate: string }+ | { __typename: 'GraphqlTimedEventTime', startsAt: string, endsAt: string, timeZone: string | null }+ , attendees: Array<{ email: string, displayName: string | null, responseStatus: GraphqlCalendarAttendeeResponseStatus, isOrganizer: boolean, isOptional: boolean, isSelf: boolean, comment: string | null }>, reminders: { useDefault: boolean, overrides: Array<{ method: string, minutes: number }> }, guestPolicy: { canModify: boolean, canInviteOthers: boolean, canSeeOtherGuests: boolean }, viewerCan: { editDetails: boolean, inviteGuests: boolean, removeGuests: boolean, setGuestPolicy: boolean, rsvp: boolean } } }> } };+export type RecordChannelActivityMutationVariables = Exact<{input: RecordChannelActivityInput;}>;@@ -19323,6 +19364,7 @@ export const CreateCalendarEventDocument = {"kind":"Document","definitions":[{"kexport const UpdateCalendarEventDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCalendarEvent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateCalendarEventInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateCalendarEvent"},"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":"CalendarMutationPayloadFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarReminderFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarReminders"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"useDefault"}},{"kind":"Field","name":{"kind":"Name","value":"overrides"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"method"}},{"kind":"Field","name":{"kind":"Name","value":"minutes"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarEventTimeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEventTime"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTimedEventTime"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"startsAt"}},{"kind":"Field","name":{"kind":"Name","value":"endsAt"}},{"kind":"Field","name":{"kind":"Name","value":"timeZone"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAllDayEventTime"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"startDate"}},{"kind":"Field","name":{"kind":"Name","value":"endDate"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarAttendeeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarAttendee"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"responseStatus"}},{"kind":"Field","name":{"kind":"Name","value":"isOrganizer"}},{"kind":"Field","name":{"kind":"Name","value":"isOptional"}},{"kind":"Field","name":{"kind":"Name","value":"isSelf"}},{"kind":"Field","name":{"kind":"Name","value":"comment"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarEventFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"icalUid"}},{"kind":"Field","name":{"kind":"Name","value":"calendarId"}},{"kind":"Field","name":{"kind":"Name","value":"sources"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"calendarId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"location"}},{"kind":"Field","name":{"kind":"Name","value":"eventType"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"transparency"}},{"kind":"Field","name":{"kind":"Name","value":"isReadOnly"}},{"kind":"Field","name":{"kind":"Name","value":"reminders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarReminderFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"creatorEmail"}},{"kind":"Field","name":{"kind":"Name","value":"creatorName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"location"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"transparency"}},{"kind":"Field","name":{"kind":"Name","value":"eventType"}},{"kind":"Field","name":{"kind":"Name","value":"time"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarEventTimeFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"recurrenceLines"}},{"kind":"Field","name":{"kind":"Name","value":"organizerEmail"}},{"kind":"Field","name":{"kind":"Name","value":"organizerName"}},{"kind":"Field","name":{"kind":"Name","value":"creatorEmail"}},{"kind":"Field","name":{"kind":"Name","value":"creatorName"}},{"kind":"Field","name":{"kind":"Name","value":"conferenceUrl"}},{"kind":"Field","name":{"kind":"Name","value":"conferenceProvider"}},{"kind":"Field","name":{"kind":"Name","value":"sequence"}},{"kind":"Field","name":{"kind":"Name","value":"isReadOnly"}},{"kind":"Field","name":{"kind":"Name","value":"attendees"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarAttendeeFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reminders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarReminderFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"guestPolicy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"canModify"}},{"kind":"Field","name":{"kind":"Name","value":"canInviteOthers"}},{"kind":"Field","name":{"kind":"Name","value":"canSeeOtherGuests"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewerCan"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"editDetails"}},{"kind":"Field","name":{"kind":"Name","value":"inviteGuests"}},{"kind":"Field","name":{"kind":"Name","value":"removeGuests"}},{"kind":"Field","name":{"kind":"Name","value":"setGuestPolicy"}},{"kind":"Field","name":{"kind":"Name","value":"rsvp"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarOccurrenceItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarOccurrence"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventId"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"occurrenceKey"}},{"kind":"Field","name":{"kind":"Name","value":"recurrenceId"}},{"kind":"Field","name":{"kind":"Name","value":"isCancelled"}},{"kind":"Field","name":{"kind":"Name","value":"time"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarEventTimeFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"overrideTitle"}},{"kind":"Field","name":{"kind":"Name","value":"overrideDescription"}},{"kind":"Field","name":{"kind":"Name","value":"overrideLocation"}},{"kind":"Field","name":{"kind":"Name","value":"overrideStatus"}},{"kind":"Field","name":{"kind":"Name","value":"overrideAttendees"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarAttendeeFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"event"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarEventFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarMutationPayloadFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarMutationPayload"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"event"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarEventFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"occurrences"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarOccurrenceItemFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"deletedEventId"}}]}}]} as unknown as DocumentNode<UpdateCalendarEventMutation, UpdateCalendarEventMutationVariables>;export const DeleteCalendarEventDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteCalendarEvent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DeleteCalendarEventInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteCalendarEvent"},"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":"CalendarMutationPayloadFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarReminderFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarReminders"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"useDefault"}},{"kind":"Field","name":{"kind":"Name","value":"overrides"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"method"}},{"kind":"Field","name":{"kind":"Name","value":"minutes"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarEventTimeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEventTime"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTimedEventTime"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"startsAt"}},{"kind":"Field","name":{"kind":"Name","value":"endsAt"}},{"kind":"Field","name":{"kind":"Name","value":"timeZone"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAllDayEventTime"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"startDate"}},{"kind":"Field","name":{"kind":"Name","value":"endDate"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarAttendeeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarAttendee"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"responseStatus"}},{"kind":"Field","name":{"kind":"Name","value":"isOrganizer"}},{"kind":"Field","name":{"kind":"Name","value":"isOptional"}},{"kind":"Field","name":{"kind":"Name","value":"isSelf"}},{"kind":"Field","name":{"kind":"Name","value":"comment"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarEventFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"icalUid"}},{"kind":"Field","name":{"kind":"Name","value":"calendarId"}},{"kind":"Field","name":{"kind":"Name","value":"sources"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"calendarId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"location"}},{"kind":"Field","name":{"kind":"Name","value":"eventType"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"transparency"}},{"kind":"Field","name":{"kind":"Name","value":"isReadOnly"}},{"kind":"Field","name":{"kind":"Name","value":"reminders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarReminderFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"creatorEmail"}},{"kind":"Field","name":{"kind":"Name","value":"creatorName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"location"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"transparency"}},{"kind":"Field","name":{"kind":"Name","value":"eventType"}},{"kind":"Field","name":{"kind":"Name","value":"time"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarEventTimeFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"recurrenceLines"}},{"kind":"Field","name":{"kind":"Name","value":"organizerEmail"}},{"kind":"Field","name":{"kind":"Name","value":"organizerName"}},{"kind":"Field","name":{"kind":"Name","value":"creatorEmail"}},{"kind":"Field","name":{"kind":"Name","value":"creatorName"}},{"kind":"Field","name":{"kind":"Name","value":"conferenceUrl"}},{"kind":"Field","name":{"kind":"Name","value":"conferenceProvider"}},{"kind":"Field","name":{"kind":"Name","value":"sequence"}},{"kind":"Field","name":{"kind":"Name","value":"isReadOnly"}},{"kind":"Field","name":{"kind":"Name","value":"attendees"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarAttendeeFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reminders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarReminderFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"guestPolicy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"canModify"}},{"kind":"Field","name":{"kind":"Name","value":"canInviteOthers"}},{"kind":"Field","name":{"kind":"Name","value":"canSeeOtherGuests"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewerCan"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"editDetails"}},{"kind":"Field","name":{"kind":"Name","value":"inviteGuests"}},{"kind":"Field","name":{"kind":"Name","value":"removeGuests"}},{"kind":"Field","name":{"kind":"Name","value":"setGuestPolicy"}},{"kind":"Field","name":{"kind":"Name","value":"rsvp"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarOccurrenceItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarOccurrence"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventId"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"occurrenceKey"}},{"kind":"Field","name":{"kind":"Name","value":"recurrenceId"}},{"kind":"Field","name":{"kind":"Name","value":"isCancelled"}},{"kind":"Field","name":{"kind":"Name","value":"time"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarEventTimeFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"overrideTitle"}},{"kind":"Field","name":{"kind":"Name","value":"overrideDescription"}},{"kind":"Field","name":{"kind":"Name","value":"overrideLocation"}},{"kind":"Field","name":{"kind":"Name","value":"overrideStatus"}},{"kind":"Field","name":{"kind":"Name","value":"overrideAttendees"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarAttendeeFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"event"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarEventFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarMutationPayloadFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarMutationPayload"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"event"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarEventFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"occurrences"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarOccurrenceItemFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"deletedEventId"}}]}}]} as unknown as DocumentNode<DeleteCalendarEventMutation, DeleteCalendarEventMutationVariables>;export const RespondToCalendarEventDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RespondToCalendarEvent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RespondToCalendarEventInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"respondToCalendarEvent"},"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":"CalendarMutationPayloadFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarReminderFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarReminders"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"useDefault"}},{"kind":"Field","name":{"kind":"Name","value":"overrides"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"method"}},{"kind":"Field","name":{"kind":"Name","value":"minutes"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarEventTimeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEventTime"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTimedEventTime"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"startsAt"}},{"kind":"Field","name":{"kind":"Name","value":"endsAt"}},{"kind":"Field","name":{"kind":"Name","value":"timeZone"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAllDayEventTime"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"startDate"}},{"kind":"Field","name":{"kind":"Name","value":"endDate"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarAttendeeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarAttendee"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"responseStatus"}},{"kind":"Field","name":{"kind":"Name","value":"isOrganizer"}},{"kind":"Field","name":{"kind":"Name","value":"isOptional"}},{"kind":"Field","name":{"kind":"Name","value":"isSelf"}},{"kind":"Field","name":{"kind":"Name","value":"comment"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarEventFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"icalUid"}},{"kind":"Field","name":{"kind":"Name","value":"calendarId"}},{"kind":"Field","name":{"kind":"Name","value":"sources"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"calendarId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"location"}},{"kind":"Field","name":{"kind":"Name","value":"eventType"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"transparency"}},{"kind":"Field","name":{"kind":"Name","value":"isReadOnly"}},{"kind":"Field","name":{"kind":"Name","value":"reminders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarReminderFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"creatorEmail"}},{"kind":"Field","name":{"kind":"Name","value":"creatorName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"location"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"transparency"}},{"kind":"Field","name":{"kind":"Name","value":"eventType"}},{"kind":"Field","name":{"kind":"Name","value":"time"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarEventTimeFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"recurrenceLines"}},{"kind":"Field","name":{"kind":"Name","value":"organizerEmail"}},{"kind":"Field","name":{"kind":"Name","value":"organizerName"}},{"kind":"Field","name":{"kind":"Name","value":"creatorEmail"}},{"kind":"Field","name":{"kind":"Name","value":"creatorName"}},{"kind":"Field","name":{"kind":"Name","value":"conferenceUrl"}},{"kind":"Field","name":{"kind":"Name","value":"conferenceProvider"}},{"kind":"Field","name":{"kind":"Name","value":"sequence"}},{"kind":"Field","name":{"kind":"Name","value":"isReadOnly"}},{"kind":"Field","name":{"kind":"Name","value":"attendees"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarAttendeeFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reminders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarReminderFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"guestPolicy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"canModify"}},{"kind":"Field","name":{"kind":"Name","value":"canInviteOthers"}},{"kind":"Field","name":{"kind":"Name","value":"canSeeOtherGuests"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewerCan"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"editDetails"}},{"kind":"Field","name":{"kind":"Name","value":"inviteGuests"}},{"kind":"Field","name":{"kind":"Name","value":"removeGuests"}},{"kind":"Field","name":{"kind":"Name","value":"setGuestPolicy"}},{"kind":"Field","name":{"kind":"Name","value":"rsvp"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarOccurrenceItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarOccurrence"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventId"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"occurrenceKey"}},{"kind":"Field","name":{"kind":"Name","value":"recurrenceId"}},{"kind":"Field","name":{"kind":"Name","value":"isCancelled"}},{"kind":"Field","name":{"kind":"Name","value":"time"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarEventTimeFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"overrideTitle"}},{"kind":"Field","name":{"kind":"Name","value":"overrideDescription"}},{"kind":"Field","name":{"kind":"Name","value":"overrideLocation"}},{"kind":"Field","name":{"kind":"Name","value":"overrideStatus"}},{"kind":"Field","name":{"kind":"Name","value":"overrideAttendees"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarAttendeeFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"event"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarEventFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarMutationPayloadFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarMutationPayload"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"event"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarEventFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"occurrences"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarOccurrenceItemFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"deletedEventId"}}]}}]} as unknown as DocumentNode<RespondToCalendarEventMutation, RespondToCalendarEventMutationVariables>;+export const InviteCalendarEventGuestsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"InviteCalendarEventGuests"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"InviteCalendarEventGuestsInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"inviteCalendarEventGuests"},"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":"CalendarMutationPayloadFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarReminderFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarReminders"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"useDefault"}},{"kind":"Field","name":{"kind":"Name","value":"overrides"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"method"}},{"kind":"Field","name":{"kind":"Name","value":"minutes"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarEventTimeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEventTime"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTimedEventTime"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"startsAt"}},{"kind":"Field","name":{"kind":"Name","value":"endsAt"}},{"kind":"Field","name":{"kind":"Name","value":"timeZone"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAllDayEventTime"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"startDate"}},{"kind":"Field","name":{"kind":"Name","value":"endDate"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarAttendeeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarAttendee"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"responseStatus"}},{"kind":"Field","name":{"kind":"Name","value":"isOrganizer"}},{"kind":"Field","name":{"kind":"Name","value":"isOptional"}},{"kind":"Field","name":{"kind":"Name","value":"isSelf"}},{"kind":"Field","name":{"kind":"Name","value":"comment"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarEventFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"ownerId"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"icalUid"}},{"kind":"Field","name":{"kind":"Name","value":"calendarId"}},{"kind":"Field","name":{"kind":"Name","value":"sources"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"calendarId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"location"}},{"kind":"Field","name":{"kind":"Name","value":"eventType"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"transparency"}},{"kind":"Field","name":{"kind":"Name","value":"isReadOnly"}},{"kind":"Field","name":{"kind":"Name","value":"reminders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarReminderFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"creatorEmail"}},{"kind":"Field","name":{"kind":"Name","value":"creatorName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"location"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"transparency"}},{"kind":"Field","name":{"kind":"Name","value":"eventType"}},{"kind":"Field","name":{"kind":"Name","value":"time"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarEventTimeFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"recurrenceLines"}},{"kind":"Field","name":{"kind":"Name","value":"organizerEmail"}},{"kind":"Field","name":{"kind":"Name","value":"organizerName"}},{"kind":"Field","name":{"kind":"Name","value":"creatorEmail"}},{"kind":"Field","name":{"kind":"Name","value":"creatorName"}},{"kind":"Field","name":{"kind":"Name","value":"conferenceUrl"}},{"kind":"Field","name":{"kind":"Name","value":"conferenceProvider"}},{"kind":"Field","name":{"kind":"Name","value":"sequence"}},{"kind":"Field","name":{"kind":"Name","value":"isReadOnly"}},{"kind":"Field","name":{"kind":"Name","value":"attendees"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarAttendeeFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reminders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarReminderFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"guestPolicy"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"canModify"}},{"kind":"Field","name":{"kind":"Name","value":"canInviteOthers"}},{"kind":"Field","name":{"kind":"Name","value":"canSeeOtherGuests"}}]}},{"kind":"Field","name":{"kind":"Name","value":"viewerCan"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"editDetails"}},{"kind":"Field","name":{"kind":"Name","value":"inviteGuests"}},{"kind":"Field","name":{"kind":"Name","value":"removeGuests"}},{"kind":"Field","name":{"kind":"Name","value":"setGuestPolicy"}},{"kind":"Field","name":{"kind":"Name","value":"rsvp"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarOccurrenceItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarOccurrence"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventId"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"occurrenceKey"}},{"kind":"Field","name":{"kind":"Name","value":"recurrenceId"}},{"kind":"Field","name":{"kind":"Name","value":"isCancelled"}},{"kind":"Field","name":{"kind":"Name","value":"time"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarEventTimeFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"overrideTitle"}},{"kind":"Field","name":{"kind":"Name","value":"overrideDescription"}},{"kind":"Field","name":{"kind":"Name","value":"overrideLocation"}},{"kind":"Field","name":{"kind":"Name","value":"overrideStatus"}},{"kind":"Field","name":{"kind":"Name","value":"overrideAttendees"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarAttendeeFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"event"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarEventFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarMutationPayloadFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarMutationPayload"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"event"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarEventFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"occurrences"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarOccurrenceItemFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"deletedEventId"}}]}}]} as unknown as DocumentNode<InviteCalendarEventGuestsMutation, InviteCalendarEventGuestsMutationVariables>;export const RecordChannelActivityDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RecordChannelActivity"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"RecordChannelActivityInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"recordChannelActivity"},"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":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userId"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"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"}}]}}]}}]} as unknown as DocumentNode<RecordChannelActivityMutation, RecordChannelActivityMutationVariables>;export const UpdateNotificationsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateNotifications"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateNotificationsInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateNotifications"},"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":"__typename"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationStateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventType"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"sent"}},{"kind":"Field","name":{"kind":"Name","value":"state"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationNavigationMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotifEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDocumentMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentMentionDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMentionedInDocumentCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentMentionId"},"name":{"kind":"Name","value":"mentionId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlRepliedToDocumentCommentThreadMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityAccessRequestedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedRequestId"},"name":{"kind":"Name","value":"requestId"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedRevision"},"name":{"kind":"Name","value":"revision"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedEntityName"},"name":{"kind":"Name","value":"entityName"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedAccessLevel"},"name":{"kind":"Name","value":"accessLevel"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityAccessGrantedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedRequestId"},"name":{"kind":"Name","value":"requestId"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedRevision"},"name":{"kind":"Name","value":"revision"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedEntityName"},"name":{"kind":"Name","value":"entityName"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedAccessLevel"},"name":{"kind":"Name","value":"accessLevel"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCommentedOnDocumentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInitiativeDiscussionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionProjectName"},"name":{"kind":"Name","value":"projectName"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionReason"},"name":{"kind":"Name","value":"reason"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCrmDiscussionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionRecordName"},"name":{"kind":"Name","value":"recordName"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionReason"},"name":{"kind":"Name","value":"reason"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelInviteMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelInviteInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageSendMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageReactionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionEmoji"},"name":{"kind":"Name","value":"emoji"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelReplyMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyUserId"},"name":{"kind":"Name","value":"userId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadParentSenderId"},"name":{"kind":"Name","value":"threadParentSenderId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCallStartedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"callStartedChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"callStartedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNewEmailMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"newEmailSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailToEmail"},"name":{"kind":"Name","value":"toEmail"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSubject"},"name":{"kind":"Name","value":"subject"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSnippet"},"name":{"kind":"Name","value":"snippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInboxReauthRequiredMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inboxReauthRequiredEmailAddress"},"name":{"kind":"Name","value":"emailAddress"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInviteToTeamMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamName"},"name":{"kind":"Name","value":"teamName"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamInviteId"},"name":{"kind":"Name","value":"teamInviteId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamRole"},"name":{"kind":"Name","value":"role"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskAssignedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskId"},"name":{"kind":"Name","value":"taskId"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskName"},"name":{"kind":"Name","value":"taskName"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedAssignedBy"},"name":{"kind":"Name","value":"assignedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"reminderReminderId"},"name":{"kind":"Name","value":"reminderId"}},{"kind":"Field","alias":{"kind":"Name","value":"reminderDescription"},"name":{"kind":"Name","value":"description"}},{"kind":"Field","alias":{"kind":"Name","value":"reminderScheduledFor"},"name":{"kind":"Name","value":"scheduledFor"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarEventReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEventId"},"name":{"kind":"Name","value":"eventId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderOccurrenceKey"},"name":{"kind":"Name","value":"occurrenceKey"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartsAt"},"name":{"kind":"Name","value":"startsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEndsAt"},"name":{"kind":"Name","value":"endsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartDate"},"name":{"kind":"Name","value":"startDate"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTimeZone"},"name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderMinutesBefore"},"name":{"kind":"Name","value":"minutesBefore"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAiResponseMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"aiResponseSummary"},"name":{"kind":"Name","value":"summary"}},{"kind":"Field","alias":{"kind":"Name","value":"aiResponseMessageId"},"name":{"kind":"Name","value":"messageId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrStatusChangedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedStatus"},"name":{"kind":"Name","value":"status"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedAction"},"name":{"kind":"Name","value":"action"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedPreviousStatus"},"name":{"kind":"Name","value":"previousStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedHeadBranch"},"name":{"kind":"Name","value":"headBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedBaseBranch"},"name":{"kind":"Name","value":"baseBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedMergedAt"},"name":{"kind":"Name","value":"mergedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCheckRunMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckRunGithubId"},"name":{"kind":"Name","value":"checkRunGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckName"},"name":{"kind":"Name","value":"checkName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckStatus"},"name":{"kind":"Name","value":"checkStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunConclusion"},"name":{"kind":"Name","value":"conclusion"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckUrl"},"name":{"kind":"Name","value":"checkUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCompletedAt"},"name":{"kind":"Name","value":"completedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubReviewRequestedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubLogin"},"name":{"kind":"Name","value":"requestedReviewerGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubUserId"},"name":{"kind":"Name","value":"requestedReviewerGithubUserId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentKind"},"name":{"kind":"Name","value":"commentKind"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentSnippet"},"name":{"kind":"Name","value":"commentSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionLocation"},"name":{"kind":"Name","value":"location"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTextSnippet"},"name":{"kind":"Name","value":"textSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrReviewMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewGithubId"},"name":{"kind":"Name","value":"reviewGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewUrl"},"name":{"kind":"Name","value":"reviewUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewSnippet"},"name":{"kind":"Name","value":"reviewSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionSettledMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledTurn"},"name":{"kind":"Name","value":"turn"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledActor"},"name":{"kind":"Name","value":"actor"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledStopReason"},"name":{"kind":"Name","value":"stopReason"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledExcerpt"},"name":{"kind":"Name","value":"excerpt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionWaitingForInputMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputTurn"},"name":{"kind":"Name","value":"turn"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputQuestion"},"name":{"kind":"Name","value":"question"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionMentionedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedMentionedBy"},"name":{"kind":"Name","value":"mentionedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedActionId"},"name":{"kind":"Name","value":"actionId"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotifEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationNavigationMetadataFields"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageSendMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelReplyMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelReplyHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationStateFields"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationMetadataFields"}}]}}]}}]} as unknown as DocumentNode<UpdateNotificationsMutation, UpdateNotificationsMutationVariables>;export const UpdateNotificationsForEntityDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateNotificationsForEntity"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateNotificationsForEntityInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateNotificationsForEntity"},"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":"__typename"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationStateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventType"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"sent"}},{"kind":"Field","name":{"kind":"Name","value":"state"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"viewedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"senderId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationNavigationMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotifEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDocumentMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"documentMentionDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"documentMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlMentionedInDocumentCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentMentionId"},"name":{"kind":"Name","value":"mentionId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"mentionedInDocumentCommentSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlRepliedToDocumentCommentThreadMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"repliedToDocumentCommentThreadSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityAccessRequestedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedRequestId"},"name":{"kind":"Name","value":"requestId"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedRevision"},"name":{"kind":"Name","value":"revision"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedEntityName"},"name":{"kind":"Name","value":"entityName"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessRequestedAccessLevel"},"name":{"kind":"Name","value":"accessLevel"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityAccessGrantedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedRequestId"},"name":{"kind":"Name","value":"requestId"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedRevision"},"name":{"kind":"Name","value":"revision"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedEntityName"},"name":{"kind":"Name","value":"entityName"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"entityAccessGrantedAccessLevel"},"name":{"kind":"Name","value":"accessLevel"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCommentedOnDocumentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentDocumentName"},"name":{"kind":"Name","value":"documentName"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentFileType"},"name":{"kind":"Name","value":"fileType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentCommentId"},"name":{"kind":"Name","value":"commentId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"commentedOnDocumentSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInitiativeDiscussionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionProjectName"},"name":{"kind":"Name","value":"projectName"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionReason"},"name":{"kind":"Name","value":"reason"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"initiativeDiscussionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCrmDiscussionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionRecordName"},"name":{"kind":"Name","value":"recordName"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionReason"},"name":{"kind":"Name","value":"reason"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionText"},"name":{"kind":"Name","value":"text"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"crmDiscussionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelInviteMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelInviteInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelInviteSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageSendMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageReactionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionEmoji"},"name":{"kind":"Name","value":"emoji"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionChannelType"},"name":{"kind":"Name","value":"channelType"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageReactionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelReplyMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageId"},"name":{"kind":"Name","value":"messageId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyUserId"},"name":{"kind":"Name","value":"userId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyThreadParentSenderId"},"name":{"kind":"Name","value":"threadParentSenderId"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelType"},"name":{"kind":"Name","value":"channelType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCallStartedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"callStartedChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"callStartedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNewEmailMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"newEmailSender"},"name":{"kind":"Name","value":"sender"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailToEmail"},"name":{"kind":"Name","value":"toEmail"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailThreadId"},"name":{"kind":"Name","value":"threadId"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSubject"},"name":{"kind":"Name","value":"subject"}},{"kind":"Field","alias":{"kind":"Name","value":"newEmailSnippet"},"name":{"kind":"Name","value":"snippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInboxReauthRequiredMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inboxReauthRequiredEmailAddress"},"name":{"kind":"Name","value":"emailAddress"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlInviteToTeamMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamName"},"name":{"kind":"Name","value":"teamName"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamId"},"name":{"kind":"Name","value":"teamId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamTeamInviteId"},"name":{"kind":"Name","value":"teamInviteId"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamInvitedBy"},"name":{"kind":"Name","value":"invitedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamRole"},"name":{"kind":"Name","value":"role"}},{"kind":"Field","alias":{"kind":"Name","value":"inviteToTeamSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlTaskAssignedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskId"},"name":{"kind":"Name","value":"taskId"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedTaskName"},"name":{"kind":"Name","value":"taskName"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSubType"},"name":{"kind":"Name","value":"subType"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedAssignedBy"},"name":{"kind":"Name","value":"assignedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"taskAssignedSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"reminderReminderId"},"name":{"kind":"Name","value":"reminderId"}},{"kind":"Field","alias":{"kind":"Name","value":"reminderDescription"},"name":{"kind":"Name","value":"description"}},{"kind":"Field","alias":{"kind":"Name","value":"reminderScheduledFor"},"name":{"kind":"Name","value":"scheduledFor"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendarEventReminderMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEventId"},"name":{"kind":"Name","value":"eventId"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderOccurrenceKey"},"name":{"kind":"Name","value":"occurrenceKey"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartsAt"},"name":{"kind":"Name","value":"startsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderEndsAt"},"name":{"kind":"Name","value":"endsAt"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderStartDate"},"name":{"kind":"Name","value":"startDate"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderTimeZone"},"name":{"kind":"Name","value":"timeZone"}},{"kind":"Field","alias":{"kind":"Name","value":"calendarEventReminderMinutesBefore"},"name":{"kind":"Name","value":"minutesBefore"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAiResponseMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"aiResponseSummary"},"name":{"kind":"Name","value":"summary"}},{"kind":"Field","alias":{"kind":"Name","value":"aiResponseMessageId"},"name":{"kind":"Name","value":"messageId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrStatusChangedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedStatus"},"name":{"kind":"Name","value":"status"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedAction"},"name":{"kind":"Name","value":"action"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedPreviousStatus"},"name":{"kind":"Name","value":"previousStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedHeadBranch"},"name":{"kind":"Name","value":"headBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedBaseBranch"},"name":{"kind":"Name","value":"baseBranch"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrStatusChangedMergedAt"},"name":{"kind":"Name","value":"mergedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCheckRunMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckRunGithubId"},"name":{"kind":"Name","value":"checkRunGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckName"},"name":{"kind":"Name","value":"checkName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckStatus"},"name":{"kind":"Name","value":"checkStatus"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunConclusion"},"name":{"kind":"Name","value":"conclusion"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCheckUrl"},"name":{"kind":"Name","value":"checkUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCheckRunCompletedAt"},"name":{"kind":"Name","value":"completedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubReviewRequestedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubLogin"},"name":{"kind":"Name","value":"requestedReviewerGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubReviewRequestedRequestedReviewerGithubUserId"},"name":{"kind":"Name","value":"requestedReviewerGithubUserId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrCommentMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentKind"},"name":{"kind":"Name","value":"commentKind"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrCommentCommentSnippet"},"name":{"kind":"Name","value":"commentSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionLocation"},"name":{"kind":"Name","value":"location"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentGithubId"},"name":{"kind":"Name","value":"commentGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionCommentUrl"},"name":{"kind":"Name","value":"commentUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrMentionTextSnippet"},"name":{"kind":"Name","value":"textSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlGithubPrReviewMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewForeignEntityId"},"name":{"kind":"Name","value":"foreignEntityId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewGithubKey"},"name":{"kind":"Name","value":"githubKey"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewOwner"},"name":{"kind":"Name","value":"owner"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewRepo"},"name":{"kind":"Name","value":"repo"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewNumber"},"name":{"kind":"Name","value":"number"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewUrl"},"name":{"kind":"Name","value":"url"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewDisplayName"},"name":{"kind":"Name","value":"displayName"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewTitle"},"name":{"kind":"Name","value":"title"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubLogin"},"name":{"kind":"Name","value":"senderGithubLogin"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubUserId"},"name":{"kind":"Name","value":"senderGithubUserId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewSenderGithubAvatarUrl"},"name":{"kind":"Name","value":"senderGithubAvatarUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewGithubId"},"name":{"kind":"Name","value":"reviewGithubId"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewUrl"},"name":{"kind":"Name","value":"reviewUrl"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewState"},"name":{"kind":"Name","value":"state"}},{"kind":"Field","alias":{"kind":"Name","value":"githubPrReviewReviewSnippet"},"name":{"kind":"Name","value":"reviewSnippet"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionSettledMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledTurn"},"name":{"kind":"Name","value":"turn"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledActor"},"name":{"kind":"Name","value":"actor"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledStopReason"},"name":{"kind":"Name","value":"stopReason"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionSettledExcerpt"},"name":{"kind":"Name","value":"excerpt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionWaitingForInputMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputTurn"},"name":{"kind":"Name","value":"turn"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionWaitingForInputQuestion"},"name":{"kind":"Name","value":"question"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlAgentSessionMentionedMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedSession"},"name":{"kind":"Name","value":"session"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sessionId"}},{"kind":"Field","name":{"kind":"Name","value":"sessionName"}},{"kind":"Field","name":{"kind":"Name","value":"botId"}},{"kind":"Field","name":{"kind":"Name","value":"botName"}},{"kind":"Field","name":{"kind":"Name","value":"channelId"}},{"kind":"Field","name":{"kind":"Name","value":"threadId"}},{"kind":"Field","name":{"kind":"Name","value":"announcementMessageId"}}]}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedMentionedBy"},"name":{"kind":"Name","value":"mentionedBy"}},{"kind":"Field","alias":{"kind":"Name","value":"agentSessionMentionedActionId"},"name":{"kind":"Name","value":"actionId"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationMetadataFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotifEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationNavigationMetadataFields"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMentionMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMentionHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMentionSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelMessageSendMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendMessageContent"},"name":{"kind":"Name","value":"messageContent"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelMessageSendSenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlChannelReplyMetadata"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"channelReplyHasAttachments"},"name":{"kind":"Name","value":"hasAttachments"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderDisplayName"},"name":{"kind":"Name","value":"senderDisplayName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplyChannelName"},"name":{"kind":"Name","value":"channelName"}},{"kind":"Field","alias":{"kind":"Name","value":"channelReplySenderProfilePictureUrl"},"name":{"kind":"Name","value":"senderProfilePictureUrl"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupNotificationFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNotification"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationStateFields"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupNotificationMetadataFields"}}]}}]}}]} as unknown as DocumentNode<UpdateNotificationsForEntityMutation, UpdateNotificationsForEntityMutationVariables>;diff --git a/docs/agent-guide/calendar.md b/docs/agent-guide/calendar.mdindex 85aaac0070..47be070d37 100644--- a/docs/agent-guide/calendar.md+++ b/docs/agent-guide/calendar.md@@ -431,6 +431,20 @@ carries `Copy guest emails` and `Email guests` icon buttons. Copying puts everyaddress on the clipboard, comma-separated. Emailing opens a new email addressed to everyguest but you — in a split beside the calendar on desktop, as the full-screen composer ontouch devices — and is hidden when you are the only guest.+With the `enable-calendar-guest-invites` flag on, a third icon button, `Add guests`, shows+whenever the event's `viewerCan.inviteGuests` allows it, including for a guest whose+organizer lets guests invite. It opens an editor anchored to the button (a bottom sheet on+phones): the current guests are listed under `Invited` without a remove control, the picker+adds people, each new guest has an `Optional` checkbox, a recurring event offers `This+event` / `All events`, and `Send invitations` (or Cmd/Ctrl+Enter) sends them; Escape+closes. The new guests appear at once as unanswered and a toast confirms the invitation+once the provider accepts it. A guest who may not invite gets no button; instead the guest+list opens with `Only the organizer can invite guests.`, and the same happens after the+provider refuses an invitation. In the event editor, the organizer edits guests as before,+while a guest who may invite gets an add-only guests pill whose additions are sent as an+invitation on save (other edits are saved first); a guest who may not invite keeps a+read-only pill that explains why. To check the refusal state without a Google account,+answer `POST /events/{id}/guests` with HTTP 403 and code `guests_cannot_invite`.The details header's `Download .ics` icon button, beside `Copy event`, saves the event as aniCalendar file named after its title, so it can be passed on or added to another calendar. Thefile holds the series (its repeat rule, in the event's original time zone), title, description