Skip to content

armgit / macro

Public Imported from GitHub
0

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

feat(calendar): run calendar mutations through the optimistic mutation queue (#7694)

gbirmancd0ff77235bf
diff --git a/apps/web/src/lib/graphql-cache/exchange/normalized-cache-exchange.test.ts b/apps/web/src/lib/graphql-cache/exchange/normalized-cache-exchange.test.ts
index 60e907cba0..4f809a1221 100644
--- a/apps/web/src/lib/graphql-cache/exchange/normalized-cache-exchange.test.ts
+++ b/apps/web/src/lib/graphql-cache/exchange/normalized-cache-exchange.test.ts
@@ -2489,6 +2489,28 @@ describe('normalizedCacheExchange', () => {
expect(host.commits).toHaveLength(1);
});
+ it('hands calendar events it cannot predict to the queue', async () => {
+ const enqueue = vi.spyOn(host, 'enqueueOptimisticMutation');
+ const { client } = harness(host);
+ await executeOptimisticMutation(
+ client,
+ MUTATION,
+ { input: {} },
+ optimistic,
+ {
+ uuid: crypto.randomUUID(),
+ uncertainCalendarEventKeys: ['GraphqlCalendarEvent:event-1'],
+ }
+ ).toPromise();
+ await tick();
+ expect(enqueue).toHaveBeenCalledWith(
+ expect.objectContaining({
+ uncertainCalendarEventKeys: ['GraphqlCalendarEvent:event-1'],
+ }),
+ expect.anything()
+ );
+ });
+
it.each([false, true])(
'rolls back rejected favorites rather than committing list patches (replay=%s)',
async (replay) => {
diff --git a/apps/web/src/lib/graphql-cache/exchange/normalized-cache-exchange.ts b/apps/web/src/lib/graphql-cache/exchange/normalized-cache-exchange.ts
index 7437c79ef1..65127c5e7b 100644
--- a/apps/web/src/lib/graphql-cache/exchange/normalized-cache-exchange.ts
+++ b/apps/web/src/lib/graphql-cache/exchange/normalized-cache-exchange.ts
@@ -1292,6 +1292,7 @@ export function normalizedCacheExchange(
revalidations: optimistic.revalidations,
identityBindings: optimistic.identityBindings,
clientMetadata: optimistic.clientMetadata,
+ uncertainCalendarEventKeys: optimistic.uncertainCalendarEventKeys,
};
const now = Date.now();
const claim = {
diff --git a/apps/web/src/lib/graphql-cache/exchange/optimistic.ts b/apps/web/src/lib/graphql-cache/exchange/optimistic.ts
index 967026856a..43c56f4807 100644
--- a/apps/web/src/lib/graphql-cache/exchange/optimistic.ts
+++ b/apps/web/src/lib/graphql-cache/exchange/optimistic.ts
@@ -124,6 +124,8 @@ export type OptimisticMutationOptions = {
updates?: readonly OptimisticUpdate[];
/** Relevant queries that cannot safely be updated still revalidate on success. */
revalidations?: readonly QueryRevalidation[];
+ /** Calendar events whose occurrence set the mutation cannot predict. */
+ uncertainCalendarEventKeys?: readonly string[];
};
/** Existing records may be patched; newly created records must be complete. */
@@ -141,6 +143,7 @@ export type OptimisticMutationContext<TData = unknown> = {
identityBindings?: IdentityBindingWire[];
linkPatches: OptimisticLinkPatchWire[];
revalidations: QueryRevalidationWire[];
+ uncertainCalendarEventKeys?: string[];
};
/** Caller-facing disposition of one durable optimistic mutation submission. */
@@ -481,6 +484,9 @@ export function executeOptimisticMutation<
: undefined,
linkPatches: [...(options.updates ?? [])],
revalidations: (options.revalidations ?? []).map(serializeRevalidation),
+ ...(options.uncertainCalendarEventKeys?.length
+ ? { uncertainCalendarEventKeys: [...options.uncertainCalendarEventKeys] }
+ : {}),
};
return client.mutation(document, variables, {
[OPTIMISTIC_MUTATION_CONTEXT_KEY]: context,
@@ -530,6 +536,11 @@ export function optimisticContextOf(
revalidations: Array.isArray(context.revalidations)
? context.revalidations
: [],
+ uncertainCalendarEventKeys: Array.isArray(
+ context.uncertainCalendarEventKeys
+ )
+ ? context.uncertainCalendarEventKeys
+ : undefined,
};
}
return undefined;
diff --git a/apps/web/src/lib/queries/calendar/graphql/mutations.ts b/apps/web/src/lib/queries/calendar/graphql/mutations.ts
new file mode 100644
index 0000000000..ad592eea00
--- /dev/null
+++ b/apps/web/src/lib/queries/calendar/graphql/mutations.ts
@@ -0,0 +1,696 @@
+import type { OptimisticResponse } from '@graphql-cache/exchange/optimistic';
+import {
+ type CacheHost,
+ executeOptimisticMutation,
+ optimisticMutationDispositionOf,
+ readRecordsByKeys,
+ selectRecords,
+} from '@graphql-cache/index';
+import type { CalendarEvent } from '@service-calendar/generated/schemas/calendarEvent';
+import type { CreateCalendarEventRequest } from '@service-calendar/generated/schemas/createCalendarEventRequest';
+import {
+ type CalendarEventFieldsFragment,
+ CalendarEventFieldsFragmentDoc,
+ type CalendarMutationPayloadFieldsFragment,
+ type CalendarOccurrenceItemFieldsFragment,
+ CalendarOccurrenceItemFieldsFragmentDoc,
+ CalendarsDocument,
+ CreateCalendarEventDocument,
+ type CreateCalendarEventMutation,
+ DeleteCalendarEventDocument,
+ type DeleteCalendarEventMutation,
+ type GraphqlCalendarAttendeeResponseStatus,
+ type GraphqlCalendarConferenceChange,
+ type GraphqlCalendarDeletionScope,
+ type GraphqlCalendarEventTransparency,
+ type GraphqlCalendarEventVisibility,
+ type GraphqlCalendarOutOfOfficeAutoDeclineMode,
+ type GraphqlCalendarRsvpScope,
+ type GraphqlCalendarUpdateScope,
+ RespondToCalendarEventDocument,
+ type RespondToCalendarEventMutation,
+ UpdateCalendarEventDocument,
+ type UpdateCalendarEventMutation,
+} from '@service-storage/graphql/generated/graphql';
+import { getGraphqlSoupClient } from '@service-storage/graphql-soup';
+import type { AnyVariables, Client, OperationResult } from '@urql/core';
+import { v4 as uuidv4, v5 as uuidv5 } from 'uuid';
+import type {
+ DeleteCalendarEventArgs,
+ RsvpCalendarEventArgs,
+ UpdateCalendarEventArgs,
+} from '../mutations';
+import { mapCalendarEvent } from './map';
+import {
+ deletionPlan,
+ graphqlEnum,
+ graphqlReminders,
+ graphqlTimeInput,
+ graphqlTimeRecord,
+ isStandalone,
+ occurrenceKeyOf,
+ patchedEvent,
+ patchedOccurrence,
+ withRsvp,
+} from './optimistic';
+import { epochDay } from './range';
+
+export type CalendarMutationHost = Pick<
+ CacheHost,
+ 'calendarRange' | 'calendarCommit' | 'readRecordsByKeys'
+>;
+
+type EventRecord = CalendarEventFieldsFragment;
+type OccurrenceRecord = CalendarOccurrenceItemFieldsFragment;
+type Payload = CalendarMutationPayloadFieldsFragment;
+
+/** A calendar mutation the server rejected; `code` is the REST error code. */
+export class CalendarMutationError extends Error {
+ constructor(
+ message: string,
+ readonly code: string | undefined,
+ readonly retryable: boolean
+ ) {
+ super(message);
+ this.name = 'CalendarMutationError';
+ }
+}
+
+/** Committed with the server's answer, or held by the durable queue. */
+export type CalendarMutationOutcome =
+ | { kind: 'committed'; payload: Payload }
+ | { kind: 'queued' };
+
+const EVENT_TYPENAME = 'GraphqlCalendarEvent';
+const OCCURRENCE_TYPENAME = 'GraphqlCalendarOccurrence';
+const PAYLOAD_TYPENAME = 'GraphqlCalendarMutationPayload';
+/** Namespaces RSVP coalescing keys; a newer answer replaces a queued one. */
+const RSVP_NAMESPACE = '1b671a64-40d5-491e-99b0-da01ff1f3341';
+/** Every cached occurrence of one event, whatever its date. */
+const ALL_TIME = {
+ startMs: Date.UTC(1970, 0, 1),
+ endMs: Date.UTC(2200, 0, 1),
+ startDay: epochDay('1970-01-01'),
+ endDay: epochDay('2200-01-01'),
+};
+
+const eventKey = (id: string) => `${EVENT_TYPENAME}:${id}`;
+
+const eventSelection = selectRecords(CalendarEventFieldsFragmentDoc);
+const occurrenceSelection = selectRecords(
+ CalendarOccurrenceItemFieldsFragmentDoc
+);
+
+/** Events created while offline, until their create settles. */
+const pendingCreates = new Set<string>();
+
+/**
+ * The durable queue replays a mutation's variables unchanged, so a write
+ * addressed to an event that exists only locally would reach the server with
+ * an id it never issued.
+ */
+function assertCreated(eventId: string) {
+ if (pendingCreates.has(eventId)) {
+ throw new CalendarMutationError(
+ 'This event is still being created. Try again once it syncs.',
+ 'not_found',
+ false
+ );
+ }
+}
+
+/** Forgets queued creates once the queue settles them. */
+export function trackCalendarCreateSettlements(
+ host: Pick<CacheHost, 'onMutationSettled'>
+): () => void {
+ return host.onMutationSettled((settlement) => {
+ if (settlement.mutationUuid) pendingCreates.delete(settlement.mutationUuid);
+ });
+}
+
+async function cachedEvent(
+ host: CalendarMutationHost,
+ eventId: string
+): Promise<EventRecord | undefined> {
+ const { records } = await readRecordsByKeys(host, eventSelection, [
+ eventKey(eventId),
+ ]);
+ return records[0]?.record;
+}
+
+/** Every occurrence of one event the cache holds, from its range index. */
+async function cachedOccurrences(
+ host: CalendarMutationHost,
+ eventId: string
+): Promise<OccurrenceRecord[]> {
+ const range = await host.calendarRange({
+ ...ALL_TIME,
+ eventKey: eventKey(eventId),
+ });
+ if (range.kind === 'unsupported' || range.occurrenceKeys.length === 0) {
+ return [];
+ }
+ const { records } = await readRecordsByKeys(
+ host,
+ occurrenceSelection,
+ range.occurrenceKeys
+ );
+ return records.map(({ record }) => record);
+}
+
+function graphqlError(result: OperationResult): CalendarMutationError {
+ const error = result.error;
+ const [first] = error?.graphQLErrors ?? [];
+ const code = first?.extensions?.code;
+ return new CalendarMutationError(
+ first?.message ?? error?.message ?? 'Calendar mutation failed',
+ typeof code === 'string' ? code : undefined,
+ first?.extensions?.retryable === true
+ );
+}
+
+/**
+ * Resolves a mutation result. A committed answer is applied to the range
+ * index, replacing the event's occurrence set, before it is returned; a
+ * queued one is applied by the change log once it reaches the server.
+ */
+async function settle<TData, TVariables extends AnyVariables>(
+ host: CalendarMutationHost,
+ result: OperationResult<TData, TVariables>,
+ payload: Payload | undefined
+): Promise<CalendarMutationOutcome> {
+ if (optimisticMutationDispositionOf(result)?.kind === 'queued') {
+ return { kind: 'queued' };
+ }
+ if (result.error) throw graphqlError(result);
+ if (!payload) throw new Error('Calendar mutation returned no data');
+ await host
+ .calendarCommit({
+ ...(payload.event
+ ? {
+ replacedEvents: [
+ {
+ eventKey: eventKey(payload.event.id),
+ occurrenceKeys: payload.occurrences
+ .filter((occurrence) => !occurrence.isCancelled)
+ .map(
+ (occurrence) => `${OCCURRENCE_TYPENAME}:${occurrence.id}`
+ ),
+ },
+ ],
+ }
+ : {}),
+ ...(payload.deletedEventId
+ ? { deletedEventKeys: [eventKey(payload.deletedEventId)] }
+ : {}),
+ })
+ .catch((error) => {
+ console.warn('Calendar mutation commit failed', error);
+ });
+ return { kind: 'committed', payload };
+}
+
+function payloadOf(
+ event: Partial<EventRecord> | undefined,
+ occurrences: Array<Partial<OccurrenceRecord>>
+) {
+ return {
+ __typename: PAYLOAD_TYPENAME,
+ ...(event ? { event } : {}),
+ occurrences,
+ deletedEventId: null,
+ } as OptimisticResponse<Payload>;
+}
+
+/** Sets the viewer's RSVP through the durable queue. */
+export async function executeGraphqlRsvp(
+ host: CalendarMutationHost,
+ args: RsvpCalendarEventArgs,
+ client: Client = getGraphqlSoupClient()
+): Promise<CalendarMutationOutcome> {
+ assertCreated(args.eventId);
+ const response = graphqlEnum<GraphqlCalendarAttendeeResponseStatus>(
+ args.response
+ );
+ const oneOccurrence =
+ args.scope === 'this_event' ||
+ (args.scope === undefined && args.recurrenceId !== undefined);
+ const [event, occurrences] = await Promise.all([
+ cachedEvent(host, args.eventId),
+ cachedOccurrences(host, args.eventId),
+ ]);
+ // An instance-scoped answer is recorded on that instance's own attendee
+ // list. A series answer changes 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
+ )
+ .flatMap((occurrence) => {
+ const attendees = withRsvp(
+ occurrence.overrideAttendees ?? event?.attendees ?? [],
+ args.respondingEmail,
+ response
+ );
+ return attendees
+ ? [
+ {
+ __typename: occurrence.__typename,
+ id: occurrence.id,
+ overrideAttendees: attendees,
+ },
+ ]
+ : [];
+ });
+ const eventAttendees =
+ event && !oneOccurrence
+ ? withRsvp(event.attendees, args.respondingEmail, response)
+ : undefined;
+ const result = await executeOptimisticMutation(
+ client,
+ RespondToCalendarEventDocument,
+ {
+ input: {
+ eventId: args.eventId,
+ response,
+ ...(args.scope
+ ? { scope: graphqlEnum<GraphqlCalendarRsvpScope>(args.scope) }
+ : {}),
+ ...(args.recurrenceId ? { recurrenceId: args.recurrenceId } : {}),
+ ...(args.respondingEmail
+ ? { respondingEmail: args.respondingEmail }
+ : {}),
+ },
+ },
+ {
+ respondToCalendarEvent: payloadOf(
+ eventAttendees
+ ? {
+ __typename: EVENT_TYPENAME,
+ id: args.eventId,
+ attendees: eventAttendees,
+ }
+ : undefined,
+ patchedOccurrences
+ ),
+ } as OptimisticResponse<RespondToCalendarEventMutation>,
+ {
+ uuid: uuidv5(
+ JSON.stringify([
+ args.eventId,
+ oneOccurrence ? (args.occurrenceKey ?? null) : null,
+ args.respondingEmail?.toLowerCase() ?? null,
+ ]),
+ RSVP_NAMESPACE
+ ),
+ }
+ ).toPromise();
+ return settle(host, result, result.data?.respondToCalendarEvent ?? undefined);
+}
+
+/** Patches an event, the series or one occurrence, through the durable queue. */
+export async function executeGraphqlUpdate(
+ host: CalendarMutationHost,
+ args: UpdateCalendarEventArgs,
+ client: Client = getGraphqlSoupClient()
+): Promise<CalendarMutationOutcome> {
+ assertCreated(args.eventId);
+ const { patch } = args;
+ const oneOccurrence =
+ args.scope === 'this_event' && args.occurrenceKey !== undefined;
+ const [event, occurrences] = await Promise.all([
+ cachedEvent(host, args.eventId),
+ cachedOccurrences(host, args.eventId),
+ ]);
+ const optimisticEvent =
+ event && !oneOccurrence
+ ? patchedEvent(event, patch, args.calendarId)
+ : undefined;
+ const time = patch.time;
+ const optimisticOccurrences = oneOccurrence
+ ? occurrences
+ .filter((occurrence) => occurrence.occurrenceKey === args.occurrenceKey)
+ .map((occurrence) => patchedOccurrence(occurrence, patch))
+ : time && event
+ ? occurrences
+ .filter((occurrence) => isStandalone(event, occurrence))
+ .map((occurrence) => ({
+ __typename: occurrence.__typename,
+ id: occurrence.id,
+ time: graphqlTimeRecord(time),
+ }))
+ : [];
+ // A recurring series' instances are expanded by the provider, so a time
+ // or rule change cannot be predicted until the server answers.
+ const recurring =
+ (event?.recurrenceLines.length ?? 0) > 0 ||
+ (patch.recurrenceLines?.length ?? 0) > 0;
+ const uncertain =
+ !oneOccurrence &&
+ recurring &&
+ (patch.time != null || patch.recurrenceLines != null);
+ const result = await executeOptimisticMutation(
+ client,
+ UpdateCalendarEventDocument,
+ {
+ input: {
+ eventId: args.eventId,
+ ...(args.calendarId ? { calendarId: args.calendarId } : {}),
+ ...(args.scope
+ ? { scope: graphqlEnum<GraphqlCalendarUpdateScope>(args.scope) }
+ : {}),
+ ...(args.recurrenceId ? { recurrenceId: args.recurrenceId } : {}),
+ ...(patch.title != null ? { title: patch.title } : {}),
+ ...(patch.description !== undefined
+ ? { description: patch.description }
+ : {}),
+ ...(patch.location !== undefined ? { location: patch.location } : {}),
+ ...(patch.time ? { time: graphqlTimeInput(patch.time) } : {}),
+ ...(patch.attendees
+ ? {
+ attendees: patch.attendees.map((attendee) => ({
+ email: attendee.email,
+ isOptional: attendee.isOptional ?? false,
+ })),
+ }
+ : {}),
+ ...(patch.recurrenceLines != null
+ ? { recurrenceLines: patch.recurrenceLines }
+ : {}),
+ ...(patch.visibility
+ ? {
+ visibility: graphqlEnum<GraphqlCalendarEventVisibility>(
+ patch.visibility
+ ),
+ }
+ : {}),
+ ...(patch.transparency
+ ? {
+ transparency: graphqlEnum<GraphqlCalendarEventTransparency>(
+ patch.transparency
+ ),
+ }
+ : {}),
+ ...(patch.reminders
+ ? { reminders: graphqlReminders(patch.reminders) }
+ : {}),
+ ...(patch.conference
+ ? {
+ conference: graphqlEnum<GraphqlCalendarConferenceChange>(
+ patch.conference
+ ),
+ }
+ : {}),
+ ...(patch.outOfOffice
+ ? {
+ outOfOffice: {
+ ...(patch.outOfOffice.autoDeclineMode
+ ? {
+ autoDeclineMode:
+ graphqlEnum<GraphqlCalendarOutOfOfficeAutoDeclineMode>(
+ patch.outOfOffice.autoDeclineMode
+ ),
+ }
+ : {}),
+ declineMessage: patch.outOfOffice.declineMessage ?? null,
+ },
+ }
+ : {}),
+ },
+ },
+ {
+ updateCalendarEvent: payloadOf(optimisticEvent, optimisticOccurrences),
+ } as OptimisticResponse<UpdateCalendarEventMutation>,
+ {
+ uuid: uuidv4(),
+ ...(uncertain
+ ? { uncertainCalendarEventKeys: [eventKey(args.eventId)] }
+ : {}),
+ }
+ ).toPromise();
+ return settle(host, result, result.data?.updateCalendarEvent ?? undefined);
+}
+
+/** Deletes an event, one occurrence, or an occurrence onward. */
+export async function executeGraphqlDelete(
+ host: CalendarMutationHost,
+ args: DeleteCalendarEventArgs,
+ client: Client = getGraphqlSoupClient()
+): Promise<CalendarMutationOutcome> {
+ assertCreated(args.eventId);
+ const [event, occurrences] = await Promise.all([
+ cachedEvent(host, args.eventId),
+ cachedOccurrences(host, args.eventId),
+ ]);
+ const plan = deletionPlan(event, occurrences, args);
+ const result = await executeOptimisticMutation(
+ client,
+ DeleteCalendarEventDocument,
+ {
+ input: {
+ eventId: args.eventId,
+ ...(args.calendarId ? { calendarId: args.calendarId } : {}),
+ ...(args.scope
+ ? { scope: graphqlEnum<GraphqlCalendarDeletionScope>(args.scope) }
+ : {}),
+ ...(args.recurrenceId ? { recurrenceId: args.recurrenceId } : {}),
+ },
+ },
+ {
+ deleteCalendarEvent: payloadOf(
+ plan.event,
+ plan.cancelled.map((occurrence) => ({
+ __typename: occurrence.__typename,
+ id: occurrence.id,
+ isCancelled: true,
+ }))
+ ),
+ } as OptimisticResponse<DeleteCalendarEventMutation>,
+ { uuid: uuidv4() }
+ ).toPromise();
+ return settle(host, result, result.data?.deleteCalendarEvent ?? undefined);
+}
+
+/** The calendar a new event lands on, as the server picks it. */
+async function targetCalendar(client: Client, calendarId: string | undefined) {
+ const result = await client
+ .query(CalendarsDocument, {}, { requestPolicy: 'cache-only' })
+ .toPromise();
+ const calendars = result.data?.user.calendars ?? [];
+ return calendarId
+ ? calendars.find((calendar) => calendar.id === calendarId)
+ : calendars.find((calendar) => calendar.isPrimary && calendar.isWritable);
+}
+
+/**
+ * Creates an event through the durable queue. The event shows at once under
+ * a client id that is also the request's idempotency key, so a replay after
+ * a lost response cannot create it twice.
+ */
+export async function executeGraphqlCreate(
+ args: CreateCalendarEventRequest,
+ client: Client = getGraphqlSoupClient()
+): Promise<{ outcome: CalendarMutationOutcome; event: CalendarEvent }> {
+ const clientId = args.idempotencyKey ?? uuidv4();
+ const calendar = await targetCalendar(client, args.calendarId ?? undefined);
+ const now = new Date().toISOString();
+ const time = graphqlTimeRecord(args.time);
+ const reminders = args.reminders
+ ? graphqlReminders(args.reminders)
+ : { useDefault: true, overrides: [] };
+ const visibility = graphqlEnum<EventRecord['visibility']>(
+ args.visibility ?? 'default'
+ );
+ const transparency = graphqlEnum<EventRecord['transparency']>(
+ args.transparency ?? 'opaque'
+ );
+ const eventType: EventRecord['eventType'] = args.outOfOffice
+ ? 'OUT_OF_OFFICE'
+ : 'DEFAULT';
+ const calendarId = args.calendarId ?? calendar?.id ?? null;
+ const linkId = args.emailLinkId ?? calendar?.linkId ?? '';
+ const event: EventRecord = {
+ __typename: EVENT_TYPENAME,
+ id: clientId,
+ ownerId: '',
+ linkId,
+ icalUid: clientId,
+ calendarId,
+ sources: calendarId
+ ? [
+ {
+ calendarId,
+ title: args.title,
+ description: args.description ?? null,
+ location: args.location ?? null,
+ eventType,
+ visibility,
+ transparency,
+ isReadOnly: false,
+ reminders,
+ creatorEmail: calendar?.emailAddress ?? null,
+ creatorName: null,
+ },
+ ]
+ : [],
+ title: args.title,
+ description: args.description ?? null,
+ location: args.location ?? null,
+ status: 'CONFIRMED',
+ visibility,
+ transparency,
+ eventType,
+ time,
+ recurrenceLines: args.recurrenceLines ?? [],
+ organizerEmail: calendar?.emailAddress ?? null,
+ organizerName: null,
+ creatorEmail: calendar?.emailAddress ?? null,
+ creatorName: null,
+ conferenceUrl: null,
+ conferenceProvider: null,
+ sequence: 0,
+ isReadOnly: false,
+ attendees: (args.attendees ?? []).map((attendee) => ({
+ email: attendee.email,
+ displayName: null,
+ responseStatus: 'NEEDS_ACTION',
+ isOrganizer: false,
+ isOptional: attendee.isOptional ?? false,
+ isSelf: false,
+ comment: null,
+ })),
+ reminders,
+ createdAt: now,
+ updatedAt: now,
+ };
+ const occurrenceKey = occurrenceKeyOf(args.time);
+ const occurrence: OccurrenceRecord = {
+ __typename: OCCURRENCE_TYPENAME,
+ id: `${clientId}:${occurrenceKey}`,
+ eventId: clientId,
+ linkId,
+ occurrenceKey,
+ recurrenceId: null,
+ isCancelled: false,
+ time,
+ overrideTitle: null,
+ overrideDescription: null,
+ overrideLocation: null,
+ overrideStatus: null,
+ overrideAttendees: null,
+ event,
+ };
+ const result = await executeOptimisticMutation(
+ client,
+ CreateCalendarEventDocument,
+ {
+ input: {
+ idempotencyKey: clientId,
+ title: args.title,
+ time: graphqlTimeInput(args.time),
+ ...(args.calendarId ? { calendarId: args.calendarId } : {}),
+ ...(args.emailLinkId ? { emailLinkId: args.emailLinkId } : {}),
+ ...(args.description != null ? { description: args.description } : {}),
+ ...(args.location != null ? { location: args.location } : {}),
+ ...(args.attendees?.length
+ ? {
+ attendees: args.attendees.map((attendee) => ({
+ email: attendee.email,
+ isOptional: attendee.isOptional ?? false,
+ })),
+ }
+ : {}),
+ ...(args.recurrenceLines?.length
+ ? { recurrenceLines: args.recurrenceLines }
+ : {}),
+ ...(args.visibility ? { visibility } : {}),
+ ...(args.transparency ? { transparency } : {}),
+ ...(args.reminders ? { reminders } : {}),
+ ...(args.conference
+ ? {
+ conference: graphqlEnum<GraphqlCalendarConferenceChange>(
+ args.conference
+ ),
+ }
+ : {}),
+ ...(args.outOfOffice
+ ? {
+ outOfOffice: {
+ ...(args.outOfOffice.autoDeclineMode
+ ? {
+ autoDeclineMode:
+ graphqlEnum<GraphqlCalendarOutOfOfficeAutoDeclineMode>(
+ args.outOfOffice.autoDeclineMode
+ ),
+ }
+ : {}),
+ declineMessage: args.outOfOffice.declineMessage ?? null,
+ },
+ }
+ : {}),
+ },
+ },
+ {
+ createCalendarEvent: {
+ __typename: PAYLOAD_TYPENAME,
+ event,
+ occurrences: [occurrence],
+ deletedEventId: null,
+ },
+ } as OptimisticResponse<CreateCalendarEventMutation>,
+ {
+ uuid: clientId,
+ // Registered as the queue installs the create, so a settlement that
+ // arrives before this call returns always clears it.
+ onEnqueued: () => pendingCreates.add(clientId),
+ identityBindings: [
+ {
+ localKey: eventKey(clientId),
+ responsePath: ['createCalendarEvent', 'event'],
+ referenceFields: [`${OCCURRENCE_TYPENAME}.eventId`],
+ },
+ ],
+ ...(event.recurrenceLines.length > 0
+ ? { uncertainCalendarEventKeys: [eventKey(clientId)] }
+ : {}),
+ }
+ ).toPromise();
+ let outcome: CalendarMutationOutcome;
+ try {
+ outcome = await settleCreate(result);
+ } catch (error) {
+ pendingCreates.delete(clientId);
+ throw error;
+ }
+ if (outcome.kind === 'queued') {
+ return { outcome, event: mapCalendarEvent(event) };
+ }
+ pendingCreates.delete(clientId);
+ return {
+ outcome,
+ event: mapCalendarEvent(outcome.payload.event ?? event),
+ };
+
+ async function settleCreate(
+ created: OperationResult<CreateCalendarEventMutation>
+ ): Promise<CalendarMutationOutcome> {
+ if (optimisticMutationDispositionOf(created)?.kind === 'queued') {
+ return { kind: 'queued' };
+ }
+ if (created.error) throw graphqlError(created);
+ const payload = created.data?.createCalendarEvent;
+ if (!payload?.event) throw new Error('Calendar create returned no event');
+ return { kind: 'committed', payload };
+ }
+}
+
+/** The committed event, mapped to the REST shape callers consume. */
+export function committedEvent(
+ outcome: CalendarMutationOutcome
+): CalendarEvent | undefined {
+ return outcome.kind === 'committed' && outcome.payload.event
+ ? mapCalendarEvent(outcome.payload.event)
+ : undefined;
+}
diff --git a/apps/web/src/lib/queries/calendar/graphql/optimistic.ts b/apps/web/src/lib/queries/calendar/graphql/optimistic.ts
new file mode 100644
index 0000000000..9ef9352714
--- /dev/null
+++ b/apps/web/src/lib/queries/calendar/graphql/optimistic.ts
@@ -0,0 +1,251 @@
+import type { EventReminders } from '@service-storage/generated/schemas/eventReminders';
+import type { EventTime } from '@service-storage/generated/schemas/eventTime';
+import type {
+ CalendarAttendeeFieldsFragment,
+ CalendarEventFieldsFragment,
+ CalendarEventTimeFieldsFragment,
+ CalendarEventTimeInput,
+ CalendarOccurrenceItemFieldsFragment,
+ CalendarReminderFieldsFragment,
+ GraphqlCalendarAttendeeResponseStatus,
+} from '@service-storage/graphql/generated/graphql';
+
+type EventRecord = CalendarEventFieldsFragment;
+type OccurrenceRecord = CalendarOccurrenceItemFieldsFragment;
+type SourceRecord = EventRecord['sources'][number];
+
+/** GraphQL enums are the SCREAMING_CASE spelling of REST snake_case values. */
+export const graphqlEnum = <T extends string>(value: string): T =>
+ value.toUpperCase() as T;
+
+/** RFC 3339 in the server's spelling, so client ids match server occurrence keys. */
+export function serverInstant(value: string): string {
+ return new Date(value).toISOString().replace(/(\.000)?Z$/, '+00:00');
+}
+
+export function graphqlTimeRecord(
+ time: EventTime
+): CalendarEventTimeFieldsFragment {
+ return time.kind === 'timed'
+ ? {
+ __typename: 'GraphqlTimedEventTime',
+ startsAt: serverInstant(time.startsAt),
+ endsAt: serverInstant(time.endsAt),
+ timeZone: time.timeZone ?? null,
+ }
+ : {
+ __typename: 'GraphqlAllDayEventTime',
+ startDate: time.startDate,
+ endDate: time.endDate,
+ };
+}
+
+export function graphqlTimeInput(time: EventTime): CalendarEventTimeInput {
+ return time.kind === 'timed'
+ ? {
+ timed: {
+ startsAt: time.startsAt,
+ endsAt: time.endsAt,
+ timeZone: time.timeZone ?? null,
+ },
+ }
+ : { allDay: { startDate: time.startDate, endDate: time.endDate } };
+}
+
+/** The key the server derives for an occurrence from its start. */
+export function occurrenceKeyOf(time: EventTime): string {
+ return time.kind === 'timed' ? serverInstant(time.startsAt) : time.startDate;
+}
+
+export function graphqlReminders(
+ reminders: EventReminders
+): CalendarReminderFieldsFragment {
+ return {
+ useDefault: reminders.useDefault,
+ overrides: (reminders.overrides ?? []).map(({ method, minutes }) => ({
+ method,
+ minutes,
+ })),
+ };
+}
+
+/** The attendee answering: the named address, else the viewer's own inbox. */
+function isResponder(
+ attendee: CalendarAttendeeFieldsFragment,
+ respondingEmail: string | undefined
+): boolean {
+ return respondingEmail
+ ? attendee.email.toLowerCase() === respondingEmail.toLowerCase()
+ : attendee.isSelf;
+}
+
+/**
+ * The attendee list with the responder's answer recorded, or `undefined`
+ * when the responder is not on it.
+ */
+export function withRsvp(
+ attendees: readonly CalendarAttendeeFieldsFragment[],
+ respondingEmail: string | undefined,
+ response: GraphqlCalendarAttendeeResponseStatus
+): CalendarAttendeeFieldsFragment[] | undefined {
+ const responder = attendees.find((attendee) =>
+ isResponder(attendee, respondingEmail)
+ );
+ if (!responder) return undefined;
+ return attendees.map((attendee) =>
+ attendee === responder
+ ? { ...attendee, responseStatus: response }
+ : attendee
+ );
+}
+
+export interface EventFieldPatch {
+ title?: string | null;
+ description?: string | null;
+ location?: string | null;
+ reminders?: EventReminders | null;
+ time?: EventTime | null;
+}
+
+type CopyContent = Pick<
+ SourceRecord,
+ 'title' | 'description' | 'location' | 'reminders'
+>;
+
+/** The per-copy fields a patch rewrites on one copy of the event. */
+function patchCopy<T extends CopyContent>(copy: T, patch: EventFieldPatch): T {
+ const next = { ...copy };
+ if (patch.title !== undefined && patch.title !== null) {
+ next.title = patch.title;
+ }
+ if (patch.description !== undefined) next.description = patch.description;
+ if (patch.location !== undefined) next.location = patch.location;
+ if (patch.reminders !== undefined && patch.reminders !== null) {
+ next.reminders = graphqlReminders(patch.reminders);
+ }
+ return next;
+}
+
+/**
+ * The event record after a whole-event patch. Per-copy fields land on the
+ * addressed copy, the named calendar's or else the canonical (first) one,
+ * and on the entity when that copy is canonical, mirroring how the server
+ * records them.
+ */
+export function patchedEvent(
+ event: EventRecord,
+ patch: EventFieldPatch,
+ calendarId: string | undefined
+): EventRecord {
+ const target = calendarId ?? event.sources[0]?.calendarId;
+ const patchesCanonical =
+ event.sources.length === 0 || target === event.sources[0]?.calendarId;
+ const next = patchesCanonical ? patchCopy(event, patch) : { ...event };
+ next.sources = event.sources.map((copy) =>
+ copy.calendarId === target ? patchCopy(copy, patch) : copy
+ );
+ if (patch.time) next.time = graphqlTimeRecord(patch.time);
+ return next;
+}
+
+/** Recurring expansion is the provider's: only standalone instances move. */
+export function isStandalone(
+ event: Pick<EventRecord, 'recurrenceLines'>,
+ occurrence: Pick<OccurrenceRecord, 'recurrenceId'>
+): boolean {
+ return event.recurrenceLines.length === 0 && occurrence.recurrenceId === null;
+}
+
+/** One occurrence's record after a patch scoped to it alone. */
+export function patchedOccurrence(
+ occurrence: OccurrenceRecord,
+ patch: EventFieldPatch
+): Partial<OccurrenceRecord> & Pick<OccurrenceRecord, '__typename' | 'id'> {
+ return {
+ __typename: occurrence.__typename,
+ id: occurrence.id,
+ ...(patch.title !== undefined && patch.title !== null
+ ? { overrideTitle: patch.title }
+ : {}),
+ ...(patch.description !== undefined
+ ? { overrideDescription: patch.description }
+ : {}),
+ ...(patch.location !== undefined
+ ? { overrideLocation: patch.location }
+ : {}),
+ ...(patch.time ? { time: graphqlTimeRecord(patch.time) } : {}),
+ };
+}
+
+/** The entity fields the server re-projects from the copy that becomes canonical. */
+function canonicalContent(copy: SourceRecord): Partial<EventRecord> {
+ return {
+ calendarId: copy.calendarId,
+ title: copy.title,
+ description: copy.description,
+ location: copy.location,
+ eventType: copy.eventType,
+ reminders: copy.reminders,
+ isReadOnly: copy.isReadOnly,
+ transparency: copy.transparency,
+ visibility: copy.visibility,
+ creatorName: copy.creatorName,
+ creatorEmail: copy.creatorEmail,
+ };
+}
+
+export interface DeletionTarget {
+ calendarId?: string;
+ scope?: 'all' | 'this_event' | 'this_and_following';
+ occurrenceKey?: string;
+}
+
+/**
+ * What an optimistic deletion changes. Deleting the whole event from one
+ * calendar among several retires only that copy, so the event survives with
+ * the copy dropped and, when it was canonical, its content re-projected from
+ * the next copy. Every other deletion cancels the covered occurrences.
+ */
+export function deletionPlan(
+ event: EventRecord | undefined,
+ occurrences: readonly OccurrenceRecord[],
+ target: DeletionTarget
+): { event?: EventRecord; cancelled: OccurrenceRecord[] } {
+ const scope = target.scope ?? 'all';
+ if (scope === 'this_event') {
+ return {
+ cancelled: occurrences.filter(
+ (occurrence) => occurrence.occurrenceKey === target.occurrenceKey
+ ),
+ };
+ }
+ if (scope === 'this_and_following') {
+ const from = target.occurrenceKey;
+ // Occurrence keys within one event share a format, so ordering is
+ // lexicographic.
+ return {
+ cancelled:
+ from === undefined
+ ? []
+ : occurrences.filter(
+ (occurrence) => occurrence.occurrenceKey >= from
+ ),
+ };
+ }
+ const sources = event?.sources ?? [];
+ const removedCopy = target.calendarId ?? sources[0]?.calendarId;
+ const remaining = sources.filter((copy) => copy.calendarId !== removedCopy);
+ const [nextCanonical] = remaining;
+ if (event && nextCanonical && remaining.length < sources.length) {
+ const removesCanonical = removedCopy === sources[0]?.calendarId;
+ return {
+ event: {
+ ...event,
+ ...(removesCanonical ? canonicalContent(nextCanonical) : {}),
+ sources: remaining,
+ },
+ cancelled: [],
+ };
+ }
+ return { cancelled: [...occurrences] };
+}
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.ts
new file mode 100644
index 0000000000..8514f20004
--- /dev/null
+++ b/apps/web/src/lib/queries/calendar/graphql/tests/mutations.test.ts
@@ -0,0 +1,654 @@
+import type { CalendarRangeCacheArgs } from '@graphql-cache/index';
+import type {
+ CalendarEventFieldsFragment,
+ CalendarMutationPayloadFieldsFragment,
+ CalendarOccurrenceItemFieldsFragment,
+} from '@service-storage/graphql/generated/graphql';
+import { type Client, CombinedError } from '@urql/core';
+import { GraphQLError } from 'graphql';
+import { beforeEach, describe, expect, it, vi } from 'vitest';
+import {
+ CalendarMutationError,
+ committedEvent,
+ executeGraphqlCreate,
+ executeGraphqlDelete,
+ executeGraphqlRsvp,
+ executeGraphqlUpdate,
+ trackCalendarCreateSettlements,
+} from '../mutations';
+import { attendee, graphqlEvent, graphqlOccurrence } from './fixtures';
+
+vi.mock('@service-storage/graphql-soup', () => ({
+ getGraphqlSoupClient: vi.fn(),
+}));
+
+const DISPOSITION = 'normalizedCacheMutationDisposition';
+const OPTIMISTIC = 'normalizedCacheOptimistic';
+const ENQUEUED = 'normalizedCacheOptimisticEnqueued';
+
+type Disposition = 'committed' | 'queued' | 'failed';
+
+interface OptimisticContext {
+ uuid: string;
+ optimisticResponse: Record<string, Record<string, unknown>>;
+ identityBindings?: unknown[];
+ uncertainCalendarEventKeys?: string[];
+}
+
+function fakeHost(
+ event: CalendarEventFieldsFragment | undefined,
+ occurrences: CalendarOccurrenceItemFieldsFragment[]
+) {
+ const records = new Map<string, unknown>([
+ ...(event ? [[`GraphqlCalendarEvent:${event.id}`, event] as const] : []),
+ ...occurrences.map(
+ (occurrence) =>
+ [`GraphqlCalendarOccurrence:${occurrence.id}`, occurrence] as const
+ ),
+ ]);
+ return {
+ calendarRange: vi.fn(async (args: CalendarRangeCacheArgs) => ({
+ kind: 'range' as const,
+ revision: '1' as never,
+ occurrenceKeys: occurrences
+ .filter(
+ (occurrence) =>
+ `GraphqlCalendarEvent:${occurrence.eventId}` === args.eventKey
+ )
+ .map((occurrence) => `GraphqlCalendarOccurrence:${occurrence.id}`),
+ gaps: [],
+ freshness: 'fresh' as const,
+ uncertainEventKeys: [],
+ optimistic: false,
+ watermark: null,
+ })),
+ calendarCommit: vi.fn(async () => ({
+ kind: 'committed' as const,
+ revision: '2' as never,
+ changed: [],
+ })),
+ readRecordsByKeys: vi.fn(async ({ keys }: { keys: string[] }) => ({
+ revision: '1' as never,
+ records: keys.flatMap((recordKey) => {
+ const record = records.get(recordKey);
+ return record ? [{ recordKey, record }] : [];
+ }),
+ })),
+ };
+}
+
+function fakeClient(
+ disposition: Disposition,
+ payload?: Partial<CalendarMutationPayloadFieldsFragment>,
+ beforeResult?: () => void
+) {
+ const calls: Array<{
+ variables: { input: Record<string, unknown> };
+ optimistic: OptimisticContext;
+ }> = [];
+ const client = {
+ mutation: (
+ _document: unknown,
+ variables: { input: Record<string, unknown> },
+ context: Record<string, OptimisticContext>
+ ) => {
+ calls.push({ variables, optimistic: context[OPTIMISTIC]! });
+ const enqueued = (context as Record<string, unknown>)[ENQUEUED];
+ if (typeof enqueued === 'function') enqueued();
+ beforeResult?.();
+ const field = Object.keys(
+ context[OPTIMISTIC]!.optimisticResponse
+ )[0] as string;
+ return {
+ toPromise: async () => ({
+ operation: { context },
+ data:
+ disposition === 'failed'
+ ? undefined
+ : {
+ [field]: {
+ __typename: 'GraphqlCalendarMutationPayload',
+ event: null,
+ occurrences: [],
+ deletedEventId: null,
+ ...payload,
+ },
+ },
+ error:
+ disposition === 'failed'
+ ? new CombinedError({
+ graphQLErrors: [
+ new GraphQLError('this calendar is read-only', {
+ extensions: { code: 'read_only', retryable: false },
+ }),
+ ],
+ })
+ : undefined,
+ extensions: {
+ [DISPOSITION]:
+ disposition === 'queued'
+ ? { kind: 'queued', transactionId: 'tx-1' }
+ : disposition === 'failed'
+ ? { kind: 'permanently-failed' }
+ : { kind: 'committed' },
+ },
+ }),
+ };
+ },
+ query: () => ({
+ toPromise: async () => ({
+ data: {
+ user: {
+ id: 'user-1',
+ calendars: [
+ {
+ __typename: 'GraphqlCalendar',
+ id: 'calendar-1',
+ linkId: 'link-1',
+ emailAddress: '[email protected]',
+ name: 'Primary',
+ color: null,
+ isPrimary: true,
+ isWritable: true,
+ isSubscription: false,
+ syncError: null,
+ defaultReminders: [],
+ },
+ ],
+ },
+ },
+ }),
+ }),
+ };
+ return { calls, client: client as unknown as Client };
+}
+
+const response = (call: { optimistic: OptimisticContext }) =>
+ Object.values(call.optimistic.optimisticResponse)[0] as {
+ event?: Partial<CalendarEventFieldsFragment>;
+ occurrences: Array<Partial<CalendarOccurrenceItemFieldsFragment>>;
+ };
+
+const instance = (day: number, overrides = {}) =>
+ graphqlOccurrence({
+ id: `event-1:2026-10-0${day}T09:00:00+00:00`,
+ occurrenceKey: `2026-10-0${day}T09:00:00+00:00`,
+ ...overrides,
+ });
+
+describe('executeGraphqlRsvp', () => {
+ it('answers 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 executeGraphqlRsvp(
+ host,
+ { eventId: 'event-1', response: 'accepted' },
+ client
+ );
+
+ const [call] = calls;
+ expect(call?.variables.input).toEqual({
+ eventId: 'event-1',
+ response: 'ACCEPTED',
+ });
+ const optimistic = response(call!);
+ expect(optimistic.event?.attendees?.[0]?.responseStatus).toBe('ACCEPTED');
+ expect(optimistic.occurrences).toEqual([
+ {
+ __typename: 'GraphqlCalendarOccurrence',
+ id: declined.id,
+ overrideAttendees: [attendee('[email protected]', 'ACCEPTED')],
+ },
+ ]);
+ });
+
+ it('records an instance answer on that instance alone and coalesces repeats', async () => {
+ const host = fakeHost(graphqlEvent(), [instance(5), instance(6)]);
+ const { calls, client } = fakeClient('queued');
+ const args = {
+ eventId: 'event-1',
+ response: 'declined' as const,
+ scope: 'this_event' as const,
+ recurrenceId: 'r6',
+ occurrenceKey: '2026-10-06T09:00:00+00:00',
+ };
+
+ const outcome = await executeGraphqlRsvp(host, args, client);
+ await executeGraphqlRsvp(host, { ...args, response: 'accepted' }, client);
+
+ expect(outcome).toEqual({ kind: 'queued' });
+ 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]', 'DECLINED')],
+ }),
+ ]);
+ expect(calls[0]?.variables.input).toMatchObject({
+ scope: 'THIS_EVENT',
+ recurrenceId: 'r6',
+ });
+ expect(calls[1]?.optimistic.uuid).toBe(calls[0]?.optimistic.uuid);
+ expect(host.calendarCommit).not.toHaveBeenCalled();
+ });
+});
+
+describe('executeGraphqlUpdate', () => {
+ it('moves a standalone event and its occurrence', async () => {
+ const event = graphqlEvent({ recurrenceLines: [] });
+ const host = fakeHost(event, [instance(6)]);
+ const { calls, client } = fakeClient('committed');
+
+ await executeGraphqlUpdate(
+ host,
+ {
+ eventId: 'event-1',
+ patch: {
+ title: 'Moved',
+ time: {
+ kind: 'timed',
+ startsAt: '2026-10-07T10:00:00Z',
+ endsAt: '2026-10-07T10:30:00Z',
+ },
+ },
+ },
+ client
+ );
+
+ const [call] = calls;
+ const optimistic = response(call!);
+ expect(optimistic.event?.title).toBe('Moved');
+ expect(optimistic.event?.sources?.[0]?.title).toBe('Moved');
+ expect(optimistic.event?.sources?.[1]?.title).toBe('Team standup');
+ expect(optimistic.occurrences).toEqual([
+ {
+ __typename: 'GraphqlCalendarOccurrence',
+ id: 'event-1:2026-10-06T09:00:00+00:00',
+ time: {
+ __typename: 'GraphqlTimedEventTime',
+ startsAt: '2026-10-07T10:00:00+00:00',
+ endsAt: '2026-10-07T10:30:00+00:00',
+ timeZone: null,
+ },
+ },
+ ]);
+ expect(call?.variables.input).toMatchObject({
+ eventId: 'event-1',
+ title: 'Moved',
+ time: {
+ timed: {
+ startsAt: '2026-10-07T10:00:00Z',
+ endsAt: '2026-10-07T10:30:00Z',
+ },
+ },
+ });
+ expect(call?.optimistic.uncertainCalendarEventKeys).toBeUndefined();
+ });
+
+ it('leaves recurring instances in place and marks the series uncertain', async () => {
+ const host = fakeHost(graphqlEvent(), [instance(6)]);
+ const { calls, client } = fakeClient('committed');
+
+ await executeGraphqlUpdate(
+ host,
+ {
+ eventId: 'event-1',
+ patch: {
+ time: {
+ kind: 'timed',
+ startsAt: '2026-10-07T10:00:00Z',
+ endsAt: '2026-10-07T10:30:00Z',
+ },
+ },
+ },
+ client
+ );
+
+ expect(response(calls[0]!).occurrences).toEqual([]);
+ expect(calls[0]?.optimistic.uncertainCalendarEventKeys).toEqual([
+ 'GraphqlCalendarEvent:event-1',
+ ]);
+ });
+
+ it('patches only the addressed copy of a multi-calendar event', async () => {
+ const host = fakeHost(graphqlEvent(), []);
+ const { calls, client } = fakeClient('committed');
+
+ await executeGraphqlUpdate(
+ host,
+ {
+ eventId: 'event-1',
+ calendarId: 'calendar-2',
+ patch: { title: 'Mine' },
+ },
+ client
+ );
+
+ const optimistic = response(calls[0]!);
+ expect(optimistic.event?.title).toBe('Standup');
+ expect(optimistic.event?.sources?.[1]?.title).toBe('Mine');
+ });
+
+ it('writes a one-occurrence patch as that occurrence’s exception', async () => {
+ const host = fakeHost(graphqlEvent(), [instance(5), instance(6)]);
+ const { calls, client } = fakeClient('committed');
+
+ await executeGraphqlUpdate(
+ host,
+ {
+ eventId: 'event-1',
+ scope: 'this_event',
+ recurrenceId: 'r6',
+ occurrenceKey: '2026-10-06T09:00:00+00:00',
+ patch: { title: 'Just today', location: '' },
+ },
+ client
+ );
+
+ const optimistic = response(calls[0]!);
+ expect(optimistic.event).toBeUndefined();
+ expect(optimistic.occurrences).toEqual([
+ {
+ __typename: 'GraphqlCalendarOccurrence',
+ id: 'event-1:2026-10-06T09:00:00+00:00',
+ overrideTitle: 'Just today',
+ overrideLocation: '',
+ },
+ ]);
+ });
+
+ it('replaces the event’s occurrences with the committed answer', async () => {
+ const host = fakeHost(graphqlEvent(), [instance(6)]);
+ const moved = instance(7);
+ const removed = { ...instance(6), isCancelled: true };
+ const { client } = fakeClient('committed', {
+ event: graphqlEvent({ title: 'Moved' }),
+ occurrences: [moved, removed],
+ });
+
+ const outcome = await executeGraphqlUpdate(
+ host,
+ { eventId: 'event-1', patch: { title: 'Moved' } },
+ client
+ );
+
+ expect(host.calendarCommit).toHaveBeenCalledWith({
+ replacedEvents: [
+ {
+ eventKey: 'GraphqlCalendarEvent:event-1',
+ occurrenceKeys: [`GraphqlCalendarOccurrence:${moved.id}`],
+ },
+ ],
+ });
+ expect(committedEvent(outcome)?.title).toBe('Moved');
+ });
+
+ it('surfaces a rejection with its code', async () => {
+ const host = fakeHost(graphqlEvent(), []);
+ const { client } = fakeClient('failed');
+
+ const failure = executeGraphqlUpdate(
+ host,
+ { eventId: 'event-1', patch: { title: 'Nope' } },
+ client
+ );
+
+ await expect(failure).rejects.toBeInstanceOf(CalendarMutationError);
+ await expect(failure).rejects.toMatchObject({
+ message: 'this calendar is read-only',
+ code: 'read_only',
+ retryable: false,
+ });
+ expect(host.calendarCommit).not.toHaveBeenCalled();
+ });
+});
+
+describe('executeGraphqlDelete', () => {
+ it('cancels the occurrence and everything after it', async () => {
+ const host = fakeHost(graphqlEvent(), [
+ instance(5),
+ instance(6),
+ instance(7),
+ ]);
+ const { calls, client } = fakeClient('committed');
+
+ await executeGraphqlDelete(
+ host,
+ {
+ eventId: 'event-1',
+ scope: 'this_and_following',
+ recurrenceId: 'r6',
+ occurrenceKey: '2026-10-06T09:00:00+00:00',
+ },
+ client
+ );
+
+ expect(response(calls[0]!).occurrences.map((o) => o.id)).toEqual([
+ 'event-1:2026-10-06T09:00:00+00:00',
+ 'event-1:2026-10-07T09:00:00+00:00',
+ ]);
+ expect(calls[0]?.variables.input).toMatchObject({
+ scope: 'THIS_AND_FOLLOWING',
+ });
+ });
+
+ it('drops one copy of a multi-calendar event and re-projects the next', async () => {
+ const host = fakeHost(graphqlEvent(), [instance(6)]);
+ const { calls, client } = fakeClient('committed');
+
+ await executeGraphqlDelete(host, { eventId: 'event-1' }, client);
+
+ const optimistic = response(calls[0]!);
+ expect(optimistic.occurrences).toEqual([]);
+ expect(optimistic.event?.title).toBe('Team standup');
+ expect(optimistic.event?.calendarId).toBe('calendar-2');
+ expect(optimistic.event?.sources).toHaveLength(1);
+ });
+
+ it('cancels every cached occurrence of a single-copy event', async () => {
+ const event = graphqlEvent();
+ const host = fakeHost({ ...event, sources: event.sources.slice(0, 1) }, [
+ instance(5),
+ instance(6),
+ ]);
+ const { calls, client } = fakeClient('committed', {
+ deletedEventId: 'event-1',
+ });
+
+ await executeGraphqlDelete(host, { eventId: 'event-1' }, client);
+
+ expect(
+ response(calls[0]!).occurrences.every((o) => o.isCancelled === true)
+ ).toBe(true);
+ expect(response(calls[0]!).occurrences).toHaveLength(2);
+ expect(host.calendarCommit).toHaveBeenCalledWith({
+ deletedEventKeys: ['GraphqlCalendarEvent:event-1'],
+ });
+ });
+});
+
+describe('executeGraphqlCreate', () => {
+ beforeEach(() => vi.clearAllMocks());
+
+ it('shows the event at once under its idempotency key', async () => {
+ const { calls, client } = fakeClient('committed', {
+ event: graphqlEvent({ id: 'server-1', title: 'Lunch' }),
+ });
+
+ const { event } = await executeGraphqlCreate(
+ {
+ title: 'Lunch',
+ time: {
+ kind: 'timed',
+ startsAt: '2026-10-07T12:00:00Z',
+ endsAt: '2026-10-07T13:00:00Z',
+ },
+ attendees: [{ email: '[email protected]' }],
+ },
+ client
+ );
+
+ const [call] = calls;
+ const clientId = call?.optimistic.uuid;
+ expect(call?.variables.input.idempotencyKey).toBe(clientId);
+ const optimistic = response(call!);
+ expect(optimistic.event).toMatchObject({
+ id: clientId,
+ linkId: 'link-1',
+ calendarId: 'calendar-1',
+ title: 'Lunch',
+ status: 'CONFIRMED',
+ });
+ expect(optimistic.occurrences).toEqual([
+ expect.objectContaining({
+ id: `${clientId}:2026-10-07T12:00:00+00:00`,
+ eventId: clientId,
+ linkId: 'link-1',
+ isCancelled: false,
+ }),
+ ]);
+ expect(call?.optimistic.identityBindings).toEqual([
+ {
+ localKey: `GraphqlCalendarEvent:${clientId}`,
+ responsePath: ['createCalendarEvent', 'event'],
+ referenceFields: ['GraphqlCalendarOccurrence.eventId'],
+ },
+ ]);
+ expect(event.id).toBe('server-1');
+ });
+
+ it('marks a recurring create uncertain', async () => {
+ const { calls, client } = fakeClient('committed', {
+ event: graphqlEvent({ id: 'server-1' }),
+ });
+
+ await executeGraphqlCreate(
+ {
+ title: 'Weekly',
+ recurrenceLines: ['RRULE:FREQ=WEEKLY'],
+ time: {
+ kind: 'allDay',
+ startDate: '2026-10-07',
+ endDate: '2026-10-08',
+ },
+ },
+ client
+ );
+
+ const clientId = calls[0]?.optimistic.uuid;
+ expect(calls[0]?.optimistic.uncertainCalendarEventKeys).toEqual([
+ `GraphqlCalendarEvent:${clientId}`,
+ ]);
+ });
+
+ it('holds writes to a queued event until its create settles', async () => {
+ let settle: ((settlement: { mutationUuid?: string }) => void) | undefined;
+ const untrack = trackCalendarCreateSettlements({
+ onMutationSettled: (callback) => {
+ settle = callback as typeof settle;
+ return () => {};
+ },
+ });
+ const { client } = fakeClient('queued');
+ const { outcome, event } = await executeGraphqlCreate(
+ {
+ title: 'Offline',
+ time: {
+ kind: 'allDay',
+ startDate: '2026-10-07',
+ endDate: '2026-10-08',
+ },
+ },
+ client
+ );
+ const host = fakeHost(undefined, []);
+
+ expect(outcome).toEqual({ kind: 'queued' });
+ await expect(
+ executeGraphqlUpdate(
+ host,
+ { eventId: event.id, patch: { title: 'Renamed' } },
+ fakeClient('committed').client
+ )
+ ).rejects.toMatchObject({ code: 'not_found' });
+
+ settle?.({ mutationUuid: event.id });
+ await expect(
+ executeGraphqlUpdate(
+ host,
+ { eventId: event.id, patch: { title: 'Renamed' } },
+ fakeClient('committed').client
+ )
+ ).resolves.toMatchObject({ kind: 'committed' });
+ untrack();
+ });
+
+ it('releases a queued create the queue settled before the call returned', async () => {
+ let settle: ((settlement: { mutationUuid?: string }) => void) | undefined;
+ const untrack = trackCalendarCreateSettlements({
+ onMutationSettled: (callback) => {
+ settle = callback as typeof settle;
+ return () => {};
+ },
+ });
+ let clientId: string | undefined;
+ const { calls, client } = fakeClient('queued', undefined, () => {
+ clientId = calls[0]?.optimistic.uuid;
+ settle?.({ mutationUuid: clientId });
+ });
+
+ const { event } = await executeGraphqlCreate(
+ {
+ title: 'Settled early',
+ time: {
+ kind: 'allDay',
+ startDate: '2026-10-07',
+ endDate: '2026-10-08',
+ },
+ },
+ client
+ );
+
+ expect(event.id).toBe(clientId);
+ await expect(
+ executeGraphqlUpdate(
+ fakeHost(undefined, []),
+ { eventId: event.id, patch: { title: 'Renamed' } },
+ fakeClient('committed').client
+ )
+ ).resolves.toMatchObject({ kind: 'committed' });
+ untrack();
+ });
+
+ it('forgets a create the server rejected', async () => {
+ const { calls, client } = fakeClient('failed');
+
+ await expect(
+ executeGraphqlCreate(
+ {
+ title: 'Rejected',
+ time: {
+ kind: 'allDay',
+ startDate: '2026-10-07',
+ endDate: '2026-10-08',
+ },
+ },
+ client
+ )
+ ).rejects.toBeInstanceOf(CalendarMutationError);
+
+ const clientId = calls[0]?.optimistic.uuid ?? '';
+ await expect(
+ executeGraphqlUpdate(
+ fakeHost(undefined, []),
+ { eventId: clientId, patch: { title: 'Renamed' } },
+ fakeClient('committed').client
+ )
+ ).resolves.toMatchObject({ kind: 'committed' });
+ });
+});
diff --git a/apps/web/src/lib/queries/calendar/graphql/use-calendar-cache.ts b/apps/web/src/lib/queries/calendar/graphql/use-calendar-cache.ts
index b74d95b356..4eade79410 100644
--- a/apps/web/src/lib/queries/calendar/graphql/use-calendar-cache.ts
+++ b/apps/web/src/lib/queries/calendar/graphql/use-calendar-cache.ts
@@ -9,6 +9,7 @@ import { createCalendarOccurrenceQueryRange } from '../occurrences';
import { runCalendarBackfill } from './backfill';
import { useGraphqlCalendarHost } from './flag';
import { mapCalendarSyncStatus } from './map';
+import { trackCalendarCreateSettlements } from './mutations';
import {
beginCalendarSyncStatusSample,
fetchCalendarOccurrencePage,
@@ -62,6 +63,7 @@ export function useCalendarCache(): void {
const unsubscribeReconnect = subscribeGraphqlSoupReconnected(() =>
controller.markStale('reconnect')
);
+ const untrackCreates = trackCalendarCreateSettlements(cacheHost);
const unsubscribeGeneration = cacheHost.onCacheGenerationChanged(() => {
controller.markStale('generation');
setGeneration((value) => value + 1);
@@ -91,6 +93,7 @@ export function useCalendarCache(): void {
removeOnline();
unsubscribeGeneration();
unsubscribeReconnect();
+ untrackCreates();
controller.dispose();
if (activeCalendarSyncController() === controller) {
setActiveCalendarSyncController(undefined);
diff --git a/apps/web/src/lib/queries/calendar/mutations.ts b/apps/web/src/lib/queries/calendar/mutations.ts
index e8c6add773..b5118e4005 100644
--- a/apps/web/src/lib/queries/calendar/mutations.ts
+++ b/apps/web/src/lib/queries/calendar/mutations.ts
@@ -15,6 +15,14 @@ import type { CalendarEventSourceContent } from '@service-storage/generated/sche
import type { CalendarOccurrenceItem } from '@service-storage/generated/schemas/calendarOccurrenceItem';
import type { EventTime } from '@service-storage/generated/schemas/eventTime';
import { useMutation } from '@tanstack/solid-query';
+import { graphqlCalendarHost } from './graphql/flag';
+import {
+ committedEvent,
+ executeGraphqlCreate,
+ executeGraphqlDelete,
+ executeGraphqlRsvp,
+ executeGraphqlUpdate,
+} from './graphql/mutations';
import {
type CalendarInvitationsData,
invalidateCalendarInvitations,
@@ -101,7 +109,7 @@ function answeredByRsvp(
}
type RsvpCallbacks = MutationCallbacks<
- CalendarEventEntity,
+ CalendarEventEntity | undefined,
Error,
RsvpCalendarEventArgs,
RsvpMutationContext
@@ -247,17 +255,20 @@ function readAnsweredResponses(
export function useRsvpCalendarEventMutation(callbacks?: RsvpCallbacks) {
return useMutation(() => ({
mutationKey: RSVP_MUTATION_KEY,
- mutationFn: async (args: RsvpCalendarEventArgs) =>
- await throwOnErr(() =>
+ mutationFn: async (args: RsvpCalendarEventArgs) => {
+ const host = graphqlCalendarHost();
+ if (host) return committedEvent(await executeGraphqlRsvp(host, args));
+ return await throwOnErr(() =>
emailClient.rsvpCalendarEvent(args.eventId, {
response: args.response,
respondingEmail: args.respondingEmail,
scope: args.scope,
recurrenceId: args.recurrenceId,
})
- ),
+ );
+ },
...withCallbacks<
- CalendarEventEntity,
+ CalendarEventEntity | undefined,
Error,
RsvpCalendarEventArgs,
RsvpMutationContext
@@ -425,14 +436,20 @@ type DeleteCallbacks = MutationCallbacks<
/** Deletes an event (a recurring event's entire series) at the provider. */
export function useDeleteCalendarEventMutation(callbacks?: DeleteCallbacks) {
return useMutation(() => ({
- mutationFn: async (args: DeleteCalendarEventArgs) =>
- await throwOnErr(() =>
+ mutationFn: async (args: DeleteCalendarEventArgs) => {
+ const host = graphqlCalendarHost();
+ if (host) {
+ await executeGraphqlDelete(host, args);
+ return;
+ }
+ return await throwOnErr(() =>
emailClient.deleteCalendarEvent(args.eventId, {
calendarId: args.calendarId,
scope: args.scope,
recurrenceId: args.recurrenceId,
})
- ),
+ );
+ },
...withCallbacks<
unknown,
Error,
@@ -471,7 +488,7 @@ export interface UpdateCalendarEventArgs {
}
type UpdateCallbacks = MutationCallbacks<
- CalendarEventEntity,
+ CalendarEventEntity | undefined,
Error,
UpdateCalendarEventArgs,
CalendarMutationContext
@@ -548,17 +565,20 @@ function applyEventPatch(
*/
export function useUpdateCalendarEventMutation(callbacks?: UpdateCallbacks) {
return useMutation(() => ({
- mutationFn: async (args: UpdateCalendarEventArgs) =>
- await throwOnErr(() =>
+ mutationFn: async (args: UpdateCalendarEventArgs) => {
+ const host = graphqlCalendarHost();
+ if (host) return committedEvent(await executeGraphqlUpdate(host, args));
+ return await throwOnErr(() =>
emailClient.updateCalendarEvent(args.eventId, {
...args.patch,
calendarId: args.calendarId,
scope: args.scope,
recurrenceId: args.recurrenceId,
})
- ),
+ );
+ },
...withCallbacks<
- CalendarEventEntity,
+ CalendarEventEntity | undefined,
Error,
UpdateCalendarEventArgs,
CalendarMutationContext
@@ -597,14 +617,18 @@ type CreateCallbacks = MutationCallbacks<
/**
* Creates an event on the selected calendar, defaulting to the requester's
- * primary calendar when no `calendarId` is given. There is no optimistic
- * insert — the entity id is only known once the provider echo lands — so
- * the viewport refetches on settle.
+ * primary calendar when no `calendarId` is given. With calendar reads on the
+ * cache, the event shows at once under a client id the server echo replaces;
+ * over REST the entity id is only known once the provider echo lands, so the
+ * viewport refetches on settle.
*/
export function useCreateCalendarEventMutation(callbacks?: CreateCallbacks) {
return useMutation(() => ({
- mutationFn: async (args: CreateCalendarEventRequest) =>
- await throwOnErr(() => emailClient.createCalendarEvent(args)),
+ mutationFn: async (args: CreateCalendarEventRequest) => {
+ if (graphqlCalendarHost())
+ return (await executeGraphqlCreate(args)).event;
+ return await throwOnErr(() => emailClient.createCalendarEvent(args));
+ },
...withCallbacks<CalendarEventEntity, Error, CreateCalendarEventRequest>(
{
onSettled: () => invalidateCalendarOccurrences(),
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.graphql
index 435e9c6d3b..695ca287b0 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
@@ -173,3 +173,38 @@ query CalendarChanges($input: CalendarChangesInput!) {
}
}
}
+
+fragment CalendarMutationPayloadFields on GraphqlCalendarMutationPayload {
+ __typename
+ event {
+ ...CalendarEventFields
+ }
+ occurrences {
+ ...CalendarOccurrenceItemFields
+ }
+ deletedEventId
+}
+
+mutation CreateCalendarEvent($input: CreateCalendarEventInput!) {
+ createCalendarEvent(input: $input) {
+ ...CalendarMutationPayloadFields
+ }
+}
+
+mutation UpdateCalendarEvent($input: UpdateCalendarEventInput!) {
+ updateCalendarEvent(input: $input) {
+ ...CalendarMutationPayloadFields
+ }
+}
+
+mutation DeleteCalendarEvent($input: DeleteCalendarEventInput!) {
+ deleteCalendarEvent(input: $input) {
+ ...CalendarMutationPayloadFields
+ }
+}
+
+mutation RespondToCalendarEvent($input: RespondToCalendarEventInput!) {
+ respondToCalendarEvent(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.ts
index 571ae5a418..065458f5a0 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
@@ -20,6 +20,22 @@ export type ActivityOverviewInput = {
timeZone?: string | null | undefined;
};
+/** An all-day span with an exclusive end date. */
+export type AllDayEventTimeInput = {
+ /** Exclusive local end date (`YYYY-MM-DD`). */
+ endDate: string;
+ /** Inclusive local start date (`YYYY-MM-DD`). */
+ startDate: string;
+};
+
+/** An attendee to invite. */
+export type CalendarAttendeeInput = {
+ /** Attendee email address. */
+ email: string;
+ /** Whether attendance is optional. */
+ isOptional?: boolean;
+};
+
/** A request for calendar changes after a watermark. */
export type CalendarChangesInput = {
/**
@@ -29,6 +45,13 @@ export type CalendarChangesInput = {
since: Array<CalendarLinkWatermarkInput>;
};
+/** The time shape of an event. */
+export type CalendarEventTimeInput =
+ { /** An all-day span. */
+ allDay: AllDayEventTimeInput; timed?: never; }
+ | { allDay?: never; /** A span with absolute instants. */
+ timed: TimedEventTimeInput; };
+
/** How far the client has applied one connected inbox's change log. */
export type CalendarLinkWatermarkInput = {
/** Connected inbox identifier. */
@@ -37,6 +60,17 @@ export type CalendarLinkWatermarkInput = {
seq: string;
};
+/**
+ * Out-of-office properties. Present to create or edit an out-of-office
+ * status event.
+ */
+export type CalendarOutOfOfficeInput = {
+ /** How conflicting invitations are handled while the user is out. */
+ autoDeclineMode?: GraphqlCalendarOutOfOfficeAutoDeclineMode;
+ /** Message returned to organizers whose invitations are auto-declined. */
+ declineMessage?: string | null | undefined;
+};
+
/** A bounded occurrence viewport and page request. */
export type CalendarRangeInput = {
/** `endCursor` of the previous page. */
@@ -59,6 +93,22 @@ export type CalendarRangeInput = {
startDate?: string | null | undefined;
};
+/** One reminder. */
+export type CalendarReminderOverrideInput = {
+ /** Delivery method (`popup` or `email`). */
+ method: string;
+ /** Minutes before the start the reminder fires. */
+ minutes: number;
+};
+
+/** An event's reminder configuration. */
+export type CalendarRemindersInput = {
+ /** Explicit reminders, used when `useDefault` is false. */
+ overrides?: Array<CalendarReminderOverrideInput>;
+ /** Whether the calendar's default reminders apply. */
+ useDefault: boolean;
+};
+
/** Channel activity operation exposed by GraphQL. */
export type ChannelActivityType =
/** Record that the user interacted with the channel. */
@@ -76,6 +126,47 @@ export type ChannelSharePolicyInput = {
operation: GraphqlSharePolicyOperation;
};
+/** Create an event on one of the viewer's writable calendars. */
+export type CreateCalendarEventInput = {
+ /** Invited attendees. */
+ attendees?: Array<CalendarAttendeeInput>;
+ /**
+ * Exact calendar to create the event on; takes precedence over the
+ * inbox default.
+ */
+ calendarId?: string | number | null | undefined;
+ /** Conference to attach; omit to create the event without one. */
+ conference?: GraphqlCalendarConferenceChange | null | undefined;
+ /** Optional event body. */
+ description?: string | null | undefined;
+ /**
+ * Connected inbox whose primary calendar receives the event; defaults
+ * to the viewer's primary inbox.
+ */
+ emailLinkId?: string | number | null | undefined;
+ /** Stable retry identity, scoped to the authenticated organizer. */
+ idempotencyKey?: string | number | null | undefined;
+ /** Optional location label. */
+ location?: string | null | undefined;
+ /**
+ * Present to create an out-of-office status event (primary calendar
+ * only, timed, no attendees).
+ */
+ outOfOffice?: CalendarOutOfOfficeInput | null | undefined;
+ /** Raw RFC 5545 recurrence properties (`RRULE`, `RDATE`, `EXDATE`). */
+ recurrenceLines?: Array<string>;
+ /** Reminder configuration; omit to keep the calendar defaults. */
+ reminders?: CalendarRemindersInput | null | undefined;
+ /** Timed or all-day shape. */
+ time: CalendarEventTimeInput;
+ /** Display title. */
+ title: string;
+ /** Availability behavior. */
+ transparency?: GraphqlCalendarEventTransparency | null | undefined;
+ /** Event visibility. */
+ visibility?: GraphqlCalendarEventVisibility | null | undefined;
+};
+
/** Create an initiative owned by the authenticated viewer. */
export type CreateInitiativeInput = {
/** Initial description Markdown. */
@@ -90,6 +181,21 @@ export type CreateInitiativeInput = {
shareWithTeam?: boolean | null | undefined;
};
+/** Delete an event, one occurrence, or an occurrence onward. */
+export type DeleteCalendarEventInput = {
+ /**
+ * Calendar whose copy of the event is deleted, for an event synced from
+ * more than one calendar. Omit to delete the canonical copy.
+ */
+ calendarId?: string | number | null | undefined;
+ /** Event to delete. */
+ eventId: string | number;
+ /** Original-start key of the occurrence a scoped deletion targets. */
+ recurrenceId?: string | null | undefined;
+ /** Deletion scope; defaults to the entire event or series. */
+ scope?: GraphqlCalendarDeletionScope;
+};
+
/** Input for deleting an email draft. */
export type DeleteEmailDraftInput = {
/**
@@ -219,6 +325,13 @@ export type GraphqlCalendarAttendeeResponseStatus =
/** The attendee tentatively accepted. */
| 'TENTATIVE';
+/** A change to an event's conference. */
+export type GraphqlCalendarConferenceChange =
+ /** Generate a new Google Meet conference and attach it. */
+ | 'GOOGLE_MEET'
+ /** Detach whatever conference is currently attached. */
+ | 'NONE';
+
/** Conferencing system backing an event's join URL. */
export type GraphqlCalendarConferenceProvider =
/** Google Meet. */
@@ -226,6 +339,15 @@ export type GraphqlCalendarConferenceProvider =
/** Any other conferencing system. */
| 'OTHER';
+/** How much of a recurring series a deletion removes. */
+export type GraphqlCalendarDeletionScope =
+ /** The entire event or series. */
+ | 'ALL'
+ /** One occurrence and everything after it. */
+ | 'THIS_AND_FOLLOWING'
+ /** One occurrence. */
+ | 'THIS_EVENT';
+
/** The two operands of a recursive `CalendarEventFilterExpr` binary expression. */
export type GraphqlCalendarEventBinaryExpr = {
/** Left expression. */
@@ -304,6 +426,22 @@ export type GraphqlCalendarEventVisibility =
/** Visible to everyone with access to the calendar. */
| 'PUBLIC';
+/** How an out-of-office event answers conflicting invitations. */
+export type GraphqlCalendarOutOfOfficeAutoDeclineMode =
+ /** Decline every conflicting invitation, existing and new. */
+ | 'DECLINE_ALL_CONFLICTING_INVITATIONS'
+ /** Leave conflicting invitations alone. */
+ | 'DECLINE_NONE'
+ /** Decline only invitations that arrive after the event is created. */
+ | 'DECLINE_ONLY_NEW_CONFLICTING_INVITATIONS';
+
+/** How much of a recurring series an RSVP applies to. */
+export type GraphqlCalendarRsvpScope =
+ /** The entire series. */
+ | 'ALL'
+ /** One occurrence. */
+ | 'THIS_EVENT';
+
/**
* Aggregate ingestion state across every calendar account visible to the
* viewer.
@@ -314,6 +452,13 @@ export type GraphqlCalendarSyncStatus =
/** At least one visible calendar account is still ingesting. */
| 'SYNCING';
+/** How much of a recurring series an update applies to. */
+export type GraphqlCalendarUpdateScope =
+ /** The entire event or series. */
+ | 'ALL'
+ /** One occurrence. */
+ | 'THIS_EVENT';
+
/** The two operands of a recursive `CallFilterExpr` binary expression. */
export type GraphqlCallBinaryExpr = {
/** Left expression. */
@@ -1511,6 +1656,29 @@ export type ReorderFavoritesInput = {
favorites: Array<EntityRefInput>;
};
+/** Set the viewer's RSVP on an event. */
+export type RespondToCalendarEventInput = {
+ /**
+ * Calendar whose copy of the event is answered, for an event synced
+ * from more than one calendar. Omit to answer on the canonical copy.
+ */
+ calendarId?: string | number | null | undefined;
+ /** Event to answer. */
+ eventId: string | number;
+ /** Original-start key of the occurrence the response targets. */
+ recurrenceId?: string | null | undefined;
+ /** The owned connected address whose attendance is changed. */
+ respondingEmail?: string | null | undefined;
+ /** The response to record. */
+ response: GraphqlCalendarAttendeeResponseStatus;
+ /**
+ * How much of a recurring series the response covers. Omit to let
+ * `recurrenceId` decide: the identified occurrence alone when one is
+ * supplied, otherwise the whole series.
+ */
+ scope?: GraphqlCalendarRsvpScope | null | undefined;
+};
+
/** One recipient of an email draft. */
export type SaveEmailDraftContactInput = {
/** Recipient email address. */
@@ -1641,6 +1809,60 @@ export type SoupInput =
| { continuation?: never; /** Start a new Soup query. */
initial: SoupInitialInput; };
+/** A span with absolute instants. */
+export type TimedEventTimeInput = {
+ /** Exclusive end instant in RFC 3339 format. */
+ endsAt: string;
+ /** Inclusive start instant in RFC 3339 format. */
+ startsAt: string;
+ /** IANA time-zone identifier the event is anchored to. */
+ timeZone?: string | null | undefined;
+};
+
+/** Patch an event; omitted fields are left untouched. */
+export type UpdateCalendarEventInput = {
+ /** Replacement attendee list. */
+ attendees?: Array<CalendarAttendeeInput> | null | undefined;
+ /**
+ * Calendar whose copy of the event is patched, for an event synced from
+ * more than one calendar. Omit to patch the canonical copy.
+ */
+ calendarId?: string | number | null | undefined;
+ /** Conference change; omit to leave the conference untouched. */
+ conference?: GraphqlCalendarConferenceChange | null | undefined;
+ /** Replacement description; an empty string clears it. */
+ description?: string | null | undefined;
+ /** Event to patch. */
+ eventId: string | number;
+ /** Replacement location; an empty string clears it. */
+ location?: string | null | undefined;
+ /**
+ * Replacement out-of-office properties, applied only to an event that is
+ * already out-of-office.
+ */
+ outOfOffice?: CalendarOutOfOfficeInput | null | undefined;
+ /** Original-start key of the occurrence the update targets. */
+ recurrenceId?: string | null | undefined;
+ /** Replacement recurrence properties; an empty list clears them. */
+ recurrenceLines?: Array<string> | null | undefined;
+ /** Replacement reminder configuration. */
+ reminders?: CalendarRemindersInput | null | undefined;
+ /**
+ * How much of a recurring series the update covers. Omit to let
+ * `recurrenceId` decide: the identified occurrence alone when one is
+ * supplied, otherwise the whole event or series.
+ */
+ scope?: GraphqlCalendarUpdateScope | null | undefined;
+ /** Replacement time. */
+ time?: CalendarEventTimeInput | null | undefined;
+ /** Replacement title; an empty string clears it. */
+ title?: string | null | undefined;
+ /** Replacement transparency. */
+ transparency?: GraphqlCalendarEventTransparency | null | undefined;
+ /** Replacement visibility. */
+ visibility?: GraphqlCalendarEventVisibility | null | undefined;
+};
+
/** Input for applying option deltas across one entity's properties. */
export type UpdateEntityPropertyOptionsInput = {
/** Identifier of the entity whose properties are changing. */
@@ -2363,6 +2585,81 @@ export type CalendarChangesQuery = { user: { id: string, calendarChanges: { dele
| { __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 }> } } }> }>, calendars: Array<{ __typename: 'GraphqlCalendar', id: string, linkId: string, emailAddress: string, name: string, color: string | null, isPrimary: boolean, isWritable: boolean, isSubscription: boolean, syncError: string | null, defaultReminders: Array<{ method: string, minutes: number }> }>, newWatermark: Array<{ linkId: string, seq: string }> } } };
+export type CalendarMutationPayloadFieldsFragment = { __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 }> } } | 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 }> } } }> };
+
+export type CreateCalendarEventMutationVariables = Exact<{
+ input: CreateCalendarEventInput;
+}>;
+
+
+export type CreateCalendarEventMutation = { createCalendarEvent: { __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 }> } } | 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 }> } } }> } };
+
+export type UpdateCalendarEventMutationVariables = Exact<{
+ input: UpdateCalendarEventInput;
+}>;
+
+
+export type UpdateCalendarEventMutation = { updateCalendarEvent: { __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 }> } } | 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 }> } } }> } };
+
+export type DeleteCalendarEventMutationVariables = Exact<{
+ input: DeleteCalendarEventInput;
+}>;
+
+
+export type DeleteCalendarEventMutation = { deleteCalendarEvent: { __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 }> } } | 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 }> } } }> } };
+
+export type RespondToCalendarEventMutationVariables = Exact<{
+ input: RespondToCalendarEventInput;
+}>;
+
+
+export type RespondToCalendarEventMutation = { respondToCalendarEvent: { __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 }> } } | 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 }> } } }> } };
+
export type RecordChannelActivityMutationVariables = Exact<{
input: RecordChannelActivityInput;
}>;
@@ -15800,12 +16097,13 @@ export type SoupNotificationsEntityFieldsFragment =
export const ActivityEventFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ActivityEventFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"actorId"}},{"kind":"Field","name":{"kind":"Name","value":"subjectId"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"occurredAt"}},{"kind":"Field","name":{"kind":"Name","value":"action"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityPropertyChanged"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"property"}},{"kind":"Field","name":{"kind":"Name","value":"from"}},{"kind":"Field","name":{"kind":"Name","value":"to"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityParticipantAdded"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"participant"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityParticipantRemoved"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"participant"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityCallStarted"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"callId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityUnknownAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tag"}},{"kind":"Field","name":{"kind":"Name","value":"payload"}}]}}]}}]}}]} as unknown as DocumentNode<ActivityEventFieldsFragment, unknown>;
export const EntityActivityFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EntityActivityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"activity"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ActivityEventFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ActivityEventFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityEvent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"actorId"}},{"kind":"Field","name":{"kind":"Name","value":"subjectId"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"occurredAt"}},{"kind":"Field","name":{"kind":"Name","value":"action"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityPropertyChanged"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"property"}},{"kind":"Field","name":{"kind":"Name","value":"from"}},{"kind":"Field","name":{"kind":"Name","value":"to"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityParticipantAdded"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"participant"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityParticipantRemoved"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"participant"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityCallStarted"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"callId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlActivityUnknownAction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tag"}},{"kind":"Field","name":{"kind":"Name","value":"payload"}}]}}]}}]}}]} as unknown as DocumentNode<EntityActivityFieldsFragment, unknown>;
+export const CalendarFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendar"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"emailAddress"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"isPrimary"}},{"kind":"Field","name":{"kind":"Name","value":"isWritable"}},{"kind":"Field","name":{"kind":"Name","value":"isSubscription"}},{"kind":"Field","name":{"kind":"Name","value":"syncError"}},{"kind":"Field","name":{"kind":"Name","value":"defaultReminders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"method"}},{"kind":"Field","name":{"kind":"Name","value":"minutes"}}]}}]}}]} as unknown as DocumentNode<CalendarFieldsFragment, unknown>;
+export const CalendarReminderFieldsFragmentDoc = {"kind":"Document","definitions":[{"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"}}]}}]}}]} as unknown as DocumentNode<CalendarReminderFieldsFragment, unknown>;
export const CalendarEventTimeFieldsFragmentDoc = {"kind":"Document","definitions":[{"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"}}]}}]}}]} as unknown as DocumentNode<CalendarEventTimeFieldsFragment, unknown>;
export const CalendarAttendeeFieldsFragmentDoc = {"kind":"Document","definitions":[{"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"}}]}}]} as unknown as DocumentNode<CalendarAttendeeFieldsFragment, unknown>;
-export const CalendarReminderFieldsFragmentDoc = {"kind":"Document","definitions":[{"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"}}]}}]}}]} as unknown as DocumentNode<CalendarReminderFieldsFragment, unknown>;
export const CalendarEventFieldsFragmentDoc = {"kind":"Document","definitions":[{"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":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"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"}}]}}]} as unknown as DocumentNode<CalendarEventFieldsFragment, unknown>;
export const CalendarOccurrenceItemFieldsFragmentDoc = {"kind":"Document","definitions":[{"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":"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":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<CalendarOccurrenceItemFieldsFragment, unknown>;
-export const CalendarFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendar"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"emailAddress"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"isPrimary"}},{"kind":"Field","name":{"kind":"Name","value":"isWritable"}},{"kind":"Field","name":{"kind":"Name","value":"isSubscription"}},{"kind":"Field","name":{"kind":"Name","value":"syncError"}},{"kind":"Field","name":{"kind":"Name","value":"defaultReminders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"method"}},{"kind":"Field","name":{"kind":"Name","value":"minutes"}}]}}]}}]} as unknown as DocumentNode<CalendarFieldsFragment, unknown>;
+export const CalendarMutationPayloadFieldsFragmentDoc = {"kind":"Document","definitions":[{"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"}}]}},{"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":"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"}}]}}]}}]} as unknown as DocumentNode<CalendarMutationPayloadFieldsFragment, unknown>;
export const SoupEntityIdentityFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupEntityIdentityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSoupEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"isFavorited"}}]}}]} as unknown as DocumentNode<SoupEntityIdentityFieldsFragment, unknown>;
export const SoupPropertyValueFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPropertyValueFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlBooleanPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"boolValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNumberPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"numberValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlStringPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"stringValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDatePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"dateValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSelectOptionPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"optionIds"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityReferencePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"references"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"specificMessageId"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlLinkPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"urls"}}]}}]}}]} as unknown as DocumentNode<SoupPropertyValueFieldsFragment, unknown>;
export const SoupPropertyFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPropertyFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlProperty"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"propertyDefinitionId"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"dataType"}},{"kind":"Field","name":{"kind":"Name","value":"isMultiSelect"}},{"kind":"Field","name":{"kind":"Name","value":"specificEntityType"}},{"kind":"Field","name":{"kind":"Name","value":"isSystem"}},{"kind":"Field","name":{"kind":"Name","value":"isMetadata"}},{"kind":"Field","name":{"kind":"Name","value":"value"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"SoupPropertyValueFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SoupPropertyValueFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlBooleanPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"boolValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlNumberPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"numberValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlStringPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"stringValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlDatePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"dateValue"},"name":{"kind":"Name","value":"value"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlSelectOptionPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"optionIds"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlEntityReferencePropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"references"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"entityId"}},{"kind":"Field","name":{"kind":"Name","value":"entityType"}},{"kind":"Field","name":{"kind":"Name","value":"specificMessageId"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlLinkPropertyValue"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"urls"}}]}}]}}]} as unknown as DocumentNode<SoupPropertyFieldsFragment, unknown>;
@@ -15861,6 +16159,10 @@ export const AgentSessionMentionsDocument = {"kind":"Document","definitions":[{"
export const CalendarOccurrencesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CalendarOccurrences"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarRangeInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"calendarOccurrences"},"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":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarOccurrenceItemFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"hasNextPage"}},{"kind":"Field","name":{"kind":"Name","value":"endCursor"}},{"kind":"Field","name":{"kind":"Name","value":"syncStatus"}},{"kind":"Field","name":{"kind":"Name","value":"watermark"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"seq"}}]}}]}}]}}]}},{"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":"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":"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":"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"}}]}}]}}]} as unknown as DocumentNode<CalendarOccurrencesQuery, CalendarOccurrencesQueryVariables>;
export const CalendarsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Calendars"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"calendars"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CalendarFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendar"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"emailAddress"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"isPrimary"}},{"kind":"Field","name":{"kind":"Name","value":"isWritable"}},{"kind":"Field","name":{"kind":"Name","value":"isSubscription"}},{"kind":"Field","name":{"kind":"Name","value":"syncError"}},{"kind":"Field","name":{"kind":"Name","value":"defaultReminders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"method"}},{"kind":"Field","name":{"kind":"Name","value":"minutes"}}]}}]}}]} as unknown as DocumentNode<CalendarsQuery, CalendarsQueryVariables>;
export const CalendarChangesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CalendarChanges"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarChangesInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"calendarChanges"},"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":"events"},"selectionSet":{"kind":"SelectionSet","selections":[{"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":"deletedEventIds"}},{"kind":"Field","name":{"kind":"Name","value":"calendars"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CalendarFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"deletedCalendarIds"}},{"kind":"Field","name":{"kind":"Name","value":"newWatermark"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"seq"}}]}},{"kind":"Field","name":{"kind":"Name","value":"hasMore"}},{"kind":"Field","name":{"kind":"Name","value":"resetRequired"}}]}}]}}]}},{"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":"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":"CalendarFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GraphqlCalendar"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"linkId"}},{"kind":"Field","name":{"kind":"Name","value":"emailAddress"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"isPrimary"}},{"kind":"Field","name":{"kind":"Name","value":"isWritable"}},{"kind":"Field","name":{"kind":"Name","value":"isSubscription"}},{"kind":"Field","name":{"kind":"Name","value":"syncError"}},{"kind":"Field","name":{"kind":"Name","value":"defaultReminders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"method"}},{"kind":"Field","name":{"kind":"Name","value":"minutes"}}]}}]}}]} as unknown as DocumentNode<CalendarChangesQuery, CalendarChangesQueryVariables>;
+export const CreateCalendarEventDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateCalendarEvent"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateCalendarEventInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createCalendarEvent"},"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":"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<CreateCalendarEventMutation, CreateCalendarEventMutationVariables>;
+export 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":"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":"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":"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 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":"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":"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":"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":"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/surfaces.md b/docs/AGENT_GUIDE/surfaces.md
index 79a477bb87..b7891810f8 100644
--- a/docs/AGENT_GUIDE/surfaces.md
+++ b/docs/AGENT_GUIDE/surfaces.md
@@ -1206,6 +1206,17 @@ Confirm mixed event shapes, stable positions, clean handoff, and an uncovered Re
Reduced-motion mode disables pulses and transitions. The page stays busy until the
handoff starts. Hidden pages do not animate. Resize to confirm skeleton alignment.
+Calendar reads come from the local GraphQL cache when both `enable-graphql-soup`
+and `enable-graphql-calendar` are on (PostHog in production, on by default in dev
+for the calendar flag; set `VITE_ENABLE_GRAPHQL_CALENDAR=false` to test the REST
+path). A range the cache has covered renders with no occurrence request, and a far
+jump fetches only the uncovered weeks. A `refresh_calendar` poke, reconnecting,
+coming online, or returning to the tab runs one `CalendarChanges` delta that
+applies edits made elsewhere. RSVPs, edits, deletions, and creates show at once
+through the durable mutation queue: a rejected write rolls back with the usual
+error, and a write made offline stays visible and replays on reconnect. Native
+apps whose engine lacks the calendar cache commands keep the REST path.
+
A single period arrow retains its slide. Rapid arrow clicks and period hotkeys
accumulate against the requested date and interrupt unfinished slides, without
waiting for event responses or hidden-page redraws. Verify repeated forward clicks