Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
refactor(email_service): stop serving Google Calendar sync (#6826)
gbirmanc948be73a545
diff --git a/Cargo.lock b/Cargo.lockindex e9397d6646..1bee9a2d58 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -6366,7 +6366,6 @@ dependencies = ["sqs_worker","static_file_service_client","strum_macros 0.27.2",- "subtle","system_properties","thiserror 2.0.18","tokio",diff --git a/apps/web/scripts/generate-api-schema.ts b/apps/web/scripts/generate-api-schema.tsindex d801f25eeb..6bd9f881f3 100644--- a/apps/web/scripts/generate-api-schema.ts+++ b/apps/web/scripts/generate-api-schema.ts@@ -25,6 +25,7 @@ const serviceToCrate: Record<string, string> = {"contacts-service": "contacts_service","unfurl-service": "unfurl_service","agent-harness": "agent_harness_service",+ "calendar-service": "calendar_service","email-service": "email_service","search-service": "search_service","scheduled-action": "scheduled_action"diff --git a/apps/web/scripts/services.ts b/apps/web/scripts/services.tsindex 334322cfa7..e0b489f99c 100644--- a/apps/web/scripts/services.ts+++ b/apps/web/scripts/services.ts@@ -88,6 +88,14 @@ export const services: Service[] = [output: "../src/lib/service-clients/service-unfurl/",orvalKey: "unfurlService",},+ {+ name: "calendar-service",+ dev: "https://dev-gateway.macro.com/calendar/api-doc/openapi.json",+ prod: "https://gateway.macro.com/calendar/api-doc/openapi.json",+ local: "http://localhost:8088/api-doc/openapi.json",+ output: "../src/lib/service-clients/service-calendar/",+ orvalKey: "calendarService",+ },{name: "email-service",dev: "https://dev-gateway.macro.com/email/api-doc/openapi.json",diff --git a/apps/web/src/features/calendar/components/composer/create-calendar-event-form-controller.ts b/apps/web/src/features/calendar/components/composer/create-calendar-event-form-controller.tsindex 83c45632b6..0de02d0bba 100644--- a/apps/web/src/features/calendar/components/composer/create-calendar-event-form-controller.ts+++ b/apps/web/src/features/calendar/components/composer/create-calendar-event-form-controller.ts@@ -1,4 +1,4 @@-import type { OutOfOfficeProperties } from '@service-email/generated/schemas/outOfOfficeProperties';+import type { OutOfOfficeProperties } from '@service-calendar/generated/schemas/outOfOfficeProperties';import { type Accessor, batch, createMemo, createSignal } from 'solid-js';import {buildReminderOverrides,diff --git a/apps/web/src/features/calendar/components/composer/event-form-model.ts b/apps/web/src/features/calendar/components/composer/event-form-model.tsindex 2aac643d50..131a2a66b4 100644--- a/apps/web/src/features/calendar/components/composer/event-form-model.ts+++ b/apps/web/src/features/calendar/components/composer/event-form-model.ts@@ -4,9 +4,9 @@ import {type WithCustomUserInput,} from '@core/user/combinedRecipient';import { TZDateMini } from '@date-fns/tz';-import type { ConferenceChange } from '@service-email/generated/schemas/conferenceChange';-import type { EventTime } from '@service-email/generated/schemas/eventTime';-import type { OutOfOfficeProperties } from '@service-email/generated/schemas/outOfOfficeProperties';+import type { ConferenceChange } from '@service-calendar/generated/schemas/conferenceChange';+import type { EventTime } from '@service-calendar/generated/schemas/eventTime';+import type { OutOfOfficeProperties } from '@service-calendar/generated/schemas/outOfOfficeProperties';import type { EventReminderOverride } from '@service-storage/generated/schemas/eventReminderOverride';import type { EventReminders } from '@service-storage/generated/schemas/eventReminders';import type { EventType } from '@service-storage/generated/schemas/eventType';diff --git a/apps/web/src/features/calendar/components/composer/out-of-office.ts b/apps/web/src/features/calendar/components/composer/out-of-office.tsindex f93a2768a9..1606fe3cb9 100644--- a/apps/web/src/features/calendar/components/composer/out-of-office.ts+++ b/apps/web/src/features/calendar/components/composer/out-of-office.ts@@ -1,4 +1,4 @@-import type { OutOfOfficeAutoDeclineMode } from '@service-email/generated/schemas/outOfOfficeAutoDeclineMode';+import type { OutOfOfficeAutoDeclineMode } from '@service-calendar/generated/schemas/outOfOfficeAutoDeclineMode';import type { EventType } from '@service-storage/generated/schemas/eventType';import { match } from 'ts-pattern';diff --git a/apps/web/src/features/calendar/utils/event-interaction.ts b/apps/web/src/features/calendar/utils/event-interaction.tsindex b9682574b0..6f69db8cde 100644--- a/apps/web/src/features/calendar/utils/event-interaction.ts+++ b/apps/web/src/features/calendar/utils/event-interaction.ts@@ -1,5 +1,5 @@import type { EventApi } from '@fullcalendar/core';-import type { EventTime } from '@service-email/generated/schemas/eventTime';+import type { EventTime } from '@service-calendar/generated/schemas/eventTime';import type { CalendarEvent } from '../types';import { formatLocalDate } from './calendar-date';diff --git a/apps/web/src/lib/core/component/AI/component/tool/calendar/event-preview-model.ts b/apps/web/src/lib/core/component/AI/component/tool/calendar/event-preview-model.tsindex 89f99aec8e..6ce3e56702 100644--- a/apps/web/src/lib/core/component/AI/component/tool/calendar/event-preview-model.ts+++ b/apps/web/src/lib/core/component/AI/component/tool/calendar/event-preview-model.ts@@ -18,7 +18,7 @@ import {WEEKDAY_CODES,} from '@app/features/calendar/utils/recurrence';import { TZDateMini } from '@date-fns/tz';-import type { EventTime } from '@service-email/generated/schemas/eventTime';+import type { EventTime } from '@service-calendar/generated/schemas/eventTime';interface CalendarToolPreviewEventInput {id: string;diff --git a/apps/web/src/lib/queries/calendar/calendars.ts b/apps/web/src/lib/queries/calendar/calendars.tsindex ffba48e6b9..72e7072e48 100644--- a/apps/web/src/lib/queries/calendar/calendars.ts+++ b/apps/web/src/lib/queries/calendar/calendars.ts@@ -4,7 +4,7 @@ import { useQuery } from '@tanstack/solid-query';import type { Accessor } from 'solid-js';import { calendarKeys } from './keys';-export type { VisibleCalendar } from '@service-email/generated/schemas/visibleCalendar';+export type { VisibleCalendar } from '@service-calendar/generated/schemas/visibleCalendar';const CALENDAR_LIST_STALE_TIME = 5 * 60_000;diff --git a/apps/web/src/lib/queries/calendar/mutations.ts b/apps/web/src/lib/queries/calendar/mutations.tsindex f04bd10e63..a8e5148088 100644--- a/apps/web/src/lib/queries/calendar/mutations.ts+++ b/apps/web/src/lib/queries/calendar/mutations.ts@@ -1,15 +1,15 @@import { throwOnErr } from '@core/util/result';import { queryClient } from '@queries/client';import { type MutationCallbacks, withCallbacks } from '@queries/utils';+import type { CalendarEvent as CalendarEventEntity } from '@service-calendar/generated/schemas/calendarEvent';+import type { CreateCalendarEventRequest } from '@service-calendar/generated/schemas/createCalendarEventRequest';+import type { UpdateCalendarEventRequest } from '@service-calendar/generated/schemas/updateCalendarEventRequest';import {type CalendarDeletionScope,type CalendarRsvpScope,type CalendarUpdateScope,emailClient,} from '@service-email/client';-import type { CalendarEvent as CalendarEventEntity } from '@service-email/generated/schemas/calendarEvent';-import type { CreateCalendarEventRequest } from '@service-email/generated/schemas/createCalendarEventRequest';-import type { UpdateCalendarEventRequest } from '@service-email/generated/schemas/updateCalendarEventRequest';import type { AttendeeResponseStatus } from '@service-storage/generated/schemas/attendeeResponseStatus';import type { CalendarEventSourceContent } from '@service-storage/generated/schemas/calendarEventSourceContent';import type { CalendarOccurrenceItem } from '@service-storage/generated/schemas/calendarOccurrenceItem';@@ -25,7 +25,7 @@ import {export type {CreateCalendarEventRequest,UpdateCalendarEventRequest,-} from '@service-email/generated/schemas';+} from '@service-calendar/generated/schemas';type CalendarMutationContext = { rollback: () => void };diff --git a/apps/web/src/lib/service-clients/orval.config.ts b/apps/web/src/lib/service-clients/orval.config.tsindex 443bce6065..2cbc0f7660 100644--- a/apps/web/src/lib/service-clients/orval.config.ts+++ b/apps/web/src/lib/service-clients/orval.config.ts@@ -14,6 +14,19 @@ export default defineConfig({target: './service-auth/openapi.json',},},+ calendarService: {+ output: {+ client: 'fetch',+ target: './service-calendar/generated/client.ts',+ schemas: './service-calendar/generated/schemas',+ override: {+ useDates: false,+ },+ },+ input: {+ target: './service-calendar/openapi.json',+ },+ },cognitionService: {output: {client: 'fetch',diff --git a/apps/web/src/lib/service-clients/service-calendar/generated/client.ts b/apps/web/src/lib/service-clients/service-calendar/generated/client.tsnew file mode 100644index 0000000000..af68ea4be7--- /dev/null+++ b/apps/web/src/lib/service-clients/service-calendar/generated/client.ts@@ -0,0 +1,436 @@+/**+ * Generated by orval v7.21.0 🍺+ * Do not edit manually.+ * calendar_service+ * OpenAPI spec version: 0.1.0+ */+import type {+ CalendarEvent,+ CalendarMutationApiError,+ CreateCalendarEventRequest,+ DeleteCalendarEventParams,+ ListCalendarsResponse,+ RsvpCalendarEventRequest,+ UpdateCalendarEventRequest,+} from './schemas';++/**+ * @summary List the requester's visible calendars for pickers and filters.+ */+export type listCalendarsResponse200 = {+ data: ListCalendarsResponse;+ status: 200;+};++export type listCalendarsResponse401 = {+ data: void;+ status: 401;+};++export type listCalendarsResponse503 = {+ data: CalendarMutationApiError;+ status: 503;+};++export type listCalendarsResponseSuccess = listCalendarsResponse200 & {+ headers: Headers;+};+export type listCalendarsResponseError = (+ | listCalendarsResponse401+ | listCalendarsResponse503+) & {+ headers: Headers;+};++export type listCalendarsResponse =+ | listCalendarsResponseSuccess+ | listCalendarsResponseError;++export const getListCalendarsUrl = () => {+ return `/calendar/calendars`;+};++export const listCalendars = async (+ options?: RequestInit+): Promise<listCalendarsResponse> => {+ const res = await fetch(getListCalendarsUrl(), {+ ...options,+ method: 'GET',+ });++ const body = [204, 205, 304].includes(res.status) ? null : await res.text();++ const data: listCalendarsResponse['data'] = body ? JSON.parse(body) : {};+ return {+ data,+ status: res.status,+ headers: res.headers,+ } as listCalendarsResponse;+};++/**+ * @summary Create a calendar event and return its synced entity.+ */+export type createCalendarEventResponse201 = {+ data: CalendarEvent;+ status: 201;+};++export type createCalendarEventResponse400 = {+ data: CalendarMutationApiError;+ status: 400;+};++export type createCalendarEventResponse401 = {+ data: void;+ status: 401;+};++export type createCalendarEventResponse403 = {+ data: CalendarMutationApiError;+ status: 403;+};++export type createCalendarEventResponse409 = {+ data: CalendarMutationApiError;+ status: 409;+};++export type createCalendarEventResponse503 = {+ data: CalendarMutationApiError;+ status: 503;+};++export type createCalendarEventResponseSuccess =+ createCalendarEventResponse201 & {+ headers: Headers;+ };+export type createCalendarEventResponseError = (+ | createCalendarEventResponse400+ | createCalendarEventResponse401+ | createCalendarEventResponse403+ | createCalendarEventResponse409+ | createCalendarEventResponse503+) & {+ headers: Headers;+};++export type createCalendarEventResponse =+ | createCalendarEventResponseSuccess+ | createCalendarEventResponseError;++export const getCreateCalendarEventUrl = () => {+ return `/calendar/events`;+};++export const createCalendarEvent = async (+ createCalendarEventRequest: CreateCalendarEventRequest,+ options?: RequestInit+): Promise<createCalendarEventResponse> => {+ const res = await fetch(getCreateCalendarEventUrl(), {+ ...options,+ method: 'POST',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(createCalendarEventRequest),+ });++ const body = [204, 205, 304].includes(res.status) ? null : await res.text();++ const data: createCalendarEventResponse['data'] = body+ ? JSON.parse(body)+ : {};+ return {+ data,+ status: res.status,+ headers: res.headers,+ } as createCalendarEventResponse;+};++/**+ * @summary Delete a calendar event at its provider.+ */+export type deleteCalendarEventResponse204 = {+ data: void;+ status: 204;+};++export type deleteCalendarEventResponse401 = {+ data: void;+ status: 401;+};++export type deleteCalendarEventResponse403 = {+ data: CalendarMutationApiError;+ status: 403;+};++export type deleteCalendarEventResponse404 = {+ data: CalendarMutationApiError;+ status: 404;+};++export type deleteCalendarEventResponse409 = {+ data: CalendarMutationApiError;+ status: 409;+};++export type deleteCalendarEventResponse503 = {+ data: CalendarMutationApiError;+ status: 503;+};++export type deleteCalendarEventResponseSuccess =+ deleteCalendarEventResponse204 & {+ headers: Headers;+ };+export type deleteCalendarEventResponseError = (+ | deleteCalendarEventResponse401+ | deleteCalendarEventResponse403+ | deleteCalendarEventResponse404+ | deleteCalendarEventResponse409+ | deleteCalendarEventResponse503+) & {+ headers: Headers;+};++export type deleteCalendarEventResponse =+ | deleteCalendarEventResponseSuccess+ | deleteCalendarEventResponseError;++export const getDeleteCalendarEventUrl = (+ eventId: string,+ params?: DeleteCalendarEventParams+) => {+ const normalizedParams = new URLSearchParams();++ Object.entries(params || {}).forEach(([key, value]) => {+ if (value !== undefined) {+ normalizedParams.append(key, value === null ? 'null' : value.toString());+ }+ });++ const stringifiedParams = normalizedParams.toString();++ return stringifiedParams.length > 0+ ? `/calendar/events/${eventId}?${stringifiedParams}`+ : `/calendar/events/${eventId}`;+};++export const deleteCalendarEvent = async (+ eventId: string,+ params?: DeleteCalendarEventParams,+ options?: RequestInit+): Promise<deleteCalendarEventResponse> => {+ const res = await fetch(getDeleteCalendarEventUrl(eventId, params), {+ ...options,+ method: 'DELETE',+ });++ const body = [204, 205, 304].includes(res.status) ? null : await res.text();++ const data: deleteCalendarEventResponse['data'] = body+ ? JSON.parse(body)+ : {};+ return {+ data,+ status: res.status,+ headers: res.headers,+ } as deleteCalendarEventResponse;+};++/**+ * @summary Update fields of a calendar event and return its synced entity.+ */+export type updateCalendarEventResponse200 = {+ data: CalendarEvent;+ status: 200;+};++export type updateCalendarEventResponse400 = {+ data: CalendarMutationApiError;+ status: 400;+};++export type updateCalendarEventResponse401 = {+ data: void;+ status: 401;+};++export type updateCalendarEventResponse403 = {+ data: CalendarMutationApiError;+ status: 403;+};++export type updateCalendarEventResponse404 = {+ data: CalendarMutationApiError;+ status: 404;+};++export type updateCalendarEventResponse409 = {+ data: CalendarMutationApiError;+ status: 409;+};++export type updateCalendarEventResponse503 = {+ data: CalendarMutationApiError;+ status: 503;+};++export type updateCalendarEventResponseSuccess =+ updateCalendarEventResponse200 & {+ headers: Headers;+ };+export type updateCalendarEventResponseError = (+ | updateCalendarEventResponse400+ | updateCalendarEventResponse401+ | updateCalendarEventResponse403+ | updateCalendarEventResponse404+ | updateCalendarEventResponse409+ | updateCalendarEventResponse503+) & {+ headers: Headers;+};++export type updateCalendarEventResponse =+ | updateCalendarEventResponseSuccess+ | updateCalendarEventResponseError;++export const getUpdateCalendarEventUrl = (eventId: string) => {+ return `/calendar/events/${eventId}`;+};++export const updateCalendarEvent = async (+ eventId: string,+ updateCalendarEventRequest: UpdateCalendarEventRequest,+ options?: RequestInit+): Promise<updateCalendarEventResponse> => {+ const res = await fetch(getUpdateCalendarEventUrl(eventId), {+ ...options,+ method: 'PATCH',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(updateCalendarEventRequest),+ });++ const body = [204, 205, 304].includes(res.status) ? null : await res.text();++ const data: updateCalendarEventResponse['data'] = body+ ? JSON.parse(body)+ : {};+ return {+ data,+ status: res.status,+ headers: res.headers,+ } as updateCalendarEventResponse;+};++/**+ * @summary Set the requester's RSVP on a calendar event and return its synced entity.+ */+export type rsvpCalendarEventResponse200 = {+ data: CalendarEvent;+ status: 200;+};++export type rsvpCalendarEventResponse401 = {+ data: void;+ status: 401;+};++export type rsvpCalendarEventResponse403 = {+ data: CalendarMutationApiError;+ status: 403;+};++export type rsvpCalendarEventResponse404 = {+ data: CalendarMutationApiError;+ status: 404;+};++export type rsvpCalendarEventResponse409 = {+ data: CalendarMutationApiError;+ status: 409;+};++export type rsvpCalendarEventResponse503 = {+ data: CalendarMutationApiError;+ status: 503;+};++export type rsvpCalendarEventResponseSuccess = rsvpCalendarEventResponse200 & {+ headers: Headers;+};+export type rsvpCalendarEventResponseError = (+ | rsvpCalendarEventResponse401+ | rsvpCalendarEventResponse403+ | rsvpCalendarEventResponse404+ | rsvpCalendarEventResponse409+ | rsvpCalendarEventResponse503+) & {+ headers: Headers;+};++export type rsvpCalendarEventResponse =+ | rsvpCalendarEventResponseSuccess+ | rsvpCalendarEventResponseError;++export const getRsvpCalendarEventUrl = (eventId: string) => {+ return `/calendar/events/${eventId}/rsvp`;+};++export const rsvpCalendarEvent = async (+ eventId: string,+ rsvpCalendarEventRequest: RsvpCalendarEventRequest,+ options?: RequestInit+): Promise<rsvpCalendarEventResponse> => {+ const res = await fetch(getRsvpCalendarEventUrl(eventId), {+ ...options,+ method: 'PUT',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(rsvpCalendarEventRequest),+ });++ const body = [204, 205, 304].includes(res.status) ? null : await res.text();++ const data: rsvpCalendarEventResponse['data'] = body ? JSON.parse(body) : {};+ return {+ data,+ status: res.status,+ headers: res.headers,+ } as rsvpCalendarEventResponse;+};++/**+ * @summary Health check+ */+export type healthHandlerResponse200 = {+ data: string;+ status: 200;+};++export type healthHandlerResponseSuccess = healthHandlerResponse200 & {+ headers: Headers;+};++export type healthHandlerResponse = healthHandlerResponseSuccess;++export const getHealthHandlerUrl = () => {+ return `/health`;+};++export const healthHandler = async (+ options?: RequestInit+): Promise<healthHandlerResponse> => {+ const res = await fetch(getHealthHandlerUrl(), {+ ...options,+ method: 'GET',+ });++ const body = [204, 205, 304].includes(res.status) ? null : await res.text();++ const data: healthHandlerResponse['data'] = body ? JSON.parse(body) : {};+ return {+ data,+ status: res.status,+ headers: res.headers,+ } as healthHandlerResponse;+};diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/attendeeResponseStatus.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/attendeeResponseStatus.tssimilarity index 95%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/attendeeResponseStatus.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/attendeeResponseStatus.tsindex d36e291b9b..78490268cb 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/attendeeResponseStatus.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/attendeeResponseStatus.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarAttendee.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarAttendee.tssimilarity index 97%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/calendarAttendee.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarAttendee.tsindex 045a27614f..dfb0b580ab 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarAttendee.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarAttendee.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarAttendeeComment.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarAttendeeComment.tssimilarity index 90%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/calendarAttendeeComment.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarAttendeeComment.tsindex da541671ba..d5ad0fd2c2 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarAttendeeComment.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarAttendeeComment.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarAttendeeDisplayName.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarAttendeeDisplayName.tssimilarity index 90%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/calendarAttendeeDisplayName.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarAttendeeDisplayName.tsindex ef424c0c2b..c9eaa3e1aa 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarAttendeeDisplayName.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarAttendeeDisplayName.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarAttendeeInputBody.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarAttendeeInputBody.tssimilarity index 94%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/calendarAttendeeInputBody.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarAttendeeInputBody.tsindex 0f6603e70b..64d56d0b28 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarAttendeeInputBody.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarAttendeeInputBody.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarDeletionScopeParam.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarDeletionScopeParam.tssimilarity index 96%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/calendarDeletionScopeParam.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarDeletionScopeParam.tsindex b08a4650ee..528a241366 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarDeletionScopeParam.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarDeletionScopeParam.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEvent.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEvent.tssimilarity index 99%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEvent.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEvent.tsindex 5711914229..29445db6e2 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEvent.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEvent.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { CalendarAttendee } from './calendarAttendee';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventCalendarId.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventCalendarId.tssimilarity index 93%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventCalendarId.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventCalendarId.tsindex b1e90c282f..4e0580576e 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventCalendarId.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventCalendarId.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventConferenceProvider.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventConferenceProvider.tssimilarity index 92%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventConferenceProvider.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventConferenceProvider.tsindex 5219be68ee..e42b0cd19e 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventConferenceProvider.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventConferenceProvider.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { ConferenceProvider } from './conferenceProvider';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventConferenceUrl.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventConferenceUrl.tssimilarity index 90%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventConferenceUrl.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventConferenceUrl.tsindex 6a7a1ed627..0759487eac 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventConferenceUrl.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventConferenceUrl.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventCreatorEmail.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventCreatorEmail.tssimilarity index 95%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventCreatorEmail.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventCreatorEmail.tsindex 46a8016990..b858d77ef1 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventCreatorEmail.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventCreatorEmail.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventCreatorName.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventCreatorName.tssimilarity index 91%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventCreatorName.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventCreatorName.tsindex 86b6dc680a..c230caaa90 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventCreatorName.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventCreatorName.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventDescription.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventDescription.tssimilarity index 90%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventDescription.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventDescription.tsindex 50704f93cb..0547bf3a3f 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventDescription.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventDescription.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventLocation.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventLocation.tssimilarity index 91%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventLocation.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventLocation.tsindex b346a39707..c65c3a5d3b 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventLocation.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventLocation.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventOrganizerEmail.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventOrganizerEmail.tssimilarity index 90%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventOrganizerEmail.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventOrganizerEmail.tsindex 565a77763c..0305966928 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventOrganizerEmail.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventOrganizerEmail.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventOrganizerName.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventOrganizerName.tssimilarity index 90%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventOrganizerName.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventOrganizerName.tsindex 48fa69e780..3ff04544a7 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventOrganizerName.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventOrganizerName.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventSourceContent.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventSourceContent.tssimilarity index 99%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventSourceContent.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventSourceContent.tsindex 503c482bbf..0e39643df3 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventSourceContent.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventSourceContent.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { CalendarEventSourceContentCreatorEmail } from './calendarEventSourceContentCreatorEmail';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventSourceContentCreatorEmail.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventSourceContentCreatorEmail.tssimilarity index 91%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventSourceContentCreatorEmail.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventSourceContentCreatorEmail.tsindex 592a61c7c1..af6c00a0cd 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventSourceContentCreatorEmail.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventSourceContentCreatorEmail.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventSourceContentCreatorName.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventSourceContentCreatorName.tssimilarity index 91%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventSourceContentCreatorName.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventSourceContentCreatorName.tsindex c89133ddd0..1f6d405a4f 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventSourceContentCreatorName.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventSourceContentCreatorName.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventSourceContentDescription.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventSourceContentDescription.tssimilarity index 90%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventSourceContentDescription.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventSourceContentDescription.tsindex a00dc6d6d2..e3e386ae69 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventSourceContentDescription.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventSourceContentDescription.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventSourceContentLocation.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventSourceContentLocation.tssimilarity index 91%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventSourceContentLocation.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventSourceContentLocation.tsindex 336801d5e0..35839b0163 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarEventSourceContentLocation.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarEventSourceContentLocation.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarMutationApiError.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarMutationApiError.tssimilarity index 95%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/calendarMutationApiError.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarMutationApiError.tsindex 279f25ff53..d258eab830 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarMutationApiError.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarMutationApiError.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { CalendarMutationErrorCode } from './calendarMutationErrorCode';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarMutationErrorCode.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarMutationErrorCode.tssimilarity index 97%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/calendarMutationErrorCode.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarMutationErrorCode.tsindex 74ff949f03..8dc49f5b3e 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarMutationErrorCode.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarMutationErrorCode.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarRsvpScopeParam.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarRsvpScopeParam.tssimilarity index 96%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/calendarRsvpScopeParam.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarRsvpScopeParam.tsindex c32afb7e95..b95d21ead2 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarRsvpScopeParam.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarRsvpScopeParam.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarUpdateScopeParam.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarUpdateScopeParam.tssimilarity index 97%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/calendarUpdateScopeParam.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarUpdateScopeParam.tsindex 19f82d1656..6f0378cd85 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/calendarUpdateScopeParam.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/calendarUpdateScopeParam.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/conferenceChange.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/conferenceChange.tssimilarity index 96%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/conferenceChange.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/conferenceChange.tsindex 76b4911f14..d5b1923f02 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/conferenceChange.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/conferenceChange.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/conferenceProvider.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/conferenceProvider.tssimilarity index 98%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/conferenceProvider.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/conferenceProvider.tsindex 57a9d3069b..679cdf51d6 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/conferenceProvider.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/conferenceProvider.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequest.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequest.tssimilarity index 99%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequest.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequest.tsindex 12d3821584..30f43b2c3a 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequest.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequest.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { CalendarAttendeeInputBody } from './calendarAttendeeInputBody';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestCalendarId.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestCalendarId.tssimilarity index 92%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestCalendarId.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestCalendarId.tsindex ed9e8656b3..ba51c1a18a 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestCalendarId.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestCalendarId.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestConference.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestConference.tssimilarity index 92%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestConference.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestConference.tsindex 6a10a13afc..bd51e9116a 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestConference.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestConference.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { ConferenceChange } from './conferenceChange';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestDescription.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestDescription.tssimilarity index 90%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestDescription.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestDescription.tsindex e2959fc961..c33354aad4 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestDescription.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestDescription.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestEmailLinkId.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestEmailLinkId.tssimilarity index 93%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestEmailLinkId.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestEmailLinkId.tsindex 0a87105d7e..6e13c8e4d7 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestEmailLinkId.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestEmailLinkId.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestLocation.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestLocation.tssimilarity index 90%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestLocation.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestLocation.tsindex cfca0f26bc..79fb1cf6a9 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestLocation.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestLocation.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestOutOfOffice.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestOutOfOffice.tssimilarity index 92%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestOutOfOffice.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestOutOfOffice.tsindex d720a761d8..e0010bd586 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestOutOfOffice.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestOutOfOffice.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { OutOfOfficeProperties } from './outOfOfficeProperties';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestReminders.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestReminders.tssimilarity index 91%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestReminders.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestReminders.tsindex af0dba65e2..28ee09d2b8 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestReminders.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestReminders.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { EventReminders } from './eventReminders';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestTransparency.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestTransparency.tssimilarity index 92%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestTransparency.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestTransparency.tsindex d57e28eedc..947acd7813 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestTransparency.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestTransparency.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { EventTransparency } from './eventTransparency';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestVisibility.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestVisibility.tssimilarity index 92%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestVisibility.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestVisibility.tsindex 7c8f142a65..2a4c7deaa0 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/createCalendarEventRequestVisibility.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/createCalendarEventRequestVisibility.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { EventVisibility } from './eventVisibility';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/deleteCalendarEventParams.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/deleteCalendarEventParams.tssimilarity index 96%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/deleteCalendarEventParams.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/deleteCalendarEventParams.tsindex a60878e047..7d4cc64eea 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/deleteCalendarEventParams.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/deleteCalendarEventParams.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { CalendarDeletionScopeParam } from './calendarDeletionScopeParam';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/eventReminderOverride.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventReminderOverride.tssimilarity index 96%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/eventReminderOverride.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventReminderOverride.tsindex 93ed84b4a2..2b851907e3 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/eventReminderOverride.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventReminderOverride.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/eventReminders.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventReminders.tssimilarity index 96%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/eventReminders.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventReminders.tsindex 11e94cdd61..c3123f21e8 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/eventReminders.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventReminders.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { EventReminderOverride } from './eventReminderOverride';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/eventStatus.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventStatus.tssimilarity index 95%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/eventStatus.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventStatus.tsindex a5e423b0e8..b1c2e7fea2 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/eventStatus.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventStatus.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/eventTime.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventTime.tssimilarity index 96%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/eventTime.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventTime.tsindex 20dbe369a8..712acea07f 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/eventTime.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventTime.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { EventTimeOneOf } from './eventTimeOneOf';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/eventTimeOneOf.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventTimeOneOf.tssimilarity index 96%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/eventTimeOneOf.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventTimeOneOf.tsindex 8058d16278..946c33eab3 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/eventTimeOneOf.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventTimeOneOf.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { EventTimeOneOfKind } from './eventTimeOneOfKind';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/eventTimeOneOfFour.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventTimeOneOfFour.tssimilarity index 95%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/eventTimeOneOfFour.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventTimeOneOfFour.tsindex af3c5710d6..c92081a77b 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/eventTimeOneOfFour.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventTimeOneOfFour.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { EventTimeOneOfFourKind } from './eventTimeOneOfFourKind';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/eventTimeOneOfFourKind.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventTimeOneOfFourKind.tssimilarity index 94%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/eventTimeOneOfFourKind.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventTimeOneOfFourKind.tsindex 1378cbe193..fffc78e694 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/eventTimeOneOfFourKind.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventTimeOneOfFourKind.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/eventTimeOneOfKind.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventTimeOneOfKind.tssimilarity index 94%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/eventTimeOneOfKind.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventTimeOneOfKind.tsindex 44ff8828ac..77b54e8470 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/eventTimeOneOfKind.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventTimeOneOfKind.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/eventTimeOneOfTimeZone.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventTimeOneOfTimeZone.tssimilarity index 91%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/eventTimeOneOfTimeZone.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventTimeOneOfTimeZone.tsindex 689decf704..9a97bf2921 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/eventTimeOneOfTimeZone.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventTimeOneOfTimeZone.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/eventTransparency.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventTransparency.tssimilarity index 95%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/eventTransparency.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventTransparency.tsindex 2e56bc579e..c53f54e521 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/eventTransparency.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventTransparency.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/eventType.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventType.tssimilarity index 97%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/eventType.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventType.tsindex 849d5061e3..022666384e 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/eventType.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventType.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/eventVisibility.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventVisibility.tssimilarity index 95%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/eventVisibility.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventVisibility.tsindex 484bfaa051..52b1ae5f22 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/eventVisibility.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/eventVisibility.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-calendar/generated/schemas/index.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/index.tsnew file mode 100644index 0000000000..f007248034--- /dev/null+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/index.ts@@ -0,0 +1,86 @@+/**+ * Generated by orval v7.21.0 🍺+ * Do not edit manually.+ * calendar_service+ * OpenAPI spec version: 0.1.0+ */++export * from './attendeeResponseStatus';+export * from './calendarAttendee';+export * from './calendarAttendeeComment';+export * from './calendarAttendeeDisplayName';+export * from './calendarAttendeeInputBody';+export * from './calendarDeletionScopeParam';+export * from './calendarEvent';+export * from './calendarEventCalendarId';+export * from './calendarEventConferenceProvider';+export * from './calendarEventConferenceUrl';+export * from './calendarEventCreatorEmail';+export * from './calendarEventCreatorName';+export * from './calendarEventDescription';+export * from './calendarEventLocation';+export * from './calendarEventOrganizerEmail';+export * from './calendarEventOrganizerName';+export * from './calendarEventSourceContent';+export * from './calendarEventSourceContentCreatorEmail';+export * from './calendarEventSourceContentCreatorName';+export * from './calendarEventSourceContentDescription';+export * from './calendarEventSourceContentLocation';+export * from './calendarMutationApiError';+export * from './calendarMutationErrorCode';+export * from './calendarRsvpScopeParam';+export * from './calendarUpdateScopeParam';+export * from './conferenceChange';+export * from './conferenceProvider';+export * from './createCalendarEventRequest';+export * from './createCalendarEventRequestCalendarId';+export * from './createCalendarEventRequestConference';+export * from './createCalendarEventRequestDescription';+export * from './createCalendarEventRequestEmailLinkId';+export * from './createCalendarEventRequestLocation';+export * from './createCalendarEventRequestOutOfOffice';+export * from './createCalendarEventRequestReminders';+export * from './createCalendarEventRequestTransparency';+export * from './createCalendarEventRequestVisibility';+export * from './deleteCalendarEventParams';+export * from './eventReminderOverride';+export * from './eventReminders';+export * from './eventStatus';+export * from './eventTime';+export * from './eventTimeOneOf';+export * from './eventTimeOneOfFour';+export * from './eventTimeOneOfFourKind';+export * from './eventTimeOneOfKind';+export * from './eventTimeOneOfTimeZone';+export * from './eventTransparency';+export * from './eventType';+export * from './eventVisibility';+export * from './listCalendarsResponse';+export * from './outOfOfficeAutoDeclineMode';+export * from './outOfOfficeProperties';+export * from './outOfOfficePropertiesDeclineMessage';+export * from './refreshCalendarEvent';+export * from './refreshCalendarEventOneOf';+export * from './refreshCalendarEventOneOfEvent';+export * from './rsvpCalendarEventRequest';+export * from './rsvpCalendarEventRequestCalendarId';+export * from './rsvpCalendarEventRequestRecurrenceId';+export * from './rsvpCalendarEventRequestScope';+export * from './updateCalendarEventRequest';+export * from './updateCalendarEventRequestAttendees';+export * from './updateCalendarEventRequestCalendarId';+export * from './updateCalendarEventRequestConference';+export * from './updateCalendarEventRequestDescription';+export * from './updateCalendarEventRequestLocation';+export * from './updateCalendarEventRequestOutOfOffice';+export * from './updateCalendarEventRequestRecurrenceId';+export * from './updateCalendarEventRequestRecurrenceLines';+export * from './updateCalendarEventRequestReminders';+export * from './updateCalendarEventRequestScope';+export * from './updateCalendarEventRequestTime';+export * from './updateCalendarEventRequestTitle';+export * from './updateCalendarEventRequestTransparency';+export * from './updateCalendarEventRequestVisibility';+export * from './visibleCalendar';+export * from './visibleCalendarColor';+export * from './visibleCalendarSyncError';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/listCalendarsResponse.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/listCalendarsResponse.tssimilarity index 94%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/listCalendarsResponse.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/listCalendarsResponse.tsindex 3de414a77a..336d1ea66f 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/listCalendarsResponse.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/listCalendarsResponse.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { VisibleCalendar } from './visibleCalendar';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/outOfOfficeAutoDeclineMode.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/outOfOfficeAutoDeclineMode.tssimilarity index 97%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/outOfOfficeAutoDeclineMode.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/outOfOfficeAutoDeclineMode.tsindex c61a9e2580..66e1e80039 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/outOfOfficeAutoDeclineMode.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/outOfOfficeAutoDeclineMode.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/outOfOfficeProperties.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/outOfOfficeProperties.tssimilarity index 97%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/outOfOfficeProperties.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/outOfOfficeProperties.tsindex a14881101a..23652459b8 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/outOfOfficeProperties.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/outOfOfficeProperties.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { OutOfOfficeAutoDeclineMode } from './outOfOfficeAutoDeclineMode';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/outOfOfficePropertiesDeclineMessage.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/outOfOfficePropertiesDeclineMessage.tssimilarity index 92%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/outOfOfficePropertiesDeclineMessage.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/outOfOfficePropertiesDeclineMessage.tsindex b49e3bc476..39aa7c6a6c 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/outOfOfficePropertiesDeclineMessage.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/outOfOfficePropertiesDeclineMessage.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/refreshCalendarEvent.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/refreshCalendarEvent.tssimilarity index 94%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/refreshCalendarEvent.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/refreshCalendarEvent.tsindex 3c9645bb11..d448fac44c 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/refreshCalendarEvent.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/refreshCalendarEvent.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { RefreshCalendarEventOneOf } from './refreshCalendarEventOneOf';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/refreshCalendarEventOneOf.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/refreshCalendarEventOneOf.tssimilarity index 95%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/refreshCalendarEventOneOf.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/refreshCalendarEventOneOf.tsindex 2e5c6edf27..2ca478867b 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/refreshCalendarEventOneOf.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/refreshCalendarEventOneOf.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { RefreshCalendarEventOneOfEvent } from './refreshCalendarEventOneOfEvent';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/refreshCalendarEventOneOfEvent.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/refreshCalendarEventOneOfEvent.tssimilarity index 94%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/refreshCalendarEventOneOfEvent.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/refreshCalendarEventOneOfEvent.tsindex c5ece5ee16..722208c3af 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/refreshCalendarEventOneOfEvent.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/refreshCalendarEventOneOfEvent.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/rsvpCalendarEventRequest.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/rsvpCalendarEventRequest.tssimilarity index 98%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/rsvpCalendarEventRequest.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/rsvpCalendarEventRequest.tsindex 716fb4c546..66130452ef 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/rsvpCalendarEventRequest.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/rsvpCalendarEventRequest.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/rsvpCalendarEventRequestCalendarId.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/rsvpCalendarEventRequestCalendarId.tssimilarity index 93%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/rsvpCalendarEventRequestCalendarId.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/rsvpCalendarEventRequestCalendarId.tsindex 026fdbbf6c..7c294f275a 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/rsvpCalendarEventRequestCalendarId.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/rsvpCalendarEventRequestCalendarId.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/rsvpCalendarEventRequestRecurrenceId.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/rsvpCalendarEventRequestRecurrenceId.tssimilarity index 92%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/rsvpCalendarEventRequestRecurrenceId.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/rsvpCalendarEventRequestRecurrenceId.tsindex a7b7e62d3e..b56bb11bc4 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/rsvpCalendarEventRequestRecurrenceId.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/rsvpCalendarEventRequestRecurrenceId.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/rsvpCalendarEventRequestScope.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/rsvpCalendarEventRequestScope.tssimilarity index 92%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/rsvpCalendarEventRequestScope.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/rsvpCalendarEventRequestScope.tsindex 94052afe5a..e16425cd01 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/rsvpCalendarEventRequestScope.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/rsvpCalendarEventRequestScope.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { CalendarRsvpScopeParam } from './calendarRsvpScopeParam';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequest.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequest.tssimilarity index 99%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequest.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequest.tsindex 324d8e6a55..c03e1e911b 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequest.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequest.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { UpdateCalendarEventRequestAttendees } from './updateCalendarEventRequestAttendees';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestAttendees.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestAttendees.tssimilarity index 93%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestAttendees.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestAttendees.tsindex b2f7407fa2..31276569a6 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestAttendees.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestAttendees.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { CalendarAttendeeInputBody } from './calendarAttendeeInputBody';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestCalendarId.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestCalendarId.tssimilarity index 93%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestCalendarId.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestCalendarId.tsindex 979a1ed89b..92953215ec 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestCalendarId.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestCalendarId.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestConference.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestConference.tssimilarity index 92%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestConference.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestConference.tsindex f513fe6725..500bd219d3 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestConference.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestConference.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { ConferenceChange } from './conferenceChange';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestDescription.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestDescription.tssimilarity index 92%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestDescription.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestDescription.tsindex 27b0309243..354ab12b09 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestDescription.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestDescription.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestLocation.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestLocation.tssimilarity index 91%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestLocation.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestLocation.tsindex 533041e3d7..0af0fc69d8 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestLocation.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestLocation.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestOutOfOffice.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestOutOfOffice.tssimilarity index 92%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestOutOfOffice.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestOutOfOffice.tsindex d066249f1e..8e66969778 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestOutOfOffice.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestOutOfOffice.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { OutOfOfficeProperties } from './outOfOfficeProperties';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestRecurrenceId.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestRecurrenceId.tssimilarity index 92%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestRecurrenceId.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestRecurrenceId.tsindex b3b8048898..9ae6da929d 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestRecurrenceId.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestRecurrenceId.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestRecurrenceLines.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestRecurrenceLines.tssimilarity index 92%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestRecurrenceLines.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestRecurrenceLines.tsindex 4ab45282b3..30f4a0286b 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestRecurrenceLines.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestRecurrenceLines.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestReminders.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestReminders.tssimilarity index 91%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestReminders.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestReminders.tsindex 2cc161d3a8..770094222e 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestReminders.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestReminders.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { EventReminders } from './eventReminders';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestScope.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestScope.tssimilarity index 92%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestScope.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestScope.tsindex 6201ed892d..fac8ebf472 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestScope.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestScope.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { CalendarUpdateScopeParam } from './calendarUpdateScopeParam';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestTime.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestTime.tssimilarity index 91%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestTime.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestTime.tsindex a28ef9af9b..fd7d453f62 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestTime.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestTime.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { EventTime } from './eventTime';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestTitle.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestTitle.tssimilarity index 91%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestTitle.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestTitle.tsindex 45bfc518b7..4d8fcb1793 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestTitle.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestTitle.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestTransparency.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestTransparency.tssimilarity index 92%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestTransparency.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestTransparency.tsindex 6f3e0f5f05..7df2539d51 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestTransparency.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestTransparency.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { EventTransparency } from './eventTransparency';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestVisibility.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestVisibility.tssimilarity index 92%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestVisibility.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestVisibility.tsindex 9fed15c341..61ae57178e 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/updateCalendarEventRequestVisibility.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/updateCalendarEventRequestVisibility.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/import type { EventVisibility } from './eventVisibility';diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/visibleCalendar.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/visibleCalendar.tssimilarity index 98%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/visibleCalendar.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/visibleCalendar.tsindex 8699158162..2b34d6fbce 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/visibleCalendar.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/visibleCalendar.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/visibleCalendarColor.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/visibleCalendarColor.tssimilarity index 89%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/visibleCalendarColor.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/visibleCalendarColor.tsindex ea74a9b6bf..3080d66ac4 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/visibleCalendarColor.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/visibleCalendarColor.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/visibleCalendarSyncError.ts b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/visibleCalendarSyncError.tssimilarity index 94%rename from apps/web/src/lib/service-clients/service-email/generated/schemas/visibleCalendarSyncError.tsrename to apps/web/src/lib/service-clients/service-calendar/generated/schemas/visibleCalendarSyncError.tsindex 489f33f1c8..7cd07dfa2f 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/visibleCalendarSyncError.ts+++ b/apps/web/src/lib/service-clients/service-calendar/generated/schemas/visibleCalendarSyncError.ts@@ -1,7 +1,7 @@/*** Generated by orval v7.21.0 🍺* Do not edit manually.- * email_service+ * calendar_service* OpenAPI spec version: 0.1.0*/diff --git a/apps/web/src/lib/service-clients/service-calendar/openapi.json b/apps/web/src/lib/service-clients/service-calendar/openapi.jsonnew file mode 100644index 0000000000..19af3579dc--- /dev/null+++ b/apps/web/src/lib/service-clients/service-calendar/openapi.json@@ -0,0 +1,1225 @@+{+ "openapi": "3.1.0",+ "info": {+ "title": "calendar_service",+ "description": "",+ "license": {+ "name": ""+ },+ "version": "0.1.0"+ },+ "paths": {+ "/calendar/calendars": {+ "get": {+ "tags": ["calendar_events"],+ "summary": "List the requester's visible calendars for pickers and filters.",+ "operationId": "list_calendars",+ "responses": {+ "200": {+ "description": "Calendars visible to the requester",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/ListCalendarsResponse"+ }+ }+ }+ },+ "401": {+ "description": "Authentication required"+ },+ "503": {+ "description": "Transient failure",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/CalendarMutationApiError"+ }+ }+ }+ }+ }+ }+ },+ "/calendar/events": {+ "post": {+ "tags": ["calendar_events"],+ "summary": "Create a calendar event and return its synced entity.",+ "operationId": "create_calendar_event",+ "requestBody": {+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/CreateCalendarEventRequest"+ }+ }+ },+ "required": true+ },+ "responses": {+ "201": {+ "description": "The created calendar event",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/CalendarEvent"+ }+ }+ }+ },+ "400": {+ "description": "Invalid event fields",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/CalendarMutationApiError"+ }+ }+ }+ },+ "401": {+ "description": "Authentication required"+ },+ "403": {+ "description": "Calendar is read-only or needs reauthorization",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/CalendarMutationApiError"+ }+ }+ }+ },+ "409": {+ "description": "No writable calendar or the provider rejected the event",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/CalendarMutationApiError"+ }+ }+ }+ },+ "503": {+ "description": "Transient provider failure",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/CalendarMutationApiError"+ }+ }+ }+ }+ }+ }+ },+ "/calendar/events/{event_id}": {+ "delete": {+ "tags": ["calendar_events"],+ "summary": "Delete a calendar event at its provider.",+ "operationId": "delete_calendar_event",+ "parameters": [+ {+ "name": "event_id",+ "in": "path",+ "description": "Calendar event entity id",+ "required": true,+ "schema": {+ "type": "string",+ "format": "uuid"+ }+ },+ {+ "name": "calendarId",+ "in": "query",+ "description": "Calendar whose copy of the event is deleted, for an event synced from\nmore than one calendar. Omit to delete the canonical copy.",+ "required": false,+ "schema": {+ "type": "string",+ "format": "uuid"+ }+ },+ {+ "name": "scope",+ "in": "query",+ "description": "Deletion scope; defaults to the entire event or series.",+ "required": false,+ "schema": {+ "$ref": "#/components/schemas/CalendarDeletionScopeParam"+ }+ },+ {+ "name": "recurrenceId",+ "in": "query",+ "description": "Original-start key of the occurrence a scoped deletion targets.",+ "required": false,+ "schema": {+ "type": "string"+ }+ }+ ],+ "responses": {+ "204": {+ "description": "The event was deleted"+ },+ "401": {+ "description": "Authentication required"+ },+ "403": {+ "description": "Calendar is read-only or needs reauthorization",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/CalendarMutationApiError"+ }+ }+ }+ },+ "404": {+ "description": "Event not found",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/CalendarMutationApiError"+ }+ }+ }+ },+ "409": {+ "description": "The provider rejected the deletion",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/CalendarMutationApiError"+ }+ }+ }+ },+ "503": {+ "description": "Transient provider failure",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/CalendarMutationApiError"+ }+ }+ }+ }+ }+ },+ "patch": {+ "tags": ["calendar_events"],+ "summary": "Update fields of a calendar event and return its synced entity.",+ "operationId": "update_calendar_event",+ "parameters": [+ {+ "name": "event_id",+ "in": "path",+ "description": "Calendar event entity id",+ "required": true,+ "schema": {+ "type": "string",+ "format": "uuid"+ }+ }+ ],+ "requestBody": {+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/UpdateCalendarEventRequest"+ }+ }+ },+ "required": true+ },+ "responses": {+ "200": {+ "description": "The updated calendar event",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/CalendarEvent"+ }+ }+ }+ },+ "400": {+ "description": "Invalid event fields",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/CalendarMutationApiError"+ }+ }+ }+ },+ "401": {+ "description": "Authentication required"+ },+ "403": {+ "description": "Calendar is read-only or needs reauthorization",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/CalendarMutationApiError"+ }+ }+ }+ },+ "404": {+ "description": "Event or targeted occurrence not found",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/CalendarMutationApiError"+ }+ }+ }+ },+ "409": {+ "description": "The provider rejected the update",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/CalendarMutationApiError"+ }+ }+ }+ },+ "503": {+ "description": "Transient provider failure",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/CalendarMutationApiError"+ }+ }+ }+ }+ }+ }+ },+ "/calendar/events/{event_id}/rsvp": {+ "put": {+ "tags": ["calendar_events"],+ "summary": "Set the requester's RSVP on a calendar event and return its synced entity.",+ "operationId": "rsvp_calendar_event",+ "parameters": [+ {+ "name": "event_id",+ "in": "path",+ "description": "Calendar event entity id",+ "required": true,+ "schema": {+ "type": "string",+ "format": "uuid"+ }+ }+ ],+ "requestBody": {+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/RsvpCalendarEventRequest"+ }+ }+ },+ "required": true+ },+ "responses": {+ "200": {+ "description": "The updated calendar event",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/CalendarEvent"+ }+ }+ }+ },+ "401": {+ "description": "Authentication required"+ },+ "403": {+ "description": "Calendar is read-only or needs reauthorization",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/CalendarMutationApiError"+ }+ }+ }+ },+ "404": {+ "description": "Event not found",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/CalendarMutationApiError"+ }+ }+ }+ },+ "409": {+ "description": "The connected account is not an attendee",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/CalendarMutationApiError"+ }+ }+ }+ },+ "503": {+ "description": "Transient provider failure",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/CalendarMutationApiError"+ }+ }+ }+ }+ }+ }+ },+ "/health": {+ "get": {+ "tags": ["crate::health"],+ "summary": "Health check",+ "operationId": "health_handler",+ "responses": {+ "200": {+ "description": "health",+ "content": {+ "text/plain": {+ "schema": {+ "type": "string"+ }+ }+ }+ }+ }+ }+ }+ },+ "components": {+ "schemas": {+ "AttendeeResponseStatus": {+ "type": "string",+ "description": "RSVP state for an attendee.",+ "enum": ["needs_action", "accepted", "declined", "tentative"]+ },+ "CalendarAttendee": {+ "type": "object",+ "description": "An attendee on a calendar event.",+ "required": [+ "email",+ "responseStatus",+ "isOrganizer",+ "isOptional",+ "isSelf"+ ],+ "properties": {+ "comment": {+ "type": ["string", "null"],+ "description": "Optional attendee comment."+ },+ "displayName": {+ "type": ["string", "null"],+ "description": "Provider display name."+ },+ "email": {+ "type": "string",+ "description": "Normalized email address."+ },+ "isOptional": {+ "type": "boolean",+ "description": "Whether attendance is optional."+ },+ "isOrganizer": {+ "type": "boolean",+ "description": "Whether this attendee is the organizer."+ },+ "isSelf": {+ "type": "boolean",+ "description": "Whether this attendee is one of the viewing requester's inboxes."+ },+ "responseStatus": {+ "$ref": "#/components/schemas/AttendeeResponseStatus",+ "description": "RSVP state."+ }+ }+ },+ "CalendarAttendeeInputBody": {+ "type": "object",+ "description": "An attendee supplied to a calendar mutation.",+ "required": ["email"],+ "properties": {+ "email": {+ "type": "string",+ "description": "Attendee email address."+ },+ "isOptional": {+ "type": "boolean",+ "description": "Whether attendance is optional."+ }+ }+ },+ "CalendarDeletionScopeParam": {+ "type": "string",+ "description": "How much of a recurring series a deletion removes.",+ "enum": ["all", "this_event", "this_and_following"]+ },+ "CalendarEvent": {+ "type": "object",+ "description": "A stable, first-class Macro calendar event entity.\n\nContent fields hold the canonical source's values: the account's primary\ncalendar copy when one is synced, else the freshest remaining copy.",+ "required": [+ "id",+ "ownerId",+ "icalUid",+ "title",+ "status",+ "visibility",+ "transparency",+ "time",+ "recurrenceLines",+ "sequence",+ "isReadOnly",+ "attendees",+ "createdAt",+ "updatedAt"+ ],+ "properties": {+ "attendees": {+ "type": "array",+ "items": {+ "$ref": "#/components/schemas/CalendarAttendee"+ },+ "description": "Attendees, keyed by email during persistence."+ },+ "calendarId": {+ "type": ["string", "null"],+ "format": "uuid",+ "description": "Calendar the canonical source belongs to, when known. Absent only in\nprojections stored before calendars were attributed."+ },+ "conferenceProvider": {+ "oneOf": [+ {+ "type": "null"+ },+ {+ "$ref": "#/components/schemas/ConferenceProvider",+ "description": "Which conferencing system backs `conference_url`. `None` whenever no\nconference is attached."+ }+ ]+ },+ "conferenceUrl": {+ "type": ["string", "null"],+ "description": "Direct join URL when known."+ },+ "createdAt": {+ "type": "string",+ "format": "date-time",+ "description": "Entity creation time."+ },+ "creatorEmail": {+ "type": ["string", "null"],+ "description": "Provider-reported creator email. Distinct from the organizer when\nsomeone writes onto a calendar they do not own. Omitted from stored\nprojections when unknown so events ingested before this field still\ncompare equal."+ },+ "creatorName": {+ "type": ["string", "null"],+ "description": "Provider-reported creator display name."+ },+ "description": {+ "type": ["string", "null"],+ "description": "Optional event body."+ },+ "eventType": {+ "$ref": "#/components/schemas/EventType",+ "description": "Provider event type. Skipped when it is the regular type so\nprojections stored before event types were modeled still compare\nequal."+ },+ "icalUid": {+ "type": "string",+ "description": "RFC 5545 UID used to reconcile provider and email sources."+ },+ "id": {+ "type": "string",+ "format": "uuid",+ "description": "Macro entity identifier."+ },+ "isReadOnly": {+ "type": "boolean",+ "description": "Whether the canonical source's calendar prohibits editing it."+ },+ "location": {+ "type": ["string", "null"],+ "description": "Optional physical or virtual location label."+ },+ "organizerEmail": {+ "type": ["string", "null"],+ "description": "Organizer email."+ },+ "organizerName": {+ "type": ["string", "null"],+ "description": "Organizer display name."+ },+ "ownerId": {+ "type": "string",+ "description": "Macro user who owns this event entity."+ },+ "recurrenceLines": {+ "type": "array",+ "items": {+ "type": "string"+ },+ "description": "Raw RFC 5545 recurrence properties (`RRULE`, `RDATE`, `EXDATE`)."+ },+ "reminders": {+ "$ref": "#/components/schemas/EventReminders",+ "description": "Per-user reminder configuration. Skipped when it is the provider\ndefault so projections stored before reminders were modeled still\ncompare equal."+ },+ "sequence": {+ "type": "integer",+ "format": "int32",+ "description": "Provider/iCalendar sequence number.",+ "minimum": 0+ },+ "sources": {+ "type": "array",+ "items": {+ "$ref": "#/components/schemas/CalendarEventSourceContent"+ },+ "description": "Content of every active copy of this event, canonical first: the\nprimary calendar's copy, then the freshest. A client picks the copy\nwhose calendar it is showing and falls back to the first. Populated\nonly on the read path, so stored projections omit it."+ },+ "status": {+ "$ref": "#/components/schemas/EventStatus",+ "description": "Event status."+ },+ "time": {+ "$ref": "#/components/schemas/EventTime",+ "description": "Timed or all-day shape."+ },+ "title": {+ "type": "string",+ "description": "Display title."+ },+ "transparency": {+ "$ref": "#/components/schemas/EventTransparency",+ "description": "Availability behavior."+ },+ "updatedAt": {+ "type": "string",+ "format": "date-time",+ "description": "Entity update time."+ },+ "visibility": {+ "$ref": "#/components/schemas/EventVisibility",+ "description": "Event visibility."+ }+ }+ },+ "CalendarEventSourceContent": {+ "type": "object",+ "description": "The content one provider copy of an event carries.\n\nGoogle keeps these fields per calendar copy: a shared calendar's copy of a\nmember's event can have its own title, type, reminders, and access role.\nThe entity holds its canonical source's values. Every other copy's values\nare read from here so a client can show the copy that belongs to the\ncalendar being viewed.",+ "required": [+ "calendarId",+ "title",+ "eventType",+ "visibility",+ "transparency",+ "isReadOnly",+ "reminders"+ ],+ "properties": {+ "calendarId": {+ "type": "string",+ "format": "uuid",+ "description": "Calendar this copy lives on."+ },+ "creatorEmail": {+ "type": ["string", "null"],+ "description": "Provider-reported creator email."+ },+ "creatorName": {+ "type": ["string", "null"],+ "description": "Provider-reported creator display name."+ },+ "description": {+ "type": ["string", "null"],+ "description": "Optional event body."+ },+ "eventType": {+ "$ref": "#/components/schemas/EventType",+ "description": "Provider event type."+ },+ "isReadOnly": {+ "type": "boolean",+ "description": "Whether the calendar's access role prohibits editing this copy."+ },+ "location": {+ "type": ["string", "null"],+ "description": "Optional physical or virtual location label."+ },+ "reminders": {+ "$ref": "#/components/schemas/EventReminders",+ "description": "Reminder configuration of this copy."+ },+ "title": {+ "type": "string",+ "description": "Display title."+ },+ "transparency": {+ "$ref": "#/components/schemas/EventTransparency",+ "description": "Availability behavior."+ },+ "visibility": {+ "$ref": "#/components/schemas/EventVisibility",+ "description": "Event visibility."+ }+ }+ },+ "CalendarMutationApiError": {+ "type": "object",+ "description": "HTTP error body returned by calendar mutation endpoints.",+ "required": ["code", "message"],+ "properties": {+ "code": {+ "$ref": "#/components/schemas/CalendarMutationErrorCode",+ "description": "Machine-readable failure category."+ },+ "message": {+ "type": "string",+ "description": "Human-readable failure description."+ }+ }+ },+ "CalendarMutationErrorCode": {+ "type": "string",+ "description": "Machine-readable failure category for calendar mutations.",+ "enum": [+ "not_found",+ "occurrence_not_found",+ "read_only",+ "no_writable_calendar",+ "not_attendee",+ "invalid_input",+ "reauth_required",+ "provider_rejected",+ "retryable",+ "persist_failed"+ ]+ },+ "CalendarRsvpScopeParam": {+ "type": "string",+ "description": "How much of a recurring series an RSVP applies to.\n\nUnlike deletion there is no this-and-following variant: the provider\ncannot express a forward-scoped response, so offering one would be a\npromise sync could not keep.",+ "enum": ["all", "this_event"]+ },+ "CalendarUpdateScopeParam": {+ "type": "string",+ "description": "How much of a recurring series an update applies to.\n\nLike RSVPs there is no this-and-following variant: the provider cannot\nexpress a forward-scoped edit as one write, and emulating it (truncate\nthe series, insert an edited clone) is non-atomic and re-invites the\nattendees of the clone. Compose it from a this-and-following deletion\nand a create when that shape is wanted.",+ "enum": ["all", "this_event"]+ },+ "ConferenceChange": {+ "type": "string",+ "description": "A requested change to an event's conferencing. Omitting the field leaves\nthe existing conference untouched; only these values change it.",+ "enum": ["google_meet", "none"]+ },+ "ConferenceProvider": {+ "type": "string",+ "description": "The conferencing system backing an event's join URL.\n\nMacro generates only Google Meet conferences, so this distinguishes one it\ncreated from a third party's — Zoom and friends arriving as `addOn`\nconference data, or a legacy classic Hangout. Clients use it to label the\nconference and to tell whether the Meet toggle reflects a Macro-managed\nconference.\n\nIt does not gate mutation. An explicit request replaces or detaches any\nconference, third-party included, exactly as deleting the event would;\nwhat protects a conference is that omitting the field leaves it untouched,\nso an unrelated edit never disturbs it.",+ "enum": ["google_meet", "other"]+ },+ "CreateCalendarEventRequest": {+ "type": "object",+ "description": "Request body creating a calendar event on the requester's calendar.",+ "required": ["title", "time"],+ "properties": {+ "attendees": {+ "type": "array",+ "items": {+ "$ref": "#/components/schemas/CalendarAttendeeInputBody"+ },+ "description": "Invited attendees."+ },+ "calendarId": {+ "type": ["string", "null"],+ "format": "uuid",+ "description": "Exact calendar to create the event on; takes precedence over the\ninbox default."+ },+ "conference": {+ "oneOf": [+ {+ "type": "null"+ },+ {+ "$ref": "#/components/schemas/ConferenceChange",+ "description": "Conference to attach to the new event; omit to create it without one."+ }+ ]+ },+ "description": {+ "type": ["string", "null"],+ "description": "Optional event body."+ },+ "emailLinkId": {+ "type": ["string", "null"],+ "format": "uuid",+ "description": "Connected inbox whose primary calendar receives the event; defaults\nto the requester's primary inbox."+ },+ "location": {+ "type": ["string", "null"],+ "description": "Optional location label."+ },+ "outOfOffice": {+ "oneOf": [+ {+ "type": "null"+ },+ {+ "$ref": "#/components/schemas/OutOfOfficeProperties",+ "description": "Out-of-office properties; present to create the event as a Google\nout-of-office status event (primary calendar only, timed, no\nattendees), omitted for a regular event."+ }+ ]+ },+ "recurrenceLines": {+ "type": "array",+ "items": {+ "type": "string"+ },+ "description": "Raw RFC 5545 recurrence properties (`RRULE`, `RDATE`, `EXDATE`)."+ },+ "reminders": {+ "oneOf": [+ {+ "type": "null"+ },+ {+ "$ref": "#/components/schemas/EventReminders",+ "description": "Reminder configuration; omit to keep the calendar defaults."+ }+ ]+ },+ "time": {+ "$ref": "#/components/schemas/EventTime",+ "description": "Timed or all-day shape."+ },+ "title": {+ "type": "string",+ "description": "Display title."+ },+ "transparency": {+ "oneOf": [+ {+ "type": "null"+ },+ {+ "$ref": "#/components/schemas/EventTransparency",+ "description": "Availability behavior."+ }+ ]+ },+ "visibility": {+ "oneOf": [+ {+ "type": "null"+ },+ {+ "$ref": "#/components/schemas/EventVisibility",+ "description": "Event visibility."+ }+ ]+ }+ }+ },+ "EventReminderOverride": {+ "type": "object",+ "description": "One reminder: how it alerts and how many minutes before the event start\n(before midnight in the calendar's zone for all-day events) it fires.",+ "required": ["method", "minutes"],+ "properties": {+ "method": {+ "type": "string",+ "description": "Provider method, stored verbatim; only `popup` fires Macro\nnotifications."+ },+ "minutes": {+ "type": "integer",+ "format": "int32",+ "description": "Minutes before the event start.",+ "minimum": 0+ }+ }+ },+ "EventReminders": {+ "type": "object",+ "description": "Per-user reminder configuration for an event, mirroring Google's model:\neither the calendar's default reminders apply, or the explicit overrides\nreplace them entirely.",+ "required": ["useDefault"],+ "properties": {+ "overrides": {+ "type": "array",+ "items": {+ "$ref": "#/components/schemas/EventReminderOverride"+ },+ "description": "Explicit reminders replacing the defaults when `use_default` is off."+ },+ "useDefault": {+ "type": "boolean",+ "description": "Whether the calendar's default reminders apply."+ }+ }+ },+ "EventStatus": {+ "type": "string",+ "description": "Canonical event status.",+ "enum": ["confirmed", "tentative", "cancelled"]+ },+ "EventTime": {+ "oneOf": [+ {+ "type": "object",+ "description": "An event with absolute instants.",+ "required": ["startsAt", "endsAt", "kind"],+ "properties": {+ "endsAt": {+ "type": "string",+ "format": "date-time",+ "description": "Exclusive end instant."+ },+ "kind": {+ "type": "string",+ "enum": ["timed"]+ },+ "startsAt": {+ "type": "string",+ "format": "date-time",+ "description": "Inclusive start instant."+ },+ "timeZone": {+ "type": ["string", "null"],+ "description": "Original IANA time-zone identifier, when supplied."+ }+ }+ },+ {+ "type": "object",+ "description": "An all-day event using RFC 5545's exclusive end date.",+ "required": ["startDate", "endDate", "kind"],+ "properties": {+ "endDate": {+ "type": "string",+ "format": "date",+ "description": "Exclusive local end date."+ },+ "kind": {+ "type": "string",+ "enum": ["allDay"]+ },+ "startDate": {+ "type": "string",+ "format": "date",+ "description": "Inclusive local start date."+ }+ }+ }+ ],+ "description": "The mutually exclusive time shape of a calendar event.\n\nFields are renamed per variant rather than with `rename_all_fields`\nbecause utoipa only honors variant-level serde renames when it\nderives the OpenAPI schema."+ },+ "EventTransparency": {+ "type": "string",+ "description": "Whether an event blocks availability.",+ "enum": ["opaque", "transparent"]+ },+ "EventType": {+ "type": "string",+ "description": "Google's event type: ordinary meetings versus the status-style entries\n(working location, out of office, focus time, birthdays) Google renders\nand notifies differently. Immutable at the provider after creation.",+ "enum": [+ "default",+ "out_of_office",+ "focus_time",+ "working_location",+ "birthday",+ "from_gmail"+ ]+ },+ "EventVisibility": {+ "type": "string",+ "description": "Visibility of event details.",+ "enum": ["default", "public", "private", "confidential"]+ },+ "ListCalendarsResponse": {+ "type": "object",+ "description": "Calendars visible to the requester across connected and delegated inboxes.",+ "required": ["calendars"],+ "properties": {+ "calendars": {+ "type": "array",+ "items": {+ "$ref": "#/components/schemas/VisibleCalendar"+ },+ "description": "Primaries and writable calendars first."+ }+ }+ },+ "OutOfOfficeAutoDeclineMode": {+ "type": "string",+ "description": "How an out-of-office event responds to conflicting invitations, mirroring\nGoogle's `autoDeclineMode`.",+ "enum": [+ "decline_none",+ "decline_all_conflicting_invitations",+ "decline_only_new_conflicting_invitations"+ ]+ },+ "OutOfOfficeProperties": {+ "type": "object",+ "description": "The extra properties Google requires on an out-of-office event, mirroring\nits `outOfOfficeProperties` block. Their presence on a draft or patch is\nwhat marks the mutation as out-of-office.",+ "properties": {+ "autoDeclineMode": {+ "$ref": "#/components/schemas/OutOfOfficeAutoDeclineMode",+ "description": "How conflicting invitations are handled while the user is out."+ },+ "declineMessage": {+ "type": ["string", "null"],+ "description": "Message returned to organizers whose invitations are auto-declined."+ }+ }+ },+ "RefreshCalendarEvent": {+ "oneOf": [+ {+ "type": "object",+ "description": "A sync run committed changes for `link_id`; viewers should refetch.",+ "required": ["link_id", "event"],+ "properties": {+ "event": {+ "type": "string",+ "enum": ["synced"]+ },+ "link_id": {+ "type": "string",+ "format": "uuid",+ "description": "Connected inbox whose calendars changed."+ }+ }+ }+ ],+ "description": "Realtime signal that a connected inbox's calendar projection changed."+ },+ "RsvpCalendarEventRequest": {+ "type": "object",+ "description": "Request body setting the requester's RSVP on an event.",+ "required": ["response"],+ "properties": {+ "calendarId": {+ "type": ["string", "null"],+ "format": "uuid",+ "description": "Calendar whose copy of the event is answered, for an event synced\nfrom more than one calendar. Omit to answer on the canonical copy."+ },+ "recurrenceId": {+ "type": ["string", "null"],+ "description": "Original-start key of the occurrence the response targets."+ },+ "response": {+ "$ref": "#/components/schemas/AttendeeResponseStatus",+ "description": "The response to record for the connected account."+ },+ "scope": {+ "oneOf": [+ {+ "type": "null"+ },+ {+ "$ref": "#/components/schemas/CalendarRsvpScopeParam",+ "description": "How much of a recurring series the response covers. Omit to let\n`recurrenceId` decide: the identified occurrence alone when one is\nsupplied, otherwise the whole series. An explicit `this_event` scope\nrequires `recurrenceId`, so a scoped request is never silently\nwidened to the series."+ }+ ]+ }+ }+ },+ "UpdateCalendarEventRequest": {+ "type": "object",+ "description": "Request body patching an event; omitted fields are left untouched.",+ "properties": {+ "attendees": {+ "type": ["array", "null"],+ "items": {+ "$ref": "#/components/schemas/CalendarAttendeeInputBody"+ },+ "description": "Replacement attendee list."+ },+ "calendarId": {+ "type": ["string", "null"],+ "format": "uuid",+ "description": "Calendar whose copy of the event is patched, for an event synced from\nmore than one calendar. Omit to patch the canonical copy."+ },+ "conference": {+ "oneOf": [+ {+ "type": "null"+ },+ {+ "$ref": "#/components/schemas/ConferenceChange",+ "description": "Conference change: `google_meet` attaches a freshly generated Meet,\n`none` detaches the current conference, and omitting it leaves the\nconference untouched.\n\nA third-party conference is replaced or detached like any other, since\nthe request is explicit. Omit the field to leave it alone."+ }+ ]+ },+ "description": {+ "type": ["string", "null"],+ "description": "Replacement description; an empty string clears it."+ },+ "location": {+ "type": ["string", "null"],+ "description": "Replacement location; an empty string clears it."+ },+ "outOfOffice": {+ "oneOf": [+ {+ "type": "null"+ },+ {+ "$ref": "#/components/schemas/OutOfOfficeProperties",+ "description": "Replacement out-of-office properties, applied only to an event that is\nalready out-of-office — the provider event type is immutable. Omit to\nleave them untouched."+ }+ ]+ },+ "recurrenceId": {+ "type": ["string", "null"],+ "description": "Original-start key of the occurrence the update targets."+ },+ "recurrenceLines": {+ "type": ["array", "null"],+ "items": {+ "type": "string"+ },+ "description": "Replacement recurrence properties; an empty list clears them."+ },+ "reminders": {+ "oneOf": [+ {+ "type": "null"+ },+ {+ "$ref": "#/components/schemas/EventReminders",+ "description": "Replacement reminder configuration."+ }+ ]+ },+ "scope": {+ "oneOf": [+ {+ "type": "null"+ },+ {+ "$ref": "#/components/schemas/CalendarUpdateScopeParam",+ "description": "How much of a recurring series the update covers. Omit to let\n`recurrenceId` decide: the identified occurrence alone when one is\nsupplied, otherwise the whole event or series. An explicit\n`this_event` scope requires `recurrenceId`, so a scoped request is\nnever silently widened to the series."+ }+ ]+ },+ "time": {+ "oneOf": [+ {+ "type": "null"+ },+ {+ "$ref": "#/components/schemas/EventTime",+ "description": "Replacement time."+ }+ ]+ },+ "title": {+ "type": ["string", "null"],+ "description": "Replacement title; an empty string clears it."+ },+ "transparency": {+ "oneOf": [+ {+ "type": "null"+ },+ {+ "$ref": "#/components/schemas/EventTransparency",+ "description": "Replacement transparency."+ }+ ]+ },+ "visibility": {+ "oneOf": [+ {+ "type": "null"+ },+ {+ "$ref": "#/components/schemas/EventVisibility",+ "description": "Replacement visibility."+ }+ ]+ }+ }+ },+ "VisibleCalendar": {+ "type": "object",+ "description": "A calendar visible to a requester, listed for pickers and filters.",+ "required": [+ "id",+ "emailLinkId",+ "emailAddress",+ "name",+ "isPrimary",+ "isWritable",+ "isSubscription",+ "defaultReminders"+ ],+ "properties": {+ "color": {+ "type": ["string", "null"],+ "description": "Provider color."+ },+ "defaultReminders": {+ "type": "array",+ "items": {+ "$ref": "#/components/schemas/EventReminderOverride"+ },+ "description": "Default reminders applied to events that keep `useDefault`."+ },+ "emailAddress": {+ "type": "string",+ "description": "Connected inbox address, for grouping in multi-inbox pickers."+ },+ "emailLinkId": {+ "type": "string",+ "format": "uuid",+ "description": "Connected inbox that syncs this calendar."+ },+ "id": {+ "type": "string",+ "format": "uuid",+ "description": "Persisted Macro calendar identifier."+ },+ "isPrimary": {+ "type": "boolean",+ "description": "Whether this is its account's primary calendar."+ },+ "isSubscription": {+ "type": "boolean",+ "description": "Whether this is one of Google's shared system calendars (holidays,\nbirthdays) the account subscribes to rather than one a person maintains."+ },+ "isWritable": {+ "type": "boolean",+ "description": "Whether the grant can create and modify events on this calendar."+ },+ "name": {+ "type": "string",+ "description": "Provider display name."+ },+ "syncError": {+ "type": ["string", "null"],+ "description": "A persistent sync failure isolated to this calendar, surfaced so the\nsettings row can badge it. `None` while the calendar is syncing\nnormally or a failure has not yet crossed the persistence threshold."+ }+ }+ }+ }+ },+ "tags": [+ {+ "name": "calendar_events",+ "description": "Macro Calendar Service"+ }+ ]+}diff --git a/apps/web/src/lib/service-clients/service-email/client.ts b/apps/web/src/lib/service-clients/service-email/client.tsindex a364483958..61dae48759 100644--- a/apps/web/src/lib/service-clients/service-email/client.ts+++ b/apps/web/src/lib/service-clients/service-email/client.ts@@ -5,20 +5,25 @@ import {} from '@core/util/fetchWithToken';import type { ObjectLike, ResultError } from '@core/util/result';import type { SafeFetchInit } from '@core/util/safeFetch';+import type {+ CalendarEvent,+ CreateCalendarEventRequest,+ ListCalendarsResponse,+ RsvpCalendarEventRequest,+ UpdateCalendarEventRequest,+} from '@service-calendar/generated/schemas';+import { CalendarMutationErrorCode } from '@service-calendar/generated/schemas/calendarMutationErrorCode';import type { Result } from 'neverthrow';import type {AddDraftAttachmentRequest,AddDraftAttachmentResponse,ApiPaginatedThreadCursor,- CalendarEvent,- CreateCalendarEventRequest,CreateDraftRequest,CreateDraftResponse,GetAttachmentDocumentIDResponse,GetAttachmentResponse,GetThreadResponse,ListBackfillJobsResponse,- ListCalendarsResponse,ListContactsResponse,ListEmailFiltersResponse,ListLabelsResponse,@@ -26,11 +31,9 @@ import type {PatchSettingsRequest,PatchSettingsResponse,ResyncResponse,- RsvpCalendarEventRequest,SendMessageRequest,SendMessageResponse,SharedInboxConflictResponse,- UpdateCalendarEventRequest,UpdateLabelBatchRequest,UpdateLabelBatchResponse,UpdateThreadLabelRequest,@@ -40,7 +43,6 @@ import type {UpsertScheduledRequest,UpsertScheduledResponse,} from './generated/schemas';-import { CalendarMutationErrorCode } from './generated/schemas/calendarMutationErrorCode';import type { EmptyResponse } from './generated/schemas/emptyResponse';const emailHost: string = SERVER_HOSTS['email-service'];diff --git a/apps/web/src/lib/service-clients/service-email/generated/client.ts b/apps/web/src/lib/service-clients/service-email/generated/client.tsindex e70e8b61a2..bb2a79dc13 100644--- a/apps/web/src/lib/service-clients/service-email/generated/client.ts+++ b/apps/web/src/lib/service-clients/service-email/generated/client.ts@@ -12,15 +12,11 @@ import type {ApiPaginatedThreadCursor,ArchiveThreadRequest,BlockSenderRequest,- CalendarEvent,- CalendarMutationApiError,CancelBackfillParams,- CreateCalendarEventRequest,CreateDraftRequest,CreateDraftResponse,CreateLabelRequest,CreateLabelResponse,- DeleteCalendarEventParams,EmptyResponse,ErrorResponse,GetActiveBackfillJobResponse,@@ -37,7 +33,6 @@ import type {InitUserParams,ListBackfillJobsResponse,ListBlockedResponse,- ListCalendarsResponse,ListContactsResponse,ListEmailFiltersResponse,ListLabelsResponse,@@ -47,13 +42,11 @@ import type {PatchSettingsResponse,PreviewsInboxCursorParams,ResyncResponse,- RsvpCalendarEventRequest,SendMessageRequest,SendMessageResponse,SharedInboxConflictResponse,UnblockSenderRequest,UnresolvedSignatureImagesError,- UpdateCalendarEventRequest,UpdateLabelBatchRequest,UpdateLabelBatchResponse,UpdateThreadLabelRequest,@@ -66,391 +59,6 @@ import type {UpsertScheduledResponse,} from './schemas';-/**- * @summary List the requester's visible calendars for pickers and filters.- */-export type listCalendarsResponse200 = {- data: ListCalendarsResponse;- status: 200;-};--export type listCalendarsResponse401 = {- data: void;- status: 401;-};--export type listCalendarsResponse503 = {- data: CalendarMutationApiError;- status: 503;-};--export type listCalendarsResponseSuccess = listCalendarsResponse200 & {- headers: Headers;-};-export type listCalendarsResponseError = (- | listCalendarsResponse401- | listCalendarsResponse503-) & {- headers: Headers;-};--export type listCalendarsResponse =- | listCalendarsResponseSuccess- | listCalendarsResponseError;--export const getListCalendarsUrl = () => {- return `/calendar/calendars`;-};--export const listCalendars = async (- options?: RequestInit-): Promise<listCalendarsResponse> => {- const res = await fetch(getListCalendarsUrl(), {- ...options,- method: 'GET',- });-- const body = [204, 205, 304].includes(res.status) ? null : await res.text();-- const data: listCalendarsResponse['data'] = body ? JSON.parse(body) : {};- return {- data,- status: res.status,- headers: res.headers,- } as listCalendarsResponse;-};--/**- * @summary Create a calendar event and return its synced entity.- */-export type createCalendarEventResponse201 = {- data: CalendarEvent;- status: 201;-};--export type createCalendarEventResponse400 = {- data: CalendarMutationApiError;- status: 400;-};--export type createCalendarEventResponse401 = {- data: void;- status: 401;-};--export type createCalendarEventResponse403 = {- data: CalendarMutationApiError;- status: 403;-};--export type createCalendarEventResponse409 = {- data: CalendarMutationApiError;- status: 409;-};--export type createCalendarEventResponse503 = {- data: CalendarMutationApiError;- status: 503;-};--export type createCalendarEventResponseSuccess =- createCalendarEventResponse201 & {- headers: Headers;- };-export type createCalendarEventResponseError = (- | createCalendarEventResponse400- | createCalendarEventResponse401- | createCalendarEventResponse403- | createCalendarEventResponse409- | createCalendarEventResponse503-) & {- headers: Headers;-};--export type createCalendarEventResponse =- | createCalendarEventResponseSuccess- | createCalendarEventResponseError;--export const getCreateCalendarEventUrl = () => {- return `/calendar/events`;-};--export const createCalendarEvent = async (- createCalendarEventRequest: CreateCalendarEventRequest,- options?: RequestInit-): Promise<createCalendarEventResponse> => {- const res = await fetch(getCreateCalendarEventUrl(), {- ...options,- method: 'POST',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(createCalendarEventRequest),- });-- const body = [204, 205, 304].includes(res.status) ? null : await res.text();-- const data: createCalendarEventResponse['data'] = body- ? JSON.parse(body)- : {};- return {- data,- status: res.status,- headers: res.headers,- } as createCalendarEventResponse;-};--/**- * @summary Delete a calendar event at its provider.- */-export type deleteCalendarEventResponse204 = {- data: void;- status: 204;-};--export type deleteCalendarEventResponse401 = {- data: void;- status: 401;-};--export type deleteCalendarEventResponse403 = {- data: CalendarMutationApiError;- status: 403;-};--export type deleteCalendarEventResponse404 = {- data: CalendarMutationApiError;- status: 404;-};--export type deleteCalendarEventResponse409 = {- data: CalendarMutationApiError;- status: 409;-};--export type deleteCalendarEventResponse503 = {- data: CalendarMutationApiError;- status: 503;-};--export type deleteCalendarEventResponseSuccess =- deleteCalendarEventResponse204 & {- headers: Headers;- };-export type deleteCalendarEventResponseError = (- | deleteCalendarEventResponse401- | deleteCalendarEventResponse403- | deleteCalendarEventResponse404- | deleteCalendarEventResponse409- | deleteCalendarEventResponse503-) & {- headers: Headers;-};--export type deleteCalendarEventResponse =- | deleteCalendarEventResponseSuccess- | deleteCalendarEventResponseError;--export const getDeleteCalendarEventUrl = (- eventId: string,- params?: DeleteCalendarEventParams-) => {- const normalizedParams = new URLSearchParams();-- Object.entries(params || {}).forEach(([key, value]) => {- if (value !== undefined) {- normalizedParams.append(key, value === null ? 'null' : value.toString());- }- });-- const stringifiedParams = normalizedParams.toString();-- return stringifiedParams.length > 0- ? `/calendar/events/${eventId}?${stringifiedParams}`- : `/calendar/events/${eventId}`;-};--export const deleteCalendarEvent = async (- eventId: string,- params?: DeleteCalendarEventParams,- options?: RequestInit-): Promise<deleteCalendarEventResponse> => {- const res = await fetch(getDeleteCalendarEventUrl(eventId, params), {- ...options,- method: 'DELETE',- });-- const body = [204, 205, 304].includes(res.status) ? null : await res.text();-- const data: deleteCalendarEventResponse['data'] = body- ? JSON.parse(body)- : {};- return {- data,- status: res.status,- headers: res.headers,- } as deleteCalendarEventResponse;-};--/**- * @summary Update fields of a calendar event and return its synced entity.- */-export type updateCalendarEventResponse200 = {- data: CalendarEvent;- status: 200;-};--export type updateCalendarEventResponse400 = {- data: CalendarMutationApiError;- status: 400;-};--export type updateCalendarEventResponse401 = {- data: void;- status: 401;-};--export type updateCalendarEventResponse403 = {- data: CalendarMutationApiError;- status: 403;-};--export type updateCalendarEventResponse404 = {- data: CalendarMutationApiError;- status: 404;-};--export type updateCalendarEventResponse409 = {- data: CalendarMutationApiError;- status: 409;-};--export type updateCalendarEventResponse503 = {- data: CalendarMutationApiError;- status: 503;-};--export type updateCalendarEventResponseSuccess =- updateCalendarEventResponse200 & {- headers: Headers;- };-export type updateCalendarEventResponseError = (- | updateCalendarEventResponse400- | updateCalendarEventResponse401- | updateCalendarEventResponse403- | updateCalendarEventResponse404- | updateCalendarEventResponse409- | updateCalendarEventResponse503-) & {- headers: Headers;-};--export type updateCalendarEventResponse =- | updateCalendarEventResponseSuccess- | updateCalendarEventResponseError;--export const getUpdateCalendarEventUrl = (eventId: string) => {- return `/calendar/events/${eventId}`;-};--export const updateCalendarEvent = async (- eventId: string,- updateCalendarEventRequest: UpdateCalendarEventRequest,- options?: RequestInit-): Promise<updateCalendarEventResponse> => {- const res = await fetch(getUpdateCalendarEventUrl(eventId), {- ...options,- method: 'PATCH',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(updateCalendarEventRequest),- });-- const body = [204, 205, 304].includes(res.status) ? null : await res.text();-- const data: updateCalendarEventResponse['data'] = body- ? JSON.parse(body)- : {};- return {- data,- status: res.status,- headers: res.headers,- } as updateCalendarEventResponse;-};--/**- * @summary Set the requester's RSVP on a calendar event and return its synced entity.- */-export type rsvpCalendarEventResponse200 = {- data: CalendarEvent;- status: 200;-};--export type rsvpCalendarEventResponse401 = {- data: void;- status: 401;-};--export type rsvpCalendarEventResponse403 = {- data: CalendarMutationApiError;- status: 403;-};--export type rsvpCalendarEventResponse404 = {- data: CalendarMutationApiError;- status: 404;-};--export type rsvpCalendarEventResponse409 = {- data: CalendarMutationApiError;- status: 409;-};--export type rsvpCalendarEventResponse503 = {- data: CalendarMutationApiError;- status: 503;-};--export type rsvpCalendarEventResponseSuccess = rsvpCalendarEventResponse200 & {- headers: Headers;-};-export type rsvpCalendarEventResponseError = (- | rsvpCalendarEventResponse401- | rsvpCalendarEventResponse403- | rsvpCalendarEventResponse404- | rsvpCalendarEventResponse409- | rsvpCalendarEventResponse503-) & {- headers: Headers;-};--export type rsvpCalendarEventResponse =- | rsvpCalendarEventResponseSuccess- | rsvpCalendarEventResponseError;--export const getRsvpCalendarEventUrl = (eventId: string) => {- return `/calendar/events/${eventId}/rsvp`;-};--export const rsvpCalendarEvent = async (- eventId: string,- rsvpCalendarEventRequest: RsvpCalendarEventRequest,- options?: RequestInit-): Promise<rsvpCalendarEventResponse> => {- const res = await fetch(getRsvpCalendarEventUrl(eventId), {- ...options,- method: 'PUT',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(rsvpCalendarEventRequest),- });-- const body = [204, 205, 304].includes(res.status) ? null : await res.text();-- const data: rsvpCalendarEventResponse['data'] = body ? JSON.parse(body) : {};- return {- data,- status: res.status,- headers: res.headers,- } as rsvpCalendarEventResponse;-};-/*** @summary Get an attachment by ID.*/diff --git a/apps/web/src/lib/service-clients/service-email/generated/schemas/index.ts b/apps/web/src/lib/service-clients/service-email/generated/schemas/index.tsindex 7128cb6063..eeac0afe76 100644--- a/apps/web/src/lib/service-clients/service-email/generated/schemas/index.ts+++ b/apps/web/src/lib/service-clients/service-email/generated/schemas/index.ts@@ -136,40 +136,13 @@ export * from './attachmentMimeType';export * from './attachmentProviderId';export * from './attachmentSfsId';export * from './attachmentSizeBytes';-export * from './attendeeResponseStatus';export * from './backfillJob';export * from './backfillJobLinkId';export * from './backfillJobStatus';export * from './backfillJobThreadsRequestedLimit';export * from './backfillStatus';export * from './blockSenderRequest';-export * from './calendarAttendee';-export * from './calendarAttendeeComment';-export * from './calendarAttendeeDisplayName';-export * from './calendarAttendeeInputBody';-export * from './calendarDeletionScopeParam';-export * from './calendarEvent';-export * from './calendarEventCalendarId';-export * from './calendarEventConferenceProvider';-export * from './calendarEventConferenceUrl';-export * from './calendarEventCreatorEmail';-export * from './calendarEventCreatorName';-export * from './calendarEventDescription';-export * from './calendarEventLocation';-export * from './calendarEventOrganizerEmail';-export * from './calendarEventOrganizerName';-export * from './calendarEventSourceContent';-export * from './calendarEventSourceContentCreatorEmail';-export * from './calendarEventSourceContentCreatorName';-export * from './calendarEventSourceContentDescription';-export * from './calendarEventSourceContentLocation';-export * from './calendarMutationApiError';-export * from './calendarMutationErrorCode';-export * from './calendarRsvpScopeParam';-export * from './calendarUpdateScopeParam';export * from './cancelBackfillParams';-export * from './conferenceChange';-export * from './conferenceProvider';export * from './contact';export * from './contactEmailAddress';export * from './contactInfo';@@ -183,36 +156,13 @@ export * from './contactInfoWithInteractionAllOf';export * from './contactName';export * from './contactOriginalPhotoUrl';export * from './contactSfsPhotoUrl';-export * from './createCalendarEventRequest';-export * from './createCalendarEventRequestCalendarId';-export * from './createCalendarEventRequestConference';-export * from './createCalendarEventRequestDescription';-export * from './createCalendarEventRequestEmailLinkId';-export * from './createCalendarEventRequestLocation';-export * from './createCalendarEventRequestOutOfOffice';-export * from './createCalendarEventRequestReminders';-export * from './createCalendarEventRequestTransparency';-export * from './createCalendarEventRequestVisibility';export * from './createDraftRequest';export * from './createDraftRequestSendTime';export * from './createDraftResponse';export * from './createLabelRequest';export * from './createLabelResponse';-export * from './deleteCalendarEventParams';export * from './emptyResponse';export * from './errorResponse';-export * from './eventReminderOverride';-export * from './eventReminders';-export * from './eventStatus';-export * from './eventTime';-export * from './eventTimeOneOf';-export * from './eventTimeOneOfFour';-export * from './eventTimeOneOfFourKind';-export * from './eventTimeOneOfKind';-export * from './eventTimeOneOfTimeZone';-export * from './eventTransparency';-export * from './eventType';-export * from './eventVisibility';export * from './getActiveBackfillJobResponse';export * from './getAttachmentDocumentIDResponse';export * from './getAttachmentResponse';@@ -242,7 +192,6 @@ export * from './link';export * from './linkPhotoUrl';export * from './listBackfillJobsResponse';export * from './listBlockedResponse';-export * from './listCalendarsResponse';export * from './listContactsResponse';export * from './listContactsResponseContacts';export * from './listEmailFiltersResponse';@@ -266,9 +215,6 @@ export * from './messageSentAt';export * from './messageSizeEstimate';export * from './messageSnippet';export * from './messageSubject';-export * from './outOfOfficeAutoDeclineMode';-export * from './outOfOfficeProperties';-export * from './outOfOfficePropertiesDeclineMessage';export * from './parsedMessage';export * from './parsedMessageBodyParsed';export * from './parsedMessageFrom';@@ -279,9 +225,6 @@ export * from './patchSettingsResponse';export * from './previewsInboxCursorParams';export * from './previewView';export * from './previewViewStandardLabel';-export * from './refreshCalendarEvent';-export * from './refreshCalendarEventOneOf';-export * from './refreshCalendarEventOneOfEvent';export * from './refreshEmailEvent';export * from './refreshEmailEventOneOf';export * from './refreshEmailEventOneOfEvent';@@ -298,10 +241,6 @@ export * from './refreshEmailEventOneOfSevenEvent';export * from './refreshEmailEventOneOfThree';export * from './refreshEmailEventOneOfThreeEvent';export * from './resyncResponse';-export * from './rsvpCalendarEventRequest';-export * from './rsvpCalendarEventRequestCalendarId';-export * from './rsvpCalendarEventRequestRecurrenceId';-export * from './rsvpCalendarEventRequestScope';export * from './sendMessageRequest';export * from './sendMessageResponse';export * from './settings';@@ -327,21 +266,6 @@ export * from './threadProviderId';export * from './threadSummary';export * from './unblockSenderRequest';export * from './unresolvedSignatureImagesError';-export * from './updateCalendarEventRequest';-export * from './updateCalendarEventRequestAttendees';-export * from './updateCalendarEventRequestCalendarId';-export * from './updateCalendarEventRequestConference';-export * from './updateCalendarEventRequestDescription';-export * from './updateCalendarEventRequestLocation';-export * from './updateCalendarEventRequestOutOfOffice';-export * from './updateCalendarEventRequestRecurrenceId';-export * from './updateCalendarEventRequestRecurrenceLines';-export * from './updateCalendarEventRequestReminders';-export * from './updateCalendarEventRequestScope';-export * from './updateCalendarEventRequestTime';-export * from './updateCalendarEventRequestTitle';-export * from './updateCalendarEventRequestTransparency';-export * from './updateCalendarEventRequestVisibility';export * from './updateLabelBatchRequest';export * from './updateLabelBatchResponse';export * from './updateThreadLabelRequest';@@ -358,6 +282,3 @@ export * from './upsertScheduledRequest';export * from './upsertScheduledResponse';export * from './userProvider';export * from './value';-export * from './visibleCalendar';-export * from './visibleCalendarColor';-export * from './visibleCalendarSyncError';diff --git a/apps/web/src/lib/service-clients/service-email/openapi.json b/apps/web/src/lib/service-clients/service-email/openapi.jsonindex 7b0c3e4b31..3e604ad14b 100644--- a/apps/web/src/lib/service-clients/service-email/openapi.json+++ b/apps/web/src/lib/service-clients/service-email/openapi.json@@ -10,381 +10,6 @@"version": "0.1.0"},"paths": {- "/calendar/calendars": {- "get": {- "tags": ["calendar_events"],- "summary": "List the requester's visible calendars for pickers and filters.",- "operationId": "list_calendars",- "responses": {- "200": {- "description": "Calendars visible to the requester",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/ListCalendarsResponse"- }- }- }- },- "401": {- "description": "Authentication required"- },- "503": {- "description": "Transient failure",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- }- }- }- },- "/calendar/events": {- "post": {- "tags": ["calendar_events"],- "summary": "Create a calendar event and return its synced entity.",- "operationId": "create_calendar_event",- "requestBody": {- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CreateCalendarEventRequest"- }- }- },- "required": true- },- "responses": {- "201": {- "description": "The created calendar event",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarEvent"- }- }- }- },- "400": {- "description": "Invalid event fields",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- },- "401": {- "description": "Authentication required"- },- "403": {- "description": "Calendar is read-only or needs reauthorization",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- },- "409": {- "description": "No writable calendar or the provider rejected the event",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- },- "503": {- "description": "Transient provider failure",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- }- }- }- },- "/calendar/events/{event_id}": {- "delete": {- "tags": ["calendar_events"],- "summary": "Delete a calendar event at its provider.",- "operationId": "delete_calendar_event",- "parameters": [- {- "name": "event_id",- "in": "path",- "description": "Calendar event entity id",- "required": true,- "schema": {- "type": "string",- "format": "uuid"- }- },- {- "name": "calendarId",- "in": "query",- "description": "Calendar whose copy of the event is deleted, for an event synced from\nmore than one calendar. Omit to delete the canonical copy.",- "required": false,- "schema": {- "type": "string",- "format": "uuid"- }- },- {- "name": "scope",- "in": "query",- "description": "Deletion scope; defaults to the entire event or series.",- "required": false,- "schema": {- "$ref": "#/components/schemas/CalendarDeletionScopeParam"- }- },- {- "name": "recurrenceId",- "in": "query",- "description": "Original-start key of the occurrence a scoped deletion targets.",- "required": false,- "schema": {- "type": "string"- }- }- ],- "responses": {- "204": {- "description": "The event was deleted"- },- "401": {- "description": "Authentication required"- },- "403": {- "description": "Calendar is read-only or needs reauthorization",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- },- "404": {- "description": "Event not found",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- },- "409": {- "description": "The provider rejected the deletion",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- },- "503": {- "description": "Transient provider failure",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- }- }- },- "patch": {- "tags": ["calendar_events"],- "summary": "Update fields of a calendar event and return its synced entity.",- "operationId": "update_calendar_event",- "parameters": [- {- "name": "event_id",- "in": "path",- "description": "Calendar event entity id",- "required": true,- "schema": {- "type": "string",- "format": "uuid"- }- }- ],- "requestBody": {- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/UpdateCalendarEventRequest"- }- }- },- "required": true- },- "responses": {- "200": {- "description": "The updated calendar event",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarEvent"- }- }- }- },- "400": {- "description": "Invalid event fields",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- },- "401": {- "description": "Authentication required"- },- "403": {- "description": "Calendar is read-only or needs reauthorization",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- },- "404": {- "description": "Event or targeted occurrence not found",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- },- "409": {- "description": "The provider rejected the update",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- },- "503": {- "description": "Transient provider failure",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- }- }- }- },- "/calendar/events/{event_id}/rsvp": {- "put": {- "tags": ["calendar_events"],- "summary": "Set the requester's RSVP on a calendar event and return its synced entity.",- "operationId": "rsvp_calendar_event",- "parameters": [- {- "name": "event_id",- "in": "path",- "description": "Calendar event entity id",- "required": true,- "schema": {- "type": "string",- "format": "uuid"- }- }- ],- "requestBody": {- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/RsvpCalendarEventRequest"- }- }- },- "required": true- },- "responses": {- "200": {- "description": "The updated calendar event",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarEvent"- }- }- }- },- "401": {- "description": "Authentication required"- },- "403": {- "description": "Calendar is read-only or needs reauthorization",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- },- "404": {- "description": "Event not found",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- },- "409": {- "description": "The connected account is not an attendee",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- },- "503": {- "description": "Transient provider failure",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- }- }- }- },"/email/attachments/{id}": {"get": {"tags": ["Attachments"],@@ -4379,11 +4004,6 @@}}},- "AttendeeResponseStatus": {- "type": "string",- "description": "RSVP state for an attendee.",- "enum": ["needs_action", "accepted", "declined", "tentative"]- },"BackfillJob": {"type": "object","required": [@@ -4452,316 +4072,6 @@}}},- "CalendarAttendee": {- "type": "object",- "description": "An attendee on a calendar event.",- "required": [- "email",- "responseStatus",- "isOrganizer",- "isOptional",- "isSelf"- ],- "properties": {- "comment": {- "type": ["string", "null"],- "description": "Optional attendee comment."- },- "displayName": {- "type": ["string", "null"],- "description": "Provider display name."- },- "email": {- "type": "string",- "description": "Normalized email address."- },- "isOptional": {- "type": "boolean",- "description": "Whether attendance is optional."- },- "isOrganizer": {- "type": "boolean",- "description": "Whether this attendee is the organizer."- },- "isSelf": {- "type": "boolean",- "description": "Whether this attendee is one of the viewing requester's inboxes."- },- "responseStatus": {- "$ref": "#/components/schemas/AttendeeResponseStatus",- "description": "RSVP state."- }- }- },- "CalendarAttendeeInputBody": {- "type": "object",- "description": "An attendee supplied to a calendar mutation.",- "required": ["email"],- "properties": {- "email": {- "type": "string",- "description": "Attendee email address."- },- "isOptional": {- "type": "boolean",- "description": "Whether attendance is optional."- }- }- },- "CalendarDeletionScopeParam": {- "type": "string",- "description": "How much of a recurring series a deletion removes.",- "enum": ["all", "this_event", "this_and_following"]- },- "CalendarEvent": {- "type": "object",- "description": "A stable, first-class Macro calendar event entity.\n\nContent fields hold the canonical source's values: the account's primary\ncalendar copy when one is synced, else the freshest remaining copy.",- "required": [- "id",- "ownerId",- "icalUid",- "title",- "status",- "visibility",- "transparency",- "time",- "recurrenceLines",- "sequence",- "isReadOnly",- "attendees",- "createdAt",- "updatedAt"- ],- "properties": {- "attendees": {- "type": "array",- "items": {- "$ref": "#/components/schemas/CalendarAttendee"- },- "description": "Attendees, keyed by email during persistence."- },- "calendarId": {- "type": ["string", "null"],- "format": "uuid",- "description": "Calendar the canonical source belongs to, when known. Absent only in\nprojections stored before calendars were attributed."- },- "conferenceProvider": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/ConferenceProvider",- "description": "Which conferencing system backs `conference_url`. `None` whenever no\nconference is attached."- }- ]- },- "conferenceUrl": {- "type": ["string", "null"],- "description": "Direct join URL when known."- },- "createdAt": {- "type": "string",- "format": "date-time",- "description": "Entity creation time."- },- "creatorEmail": {- "type": ["string", "null"],- "description": "Provider-reported creator email. Distinct from the organizer when\nsomeone writes onto a calendar they do not own. Omitted from stored\nprojections when unknown so events ingested before this field still\ncompare equal."- },- "creatorName": {- "type": ["string", "null"],- "description": "Provider-reported creator display name."- },- "description": {- "type": ["string", "null"],- "description": "Optional event body."- },- "eventType": {- "$ref": "#/components/schemas/EventType",- "description": "Provider event type. Skipped when it is the regular type so\nprojections stored before event types were modeled still compare\nequal."- },- "icalUid": {- "type": "string",- "description": "RFC 5545 UID used to reconcile provider and email sources."- },- "id": {- "type": "string",- "format": "uuid",- "description": "Macro entity identifier."- },- "isReadOnly": {- "type": "boolean",- "description": "Whether the canonical source's calendar prohibits editing it."- },- "location": {- "type": ["string", "null"],- "description": "Optional physical or virtual location label."- },- "organizerEmail": {- "type": ["string", "null"],- "description": "Organizer email."- },- "organizerName": {- "type": ["string", "null"],- "description": "Organizer display name."- },- "ownerId": {- "type": "string",- "description": "Macro user who owns this event entity."- },- "recurrenceLines": {- "type": "array",- "items": {- "type": "string"- },- "description": "Raw RFC 5545 recurrence properties (`RRULE`, `RDATE`, `EXDATE`)."- },- "reminders": {- "$ref": "#/components/schemas/EventReminders",- "description": "Per-user reminder configuration. Skipped when it is the provider\ndefault so projections stored before reminders were modeled still\ncompare equal."- },- "sequence": {- "type": "integer",- "format": "int32",- "description": "Provider/iCalendar sequence number.",- "minimum": 0- },- "sources": {- "type": "array",- "items": {- "$ref": "#/components/schemas/CalendarEventSourceContent"- },- "description": "Content of every active copy of this event, canonical first: the\nprimary calendar's copy, then the freshest. A client picks the copy\nwhose calendar it is showing and falls back to the first. Populated\nonly on the read path, so stored projections omit it."- },- "status": {- "$ref": "#/components/schemas/EventStatus",- "description": "Event status."- },- "time": {- "$ref": "#/components/schemas/EventTime",- "description": "Timed or all-day shape."- },- "title": {- "type": "string",- "description": "Display title."- },- "transparency": {- "$ref": "#/components/schemas/EventTransparency",- "description": "Availability behavior."- },- "updatedAt": {- "type": "string",- "format": "date-time",- "description": "Entity update time."- },- "visibility": {- "$ref": "#/components/schemas/EventVisibility",- "description": "Event visibility."- }- }- },- "CalendarEventSourceContent": {- "type": "object",- "description": "The content one provider copy of an event carries.\n\nGoogle keeps these fields per calendar copy: a shared calendar's copy of a\nmember's event can have its own title, type, reminders, and access role.\nThe entity holds its canonical source's values. Every other copy's values\nare read from here so a client can show the copy that belongs to the\ncalendar being viewed.",- "required": [- "calendarId",- "title",- "eventType",- "visibility",- "transparency",- "isReadOnly",- "reminders"- ],- "properties": {- "calendarId": {- "type": "string",- "format": "uuid",- "description": "Calendar this copy lives on."- },- "creatorEmail": {- "type": ["string", "null"],- "description": "Provider-reported creator email."- },- "creatorName": {- "type": ["string", "null"],- "description": "Provider-reported creator display name."- },- "description": {- "type": ["string", "null"],- "description": "Optional event body."- },- "eventType": {- "$ref": "#/components/schemas/EventType",- "description": "Provider event type."- },- "isReadOnly": {- "type": "boolean",- "description": "Whether the calendar's access role prohibits editing this copy."- },- "location": {- "type": ["string", "null"],- "description": "Optional physical or virtual location label."- },- "reminders": {- "$ref": "#/components/schemas/EventReminders",- "description": "Reminder configuration of this copy."- },- "title": {- "type": "string",- "description": "Display title."- },- "transparency": {- "$ref": "#/components/schemas/EventTransparency",- "description": "Availability behavior."- },- "visibility": {- "$ref": "#/components/schemas/EventVisibility",- "description": "Event visibility."- }- }- },- "CalendarMutationApiError": {- "type": "object",- "description": "HTTP error body returned by calendar mutation endpoints.",- "required": ["code", "message"],- "properties": {- "code": {- "$ref": "#/components/schemas/CalendarMutationErrorCode",- "description": "Machine-readable failure category."- },- "message": {- "type": "string",- "description": "Human-readable failure description."- }- }- },- "CalendarMutationErrorCode": {- "type": "string",- "description": "Machine-readable failure category for calendar mutations.",- "enum": [- "not_found",- "occurrence_not_found",- "read_only",- "no_writable_calendar",- "not_attendee",- "invalid_input",- "reauth_required",- "provider_rejected",- "retryable",- "persist_failed"- ]- },- "CalendarRsvpScopeParam": {- "type": "string",- "description": "How much of a recurring series an RSVP applies to.\n\nUnlike deletion there is no this-and-following variant: the provider\ncannot express a forward-scoped response, so offering one would be a\npromise sync could not keep.",- "enum": ["all", "this_event"]- },- "CalendarUpdateScopeParam": {- "type": "string",- "description": "How much of a recurring series an update applies to.\n\nLike RSVPs there is no this-and-following variant: the provider cannot\nexpress a forward-scoped edit as one write, and emulating it (truncate\nthe series, insert an edited clone) is non-atomic and re-invites the\nattendees of the clone. Compose it from a this-and-following deletion\nand a create when that shape is wanted.",- "enum": ["all", "this_event"]- },"CancelBackfillParams": {"type": "object","required": ["job_id"],@@ -4772,16 +4082,6 @@}}},- "ConferenceChange": {- "type": "string",- "description": "A requested change to an event's conferencing. Omitting the field leaves\nthe existing conference untouched; only these values change it.",- "enum": ["google_meet", "none"]- },- "ConferenceProvider": {- "type": "string",- "description": "The conferencing system backing an event's join URL.\n\nMacro generates only Google Meet conferences, so this distinguishes one it\ncreated from a third party's — Zoom and friends arriving as `addOn`\nconference data, or a legacy classic Hangout. Clients use it to label the\nconference and to tell whether the Meet toggle reflects a Macro-managed\nconference.\n\nIt does not gate mutation. An explicit request replaces or detaches any\nconference, third-party included, exactly as deleting the event would;\nwhat protects a conference is that omitting the field leaves it untouched,\nso an unrelated edit never disturbs it.",- "enum": ["google_meet", "other"]- },"Contact": {"type": "object","required": ["id", "link_id"],@@ -4834,131 +4134,29 @@"type": "string"},"name": {- "type": ["string", "null"]- },- "photo_url": {- "type": ["string", "null"]- }- }- },- "ContactInfoWithInteraction": {- "allOf": [- {- "$ref": "#/components/schemas/ContactInfoLegacy"- },- {- "type": "object",- "required": ["last_interaction"],- "properties": {- "last_interaction": {- "type": "string",- "format": "date-time"- }- }- }- ]- },- "CreateCalendarEventRequest": {- "type": "object",- "description": "Request body creating a calendar event on the requester's calendar.",- "required": ["title", "time"],- "properties": {- "attendees": {- "type": "array",- "items": {- "$ref": "#/components/schemas/CalendarAttendeeInputBody"- },- "description": "Invited attendees."- },- "calendarId": {- "type": ["string", "null"],- "format": "uuid",- "description": "Exact calendar to create the event on; takes precedence over the\ninbox default."- },- "conference": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/ConferenceChange",- "description": "Conference to attach to the new event; omit to create it without one."- }- ]- },- "description": {- "type": ["string", "null"],- "description": "Optional event body."- },- "emailLinkId": {- "type": ["string", "null"],- "format": "uuid",- "description": "Connected inbox whose primary calendar receives the event; defaults\nto the requester's primary inbox."- },- "location": {- "type": ["string", "null"],- "description": "Optional location label."- },- "outOfOffice": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/OutOfOfficeProperties",- "description": "Out-of-office properties; present to create the event as a Google\nout-of-office status event (primary calendar only, timed, no\nattendees), omitted for a regular event."- }- ]- },- "recurrenceLines": {- "type": "array",- "items": {- "type": "string"- },- "description": "Raw RFC 5545 recurrence properties (`RRULE`, `RDATE`, `EXDATE`)."- },- "reminders": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/EventReminders",- "description": "Reminder configuration; omit to keep the calendar defaults."- }- ]- },- "time": {- "$ref": "#/components/schemas/EventTime",- "description": "Timed or all-day shape."- },- "title": {- "type": "string",- "description": "Display title."+ "type": ["string", "null"]},- "transparency": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/EventTransparency",- "description": "Availability behavior."- }- ]+ "photo_url": {+ "type": ["string", "null"]+ }+ }+ },+ "ContactInfoWithInteraction": {+ "allOf": [+ {+ "$ref": "#/components/schemas/ContactInfoLegacy"},- "visibility": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/EventVisibility",- "description": "Event visibility."+ {+ "type": "object",+ "required": ["last_interaction"],+ "properties": {+ "last_interaction": {+ "type": "string",+ "format": "date-time"}- ]+ }}- }+ ]},"CreateDraftRequest": {"type": "object",@@ -5022,119 +4220,6 @@}}},- "EventReminderOverride": {- "type": "object",- "description": "One reminder: how it alerts and how many minutes before the event start\n(before midnight in the calendar's zone for all-day events) it fires.",- "required": ["method", "minutes"],- "properties": {- "method": {- "type": "string",- "description": "Provider method, stored verbatim; only `popup` fires Macro\nnotifications."- },- "minutes": {- "type": "integer",- "format": "int32",- "description": "Minutes before the event start.",- "minimum": 0- }- }- },- "EventReminders": {- "type": "object",- "description": "Per-user reminder configuration for an event, mirroring Google's model:\neither the calendar's default reminders apply, or the explicit overrides\nreplace them entirely.",- "required": ["useDefault"],- "properties": {- "overrides": {- "type": "array",- "items": {- "$ref": "#/components/schemas/EventReminderOverride"- },- "description": "Explicit reminders replacing the defaults when `use_default` is off."- },- "useDefault": {- "type": "boolean",- "description": "Whether the calendar's default reminders apply."- }- }- },- "EventStatus": {- "type": "string",- "description": "Canonical event status.",- "enum": ["confirmed", "tentative", "cancelled"]- },- "EventTime": {- "oneOf": [- {- "type": "object",- "description": "An event with absolute instants.",- "required": ["startsAt", "endsAt", "kind"],- "properties": {- "endsAt": {- "type": "string",- "format": "date-time",- "description": "Exclusive end instant."- },- "kind": {- "type": "string",- "enum": ["timed"]- },- "startsAt": {- "type": "string",- "format": "date-time",- "description": "Inclusive start instant."- },- "timeZone": {- "type": ["string", "null"],- "description": "Original IANA time-zone identifier, when supplied."- }- }- },- {- "type": "object",- "description": "An all-day event using RFC 5545's exclusive end date.",- "required": ["startDate", "endDate", "kind"],- "properties": {- "endDate": {- "type": "string",- "format": "date",- "description": "Exclusive local end date."- },- "kind": {- "type": "string",- "enum": ["allDay"]- },- "startDate": {- "type": "string",- "format": "date",- "description": "Inclusive local start date."- }- }- }- ],- "description": "The mutually exclusive time shape of a calendar event.\n\nFields are renamed per variant rather than with `rename_all_fields`\nbecause utoipa only honors variant-level serde renames when it\nderives the OpenAPI schema."- },- "EventTransparency": {- "type": "string",- "description": "Whether an event blocks availability.",- "enum": ["opaque", "transparent"]- },- "EventType": {- "type": "string",- "description": "Google's event type: ordinary meetings versus the status-style entries\n(working location, out of office, focus time, birthdays) Google renders\nand notifies differently. Immutable at the provider after creation.",- "enum": [- "default",- "out_of_office",- "focus_time",- "working_location",- "birthday",- "from_gmail"- ]- },- "EventVisibility": {- "type": "string",- "description": "Visibility of event details.",- "enum": ["default", "public", "private", "confidential"]- },"GetActiveBackfillJobResponse": {"type": "object","description": "The response returned from the get backfill job endpoint",@@ -5434,20 +4519,6 @@}}},- "ListCalendarsResponse": {- "type": "object",- "description": "Calendars visible to the requester across connected and delegated inboxes.",- "required": ["calendars"],- "properties": {- "calendars": {- "type": "array",- "items": {- "$ref": "#/components/schemas/VisibleCalendar"- },- "description": "Primaries and writable calendars first."- }- }- },"ListContactsResponse": {"type": "object","required": ["contacts"],@@ -5683,29 +4754,6 @@"type": "string","enum": ["Show", "Hide"]},- "OutOfOfficeAutoDeclineMode": {- "type": "string",- "description": "How an out-of-office event responds to conflicting invitations, mirroring\nGoogle's `autoDeclineMode`.",- "enum": [- "decline_none",- "decline_all_conflicting_invitations",- "decline_only_new_conflicting_invitations"- ]- },- "OutOfOfficeProperties": {- "type": "object",- "description": "The extra properties Google requires on an out-of-office event, mirroring\nits `outOfOfficeProperties` block. Their presence on a draft or patch is\nwhat marks the mutation as out-of-office.",- "properties": {- "autoDeclineMode": {- "$ref": "#/components/schemas/OutOfOfficeAutoDeclineMode",- "description": "How conflicting invitations are handled while the user is out."- },- "declineMessage": {- "type": ["string", "null"],- "description": "Message returned to organizers whose invitations are auto-declined."- }- }- },"ParsedMessage": {"type": "object","required": [@@ -5827,27 +4875,6 @@"other"]},- "RefreshCalendarEvent": {- "oneOf": [- {- "type": "object",- "description": "A sync run committed changes for `link_id`; viewers should refetch.",- "required": ["link_id", "event"],- "properties": {- "event": {- "type": "string",- "enum": ["synced"]- },- "link_id": {- "type": "string",- "format": "uuid",- "description": "Connected inbox whose calendars changed."- }- }- }- ],- "description": "Realtime signal that a connected inbox's calendar projection changed."- },"RefreshEmailEvent": {"oneOf": [{@@ -5994,37 +5021,6 @@}}},- "RsvpCalendarEventRequest": {- "type": "object",- "description": "Request body setting the requester's RSVP on an event.",- "required": ["response"],- "properties": {- "calendarId": {- "type": ["string", "null"],- "format": "uuid",- "description": "Calendar whose copy of the event is answered, for an event synced\nfrom more than one calendar. Omit to answer on the canonical copy."- },- "recurrenceId": {- "type": ["string", "null"],- "description": "Original-start key of the occurrence the response targets."- },- "response": {- "$ref": "#/components/schemas/AttendeeResponseStatus",- "description": "The response to record for the connected account."- },- "scope": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/CalendarRsvpScopeParam",- "description": "How much of a recurring series the response covers. Omit to let\n`recurrenceId` decide: the identified occurrence alone when one is\nsupplied, otherwise the whole series. An explicit `this_event` scope\nrequires `recurrenceId`, so a scoped request is never silently\nwidened to the series."- }- ]- }- }- },"SendMessageRequest": {"type": "object","description": "Request body for sending a message (backward-compatible with `{ message: MessageToSend }`).",@@ -6276,124 +5272,6 @@}}},- "UpdateCalendarEventRequest": {- "type": "object",- "description": "Request body patching an event; omitted fields are left untouched.",- "properties": {- "attendees": {- "type": ["array", "null"],- "items": {- "$ref": "#/components/schemas/CalendarAttendeeInputBody"- },- "description": "Replacement attendee list."- },- "calendarId": {- "type": ["string", "null"],- "format": "uuid",- "description": "Calendar whose copy of the event is patched, for an event synced from\nmore than one calendar. Omit to patch the canonical copy."- },- "conference": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/ConferenceChange",- "description": "Conference change: `google_meet` attaches a freshly generated Meet,\n`none` detaches the current conference, and omitting it leaves the\nconference untouched.\n\nA third-party conference is replaced or detached like any other, since\nthe request is explicit. Omit the field to leave it alone."- }- ]- },- "description": {- "type": ["string", "null"],- "description": "Replacement description; an empty string clears it."- },- "location": {- "type": ["string", "null"],- "description": "Replacement location; an empty string clears it."- },- "outOfOffice": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/OutOfOfficeProperties",- "description": "Replacement out-of-office properties, applied only to an event that is\nalready out-of-office — the provider event type is immutable. Omit to\nleave them untouched."- }- ]- },- "recurrenceId": {- "type": ["string", "null"],- "description": "Original-start key of the occurrence the update targets."- },- "recurrenceLines": {- "type": ["array", "null"],- "items": {- "type": "string"- },- "description": "Replacement recurrence properties; an empty list clears them."- },- "reminders": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/EventReminders",- "description": "Replacement reminder configuration."- }- ]- },- "scope": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/CalendarUpdateScopeParam",- "description": "How much of a recurring series the update covers. Omit to let\n`recurrenceId` decide: the identified occurrence alone when one is\nsupplied, otherwise the whole event or series. An explicit\n`this_event` scope requires `recurrenceId`, so a scoped request is\nnever silently widened to the series."- }- ]- },- "time": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/EventTime",- "description": "Replacement time."- }- ]- },- "title": {- "type": ["string", "null"],- "description": "Replacement title; an empty string clears it."- },- "transparency": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/EventTransparency",- "description": "Replacement transparency."- }- ]- },- "visibility": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/EventVisibility",- "description": "Replacement visibility."- }- ]- }- }- },"UpdateLabelBatchRequest": {"type": "object","required": ["message_ids", "label_id", "value"],@@ -6554,68 +5432,7 @@"type": "string","enum": ["GMAIL"]},- "Value": {},- "VisibleCalendar": {- "type": "object",- "description": "A calendar visible to a requester, listed for pickers and filters.",- "required": [- "id",- "emailLinkId",- "emailAddress",- "name",- "isPrimary",- "isWritable",- "isSubscription",- "defaultReminders"- ],- "properties": {- "color": {- "type": ["string", "null"],- "description": "Provider color."- },- "defaultReminders": {- "type": "array",- "items": {- "$ref": "#/components/schemas/EventReminderOverride"- },- "description": "Default reminders applied to events that keep `useDefault`."- },- "emailAddress": {- "type": "string",- "description": "Connected inbox address, for grouping in multi-inbox pickers."- },- "emailLinkId": {- "type": "string",- "format": "uuid",- "description": "Connected inbox that syncs this calendar."- },- "id": {- "type": "string",- "format": "uuid",- "description": "Persisted Macro calendar identifier."- },- "isPrimary": {- "type": "boolean",- "description": "Whether this is its account's primary calendar."- },- "isSubscription": {- "type": "boolean",- "description": "Whether this is one of Google's shared system calendars (holidays,\nbirthdays) the account subscribes to rather than one a person maintains."- },- "isWritable": {- "type": "boolean",- "description": "Whether the grant can create and modify events on this calendar."- },- "name": {- "type": "string",- "description": "Provider display name."- },- "syncError": {- "type": ["string", "null"],- "description": "A persistent sync failure isolated to this calendar, surfaced so the\nsettings row can badge it. `None` while the calendar is syncing\nnormally or a failure has not yet crossed the persistence threshold."- }- }- }+ "Value": {}}},"tags": [diff --git a/apps/web/tsconfig.json b/apps/web/tsconfig.jsonindex dcf03cd754..0e9eb21f2b 100644--- a/apps/web/tsconfig.json+++ b/apps/web/tsconfig.json@@ -125,6 +125,9 @@"@service-scheduled-action/*": ["./src/lib/service-clients/service-scheduled-action/*"],+ "@service-calendar/*": [+ "./src/lib/service-clients/service-calendar/*"+ ],"@service-email/*": ["./src/lib/service-clients/service-email/*"],diff --git a/crates/models_email/src/email/service/backfill.rs b/crates/models_email/src/email/service/backfill.rsindex 9a6c3baedb..8e56762f20 100644--- a/crates/models_email/src/email/service/backfill.rs+++ b/crates/models_email/src/email/service/backfill.rs@@ -25,13 +25,6 @@ pub struct BackfillMessagePayload {pub message_provider_id: String,}-/// Dispatch payload for a durable calendar backfill job.-#[derive(Debug, Deserialize, Serialize, Clone, PartialEq, Eq)]-pub struct CalendarBackfillPayload {- /// Calendar-domain job identifier.- pub calendar_job_id: Uuid,-}-/// Scope envelope for backfill operations that belong to a tracked backfill/// job (Init, ListThreads, BackfillThread, BackfillMessage,/// UpdateThreadMetadata, BackfillAttachment, FinalizeBackfill). Carries the@@ -91,9 +84,6 @@ pub enum BackfillOperation {BackfillAttachment(JobScopedPayload<BackfillAttachmentPayload>),/// Runs durable post-completion attachment, contact, and client-refresh effects.FinalizeBackfill(JobScopedPayload<FinalizeBackfillPayload>),- /// Fetch calendars, canonical events, and bounded occurrence projections- /// from Google Calendar.- CalendarGoogleBackfill(LinkScopedPayload<CalendarBackfillPayload>),// Seeds the contacts service from one recent sent message. Fanned out// one-per-message by the priority pass of ListThreads (which lists the// user's last 200 sent messages). The consumer fetches the message and@@ -139,7 +129,6 @@ impl BackfillOperation {BackfillOperation::UpdateThreadMetadata(s) => Some(s.link_id),BackfillOperation::BackfillAttachment(s) => Some(s.link_id),BackfillOperation::FinalizeBackfill(s) => Some(s.link_id),- BackfillOperation::CalendarGoogleBackfill(s) => Some(s.link_id),BackfillOperation::SeedSentContact(s) => Some(s.link_id),BackfillOperation::PopulateCrmContact(s) => Some(s.link_id),BackfillOperation::DepopulateCrmContact(s) => Some(s.link_id),@@ -160,7 +149,6 @@ impl BackfillOperation {BackfillOperation::BackfillAttachment(s) => Some(s.job_id),BackfillOperation::FinalizeBackfill(s) => Some(s.job_id),BackfillOperation::SeedSentContact(s) => Some(s.job_id),- BackfillOperation::CalendarGoogleBackfill(_) => None,BackfillOperation::PopulateCrmContact(_)| BackfillOperation::DepopulateCrmContact(_)| BackfillOperation::PopulateCrmForUser(_)diff --git a/docker/docker-compose.yml b/docker/docker-compose.ymlindex 754ce0793c..bf72fbb09f 100644--- a/docker/docker-compose.yml+++ b/docker/docker-compose.yml@@ -200,14 +200,6 @@ services:command: ["/app/out/email_service"]ports:- "8087:8080"- environment:- # Local calendar cutover: calendar_service owns calendar locally. With sync- # off the email HTTP service stops mounting its /calendar mutation routes- # (see email_service api.rs), so the web client reaches calendar_service- # instead. The actual sync workers run in email_pubsub_workers, which is- # disabled separately below. Overrides the generated env file's global- # CALENDAR_SYNC_ENABLED=true for this service only.- CALENDAR_SYNC_ENABLED: "false"depends_on:- authentication-service- document_storage_service@@ -235,12 +227,6 @@ services:email_pubsub_workers:<<: [*common-env, *rust-services-image]command: ["/app/out/pubsub_workers"]- environment:- # Local calendar cutover: the calendar sync scheduler + outbox drain run- # in this worker (email_service::calendar_outbox::run), so this is where- # email's calendar sync is actually turned off. calendar_service is the- # sole syncer of the shared local MacroDB.- CALENDAR_SYNC_ENABLED: "false"depends_on:- postgres- redis@@ -255,10 +241,7 @@ services:# ============================================================================# calendar_service (Port 8088)- # Google Calendar sync + calendar API. Local owner of /calendar: email's- # calendar sync is disabled locally (CALENDAR_SYNC_ENABLED=false on both- # email_service and email_pubsub_workers above) so only one service syncs the- # shared MacroDB.+ # Google Calendar sync + calendar API, and the local owner of /calendar.# ============================================================================calendar_service:<<: [*common-env, *rust-services-image]diff --git a/infra/stacks/email-service/service.ts b/infra/stacks/email-service/service.tsindex fc64932382..703e2de8e0 100644--- a/infra/stacks/email-service/service.ts+++ b/infra/stacks/email-service/service.ts@@ -104,14 +104,7 @@ export class EmailService extends pulumi.ComponentResource {containerPort: serviceContainerPort,service: GatewayService.EMAIL_SERVICE,healthCheckPath,- // calendar-service now owns `/calendar`; its rule at priority 140 takes- // over the moment this rule stops matching. Deploy this change only- // during cutover, and only after all of: (1) calendar-service's- // `/calendar` rule is deployed, (2) calendar-service has- // `CALENDAR_SYNC_ENABLED` on and the agent-tools client repoint is- // deployed, and (3) email-service has `CALENDAR_SYNC_ENABLED` off.- // Deploying earlier can leave `/calendar` requests and webhooks- // unroutable or run sync under the wrong owner.+ // `/calendar` belongs to calendar-service (its own rule, priority 140).pathPatterns: ['/email', '/email/*'],serviceSecurityGroupId: this.serviceSg.id,albSecurityGroupId: gatewayLoadBalancer.albSecurityGroupId,diff --git a/nix/cloud-storage.nix b/nix/cloud-storage.nixindex 2977ea8d4d..7ce671abf9 100644--- a/nix/cloud-storage.nix+++ b/nix/cloud-storage.nix@@ -303,6 +303,7 @@"--bin connection_gateway_openapi""--bin contacts_service_openapi""--bin unfurl_service_openapi"+ "--bin calendar_service_openapi""--bin email_service_openapi""--bin search_service_openapi""--bin scheduled_action_openapi"@@ -952,6 +953,7 @@connection_gateway = "service-connection";contacts_service = "service-contacts";unfurl_service = "service-unfurl";+ calendar_service = "service-calendar";email_service = "service-email";search_service = "service-search";scheduled_action = "service-scheduled-action";diff --git a/packages/sdk/generated/email/index.ts b/packages/sdk/generated/email/index.tsindex e4b2d00eb1..7d83dcbff9 100644--- a/packages/sdk/generated/email/index.ts+++ b/packages/sdk/generated/email/index.ts@@ -1,4 +1,4 @@// This file is auto-generated by @hey-api/openapi-tsexport { type Options, Sdk } from './sdk.gen';-export type { AccessLevel, AddDraftAttachmentData, AddDraftAttachmentError, AddDraftAttachmentErrors, AddDraftAttachmentRequest, AddDraftAttachmentResponse, AddDraftAttachmentResponse2, AddDraftAttachmentResponses, AddForwardedAttachmentData, AddForwardedAttachmentError, AddForwardedAttachmentErrors, AddForwardedAttachmentRequest, AddForwardedAttachmentResponse, AddForwardedAttachmentResponse2, AddForwardedAttachmentResponses, AddRemoveLabelData, AddRemoveLabelError, AddRemoveLabelErrors, AddRemoveLabelResponse, AddRemoveLabelResponses, AddRemoveThreadLabelData, AddRemoveThreadLabelError, AddRemoveThreadLabelErrors, AddRemoveThreadLabelResponse, AddRemoveThreadLabelResponses, ApiAttachment, ApiAttachmentDraft, ApiAttachmentForwarded, ApiContact, ApiContactInfo, ApiDraftContactInfo, ApiDraftInput, ApiDraftOutput, ApiEmailFilter, ApiLabel, ApiLabelListVisibility, ApiLabelType, ApiMessage, ApiMessageAttachment, ApiMessageLabel, ApiMessageListVisibility, ApiPaginatedThreadCursor, ApiSortMethod, ApiThread, ApiThreadPreviewCursor, ApiThreadPreviewCursorInner, ArchiveThreadData, ArchiveThreadError, ArchiveThreadErrors, ArchiveThreadRequest, ArchiveThreadResponse, ArchiveThreadResponses, Attachment, AttachmentDraft, AttachmentForwarded, AttendeeResponseStatus, BackfillJob, BackfillJobStatus, BackfillStatus, BlockSenderData, BlockSenderError, BlockSenderErrors, BlockSenderRequest, BlockSenderResponses, CalendarAttendee, CalendarAttendeeInputBody, CalendarDeletionScopeParam, CalendarEvent, CalendarEventSourceContent, CalendarMutationApiError, CalendarMutationErrorCode, CalendarRsvpScopeParam, CalendarUpdateScopeParam, CancelBackfillGmailData, CancelBackfillGmailError, CancelBackfillGmailErrors, CancelBackfillGmailResponse, CancelBackfillGmailResponses, CancelBackfillParams, ClientOptions, ConferenceChange, ConferenceProvider, Contact, ContactInfo, ContactInfoLegacy, ContactInfoWithInteraction, CreateCalendarEventData, CreateCalendarEventError, CreateCalendarEventErrors, CreateCalendarEventRequest, CreateCalendarEventResponse, CreateCalendarEventResponses, CreateDraftData, CreateDraftError, CreateDraftErrors, CreateDraftRequest, CreateDraftResponse, CreateDraftResponse2, CreateDraftResponses, CreateLabelData, CreateLabelError, CreateLabelErrors, CreateLabelRequest, CreateLabelResponse, CreateLabelResponse2, CreateLabelResponses, DeleteCalendarEventData, DeleteCalendarEventError, DeleteCalendarEventErrors, DeleteCalendarEventResponse, DeleteCalendarEventResponses, DeleteDraftData, DeleteDraftError, DeleteDraftErrors, DeleteDraftResponse, DeleteDraftResponses, DeleteEmailFilterData, DeleteEmailFilterError, DeleteEmailFilterErrors, DeleteEmailFilterResponse, DeleteEmailFilterResponses, DeleteLabelData, DeleteLabelError, DeleteLabelErrors, DeleteLabelResponse, DeleteLabelResponses, DeleteLinkData, DeleteLinkError, DeleteLinkErrors, DeleteLinkResponse, DeleteLinkResponses, DeleteScheduledDraftData, DeleteScheduledDraftError, DeleteScheduledDraftErrors, DeleteScheduledDraftResponse, DeleteScheduledDraftResponses, DisableLinkCalendarData, DisableLinkCalendarError, DisableLinkCalendarErrors, DisableLinkCalendarResponse, DisableLinkCalendarResponses, DisableSyncData, DisableSyncError, DisableSyncErrors, DisableSyncResponse, DisableSyncResponses, EmptyResponse, ErrorResponse, EventReminderOverride, EventReminders, EventStatus, EventTime, EventTransparency, EventType, EventVisibility, GetActiveBackfillJobResponse, GetAttachmentData, GetAttachmentDocumentIdData, GetAttachmentDocumentIdError, GetAttachmentDocumentIdErrors, GetAttachmentDocumentIdResponse, GetAttachmentDocumentIdResponse2, GetAttachmentDocumentIdResponses, GetAttachmentError, GetAttachmentErrors, GetAttachmentResponse, GetAttachmentResponse2, GetAttachmentResponses, GetBackfillGmailActiveData, GetBackfillGmailActiveError, GetBackfillGmailActiveErrors, GetBackfillGmailActiveResponse, GetBackfillGmailActiveResponses, GetBackfillGmailData, GetBackfillGmailError, GetBackfillGmailErrors, GetBackfillGmailResponse, GetBackfillGmailResponses, GetBackfillJobResponse, GetMessageData, GetMessageError, GetMessageErrors, GetMessageResponse, GetMessageResponses, GetMessagesBatchData, GetMessagesBatchError, GetMessagesBatchErrors, GetMessagesBatchResponse, GetMessagesBatchResponses, GetPreviewsCursorParams, GetScheduledMessagesData, GetScheduledMessagesError, GetScheduledMessagesErrors, GetScheduledMessagesResponse, GetScheduledMessagesResponses, GetScheduledResponse, GetThreadData, GetThreadError, GetThreadErrors, GetThreadMessagesHandlerData, GetThreadMessagesHandlerError, GetThreadMessagesHandlerErrors, GetThreadMessagesHandlerResponse, GetThreadMessagesHandlerResponses, GetThreadResponse, GetThreadResponse2, GetThreadResponses, HealthCheckLinksData, HealthCheckLinksError, HealthCheckLinksErrors, HealthCheckLinksResponse, HealthCheckLinksResponses, HealthHandlerData, HealthHandlerResponse, HealthHandlerResponses, InitErrorCodeResponse, InitResponse, InitUserData, InitUserError, InitUserErrors, InitUserResponse, InitUserResponses, Label, LabelInfo, LabelListVisibility, LabelType, Link, ListBackfillGmailData, ListBackfillGmailError, ListBackfillGmailErrors, ListBackfillGmailResponse, ListBackfillGmailResponses, ListBackfillJobsResponse, ListBlockedResponse, ListBlockedSendersData, ListBlockedSendersError, ListBlockedSendersErrors, ListBlockedSendersResponse, ListBlockedSendersResponses, ListCalendarsData, ListCalendarsError, ListCalendarsErrors, ListCalendarsResponse, ListCalendarsResponse2, ListCalendarsResponses, ListContactsData, ListContactsError, ListContactsErrors, ListContactsResponse, ListContactsResponse2, ListContactsResponses, ListEmailFiltersData, ListEmailFiltersError, ListEmailFiltersErrors, ListEmailFiltersResponse, ListEmailFiltersResponse2, ListEmailFiltersResponses, ListLabelsData, ListLabelsError, ListLabelsErrors, ListLabelsResponse, ListLabelsResponse2, ListLabelsResponses, ListLinksData, ListLinksError, ListLinksErrors, ListLinksResponse, ListLinksResponse2, ListLinksResponses, Message, MessageListVisibility, OutOfOfficeAutoDeclineMode, OutOfOfficeProperties, ParsedMessage, PatchSettingsData, PatchSettingsError, PatchSettingsErrors, PatchSettingsRequest, PatchSettingsResponse, PatchSettingsResponse2, PatchSettingsResponses, PreviewsInboxCursorData, PreviewsInboxCursorError, PreviewsInboxCursorErrors, PreviewsInboxCursorResponse, PreviewsInboxCursorResponses, PreviewView, PreviewViewStandardLabel, RefreshCalendarEvent, RefreshEmailEvent, RemoveDraftAttachmentData, RemoveDraftAttachmentError, RemoveDraftAttachmentErrors, RemoveDraftAttachmentResponse, RemoveDraftAttachmentResponses, RemoveForwardedAttachmentData, RemoveForwardedAttachmentError, RemoveForwardedAttachmentErrors, RemoveForwardedAttachmentResponse, RemoveForwardedAttachmentResponses, ResyncLinkData, ResyncLinkError, ResyncLinkErrors, ResyncLinkResponse, ResyncLinkResponses, ResyncResponse, RsvpCalendarEventData, RsvpCalendarEventError, RsvpCalendarEventErrors, RsvpCalendarEventRequest, RsvpCalendarEventResponse, RsvpCalendarEventResponses, SendMessageData, SendMessageError, SendMessageErrors, SendMessageRequest, SendMessageResponse, SendMessageResponse2, SendMessageResponses, Settings, SharedInboxConflictResponse, SyncStatus, Thread, ThreadList, ThreadPreviewCursor, ThreadSeenData, ThreadSeenError, ThreadSeenErrors, ThreadSeenResponse, ThreadSeenResponses, ThreadSummary, UnblockSenderData, UnblockSenderError, UnblockSenderErrors, UnblockSenderRequest, UnblockSenderResponse, UnblockSenderResponses, UnresolvedSignatureImagesError, UpdateCalendarEventData, UpdateCalendarEventError, UpdateCalendarEventErrors, UpdateCalendarEventRequest, UpdateCalendarEventResponse, UpdateCalendarEventResponses, UpdateLabelBatchRequest, UpdateLabelBatchResponse, UpdateThreadLabelRequest, UpdateThreadLabelsResponse, UpdateThreadProjectData, UpdateThreadProjectError, UpdateThreadProjectErrors, UpdateThreadProjectRequest, UpdateThreadProjectResponse, UpdateThreadProjectResponse2, UpdateThreadProjectResponses, UpsertEmailFilterData, UpsertEmailFilterError, UpsertEmailFilterErrors, UpsertEmailFilterRequest, UpsertEmailFilterResponse, UpsertEmailFilterResponse2, UpsertEmailFilterResponses, UpsertScheduledMessageData, UpsertScheduledMessageError, UpsertScheduledMessageErrors, UpsertScheduledMessageResponse, UpsertScheduledMessageResponses, UpsertScheduledRequest, UpsertScheduledResponse, UserProvider, Value, VisibleCalendar } from './types.gen';+export type { AccessLevel, AddDraftAttachmentData, AddDraftAttachmentError, AddDraftAttachmentErrors, AddDraftAttachmentRequest, AddDraftAttachmentResponse, AddDraftAttachmentResponse2, AddDraftAttachmentResponses, AddForwardedAttachmentData, AddForwardedAttachmentError, AddForwardedAttachmentErrors, AddForwardedAttachmentRequest, AddForwardedAttachmentResponse, AddForwardedAttachmentResponse2, AddForwardedAttachmentResponses, AddRemoveLabelData, AddRemoveLabelError, AddRemoveLabelErrors, AddRemoveLabelResponse, AddRemoveLabelResponses, AddRemoveThreadLabelData, AddRemoveThreadLabelError, AddRemoveThreadLabelErrors, AddRemoveThreadLabelResponse, AddRemoveThreadLabelResponses, ApiAttachment, ApiAttachmentDraft, ApiAttachmentForwarded, ApiContact, ApiContactInfo, ApiDraftContactInfo, ApiDraftInput, ApiDraftOutput, ApiEmailFilter, ApiLabel, ApiLabelListVisibility, ApiLabelType, ApiMessage, ApiMessageAttachment, ApiMessageLabel, ApiMessageListVisibility, ApiPaginatedThreadCursor, ApiSortMethod, ApiThread, ApiThreadPreviewCursor, ApiThreadPreviewCursorInner, ArchiveThreadData, ArchiveThreadError, ArchiveThreadErrors, ArchiveThreadRequest, ArchiveThreadResponse, ArchiveThreadResponses, Attachment, AttachmentDraft, AttachmentForwarded, BackfillJob, BackfillJobStatus, BackfillStatus, BlockSenderData, BlockSenderError, BlockSenderErrors, BlockSenderRequest, BlockSenderResponses, CancelBackfillGmailData, CancelBackfillGmailError, CancelBackfillGmailErrors, CancelBackfillGmailResponse, CancelBackfillGmailResponses, CancelBackfillParams, ClientOptions, Contact, ContactInfo, ContactInfoLegacy, ContactInfoWithInteraction, CreateDraftData, CreateDraftError, CreateDraftErrors, CreateDraftRequest, CreateDraftResponse, CreateDraftResponse2, CreateDraftResponses, CreateLabelData, CreateLabelError, CreateLabelErrors, CreateLabelRequest, CreateLabelResponse, CreateLabelResponse2, CreateLabelResponses, DeleteDraftData, DeleteDraftError, DeleteDraftErrors, DeleteDraftResponse, DeleteDraftResponses, DeleteEmailFilterData, DeleteEmailFilterError, DeleteEmailFilterErrors, DeleteEmailFilterResponse, DeleteEmailFilterResponses, DeleteLabelData, DeleteLabelError, DeleteLabelErrors, DeleteLabelResponse, DeleteLabelResponses, DeleteLinkData, DeleteLinkError, DeleteLinkErrors, DeleteLinkResponse, DeleteLinkResponses, DeleteScheduledDraftData, DeleteScheduledDraftError, DeleteScheduledDraftErrors, DeleteScheduledDraftResponse, DeleteScheduledDraftResponses, DisableLinkCalendarData, DisableLinkCalendarError, DisableLinkCalendarErrors, DisableLinkCalendarResponse, DisableLinkCalendarResponses, DisableSyncData, DisableSyncError, DisableSyncErrors, DisableSyncResponse, DisableSyncResponses, EmptyResponse, ErrorResponse, GetActiveBackfillJobResponse, GetAttachmentData, GetAttachmentDocumentIdData, GetAttachmentDocumentIdError, GetAttachmentDocumentIdErrors, GetAttachmentDocumentIdResponse, GetAttachmentDocumentIdResponse2, GetAttachmentDocumentIdResponses, GetAttachmentError, GetAttachmentErrors, GetAttachmentResponse, GetAttachmentResponse2, GetAttachmentResponses, GetBackfillGmailActiveData, GetBackfillGmailActiveError, GetBackfillGmailActiveErrors, GetBackfillGmailActiveResponse, GetBackfillGmailActiveResponses, GetBackfillGmailData, GetBackfillGmailError, GetBackfillGmailErrors, GetBackfillGmailResponse, GetBackfillGmailResponses, GetBackfillJobResponse, GetMessageData, GetMessageError, GetMessageErrors, GetMessageResponse, GetMessageResponses, GetMessagesBatchData, GetMessagesBatchError, GetMessagesBatchErrors, GetMessagesBatchResponse, GetMessagesBatchResponses, GetPreviewsCursorParams, GetScheduledMessagesData, GetScheduledMessagesError, GetScheduledMessagesErrors, GetScheduledMessagesResponse, GetScheduledMessagesResponses, GetScheduledResponse, GetThreadData, GetThreadError, GetThreadErrors, GetThreadMessagesHandlerData, GetThreadMessagesHandlerError, GetThreadMessagesHandlerErrors, GetThreadMessagesHandlerResponse, GetThreadMessagesHandlerResponses, GetThreadResponse, GetThreadResponse2, GetThreadResponses, HealthCheckLinksData, HealthCheckLinksError, HealthCheckLinksErrors, HealthCheckLinksResponse, HealthCheckLinksResponses, HealthHandlerData, HealthHandlerResponse, HealthHandlerResponses, InitErrorCodeResponse, InitResponse, InitUserData, InitUserError, InitUserErrors, InitUserResponse, InitUserResponses, Label, LabelInfo, LabelListVisibility, LabelType, Link, ListBackfillGmailData, ListBackfillGmailError, ListBackfillGmailErrors, ListBackfillGmailResponse, ListBackfillGmailResponses, ListBackfillJobsResponse, ListBlockedResponse, ListBlockedSendersData, ListBlockedSendersError, ListBlockedSendersErrors, ListBlockedSendersResponse, ListBlockedSendersResponses, ListContactsData, ListContactsError, ListContactsErrors, ListContactsResponse, ListContactsResponse2, ListContactsResponses, ListEmailFiltersData, ListEmailFiltersError, ListEmailFiltersErrors, ListEmailFiltersResponse, ListEmailFiltersResponse2, ListEmailFiltersResponses, ListLabelsData, ListLabelsError, ListLabelsErrors, ListLabelsResponse, ListLabelsResponse2, ListLabelsResponses, ListLinksData, ListLinksError, ListLinksErrors, ListLinksResponse, ListLinksResponse2, ListLinksResponses, Message, MessageListVisibility, ParsedMessage, PatchSettingsData, PatchSettingsError, PatchSettingsErrors, PatchSettingsRequest, PatchSettingsResponse, PatchSettingsResponse2, PatchSettingsResponses, PreviewsInboxCursorData, PreviewsInboxCursorError, PreviewsInboxCursorErrors, PreviewsInboxCursorResponse, PreviewsInboxCursorResponses, PreviewView, PreviewViewStandardLabel, RefreshEmailEvent, RemoveDraftAttachmentData, RemoveDraftAttachmentError, RemoveDraftAttachmentErrors, RemoveDraftAttachmentResponse, RemoveDraftAttachmentResponses, RemoveForwardedAttachmentData, RemoveForwardedAttachmentError, RemoveForwardedAttachmentErrors, RemoveForwardedAttachmentResponse, RemoveForwardedAttachmentResponses, ResyncLinkData, ResyncLinkError, ResyncLinkErrors, ResyncLinkResponse, ResyncLinkResponses, ResyncResponse, SendMessageData, SendMessageError, SendMessageErrors, SendMessageRequest, SendMessageResponse, SendMessageResponse2, SendMessageResponses, Settings, SharedInboxConflictResponse, SyncStatus, Thread, ThreadList, ThreadPreviewCursor, ThreadSeenData, ThreadSeenError, ThreadSeenErrors, ThreadSeenResponse, ThreadSeenResponses, ThreadSummary, UnblockSenderData, UnblockSenderError, UnblockSenderErrors, UnblockSenderRequest, UnblockSenderResponse, UnblockSenderResponses, UnresolvedSignatureImagesError, UpdateLabelBatchRequest, UpdateLabelBatchResponse, UpdateThreadLabelRequest, UpdateThreadLabelsResponse, UpdateThreadProjectData, UpdateThreadProjectError, UpdateThreadProjectErrors, UpdateThreadProjectRequest, UpdateThreadProjectResponse, UpdateThreadProjectResponse2, UpdateThreadProjectResponses, UpsertEmailFilterData, UpsertEmailFilterError, UpsertEmailFilterErrors, UpsertEmailFilterRequest, UpsertEmailFilterResponse, UpsertEmailFilterResponse2, UpsertEmailFilterResponses, UpsertScheduledMessageData, UpsertScheduledMessageError, UpsertScheduledMessageErrors, UpsertScheduledMessageResponse, UpsertScheduledMessageResponses, UpsertScheduledRequest, UpsertScheduledResponse, UserProvider, Value } from './types.gen';diff --git a/packages/sdk/generated/email/sdk.gen.ts b/packages/sdk/generated/email/sdk.gen.tsindex 292f66b65b..6e47751696 100644--- a/packages/sdk/generated/email/sdk.gen.ts+++ b/packages/sdk/generated/email/sdk.gen.ts@@ -2,7 +2,7 @@import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client';import { client } from './client.gen';-import type { AddDraftAttachmentData, AddDraftAttachmentErrors, AddDraftAttachmentResponses, AddForwardedAttachmentData, AddForwardedAttachmentErrors, AddForwardedAttachmentResponses, AddRemoveLabelData, AddRemoveLabelErrors, AddRemoveLabelResponses, AddRemoveThreadLabelData, AddRemoveThreadLabelErrors, AddRemoveThreadLabelResponses, ArchiveThreadData, ArchiveThreadErrors, ArchiveThreadResponses, BlockSenderData, BlockSenderErrors, BlockSenderResponses, CancelBackfillGmailData, CancelBackfillGmailErrors, CancelBackfillGmailResponses, CreateCalendarEventData, CreateCalendarEventErrors, CreateCalendarEventResponses, CreateDraftData, CreateDraftErrors, CreateDraftResponses, CreateLabelData, CreateLabelErrors, CreateLabelResponses, DeleteCalendarEventData, DeleteCalendarEventErrors, DeleteCalendarEventResponses, DeleteDraftData, DeleteDraftErrors, DeleteDraftResponses, DeleteEmailFilterData, DeleteEmailFilterErrors, DeleteEmailFilterResponses, DeleteLabelData, DeleteLabelErrors, DeleteLabelResponses, DeleteLinkData, DeleteLinkErrors, DeleteLinkResponses, DeleteScheduledDraftData, DeleteScheduledDraftErrors, DeleteScheduledDraftResponses, DisableLinkCalendarData, DisableLinkCalendarErrors, DisableLinkCalendarResponses, DisableSyncData, DisableSyncErrors, DisableSyncResponses, GetAttachmentData, GetAttachmentDocumentIdData, GetAttachmentDocumentIdErrors, GetAttachmentDocumentIdResponses, GetAttachmentErrors, GetAttachmentResponses, GetBackfillGmailActiveData, GetBackfillGmailActiveErrors, GetBackfillGmailActiveResponses, GetBackfillGmailData, GetBackfillGmailErrors, GetBackfillGmailResponses, GetMessageData, GetMessageErrors, GetMessageResponses, GetMessagesBatchData, GetMessagesBatchErrors, GetMessagesBatchResponses, GetScheduledMessagesData, GetScheduledMessagesErrors, GetScheduledMessagesResponses, GetThreadData, GetThreadErrors, GetThreadMessagesHandlerData, GetThreadMessagesHandlerErrors, GetThreadMessagesHandlerResponses, GetThreadResponses, HealthCheckLinksData, HealthCheckLinksErrors, HealthCheckLinksResponses, HealthHandlerData, HealthHandlerResponses, InitUserData, InitUserErrors, InitUserResponses, ListBackfillGmailData, ListBackfillGmailErrors, ListBackfillGmailResponses, ListBlockedSendersData, ListBlockedSendersErrors, ListBlockedSendersResponses, ListCalendarsData, ListCalendarsErrors, ListCalendarsResponses, ListContactsData, ListContactsErrors, ListContactsResponses, ListEmailFiltersData, ListEmailFiltersErrors, ListEmailFiltersResponses, ListLabelsData, ListLabelsErrors, ListLabelsResponses, ListLinksData, ListLinksErrors, ListLinksResponses, PatchSettingsData, PatchSettingsErrors, PatchSettingsResponses, PreviewsInboxCursorData, PreviewsInboxCursorErrors, PreviewsInboxCursorResponses, RemoveDraftAttachmentData, RemoveDraftAttachmentErrors, RemoveDraftAttachmentResponses, RemoveForwardedAttachmentData, RemoveForwardedAttachmentErrors, RemoveForwardedAttachmentResponses, ResyncLinkData, ResyncLinkErrors, ResyncLinkResponses, RsvpCalendarEventData, RsvpCalendarEventErrors, RsvpCalendarEventResponses, SendMessageData, SendMessageErrors, SendMessageResponses, ThreadSeenData, ThreadSeenErrors, ThreadSeenResponses, UnblockSenderData, UnblockSenderErrors, UnblockSenderResponses, UpdateCalendarEventData, UpdateCalendarEventErrors, UpdateCalendarEventResponses, UpdateThreadProjectData, UpdateThreadProjectErrors, UpdateThreadProjectResponses, UpsertEmailFilterData, UpsertEmailFilterErrors, UpsertEmailFilterResponses, UpsertScheduledMessageData, UpsertScheduledMessageErrors, UpsertScheduledMessageResponses } from './types.gen';+import type { AddDraftAttachmentData, AddDraftAttachmentErrors, AddDraftAttachmentResponses, AddForwardedAttachmentData, AddForwardedAttachmentErrors, AddForwardedAttachmentResponses, AddRemoveLabelData, AddRemoveLabelErrors, AddRemoveLabelResponses, AddRemoveThreadLabelData, AddRemoveThreadLabelErrors, AddRemoveThreadLabelResponses, ArchiveThreadData, ArchiveThreadErrors, ArchiveThreadResponses, BlockSenderData, BlockSenderErrors, BlockSenderResponses, CancelBackfillGmailData, CancelBackfillGmailErrors, CancelBackfillGmailResponses, CreateDraftData, CreateDraftErrors, CreateDraftResponses, CreateLabelData, CreateLabelErrors, CreateLabelResponses, DeleteDraftData, DeleteDraftErrors, DeleteDraftResponses, DeleteEmailFilterData, DeleteEmailFilterErrors, DeleteEmailFilterResponses, DeleteLabelData, DeleteLabelErrors, DeleteLabelResponses, DeleteLinkData, DeleteLinkErrors, DeleteLinkResponses, DeleteScheduledDraftData, DeleteScheduledDraftErrors, DeleteScheduledDraftResponses, DisableLinkCalendarData, DisableLinkCalendarErrors, DisableLinkCalendarResponses, DisableSyncData, DisableSyncErrors, DisableSyncResponses, GetAttachmentData, GetAttachmentDocumentIdData, GetAttachmentDocumentIdErrors, GetAttachmentDocumentIdResponses, GetAttachmentErrors, GetAttachmentResponses, GetBackfillGmailActiveData, GetBackfillGmailActiveErrors, GetBackfillGmailActiveResponses, GetBackfillGmailData, GetBackfillGmailErrors, GetBackfillGmailResponses, GetMessageData, GetMessageErrors, GetMessageResponses, GetMessagesBatchData, GetMessagesBatchErrors, GetMessagesBatchResponses, GetScheduledMessagesData, GetScheduledMessagesErrors, GetScheduledMessagesResponses, GetThreadData, GetThreadErrors, GetThreadMessagesHandlerData, GetThreadMessagesHandlerErrors, GetThreadMessagesHandlerResponses, GetThreadResponses, HealthCheckLinksData, HealthCheckLinksErrors, HealthCheckLinksResponses, HealthHandlerData, HealthHandlerResponses, InitUserData, InitUserErrors, InitUserResponses, ListBackfillGmailData, ListBackfillGmailErrors, ListBackfillGmailResponses, ListBlockedSendersData, ListBlockedSendersErrors, ListBlockedSendersResponses, ListContactsData, ListContactsErrors, ListContactsResponses, ListEmailFiltersData, ListEmailFiltersErrors, ListEmailFiltersResponses, ListLabelsData, ListLabelsErrors, ListLabelsResponses, ListLinksData, ListLinksErrors, ListLinksResponses, PatchSettingsData, PatchSettingsErrors, PatchSettingsResponses, PreviewsInboxCursorData, PreviewsInboxCursorErrors, PreviewsInboxCursorResponses, RemoveDraftAttachmentData, RemoveDraftAttachmentErrors, RemoveDraftAttachmentResponses, RemoveForwardedAttachmentData, RemoveForwardedAttachmentErrors, RemoveForwardedAttachmentResponses, ResyncLinkData, ResyncLinkErrors, ResyncLinkResponses, SendMessageData, SendMessageErrors, SendMessageResponses, ThreadSeenData, ThreadSeenErrors, ThreadSeenResponses, UnblockSenderData, UnblockSenderErrors, UnblockSenderResponses, UpdateThreadProjectData, UpdateThreadProjectErrors, UpdateThreadProjectResponses, UpsertEmailFilterData, UpsertEmailFilterErrors, UpsertEmailFilterResponses, UpsertScheduledMessageData, UpsertScheduledMessageErrors, UpsertScheduledMessageResponses } from './types.gen';export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {/**@@ -57,62 +57,6 @@ export class Sdk extends HeyApiClient {Sdk.__registry.set(this, args?.key);}- /**- * List the requester's visible calendars for pickers and filters.- */- public listCalendars<ThrowOnError extends boolean = false>(options?: Options<ListCalendarsData, ThrowOnError>): RequestResult<ListCalendarsResponses, ListCalendarsErrors, ThrowOnError> {- return (options?.client ?? this.client).get<ListCalendarsResponses, ListCalendarsErrors, ThrowOnError>({ url: '/calendar/calendars', ...options });- }-- /**- * Create a calendar event and return its synced entity.- */- public createCalendarEvent<ThrowOnError extends boolean = false>(options: Options<CreateCalendarEventData, ThrowOnError>): RequestResult<CreateCalendarEventResponses, CreateCalendarEventErrors, ThrowOnError> {- return (options.client ?? this.client).post<CreateCalendarEventResponses, CreateCalendarEventErrors, ThrowOnError>({- url: '/calendar/events',- ...options,- headers: {- 'Content-Type': 'application/json',- ...options.headers- }- });- }-- /**- * Delete a calendar event at its provider.- */- public deleteCalendarEvent<ThrowOnError extends boolean = false>(options: Options<DeleteCalendarEventData, ThrowOnError>): RequestResult<DeleteCalendarEventResponses, DeleteCalendarEventErrors, ThrowOnError> {- return (options.client ?? this.client).delete<DeleteCalendarEventResponses, DeleteCalendarEventErrors, ThrowOnError>({ url: '/calendar/events/{event_id}', ...options });- }-- /**- * Update fields of a calendar event and return its synced entity.- */- public updateCalendarEvent<ThrowOnError extends boolean = false>(options: Options<UpdateCalendarEventData, ThrowOnError>): RequestResult<UpdateCalendarEventResponses, UpdateCalendarEventErrors, ThrowOnError> {- return (options.client ?? this.client).patch<UpdateCalendarEventResponses, UpdateCalendarEventErrors, ThrowOnError>({- url: '/calendar/events/{event_id}',- ...options,- headers: {- 'Content-Type': 'application/json',- ...options.headers- }- });- }-- /**- * Set the requester's RSVP on a calendar event and return its synced entity.- */- public rsvpCalendarEvent<ThrowOnError extends boolean = false>(options: Options<RsvpCalendarEventData, ThrowOnError>): RequestResult<RsvpCalendarEventResponses, RsvpCalendarEventErrors, ThrowOnError> {- return (options.client ?? this.client).put<RsvpCalendarEventResponses, RsvpCalendarEventErrors, ThrowOnError>({- url: '/calendar/events/{event_id}/rsvp',- ...options,- headers: {- 'Content-Type': 'application/json',- ...options.headers- }- });- }-/*** Get an attachment by ID.*/diff --git a/packages/sdk/generated/email/types.gen.ts b/packages/sdk/generated/email/types.gen.tsindex c88c46dcc2..f119c65cd2 100644--- a/packages/sdk/generated/email/types.gen.ts+++ b/packages/sdk/generated/email/types.gen.ts@@ -500,11 +500,6 @@ export type AttachmentForwarded = {size_bytes?: number | null;};-/**- * RSVP state for an attendee.- */-export type AttendeeResponseStatus = 'needs_action' | 'accepted' | 'declined' | 'tentative';-export type BackfillJob = {created_at: string;fusionauth_user_id: string;@@ -534,301 +529,10 @@ export type BlockSenderRequest = {email_address: string;};-/**- * An attendee on a calendar event.- */-export type CalendarAttendee = {- /**- * Optional attendee comment.- */- comment?: string | null;- /**- * Provider display name.- */- displayName?: string | null;- /**- * Normalized email address.- */- email: string;- /**- * Whether attendance is optional.- */- isOptional: boolean;- /**- * Whether this attendee is the organizer.- */- isOrganizer: boolean;- /**- * Whether this attendee is one of the viewing requester's inboxes.- */- isSelf: boolean;- /**- * RSVP state.- */- responseStatus: AttendeeResponseStatus;-};--/**- * An attendee supplied to a calendar mutation.- */-export type CalendarAttendeeInputBody = {- /**- * Attendee email address.- */- email: string;- /**- * Whether attendance is optional.- */- isOptional?: boolean;-};--/**- * How much of a recurring series a deletion removes.- */-export type CalendarDeletionScopeParam = 'all' | 'this_event' | 'this_and_following';--/**- * A stable, first-class Macro calendar event entity.- *- * Content fields hold the canonical source's values: the account's primary- * calendar copy when one is synced, else the freshest remaining copy.- */-export type CalendarEvent = {- /**- * Attendees, keyed by email during persistence.- */- attendees: Array<CalendarAttendee>;- /**- * Calendar the canonical source belongs to, when known. Absent only in- * projections stored before calendars were attributed.- */- calendarId?: string | null;- conferenceProvider?: null | ConferenceProvider;- /**- * Direct join URL when known.- */- conferenceUrl?: string | null;- /**- * Entity creation time.- */- createdAt: string;- /**- * Provider-reported creator email. Distinct from the organizer when- * someone writes onto a calendar they do not own. Omitted from stored- * projections when unknown so events ingested before this field still- * compare equal.- */- creatorEmail?: string | null;- /**- * Provider-reported creator display name.- */- creatorName?: string | null;- /**- * Optional event body.- */- description?: string | null;- /**- * Provider event type. Skipped when it is the regular type so- * projections stored before event types were modeled still compare- * equal.- */- eventType?: EventType;- /**- * RFC 5545 UID used to reconcile provider and email sources.- */- icalUid: string;- /**- * Macro entity identifier.- */- id: string;- /**- * Whether the canonical source's calendar prohibits editing it.- */- isReadOnly: boolean;- /**- * Optional physical or virtual location label.- */- location?: string | null;- /**- * Organizer email.- */- organizerEmail?: string | null;- /**- * Organizer display name.- */- organizerName?: string | null;- /**- * Macro user who owns this event entity.- */- ownerId: string;- /**- * Raw RFC 5545 recurrence properties (`RRULE`, `RDATE`, `EXDATE`).- */- recurrenceLines: Array<string>;- /**- * Per-user reminder configuration. Skipped when it is the provider- * default so projections stored before reminders were modeled still- * compare equal.- */- reminders?: EventReminders;- /**- * Provider/iCalendar sequence number.- */- sequence: number;- /**- * Content of every active copy of this event, canonical first: the- * primary calendar's copy, then the freshest. A client picks the copy- * whose calendar it is showing and falls back to the first. Populated- * only on the read path, so stored projections omit it.- */- sources?: Array<CalendarEventSourceContent>;- /**- * Event status.- */- status: EventStatus;- /**- * Timed or all-day shape.- */- time: EventTime;- /**- * Display title.- */- title: string;- /**- * Availability behavior.- */- transparency: EventTransparency;- /**- * Entity update time.- */- updatedAt: string;- /**- * Event visibility.- */- visibility: EventVisibility;-};--/**- * The content one provider copy of an event carries.- *- * Google keeps these fields per calendar copy: a shared calendar's copy of a- * member's event can have its own title, type, reminders, and access role.- * The entity holds its canonical source's values. Every other copy's values- * are read from here so a client can show the copy that belongs to the- * calendar being viewed.- */-export type CalendarEventSourceContent = {- /**- * Calendar this copy lives on.- */- calendarId: string;- /**- * Provider-reported creator email.- */- creatorEmail?: string | null;- /**- * Provider-reported creator display name.- */- creatorName?: string | null;- /**- * Optional event body.- */- description?: string | null;- /**- * Provider event type.- */- eventType: EventType;- /**- * Whether the calendar's access role prohibits editing this copy.- */- isReadOnly: boolean;- /**- * Optional physical or virtual location label.- */- location?: string | null;- /**- * Reminder configuration of this copy.- */- reminders: EventReminders;- /**- * Display title.- */- title: string;- /**- * Availability behavior.- */- transparency: EventTransparency;- /**- * Event visibility.- */- visibility: EventVisibility;-};--/**- * HTTP error body returned by calendar mutation endpoints.- */-export type CalendarMutationApiError = {- /**- * Machine-readable failure category.- */- code: CalendarMutationErrorCode;- /**- * Human-readable failure description.- */- message: string;-};--/**- * Machine-readable failure category for calendar mutations.- */-export type CalendarMutationErrorCode = 'not_found' | 'occurrence_not_found' | 'read_only' | 'no_writable_calendar' | 'not_attendee' | 'invalid_input' | 'reauth_required' | 'provider_rejected' | 'retryable' | 'persist_failed';--/**- * How much of a recurring series an RSVP applies to.- *- * Unlike deletion there is no this-and-following variant: the provider- * cannot express a forward-scoped response, so offering one would be a- * promise sync could not keep.- */-export type CalendarRsvpScopeParam = 'all' | 'this_event';--/**- * How much of a recurring series an update applies to.- *- * Like RSVPs there is no this-and-following variant: the provider cannot- * express a forward-scoped edit as one write, and emulating it (truncate- * the series, insert an edited clone) is non-atomic and re-invites the- * attendees of the clone. Compose it from a this-and-following deletion- * and a create when that shape is wanted.- */-export type CalendarUpdateScopeParam = 'all' | 'this_event';-export type CancelBackfillParams = {job_id: string;};-/**- * A requested change to an event's conferencing. Omitting the field leaves- * the existing conference untouched; only these values change it.- */-export type ConferenceChange = 'google_meet' | 'none';--/**- * The conferencing system backing an event's join URL.- *- * Macro generates only Google Meet conferences, so this distinguishes one it- * created from a third party's — Zoom and friends arriving as `addOn`- * conference data, or a legacy classic Hangout. Clients use it to label the- * conference and to tell whether the Meet toggle reflects a Macro-managed- * conference.- *- * It does not gate mutation. An explicit request replaces or detaches any- * conference, third-party included, exactly as deleting the event would;- * what protects a conference is that omitting the field leaves it untouched,- * so an unrelated edit never disturbs it.- */-export type ConferenceProvider = 'google_meet' | 'other';-export type Contact = {email_address?: string | null;id: string;@@ -855,51 +559,6 @@ export type ContactInfoWithInteraction = ContactInfoLegacy & {last_interaction: string;};-/**- * Request body creating a calendar event on the requester's calendar.- */-export type CreateCalendarEventRequest = {- /**- * Invited attendees.- */- attendees?: Array<CalendarAttendeeInputBody>;- /**- * Exact calendar to create the event on; takes precedence over the- * inbox default.- */- calendarId?: string | null;- conference?: null | ConferenceChange;- /**- * Optional event body.- */- description?: string | null;- /**- * Connected inbox whose primary calendar receives the event; defaults- * to the requester's primary inbox.- */- emailLinkId?: string | null;- /**- * Optional location label.- */- location?: string | null;- outOfOffice?: null | OutOfOfficeProperties;- /**- * Raw RFC 5545 recurrence properties (`RRULE`, `RDATE`, `EXDATE`).- */- recurrenceLines?: Array<string>;- reminders?: null | EventReminders;- /**- * Timed or all-day shape.- */- time: EventTime;- /**- * Display title.- */- title: string;- transparency?: null | EventTransparency;- visibility?: null | EventVisibility;-};-/*** Request body for creating a draft.*/@@ -956,93 +615,6 @@ export type ErrorResponse = {message: string;};-/**- * One reminder: how it alerts and how many minutes before the event start- * (before midnight in the calendar's zone for all-day events) it fires.- */-export type EventReminderOverride = {- /**- * Provider method, stored verbatim; only `popup` fires Macro- * notifications.- */- method: string;- /**- * Minutes before the event start.- */- minutes: number;-};--/**- * Per-user reminder configuration for an event, mirroring Google's model:- * either the calendar's default reminders apply, or the explicit overrides- * replace them entirely.- */-export type EventReminders = {- /**- * Explicit reminders replacing the defaults when `use_default` is off.- */- overrides?: Array<EventReminderOverride>;- /**- * Whether the calendar's default reminders apply.- */- useDefault: boolean;-};--/**- * Canonical event status.- */-export type EventStatus = 'confirmed' | 'tentative' | 'cancelled';--/**- * The mutually exclusive time shape of a calendar event.- *- * Fields are renamed per variant rather than with `rename_all_fields`- * because utoipa only honors variant-level serde renames when it- * derives the OpenAPI schema.- */-export type EventTime = {- /**- * Exclusive end instant.- */- endsAt: string;- kind: 'timed';- /**- * Inclusive start instant.- */- startsAt: string;- /**- * Original IANA time-zone identifier, when supplied.- */- timeZone?: string | null;-} | {- /**- * Exclusive local end date.- */- endDate: string;- kind: 'allDay';- /**- * Inclusive local start date.- */- startDate: string;-};--/**- * Whether an event blocks availability.- */-export type EventTransparency = 'opaque' | 'transparent';--/**- * Google's event type: ordinary meetings versus the status-style entries- * (working location, out of office, focus time, birthdays) Google renders- * and notifies differently. Immutable at the provider after creation.- */-export type EventType = 'default' | 'out_of_office' | 'focus_time' | 'working_location' | 'birthday' | 'from_gmail';--/**- * Visibility of event details.- */-export type EventVisibility = 'default' | 'public' | 'private' | 'confidential';-/*** The response returned from the get backfill job endpoint*/@@ -1206,16 +778,6 @@ export type ListBlockedResponse = {blocked_emails: Array<string>;};-/**- * Calendars visible to the requester across connected and delegated inboxes.- */-export type ListCalendarsResponse = {- /**- * Primaries and writable calendars first.- */- calendars: Array<VisibleCalendar>;-};-export type ListContactsResponse = {/*** the thread, with messages inside@@ -1297,28 +859,6 @@ export type Message = {export type MessageListVisibility = 'Show' | 'Hide';-/**- * How an out-of-office event responds to conflicting invitations, mirroring- * Google's `autoDeclineMode`.- */-export type OutOfOfficeAutoDeclineMode = 'decline_none' | 'decline_all_conflicting_invitations' | 'decline_only_new_conflicting_invitations';--/**- * The extra properties Google requires on an out-of-office event, mirroring- * its `outOfOfficeProperties` block. Their presence on a draft or patch is- * what marks the mutation as out-of-office.- */-export type OutOfOfficeProperties = {- /**- * How conflicting invitations are handled while the user is out.- */- autoDeclineMode?: OutOfOfficeAutoDeclineMode;- /**- * Message returned to organizers whose invitations are auto-declined.- */- declineMessage?: string | null;-};-export type ParsedMessage = {bcc: Array<ContactInfo>;body_parsed?: string | null;@@ -1348,17 +888,6 @@ export type PreviewView = 'inbox' | 'sent' | 'drafts' | 'starred' | 'all' | 'impexport type PreviewViewStandardLabel = 'inbox' | 'sent' | 'drafts' | 'starred' | 'all' | 'important' | 'other';-/**- * A sync run committed changes for `link_id`; viewers should refetch.- */-export type RefreshCalendarEvent = {- event: 'synced';- /**- * Connected inbox whose calendars changed.- */- link_id: string;-};-/*** Payload for the `refresh_email` connection gateway event: identifies the* inbox that changed and the kind of change.@@ -1405,26 +934,6 @@ export type ResyncResponse = {backfill_job_id: string;};-/**- * Request body setting the requester's RSVP on an event.- */-export type RsvpCalendarEventRequest = {- /**- * 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 | null;- /**- * Original-start key of the occurrence the response targets.- */- recurrenceId?: string | null;- /**- * The response to record for the connected account.- */- response: AttendeeResponseStatus;- scope?: null | CalendarRsvpScopeParam;-};-/*** Request body for sending a message (backward-compatible with `{ message: MessageToSend }`).*/@@ -1546,48 +1055,6 @@ export type UnresolvedSignatureImagesError = {unresolved_image_count: number;};-/**- * Request body patching an event; omitted fields are left untouched.- */-export type UpdateCalendarEventRequest = {- /**- * Replacement attendee list.- */- attendees?: Array<CalendarAttendeeInputBody> | null;- /**- * 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 | null;- conference?: null | ConferenceChange;- /**- * Replacement description; an empty string clears it.- */- description?: string | null;- /**- * Replacement location; an empty string clears it.- */- location?: string | null;- outOfOffice?: null | OutOfOfficeProperties;- /**- * Original-start key of the occurrence the update targets.- */- recurrenceId?: string | null;- /**- * Replacement recurrence properties; an empty list clears them.- */- recurrenceLines?: Array<string> | null;- reminders?: null | EventReminders;- scope?: null | CalendarUpdateScopeParam;- time?: null | EventTime;- /**- * Replacement title; an empty string clears it.- */- title?: string | null;- transparency?: null | EventTransparency;- visibility?: null | EventVisibility;-};-export type UpdateLabelBatchRequest = {label_id: string;message_ids: Array<string>;@@ -1677,281 +1144,6 @@ export type UserProvider = 'GMAIL';export type Value = unknown;-/**- * A calendar visible to a requester, listed for pickers and filters.- */-export type VisibleCalendar = {- /**- * Provider color.- */- color?: string | null;- /**- * Default reminders applied to events that keep `useDefault`.- */- defaultReminders: Array<EventReminderOverride>;- /**- * Connected inbox address, for grouping in multi-inbox pickers.- */- emailAddress: string;- /**- * Connected inbox that syncs this calendar.- */- emailLinkId: string;- /**- * Persisted Macro calendar identifier.- */- id: string;- /**- * Whether this is its account's primary calendar.- */- isPrimary: boolean;- /**- * Whether this is one of Google's shared system calendars (holidays,- * birthdays) the account subscribes to rather than one a person maintains.- */- isSubscription: boolean;- /**- * Whether the grant can create and modify events on this calendar.- */- isWritable: boolean;- /**- * Provider display name.- */- name: string;- /**- * A persistent sync failure isolated to this calendar, surfaced so the- * settings row can badge it. `None` while the calendar is syncing- * normally or a failure has not yet crossed the persistence threshold.- */- syncError?: string | null;-};--export type ListCalendarsData = {- body?: never;- path?: never;- query?: never;- url: '/calendar/calendars';-};--export type ListCalendarsErrors = {- /**- * Authentication required- */- 401: unknown;- /**- * Transient failure- */- 503: CalendarMutationApiError;-};--export type ListCalendarsError = ListCalendarsErrors[keyof ListCalendarsErrors];--export type ListCalendarsResponses = {- /**- * Calendars visible to the requester- */- 200: ListCalendarsResponse;-};--export type ListCalendarsResponse2 = ListCalendarsResponses[keyof ListCalendarsResponses];--export type CreateCalendarEventData = {- body: CreateCalendarEventRequest;- path?: never;- query?: never;- url: '/calendar/events';-};--export type CreateCalendarEventErrors = {- /**- * Invalid event fields- */- 400: CalendarMutationApiError;- /**- * Authentication required- */- 401: unknown;- /**- * Calendar is read-only or needs reauthorization- */- 403: CalendarMutationApiError;- /**- * No writable calendar or the provider rejected the event- */- 409: CalendarMutationApiError;- /**- * Transient provider failure- */- 503: CalendarMutationApiError;-};--export type CreateCalendarEventError = CreateCalendarEventErrors[keyof CreateCalendarEventErrors];--export type CreateCalendarEventResponses = {- /**- * The created calendar event- */- 201: CalendarEvent;-};--export type CreateCalendarEventResponse = CreateCalendarEventResponses[keyof CreateCalendarEventResponses];--export type DeleteCalendarEventData = {- body?: never;- path: {- /**- * Calendar event entity id- */- event_id: string;- };- query?: {- /**- * 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;- /**- * Deletion scope; defaults to the entire event or series.- */- scope?: CalendarDeletionScopeParam;- /**- * Original-start key of the occurrence a scoped deletion targets.- */- recurrenceId?: string;- };- url: '/calendar/events/{event_id}';-};--export type DeleteCalendarEventErrors = {- /**- * Authentication required- */- 401: unknown;- /**- * Calendar is read-only or needs reauthorization- */- 403: CalendarMutationApiError;- /**- * Event not found- */- 404: CalendarMutationApiError;- /**- * The provider rejected the deletion- */- 409: CalendarMutationApiError;- /**- * Transient provider failure- */- 503: CalendarMutationApiError;-};--export type DeleteCalendarEventError = DeleteCalendarEventErrors[keyof DeleteCalendarEventErrors];--export type DeleteCalendarEventResponses = {- /**- * The event was deleted- */- 204: void;-};--export type DeleteCalendarEventResponse = DeleteCalendarEventResponses[keyof DeleteCalendarEventResponses];--export type UpdateCalendarEventData = {- body: UpdateCalendarEventRequest;- path: {- /**- * Calendar event entity id- */- event_id: string;- };- query?: never;- url: '/calendar/events/{event_id}';-};--export type UpdateCalendarEventErrors = {- /**- * Invalid event fields- */- 400: CalendarMutationApiError;- /**- * Authentication required- */- 401: unknown;- /**- * Calendar is read-only or needs reauthorization- */- 403: CalendarMutationApiError;- /**- * Event or targeted occurrence not found- */- 404: CalendarMutationApiError;- /**- * The provider rejected the update- */- 409: CalendarMutationApiError;- /**- * Transient provider failure- */- 503: CalendarMutationApiError;-};--export type UpdateCalendarEventError = UpdateCalendarEventErrors[keyof UpdateCalendarEventErrors];--export type UpdateCalendarEventResponses = {- /**- * The updated calendar event- */- 200: CalendarEvent;-};--export type UpdateCalendarEventResponse = UpdateCalendarEventResponses[keyof UpdateCalendarEventResponses];--export type RsvpCalendarEventData = {- body: RsvpCalendarEventRequest;- path: {- /**- * Calendar event entity id- */- event_id: string;- };- query?: never;- url: '/calendar/events/{event_id}/rsvp';-};--export type RsvpCalendarEventErrors = {- /**- * Authentication required- */- 401: unknown;- /**- * Calendar is read-only or needs reauthorization- */- 403: CalendarMutationApiError;- /**- * Event not found- */- 404: CalendarMutationApiError;- /**- * The connected account is not an attendee- */- 409: CalendarMutationApiError;- /**- * Transient provider failure- */- 503: CalendarMutationApiError;-};--export type RsvpCalendarEventError = RsvpCalendarEventErrors[keyof RsvpCalendarEventErrors];--export type RsvpCalendarEventResponses = {- /**- * The updated calendar event- */- 200: CalendarEvent;-};--export type RsvpCalendarEventResponse = RsvpCalendarEventResponses[keyof RsvpCalendarEventResponses];-export type GetAttachmentData = {body?: never;path: {diff --git a/packages/sdk/scripts/sync-specs.ts b/packages/sdk/scripts/sync-specs.tsindex 7dee8e368d..23bfe73c82 100644--- a/packages/sdk/scripts/sync-specs.ts+++ b/packages/sdk/scripts/sync-specs.ts@@ -4,9 +4,9 @@ import { services } from '../services';// Services whose OpenAPI spec is copied from apps/web's service-clients package,// where `apps/web`'s `gen-api` writes each Rust service's spec. `calendar` is not-// among them: it has no service-client in apps/web (the web app reaches calendar-// through the hand-written email client), so its spec is generated here directly-// from the Rust `calendar_service_openapi` binary. See `syncCalendarSpec`.+// among them: its paths need the `/calendar` prefix stripped (see+// `stripCalendarPrefix`), so its spec is generated here directly from the Rust+// `calendar_service_openapi` binary. See `syncCalendarSpec`.const serviceClientDirectories = {'agent-harness': 'service-agent-harness',auth: 'service-auth',diff --git a/packages/sdk/specs/email.json b/packages/sdk/specs/email.jsonindex 7b0c3e4b31..3e604ad14b 100644--- a/packages/sdk/specs/email.json+++ b/packages/sdk/specs/email.json@@ -10,381 +10,6 @@"version": "0.1.0"},"paths": {- "/calendar/calendars": {- "get": {- "tags": ["calendar_events"],- "summary": "List the requester's visible calendars for pickers and filters.",- "operationId": "list_calendars",- "responses": {- "200": {- "description": "Calendars visible to the requester",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/ListCalendarsResponse"- }- }- }- },- "401": {- "description": "Authentication required"- },- "503": {- "description": "Transient failure",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- }- }- }- },- "/calendar/events": {- "post": {- "tags": ["calendar_events"],- "summary": "Create a calendar event and return its synced entity.",- "operationId": "create_calendar_event",- "requestBody": {- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CreateCalendarEventRequest"- }- }- },- "required": true- },- "responses": {- "201": {- "description": "The created calendar event",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarEvent"- }- }- }- },- "400": {- "description": "Invalid event fields",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- },- "401": {- "description": "Authentication required"- },- "403": {- "description": "Calendar is read-only or needs reauthorization",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- },- "409": {- "description": "No writable calendar or the provider rejected the event",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- },- "503": {- "description": "Transient provider failure",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- }- }- }- },- "/calendar/events/{event_id}": {- "delete": {- "tags": ["calendar_events"],- "summary": "Delete a calendar event at its provider.",- "operationId": "delete_calendar_event",- "parameters": [- {- "name": "event_id",- "in": "path",- "description": "Calendar event entity id",- "required": true,- "schema": {- "type": "string",- "format": "uuid"- }- },- {- "name": "calendarId",- "in": "query",- "description": "Calendar whose copy of the event is deleted, for an event synced from\nmore than one calendar. Omit to delete the canonical copy.",- "required": false,- "schema": {- "type": "string",- "format": "uuid"- }- },- {- "name": "scope",- "in": "query",- "description": "Deletion scope; defaults to the entire event or series.",- "required": false,- "schema": {- "$ref": "#/components/schemas/CalendarDeletionScopeParam"- }- },- {- "name": "recurrenceId",- "in": "query",- "description": "Original-start key of the occurrence a scoped deletion targets.",- "required": false,- "schema": {- "type": "string"- }- }- ],- "responses": {- "204": {- "description": "The event was deleted"- },- "401": {- "description": "Authentication required"- },- "403": {- "description": "Calendar is read-only or needs reauthorization",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- },- "404": {- "description": "Event not found",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- },- "409": {- "description": "The provider rejected the deletion",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- },- "503": {- "description": "Transient provider failure",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- }- }- },- "patch": {- "tags": ["calendar_events"],- "summary": "Update fields of a calendar event and return its synced entity.",- "operationId": "update_calendar_event",- "parameters": [- {- "name": "event_id",- "in": "path",- "description": "Calendar event entity id",- "required": true,- "schema": {- "type": "string",- "format": "uuid"- }- }- ],- "requestBody": {- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/UpdateCalendarEventRequest"- }- }- },- "required": true- },- "responses": {- "200": {- "description": "The updated calendar event",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarEvent"- }- }- }- },- "400": {- "description": "Invalid event fields",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- },- "401": {- "description": "Authentication required"- },- "403": {- "description": "Calendar is read-only or needs reauthorization",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- },- "404": {- "description": "Event or targeted occurrence not found",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- },- "409": {- "description": "The provider rejected the update",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- },- "503": {- "description": "Transient provider failure",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- }- }- }- },- "/calendar/events/{event_id}/rsvp": {- "put": {- "tags": ["calendar_events"],- "summary": "Set the requester's RSVP on a calendar event and return its synced entity.",- "operationId": "rsvp_calendar_event",- "parameters": [- {- "name": "event_id",- "in": "path",- "description": "Calendar event entity id",- "required": true,- "schema": {- "type": "string",- "format": "uuid"- }- }- ],- "requestBody": {- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/RsvpCalendarEventRequest"- }- }- },- "required": true- },- "responses": {- "200": {- "description": "The updated calendar event",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarEvent"- }- }- }- },- "401": {- "description": "Authentication required"- },- "403": {- "description": "Calendar is read-only or needs reauthorization",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- },- "404": {- "description": "Event not found",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- },- "409": {- "description": "The connected account is not an attendee",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- },- "503": {- "description": "Transient provider failure",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CalendarMutationApiError"- }- }- }- }- }- }- },"/email/attachments/{id}": {"get": {"tags": ["Attachments"],@@ -4379,11 +4004,6 @@}}},- "AttendeeResponseStatus": {- "type": "string",- "description": "RSVP state for an attendee.",- "enum": ["needs_action", "accepted", "declined", "tentative"]- },"BackfillJob": {"type": "object","required": [@@ -4452,316 +4072,6 @@}}},- "CalendarAttendee": {- "type": "object",- "description": "An attendee on a calendar event.",- "required": [- "email",- "responseStatus",- "isOrganizer",- "isOptional",- "isSelf"- ],- "properties": {- "comment": {- "type": ["string", "null"],- "description": "Optional attendee comment."- },- "displayName": {- "type": ["string", "null"],- "description": "Provider display name."- },- "email": {- "type": "string",- "description": "Normalized email address."- },- "isOptional": {- "type": "boolean",- "description": "Whether attendance is optional."- },- "isOrganizer": {- "type": "boolean",- "description": "Whether this attendee is the organizer."- },- "isSelf": {- "type": "boolean",- "description": "Whether this attendee is one of the viewing requester's inboxes."- },- "responseStatus": {- "$ref": "#/components/schemas/AttendeeResponseStatus",- "description": "RSVP state."- }- }- },- "CalendarAttendeeInputBody": {- "type": "object",- "description": "An attendee supplied to a calendar mutation.",- "required": ["email"],- "properties": {- "email": {- "type": "string",- "description": "Attendee email address."- },- "isOptional": {- "type": "boolean",- "description": "Whether attendance is optional."- }- }- },- "CalendarDeletionScopeParam": {- "type": "string",- "description": "How much of a recurring series a deletion removes.",- "enum": ["all", "this_event", "this_and_following"]- },- "CalendarEvent": {- "type": "object",- "description": "A stable, first-class Macro calendar event entity.\n\nContent fields hold the canonical source's values: the account's primary\ncalendar copy when one is synced, else the freshest remaining copy.",- "required": [- "id",- "ownerId",- "icalUid",- "title",- "status",- "visibility",- "transparency",- "time",- "recurrenceLines",- "sequence",- "isReadOnly",- "attendees",- "createdAt",- "updatedAt"- ],- "properties": {- "attendees": {- "type": "array",- "items": {- "$ref": "#/components/schemas/CalendarAttendee"- },- "description": "Attendees, keyed by email during persistence."- },- "calendarId": {- "type": ["string", "null"],- "format": "uuid",- "description": "Calendar the canonical source belongs to, when known. Absent only in\nprojections stored before calendars were attributed."- },- "conferenceProvider": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/ConferenceProvider",- "description": "Which conferencing system backs `conference_url`. `None` whenever no\nconference is attached."- }- ]- },- "conferenceUrl": {- "type": ["string", "null"],- "description": "Direct join URL when known."- },- "createdAt": {- "type": "string",- "format": "date-time",- "description": "Entity creation time."- },- "creatorEmail": {- "type": ["string", "null"],- "description": "Provider-reported creator email. Distinct from the organizer when\nsomeone writes onto a calendar they do not own. Omitted from stored\nprojections when unknown so events ingested before this field still\ncompare equal."- },- "creatorName": {- "type": ["string", "null"],- "description": "Provider-reported creator display name."- },- "description": {- "type": ["string", "null"],- "description": "Optional event body."- },- "eventType": {- "$ref": "#/components/schemas/EventType",- "description": "Provider event type. Skipped when it is the regular type so\nprojections stored before event types were modeled still compare\nequal."- },- "icalUid": {- "type": "string",- "description": "RFC 5545 UID used to reconcile provider and email sources."- },- "id": {- "type": "string",- "format": "uuid",- "description": "Macro entity identifier."- },- "isReadOnly": {- "type": "boolean",- "description": "Whether the canonical source's calendar prohibits editing it."- },- "location": {- "type": ["string", "null"],- "description": "Optional physical or virtual location label."- },- "organizerEmail": {- "type": ["string", "null"],- "description": "Organizer email."- },- "organizerName": {- "type": ["string", "null"],- "description": "Organizer display name."- },- "ownerId": {- "type": "string",- "description": "Macro user who owns this event entity."- },- "recurrenceLines": {- "type": "array",- "items": {- "type": "string"- },- "description": "Raw RFC 5545 recurrence properties (`RRULE`, `RDATE`, `EXDATE`)."- },- "reminders": {- "$ref": "#/components/schemas/EventReminders",- "description": "Per-user reminder configuration. Skipped when it is the provider\ndefault so projections stored before reminders were modeled still\ncompare equal."- },- "sequence": {- "type": "integer",- "format": "int32",- "description": "Provider/iCalendar sequence number.",- "minimum": 0- },- "sources": {- "type": "array",- "items": {- "$ref": "#/components/schemas/CalendarEventSourceContent"- },- "description": "Content of every active copy of this event, canonical first: the\nprimary calendar's copy, then the freshest. A client picks the copy\nwhose calendar it is showing and falls back to the first. Populated\nonly on the read path, so stored projections omit it."- },- "status": {- "$ref": "#/components/schemas/EventStatus",- "description": "Event status."- },- "time": {- "$ref": "#/components/schemas/EventTime",- "description": "Timed or all-day shape."- },- "title": {- "type": "string",- "description": "Display title."- },- "transparency": {- "$ref": "#/components/schemas/EventTransparency",- "description": "Availability behavior."- },- "updatedAt": {- "type": "string",- "format": "date-time",- "description": "Entity update time."- },- "visibility": {- "$ref": "#/components/schemas/EventVisibility",- "description": "Event visibility."- }- }- },- "CalendarEventSourceContent": {- "type": "object",- "description": "The content one provider copy of an event carries.\n\nGoogle keeps these fields per calendar copy: a shared calendar's copy of a\nmember's event can have its own title, type, reminders, and access role.\nThe entity holds its canonical source's values. Every other copy's values\nare read from here so a client can show the copy that belongs to the\ncalendar being viewed.",- "required": [- "calendarId",- "title",- "eventType",- "visibility",- "transparency",- "isReadOnly",- "reminders"- ],- "properties": {- "calendarId": {- "type": "string",- "format": "uuid",- "description": "Calendar this copy lives on."- },- "creatorEmail": {- "type": ["string", "null"],- "description": "Provider-reported creator email."- },- "creatorName": {- "type": ["string", "null"],- "description": "Provider-reported creator display name."- },- "description": {- "type": ["string", "null"],- "description": "Optional event body."- },- "eventType": {- "$ref": "#/components/schemas/EventType",- "description": "Provider event type."- },- "isReadOnly": {- "type": "boolean",- "description": "Whether the calendar's access role prohibits editing this copy."- },- "location": {- "type": ["string", "null"],- "description": "Optional physical or virtual location label."- },- "reminders": {- "$ref": "#/components/schemas/EventReminders",- "description": "Reminder configuration of this copy."- },- "title": {- "type": "string",- "description": "Display title."- },- "transparency": {- "$ref": "#/components/schemas/EventTransparency",- "description": "Availability behavior."- },- "visibility": {- "$ref": "#/components/schemas/EventVisibility",- "description": "Event visibility."- }- }- },- "CalendarMutationApiError": {- "type": "object",- "description": "HTTP error body returned by calendar mutation endpoints.",- "required": ["code", "message"],- "properties": {- "code": {- "$ref": "#/components/schemas/CalendarMutationErrorCode",- "description": "Machine-readable failure category."- },- "message": {- "type": "string",- "description": "Human-readable failure description."- }- }- },- "CalendarMutationErrorCode": {- "type": "string",- "description": "Machine-readable failure category for calendar mutations.",- "enum": [- "not_found",- "occurrence_not_found",- "read_only",- "no_writable_calendar",- "not_attendee",- "invalid_input",- "reauth_required",- "provider_rejected",- "retryable",- "persist_failed"- ]- },- "CalendarRsvpScopeParam": {- "type": "string",- "description": "How much of a recurring series an RSVP applies to.\n\nUnlike deletion there is no this-and-following variant: the provider\ncannot express a forward-scoped response, so offering one would be a\npromise sync could not keep.",- "enum": ["all", "this_event"]- },- "CalendarUpdateScopeParam": {- "type": "string",- "description": "How much of a recurring series an update applies to.\n\nLike RSVPs there is no this-and-following variant: the provider cannot\nexpress a forward-scoped edit as one write, and emulating it (truncate\nthe series, insert an edited clone) is non-atomic and re-invites the\nattendees of the clone. Compose it from a this-and-following deletion\nand a create when that shape is wanted.",- "enum": ["all", "this_event"]- },"CancelBackfillParams": {"type": "object","required": ["job_id"],@@ -4772,16 +4082,6 @@}}},- "ConferenceChange": {- "type": "string",- "description": "A requested change to an event's conferencing. Omitting the field leaves\nthe existing conference untouched; only these values change it.",- "enum": ["google_meet", "none"]- },- "ConferenceProvider": {- "type": "string",- "description": "The conferencing system backing an event's join URL.\n\nMacro generates only Google Meet conferences, so this distinguishes one it\ncreated from a third party's — Zoom and friends arriving as `addOn`\nconference data, or a legacy classic Hangout. Clients use it to label the\nconference and to tell whether the Meet toggle reflects a Macro-managed\nconference.\n\nIt does not gate mutation. An explicit request replaces or detaches any\nconference, third-party included, exactly as deleting the event would;\nwhat protects a conference is that omitting the field leaves it untouched,\nso an unrelated edit never disturbs it.",- "enum": ["google_meet", "other"]- },"Contact": {"type": "object","required": ["id", "link_id"],@@ -4834,131 +4134,29 @@"type": "string"},"name": {- "type": ["string", "null"]- },- "photo_url": {- "type": ["string", "null"]- }- }- },- "ContactInfoWithInteraction": {- "allOf": [- {- "$ref": "#/components/schemas/ContactInfoLegacy"- },- {- "type": "object",- "required": ["last_interaction"],- "properties": {- "last_interaction": {- "type": "string",- "format": "date-time"- }- }- }- ]- },- "CreateCalendarEventRequest": {- "type": "object",- "description": "Request body creating a calendar event on the requester's calendar.",- "required": ["title", "time"],- "properties": {- "attendees": {- "type": "array",- "items": {- "$ref": "#/components/schemas/CalendarAttendeeInputBody"- },- "description": "Invited attendees."- },- "calendarId": {- "type": ["string", "null"],- "format": "uuid",- "description": "Exact calendar to create the event on; takes precedence over the\ninbox default."- },- "conference": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/ConferenceChange",- "description": "Conference to attach to the new event; omit to create it without one."- }- ]- },- "description": {- "type": ["string", "null"],- "description": "Optional event body."- },- "emailLinkId": {- "type": ["string", "null"],- "format": "uuid",- "description": "Connected inbox whose primary calendar receives the event; defaults\nto the requester's primary inbox."- },- "location": {- "type": ["string", "null"],- "description": "Optional location label."- },- "outOfOffice": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/OutOfOfficeProperties",- "description": "Out-of-office properties; present to create the event as a Google\nout-of-office status event (primary calendar only, timed, no\nattendees), omitted for a regular event."- }- ]- },- "recurrenceLines": {- "type": "array",- "items": {- "type": "string"- },- "description": "Raw RFC 5545 recurrence properties (`RRULE`, `RDATE`, `EXDATE`)."- },- "reminders": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/EventReminders",- "description": "Reminder configuration; omit to keep the calendar defaults."- }- ]- },- "time": {- "$ref": "#/components/schemas/EventTime",- "description": "Timed or all-day shape."- },- "title": {- "type": "string",- "description": "Display title."+ "type": ["string", "null"]},- "transparency": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/EventTransparency",- "description": "Availability behavior."- }- ]+ "photo_url": {+ "type": ["string", "null"]+ }+ }+ },+ "ContactInfoWithInteraction": {+ "allOf": [+ {+ "$ref": "#/components/schemas/ContactInfoLegacy"},- "visibility": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/EventVisibility",- "description": "Event visibility."+ {+ "type": "object",+ "required": ["last_interaction"],+ "properties": {+ "last_interaction": {+ "type": "string",+ "format": "date-time"}- ]+ }}- }+ ]},"CreateDraftRequest": {"type": "object",@@ -5022,119 +4220,6 @@}}},- "EventReminderOverride": {- "type": "object",- "description": "One reminder: how it alerts and how many minutes before the event start\n(before midnight in the calendar's zone for all-day events) it fires.",- "required": ["method", "minutes"],- "properties": {- "method": {- "type": "string",- "description": "Provider method, stored verbatim; only `popup` fires Macro\nnotifications."- },- "minutes": {- "type": "integer",- "format": "int32",- "description": "Minutes before the event start.",- "minimum": 0- }- }- },- "EventReminders": {- "type": "object",- "description": "Per-user reminder configuration for an event, mirroring Google's model:\neither the calendar's default reminders apply, or the explicit overrides\nreplace them entirely.",- "required": ["useDefault"],- "properties": {- "overrides": {- "type": "array",- "items": {- "$ref": "#/components/schemas/EventReminderOverride"- },- "description": "Explicit reminders replacing the defaults when `use_default` is off."- },- "useDefault": {- "type": "boolean",- "description": "Whether the calendar's default reminders apply."- }- }- },- "EventStatus": {- "type": "string",- "description": "Canonical event status.",- "enum": ["confirmed", "tentative", "cancelled"]- },- "EventTime": {- "oneOf": [- {- "type": "object",- "description": "An event with absolute instants.",- "required": ["startsAt", "endsAt", "kind"],- "properties": {- "endsAt": {- "type": "string",- "format": "date-time",- "description": "Exclusive end instant."- },- "kind": {- "type": "string",- "enum": ["timed"]- },- "startsAt": {- "type": "string",- "format": "date-time",- "description": "Inclusive start instant."- },- "timeZone": {- "type": ["string", "null"],- "description": "Original IANA time-zone identifier, when supplied."- }- }- },- {- "type": "object",- "description": "An all-day event using RFC 5545's exclusive end date.",- "required": ["startDate", "endDate", "kind"],- "properties": {- "endDate": {- "type": "string",- "format": "date",- "description": "Exclusive local end date."- },- "kind": {- "type": "string",- "enum": ["allDay"]- },- "startDate": {- "type": "string",- "format": "date",- "description": "Inclusive local start date."- }- }- }- ],- "description": "The mutually exclusive time shape of a calendar event.\n\nFields are renamed per variant rather than with `rename_all_fields`\nbecause utoipa only honors variant-level serde renames when it\nderives the OpenAPI schema."- },- "EventTransparency": {- "type": "string",- "description": "Whether an event blocks availability.",- "enum": ["opaque", "transparent"]- },- "EventType": {- "type": "string",- "description": "Google's event type: ordinary meetings versus the status-style entries\n(working location, out of office, focus time, birthdays) Google renders\nand notifies differently. Immutable at the provider after creation.",- "enum": [- "default",- "out_of_office",- "focus_time",- "working_location",- "birthday",- "from_gmail"- ]- },- "EventVisibility": {- "type": "string",- "description": "Visibility of event details.",- "enum": ["default", "public", "private", "confidential"]- },"GetActiveBackfillJobResponse": {"type": "object","description": "The response returned from the get backfill job endpoint",@@ -5434,20 +4519,6 @@}}},- "ListCalendarsResponse": {- "type": "object",- "description": "Calendars visible to the requester across connected and delegated inboxes.",- "required": ["calendars"],- "properties": {- "calendars": {- "type": "array",- "items": {- "$ref": "#/components/schemas/VisibleCalendar"- },- "description": "Primaries and writable calendars first."- }- }- },"ListContactsResponse": {"type": "object","required": ["contacts"],@@ -5683,29 +4754,6 @@"type": "string","enum": ["Show", "Hide"]},- "OutOfOfficeAutoDeclineMode": {- "type": "string",- "description": "How an out-of-office event responds to conflicting invitations, mirroring\nGoogle's `autoDeclineMode`.",- "enum": [- "decline_none",- "decline_all_conflicting_invitations",- "decline_only_new_conflicting_invitations"- ]- },- "OutOfOfficeProperties": {- "type": "object",- "description": "The extra properties Google requires on an out-of-office event, mirroring\nits `outOfOfficeProperties` block. Their presence on a draft or patch is\nwhat marks the mutation as out-of-office.",- "properties": {- "autoDeclineMode": {- "$ref": "#/components/schemas/OutOfOfficeAutoDeclineMode",- "description": "How conflicting invitations are handled while the user is out."- },- "declineMessage": {- "type": ["string", "null"],- "description": "Message returned to organizers whose invitations are auto-declined."- }- }- },"ParsedMessage": {"type": "object","required": [@@ -5827,27 +4875,6 @@"other"]},- "RefreshCalendarEvent": {- "oneOf": [- {- "type": "object",- "description": "A sync run committed changes for `link_id`; viewers should refetch.",- "required": ["link_id", "event"],- "properties": {- "event": {- "type": "string",- "enum": ["synced"]- },- "link_id": {- "type": "string",- "format": "uuid",- "description": "Connected inbox whose calendars changed."- }- }- }- ],- "description": "Realtime signal that a connected inbox's calendar projection changed."- },"RefreshEmailEvent": {"oneOf": [{@@ -5994,37 +5021,6 @@}}},- "RsvpCalendarEventRequest": {- "type": "object",- "description": "Request body setting the requester's RSVP on an event.",- "required": ["response"],- "properties": {- "calendarId": {- "type": ["string", "null"],- "format": "uuid",- "description": "Calendar whose copy of the event is answered, for an event synced\nfrom more than one calendar. Omit to answer on the canonical copy."- },- "recurrenceId": {- "type": ["string", "null"],- "description": "Original-start key of the occurrence the response targets."- },- "response": {- "$ref": "#/components/schemas/AttendeeResponseStatus",- "description": "The response to record for the connected account."- },- "scope": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/CalendarRsvpScopeParam",- "description": "How much of a recurring series the response covers. Omit to let\n`recurrenceId` decide: the identified occurrence alone when one is\nsupplied, otherwise the whole series. An explicit `this_event` scope\nrequires `recurrenceId`, so a scoped request is never silently\nwidened to the series."- }- ]- }- }- },"SendMessageRequest": {"type": "object","description": "Request body for sending a message (backward-compatible with `{ message: MessageToSend }`).",@@ -6276,124 +5272,6 @@}}},- "UpdateCalendarEventRequest": {- "type": "object",- "description": "Request body patching an event; omitted fields are left untouched.",- "properties": {- "attendees": {- "type": ["array", "null"],- "items": {- "$ref": "#/components/schemas/CalendarAttendeeInputBody"- },- "description": "Replacement attendee list."- },- "calendarId": {- "type": ["string", "null"],- "format": "uuid",- "description": "Calendar whose copy of the event is patched, for an event synced from\nmore than one calendar. Omit to patch the canonical copy."- },- "conference": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/ConferenceChange",- "description": "Conference change: `google_meet` attaches a freshly generated Meet,\n`none` detaches the current conference, and omitting it leaves the\nconference untouched.\n\nA third-party conference is replaced or detached like any other, since\nthe request is explicit. Omit the field to leave it alone."- }- ]- },- "description": {- "type": ["string", "null"],- "description": "Replacement description; an empty string clears it."- },- "location": {- "type": ["string", "null"],- "description": "Replacement location; an empty string clears it."- },- "outOfOffice": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/OutOfOfficeProperties",- "description": "Replacement out-of-office properties, applied only to an event that is\nalready out-of-office — the provider event type is immutable. Omit to\nleave them untouched."- }- ]- },- "recurrenceId": {- "type": ["string", "null"],- "description": "Original-start key of the occurrence the update targets."- },- "recurrenceLines": {- "type": ["array", "null"],- "items": {- "type": "string"- },- "description": "Replacement recurrence properties; an empty list clears them."- },- "reminders": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/EventReminders",- "description": "Replacement reminder configuration."- }- ]- },- "scope": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/CalendarUpdateScopeParam",- "description": "How much of a recurring series the update covers. Omit to let\n`recurrenceId` decide: the identified occurrence alone when one is\nsupplied, otherwise the whole event or series. An explicit\n`this_event` scope requires `recurrenceId`, so a scoped request is\nnever silently widened to the series."- }- ]- },- "time": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/EventTime",- "description": "Replacement time."- }- ]- },- "title": {- "type": ["string", "null"],- "description": "Replacement title; an empty string clears it."- },- "transparency": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/EventTransparency",- "description": "Replacement transparency."- }- ]- },- "visibility": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/EventVisibility",- "description": "Replacement visibility."- }- ]- }- }- },"UpdateLabelBatchRequest": {"type": "object","required": ["message_ids", "label_id", "value"],@@ -6554,68 +5432,7 @@"type": "string","enum": ["GMAIL"]},- "Value": {},- "VisibleCalendar": {- "type": "object",- "description": "A calendar visible to a requester, listed for pickers and filters.",- "required": [- "id",- "emailLinkId",- "emailAddress",- "name",- "isPrimary",- "isWritable",- "isSubscription",- "defaultReminders"- ],- "properties": {- "color": {- "type": ["string", "null"],- "description": "Provider color."- },- "defaultReminders": {- "type": "array",- "items": {- "$ref": "#/components/schemas/EventReminderOverride"- },- "description": "Default reminders applied to events that keep `useDefault`."- },- "emailAddress": {- "type": "string",- "description": "Connected inbox address, for grouping in multi-inbox pickers."- },- "emailLinkId": {- "type": "string",- "format": "uuid",- "description": "Connected inbox that syncs this calendar."- },- "id": {- "type": "string",- "format": "uuid",- "description": "Persisted Macro calendar identifier."- },- "isPrimary": {- "type": "boolean",- "description": "Whether this is its account's primary calendar."- },- "isSubscription": {- "type": "boolean",- "description": "Whether this is one of Google's shared system calendars (holidays,\nbirthdays) the account subscribes to rather than one a person maintains."- },- "isWritable": {- "type": "boolean",- "description": "Whether the grant can create and modify events on this calendar."- },- "name": {- "type": "string",- "description": "Provider display name."- },- "syncError": {- "type": ["string", "null"],- "description": "A persistent sync failure isolated to this calendar, surfaced so the\nsettings row can badge it. `None` while the calendar is syncing\nnormally or a failure has not yet crossed the persistence threshold."- }- }- }+ "Value": {}}},"tags": [diff --git a/packages/sdk/src/coverage/skipped.ts b/packages/sdk/src/coverage/skipped.tsindex 174799949f..a434261585 100644--- a/packages/sdk/src/coverage/skipped.ts+++ b/packages/sdk/src/coverage/skipped.ts@@ -210,20 +210,15 @@ export const emailExcluded = [export const emailBacklog = ['addDraftAttachment','addForwardedAttachment',- 'createCalendarEvent','createDraft',- 'deleteCalendarEvent','deleteDraft','deleteEmailFilter','deleteScheduledDraft','getScheduledMessages',- 'listCalendars','listContacts','listEmailFilters','removeDraftAttachment','removeForwardedAttachment',- 'rsvpCalendarEvent',- 'updateCalendarEvent','upsertEmailFilter','upsertScheduledMessage',] as const satisfies readonly (keyof EmailSdk)[];diff --git a/services/email_service/Cargo.toml b/services/email_service/Cargo.tomlindex ccab98ca51..62cf621f7e 100644--- a/services/email_service/Cargo.toml+++ b/services/email_service/Cargo.toml@@ -76,7 +76,7 @@ sfs_map = []sfs_delete = [][dependencies]-calendar_events = { path = "../../crates/calendar_events", features = ["google", "inbound", "postgres"] }+calendar_events = { path = "../../crates/calendar_events", features = ["google", "postgres"] }ammonia = { workspace = true }anyhow = { workspace = true }authentication_service_client = { path = "../../crates/authentication_service_client" }@@ -182,7 +182,6 @@ urlencoding = { workspace = true }utoipa = { workspace = true }utoipa-swagger-ui = { workspace = true }uuid = { workspace = true }-subtle = { workspace = true }macro_service_urls = { path = "../../crates/macro_service_urls" }workspace-hack = { version = "0.1", path = "../../crates/workspace-hack" }diff --git a/services/email_service/src/api.rs b/services/email_service/src/api.rsindex aaf8875b51..aa58e0337b 100644--- a/services/email_service/src/api.rs+++ b/services/email_service/src/api.rs@@ -1,6 +1,5 @@use anyhow::Context;use axum::Router;-use calendar_events::inbound::mutation_router::CalendarMutationRouterState;use context::ApiContext;use tower::ServiceBuilder;use tower_http::{compression::CompressionLayer, trace::TraceLayer};@@ -10,7 +9,6 @@ use utoipa_swagger_ui::SwaggerUi;// Routesmod health;-mod calendar_watch;mod email;// Misc@@ -67,23 +65,8 @@ fn swagger_ui() -> Router {}fn api_router(state: ApiContext) -> Router<ApiContext> {- // Calendar mutations follow the calendar sync kill switch: without sync- // a provider write would never be reflected locally.- let calendar_router = if state.config.calendar_sync_enabled {- calendar_watch::router().merge(- calendar_events::inbound::mutation_router::calendar_mutation_router(- CalendarMutationRouterState::new(- state.calendar_mutation_service.clone(),- state.authorization_state.clone(),- ),- ),- )- } else {- calendar_watch::router()- };Router::new().nest("/email", email::router(state)).nest("/gmail", gmail::router()).nest("/internal", internal::router())- .nest("/calendar", calendar_router)}diff --git a/services/email_service/src/api/calendar_watch.rs b/services/email_service/src/api/calendar_watch.rsdeleted file mode 100644index c7620477db..0000000000--- a/services/email_service/src/api/calendar_watch.rs+++ /dev/null@@ -1,68 +0,0 @@-//! Google Calendar push notification webhook.-//!-//! Google delivers content-free notifications here for every calendar with-//! an open `events.watch` channel. The handler verifies the shared channel-//! token minted at channel creation, then re-arms the watched inbox's sync-//! job; the regular poll remains the backstop for dropped notifications, so-//! unmatched or failed notifications are acknowledged rather than retried.--use axum::Router;-use axum::extract::State;-use axum::http::{HeaderMap, StatusCode};-use axum::routing::post;-use subtle::ConstantTimeEq;--use crate::api::context::ApiContext;-use email_service::pubsub::context::calendar_watch_config;--/// Build the unauthenticated watch notification router.-pub fn router() -> Router<ApiContext> {- Router::new().route("/notifications", post(handler))-}--fn header<'a>(headers: &'a HeaderMap, name: &str) -> Option<&'a str> {- headers.get(name).and_then(|value| value.to_str().ok())-}--#[tracing::instrument(skip_all)]-async fn handler(State(ctx): State<ApiContext>, headers: HeaderMap) -> StatusCode {- let Some(config) = calendar_watch_config() else {- return StatusCode::NOT_FOUND;- };-- let valid = header(&headers, "x-goog-channel-token")- .is_some_and(|token| bool::from(token.as_bytes().ct_eq(config.token.as_bytes())));-- if !valid {- return StatusCode::FORBIDDEN;- }-- if header(&headers, "x-goog-resource-state") == Some("sync") {- return StatusCode::OK;- }-- let (Some(channel_id), Some(resource_id)) = (- header(&headers, "x-goog-channel-id"),- header(&headers, "x-goog-resource-id"),- ) else {- return StatusCode::BAD_REQUEST;- };- match ctx- .calendar_service- .handle_watch_notification(channel_id, resource_id)- .await- {- Ok(matched) => {- if !matched {- tracing::debug!(- channel_id,- "calendar notification matched no active channel"- );- }- }- Err(error) => {- tracing::warn!(error = ?error, channel_id, "failed to apply calendar watch notification");- }- }- StatusCode::OK-}diff --git a/services/email_service/src/api/context.rs b/services/email_service/src/api/context.rsindex b3c4b0707b..b452c9dddd 100644--- a/services/email_service/src/api/context.rs+++ b/services/email_service/src/api/context.rs@@ -13,8 +13,8 @@ use email::{outbound::{EmailPgRepo, GmailTokenProviderImpl},};use email_service::calendar_refresh::ConnectionGatewayCalendarRefresh;+use email_service::calendar_request_gate::RedisCalendarRequestGate;use email_service::calendar_tokens::CalendarTokenProviderAdapter;-use email_service::pubsub::calendar_backfill_adapters::RedisCalendarRequestGate;use email_service::config::Config;use email_service::outbound::email_api::GmailApi;diff --git a/services/email_service/src/api/swagger.rs b/services/email_service/src/api/swagger.rsindex dead571262..1346dc8831 100644--- a/services/email_service/src/api/swagger.rs+++ b/services/email_service/src/api/swagger.rs@@ -106,11 +106,6 @@ use utoipa::OpenApi;email::contacts::list_blocked::handler,email::sync::disable::disable_handler,email::settings::patch::patch_settings_handler,- calendar_events::inbound::mutation_router::list_calendars,- calendar_events::inbound::mutation_router::create_calendar_event,- calendar_events::inbound::mutation_router::update_calendar_event,- calendar_events::inbound::mutation_router::delete_calendar_event,- calendar_events::inbound::mutation_router::rsvp_calendar_event,),components(schemas(@@ -192,26 +187,7 @@ use utoipa::OpenApi;service::thread::Thread,service::message::Message,PatchSettingsRequest,- PatchSettingsResponse,- // Calendar mutation types- calendar_events::inbound::mutation_router::CreateCalendarEventRequest,- calendar_events::inbound::mutation_router::ListCalendarsResponse,- calendar_events::domain::models::VisibleCalendar,- calendar_events::inbound::mutation_router::UpdateCalendarEventRequest,- calendar_events::inbound::mutation_router::RsvpCalendarEventRequest,- calendar_events::inbound::mutation_router::CalendarAttendeeInputBody,- calendar_events::inbound::mutation_router::CalendarMutationApiError,- calendar_events::inbound::mutation_router::CalendarMutationErrorCode,- calendar_events::inbound::mutation_router::CalendarDeletionScopeParam,- calendar_events::inbound::mutation_router::CalendarUpdateScopeParam,- calendar_events::domain::models::CalendarEvent,- calendar_events::domain::models::CalendarAttendee,- calendar_events::domain::models::AttendeeResponseStatus,- calendar_events::domain::models::EventTime,- calendar_events::domain::models::EventStatus,- calendar_events::domain::models::EventVisibility,- calendar_events::domain::models::EventTransparency,- calendar_events::domain::models::RefreshCalendarEvent+ PatchSettingsResponse),),tags(diff --git a/services/email_service/src/api/test.rs b/services/email_service/src/api/test.rsindex 2de4855deb..1c23d63bf1 100644--- a/services/email_service/src/api/test.rs+++ b/services/email_service/src/api/test.rs@@ -17,7 +17,6 @@ fn sample_app() -> Router {.route("/health", get(ok)).route("/email/messages", get(ok)).route("/gmail/webhook", get(ok))- .route("/calendar/notifications", get(ok)).route("/internal/ping", get(ok)),)}@@ -62,8 +61,6 @@ async fn existing_paths_stay_and_are_also_served_under_the_prefix() {"/email/email/messages","/gmail/webhook","/email/gmail/webhook",- "/calendar/notifications",- "/email/calendar/notifications","/internal/ping","/email/internal/ping",] {diff --git a/services/email_service/src/calendar_outbox.rs b/services/email_service/src/backfill_outbox.rssimilarity index 54%rename from services/email_service/src/calendar_outbox.rsrename to services/email_service/src/backfill_outbox.rsindex 4a84b78882..f48d6fcd2e 100644--- a/services/email_service/src/calendar_outbox.rs+++ b/services/email_service/src/backfill_outbox.rs@@ -1,8 +1,7 @@-//! Durable calendar backfill publication.+//! Durable publication of email backfill outbox rows.use models_email::email::service::backfill::{- BackfillOperation, BackfillPubsubMessage, CalendarBackfillPayload, FinalizeBackfillPayload,- JobScopedPayload, LinkScopedPayload,+ BackfillOperation, BackfillPubsubMessage, FinalizeBackfillPayload, JobScopedPayload,};use models_email::email::service::thread::ListThreadsPayload;use sqlx::PgPool;@@ -11,13 +10,6 @@ use uuid::Uuid;const BATCH_SIZE: usize = 50;-struct OutboxRow {- id: Uuid,- backfill_job_id: Uuid,- email_link_id: Uuid,- kind: String,-}-struct EmailInitOutboxRow {id: Uuid,backfill_job_id: Uuid,@@ -32,51 +24,18 @@ struct EmailCompletionOutboxRow {email_link_id: Option<Uuid>,}-/// Continuously publish calendar outbox rows to the established email-/// backfill queue.+/// Continuously publish email backfill init and completion outbox rows to+/// the email backfill queue.////// A row lock is held through each SQS publish. A crash after publish but/// before commit can duplicate a message, so every consumer remains-/// idempotent by calendar job id.-#[tracing::instrument(skip(db, sqs, scheduler))]-pub async fn run<R>(- db: PgPool,- sqs: SQS,- scheduler: GoogleCalendarSyncScheduler<R>,- calendar_sync_enabled: bool,- cancellation_token: tokio_util::sync::CancellationToken,-) where- R: GoogleCalendarSyncRepository,-{+/// idempotent by backfill job id.+#[tracing::instrument(skip(db, sqs))]+pub async fn run(db: PgPool, sqs: SQS, cancellation_token: tokio_util::sync::CancellationToken) {loop {if cancellation_token.is_cancelled() {return;}- // With calendar sync disabled, outbox rows keep accumulating- // unpublished and due syncs never re-arm — enabling the flag later- // resumes everything without a migration.- if calendar_sync_enabled {- scheduler- .run_once(Utc::now())- .await- .inspect_err(|error| {- tracing::error!(error=?error, "failed to schedule due Google Calendar syncs");- })- .ok();- scheduler- .reap_once(Utc::now())- .await- .inspect_err(|error| {- tracing::error!(error=?error, "failed to reap wedged Google Calendar syncs");- })- .ok();- drain_calendar(&db, &sqs)- .await- .inspect_err(|error| {- tracing::error!(error = ?error, "failed to publish calendar backfill outbox");- })- .ok();- }drain_email_init(&db, &sqs).await.inspect_err(|error| {@@ -167,80 +126,6 @@ fn to_email_completion_message(row: &EmailCompletionOutboxRow) -> Option<Backfil})}-/// Return a calendar backfill delivery to the outbox so the drain republishes-/// it once calendar sync is enabled again. Deliveries received while the-/// switch is off would otherwise be acked and lost.-#[tracing::instrument(skip(db), err)]-pub async fn republish_calendar_job(db: &PgPool, backfill_job_id: Uuid) -> anyhow::Result<()> {- sqlx::query!(- r#"- UPDATE calendar_sync_outbox- SET published_at = NULL- WHERE backfill_job_id = $1- "#,- backfill_job_id,- )- .execute(db)- .await?;- Ok(())-}--#[tracing::instrument(skip(db, sqs), err)]-async fn drain_calendar(db: &PgPool, sqs: &SQS) -> anyhow::Result<usize> {- let mut published = 0;- for _ in 0..BATCH_SIZE {- let mut tx = db.begin().await?;- let row = sqlx::query_as!(- OutboxRow,- r#"- SELECT- outbox.id,- outbox.backfill_job_id,- job.email_link_id,- job.kind- FROM calendar_sync_outbox outbox- JOIN calendar_backfill_jobs job ON job.id = outbox.backfill_job_id- WHERE outbox.published_at IS NULL- ORDER BY outbox.created_at, outbox.id- FOR UPDATE OF outbox SKIP LOCKED- LIMIT 1- "#,- )- .fetch_optional(&mut *tx)- .await?;-- let Some(row) = row else {- tx.commit().await?;- break;- };-- match to_queue_message(&row) {- Ok(message) => {- sqs.enqueue_email_backfill_message(message).await?;- published += 1;- }- Err(error) => {- // An unmappable row must still be marked published: the drain- // always selects the oldest unpublished row, so leaving it- // would wedge every calendar row behind it forever.- tracing::error!(error = ?error, outbox_id = %row.id, "skipping unmappable calendar outbox row");- }- }- sqlx::query!(- r#"- UPDATE calendar_sync_outbox- SET published_at = now()- WHERE id = $1- "#,- row.id,- )- .execute(&mut *tx)- .await?;- tx.commit().await?;- }- Ok(published)-}-#[tracing::instrument(skip(db, sqs), err)]async fn drain_email_init(db: &PgPool, sqs: &SQS) -> anyhow::Result<usize> {let mut published = 0;@@ -302,23 +187,5 @@ async fn drain_email_init(db: &PgPool, sqs: &SQS) -> anyhow::Result<usize> {Ok(published)}-fn to_queue_message(row: &OutboxRow) -> anyhow::Result<BackfillPubsubMessage> {- let scope = LinkScopedPayload {- link_id: row.email_link_id,- payload: CalendarBackfillPayload {- calendar_job_id: row.backfill_job_id,- },- };- let backfill_operation = match row.kind.as_str() {- "google_calendar" => BackfillOperation::CalendarGoogleBackfill(scope),- kind => anyhow::bail!("unsupported calendar backfill kind: {kind}"),- };- Ok(BackfillPubsubMessage { backfill_operation })-}-#[cfg(test)]mod test;-use calendar_events::domain::{- ports::GoogleCalendarSyncRepository, service::GoogleCalendarSyncScheduler,-};-use chrono::Utc;diff --git a/services/email_service/src/calendar_outbox/test.rs b/services/email_service/src/backfill_outbox/test.rssimilarity index 60%rename from services/email_service/src/calendar_outbox/test.rsrename to services/email_service/src/backfill_outbox/test.rsindex cd2a856639..b9c6d8c2a9 100644--- a/services/email_service/src/calendar_outbox/test.rs+++ b/services/email_service/src/backfill_outbox/test.rs@@ -1,29 +1,5 @@use super::*;-fn row(kind: &str) -> OutboxRow {- OutboxRow {- id: Uuid::now_v7(),- backfill_job_id: Uuid::now_v7(),- email_link_id: Uuid::now_v7(),- kind: kind.to_string(),- }-}--#[test]-fn maps_google_calendar_kind() {- assert!(matches!(- to_queue_message(&row("google_calendar"))- .unwrap()- .backfill_operation,- BackfillOperation::CalendarGoogleBackfill(_)- ));-}--#[test]-fn rejects_unknown_kind() {- assert!(to_queue_message(&row("unknown")).is_err());-}-#[test]fn maps_email_completion_outbox() {let row = EmailCompletionOutboxRow {diff --git a/services/email_service/src/bin/pubsub_workers/pubsub_workers.rs b/services/email_service/src/bin/pubsub_workers/pubsub_workers.rsindex 37a7ff1d29..0bf6c5891d 100644--- a/services/email_service/src/bin/pubsub_workers/pubsub_workers.rs+++ b/services/email_service/src/bin/pubsub_workers/pubsub_workers.rs@@ -122,13 +122,9 @@ async fn main() -> anyhow::Result<()> {let worker_tracker = TaskTracker::new();let event_broker_tracker = TaskTracker::new();- worker_tracker.spawn(email_service::calendar_outbox::run(+ worker_tracker.spawn(email_service::backfill_outbox::run(db.clone(),sqs_client.clone(),- calendar_events::domain::service::GoogleCalendarSyncScheduler::new(- calendar_events::outbound::pg::PgCalendarRepository::new(db.clone()),- ),- config.calendar_sync_enabled,worker_cancellation_token.clone(),));let macro_event_broker = MacroEventBrokerService::new(@@ -404,7 +400,6 @@ async fn main() -> anyhow::Result<()> {crm_service_inbox_sync,macro_event_broker_inbox_sync,config.notifications_enabled,- config.calendar_sync_enabled,false,cancellation_token,)@@ -447,7 +442,6 @@ async fn main() -> anyhow::Result<()> {crm_service_inbox_sync,macro_event_broker_inbox_sync,config.notifications_enabled,- config.calendar_sync_enabled,true,cancellation_token,)@@ -536,7 +530,6 @@ async fn main() -> anyhow::Result<()> {crm_service_backfill,macro_event_broker_backfill,config.notifications_enabled,- config.calendar_sync_enabled,cancellation_token,).await;diff --git a/services/email_service/src/pubsub/calendar_backfill_adapters.rs b/services/email_service/src/calendar_request_gate.rssimilarity index 92%rename from services/email_service/src/pubsub/calendar_backfill_adapters.rsrename to services/email_service/src/calendar_request_gate.rsindex d2c1f66c7e..b331b5420c 100644--- a/services/email_service/src/pubsub/calendar_backfill_adapters.rs+++ b/services/email_service/src/calendar_request_gate.rs@@ -1,4 +1,4 @@-//! Process-level adapters backing the calendar application services.+//! Per-inbox Google Calendar request gate for disconnecting an inbox's calendar.use calendar_events::domain::ports::{GoogleProviderError, GoogleProviderErrorKind};use calendar_events::outbound::google::GoogleRequestGate;diff --git a/services/email_service/src/config.rs b/services/email_service/src/config.rsindex b8a12dbeeb..49fa8f5106 100644--- a/services/email_service/src/config.rs+++ b/services/email_service/src/config.rs@@ -55,13 +55,6 @@ pub struct Config {#[macro_config_default(false)]pub use_apollo_crm_enrichment: bool,- /// Master switch for calendar ingestion and sync. When `false` (the- /// default) inline ICS extraction is skipped, the calendar outbox stays- /// parked, and calendar backfill deliveries requeue their outbox rows.- /// Grant bookkeeping still runs so enabling later resumes cleanly.- #[macro_config_default(false)]- pub calendar_sync_enabled: bool,-/// Apollo.io API key for CRM enrichment. Locally this is the key/// itself; in deployed envs it's the name of the Secrets Manager/// secret holding it (resolved at startup). Empty disables enrichment.diff --git a/services/email_service/src/lib.rs b/services/email_service/src/lib.rsindex f5f9213a65..18dc220f69 100644--- a/services/email_service/src/lib.rs+++ b/services/email_service/src/lib.rs@@ -2,11 +2,13 @@pub mod backfill_completion_service;/// Fenced email-backfill initialization orchestration.pub mod backfill_init_service;-/// Durable publication of grant-triggered calendar work.-pub mod calendar_outbox;-/// Connection-gateway refresh adapter for user-initiated calendar mutations.+/// Durable publication of email backfill outbox rows.+pub mod backfill_outbox;+/// Connection-gateway refresh adapter for disconnecting an inbox's calendar.pub mod calendar_refresh;-/// Access-token adapter for user-initiated calendar mutations.+/// Google Calendar quota gate for disconnecting an inbox's calendar.+pub mod calendar_request_gate;+/// Access-token adapter for disconnecting an inbox's calendar.pub mod calendar_tokens;pub mod config;/// Outbound infrastructure adapters for email provider capabilities.diff --git a/services/email_service/src/main.rs b/services/email_service/src/main.rsindex 13f4f106f1..1dbc501c1b 100644--- a/services/email_service/src/main.rs+++ b/services/email_service/src/main.rs@@ -16,11 +16,11 @@ use email::{};use email_api_client::GmailApiClientRepository;use email_service::calendar_refresh::ConnectionGatewayCalendarRefresh;+use email_service::calendar_request_gate::RedisCalendarRequestGate;use email_service::calendar_tokens::CalendarTokenProviderAdapter;use email_service::outbound::email_api::{EmailServiceTokenSource, GmailApi, RateBudget, RedisProviderRateLimiter,};-use email_service::pubsub::calendar_backfill_adapters::RedisCalendarRequestGate;use entity_access::{domain::service::EntityAccessServiceImpl, outbound::PgAccessRepository};use frecency::{domain::services::FrecencyQueryServiceImpl, outbound::postgres::FrecencyPgStorage};use macro_auth::middleware::decode_jwt::JwtValidationArgs;diff --git a/services/email_service/src/openapi.rs b/services/email_service/src/openapi.rsindex e0460e3524..029b481120 100644--- a/services/email_service/src/openapi.rs+++ b/services/email_service/src/openapi.rs@@ -3,7 +3,7 @@mod api;mod backfill_completion_service;mod backfill_init_service;-mod calendar_outbox;+mod backfill_outbox;mod config;mod outbound;mod pubsub;diff --git a/services/email_service/src/pubsub/backfill/calendar_google_backfill.rs b/services/email_service/src/pubsub/backfill/calendar_google_backfill.rsdeleted file mode 100644index 72d6536a37..0000000000--- a/services/email_service/src/pubsub/backfill/calendar_google_backfill.rs+++ /dev/null@@ -1,81 +0,0 @@-use crate::pubsub::context::PubSubContext;-use crate::pubsub::util::cg_refresh_calendar;-use calendar_events::domain::{- models::{CalendarBackfillJobKey, GoogleBackfillRunReport, OccurrenceRange},- service::GoogleCalendarBackfillRunError,-};-use chrono::Utc;-use models_email::email::service::{- backfill::CalendarBackfillPayload,- link::Link,- pubsub::{DetailedError, FailureReason, ProcessingError},-};--/// Invoke the calendar application service for one Google backfill delivery.-#[tracing::instrument(skip(ctx, access_token, link), fields(calendar_job_id = %payload.calendar_job_id))]-pub async fn calendar_google_backfill(- ctx: &PubSubContext,- access_token: &str,- link: &Link,- payload: &CalendarBackfillPayload,-) -> Result<(), ProcessingError> {- let mut report = GoogleBackfillRunReport::default();- let run_result = ctx- .calendar_backfills- .run(- CalendarBackfillJobKey {- job_id: payload.calendar_job_id,- email_link_id: link.id,- },- link.macro_id.as_ref(),- access_token,- OccurrenceRange::maintenance_horizon(Utc::now()),- &mut report,- )- .await;- // Quiet token-only polls change nothing; only real changes nudge- // active viewers to refetch. The nudge goes out even when the run- // ultimately failed: per-calendar commits before the error are- // durable, and the retry's quiet re-run would never report them.- if report.changed() {- cg_refresh_calendar(- &ctx.connection_gateway_client,- &ctx.db,- link.macro_id.as_ref(),- link.id,- )- .await;- }- run_result.map_err(map_run_error)-}--fn map_run_error(error: GoogleCalendarBackfillRunError) -> ProcessingError {- let retryable = matches!(- error,- GoogleCalendarBackfillRunError::Busy- | GoogleCalendarBackfillRunError::LeaseLost- | GoogleCalendarBackfillRunError::Retryable(_)- );- let reason = match &error {- GoogleCalendarBackfillRunError::Busy | GoogleCalendarBackfillRunError::LeaseLost => {- FailureReason::CalendarBackfillBusy- }- GoogleCalendarBackfillRunError::NotFound => FailureReason::BackfillJobNotFound,- GoogleCalendarBackfillRunError::ReauthRequired { .. } => {- FailureReason::AccessTokenFetchFailed- }- GoogleCalendarBackfillRunError::AlreadyFailed- | GoogleCalendarBackfillRunError::Permanent(_) => FailureReason::InvalidData,- GoogleCalendarBackfillRunError::Retryable(_) => FailureReason::GmailApiFailed,- };- let detailed = DetailedError {- reason,- source: anyhow::Error::new(error),- };- if retryable {- ProcessingError::Retryable(detailed)- } else {- ProcessingError::NonRetryable(detailed)- }-}diff --git a/services/email_service/src/pubsub/backfill/error_handlers.rs b/services/email_service/src/pubsub/backfill/error_handlers.rsindex 24467849cd..0fe0d01fe6 100644--- a/services/email_service/src/pubsub/backfill/error_handlers.rs+++ b/services/email_service/src/pubsub/backfill/error_handlers.rs@@ -3,15 +3,11 @@ use crate::pubsub::backfill::increment_counters::{};use crate::pubsub::context::PubSubContext;use crate::pubsub::util::cg_refresh_email;-use calendar_events::domain::{- models::{CalendarBackfillFailureDisposition, CalendarBackfillJobKey},- service::GoogleCalendarBackfillRunError,-};use models_email::api::refresh::{BackfillStatus, RefreshEmailEvent};use models_email::email::service::backfill::{BackfillMessagePayload, BackfillOperation, BackfillPubsubMessage, JobScopedPayload,};-use models_email::email::service::pubsub::{DetailedError, FailureReason, LinkManagerMessage};+use models_email::email::service::pubsub::DetailedError;use sqs_worker::cleanup_message;use uuid::Uuid;@@ -62,46 +58,6 @@ pub async fn handle_non_retryable_error(}).ok();}- BackfillOperation::CalendarGoogleBackfill(scope) => {- let coordinator_reauth_transitioned = coordinator_reauth_edge(&e.source);- let prelease_reauth_transitioned = if coordinator_reauth_transitioned.is_none() {- let disposition = if e.reason == FailureReason::AccessTokenFetchFailed {- CalendarBackfillFailureDisposition::ReauthRequired- } else {- CalendarBackfillFailureDisposition::Permanent- };- ctx.calendar_backfills- .google_failure- .fail_unclaimed(- CalendarBackfillJobKey {- job_id: scope.payload.calendar_job_id,- email_link_id: scope.link_id,- },- disposition,- &format!("{:#}", e.source),- )- .await- .map_err(|error| anyhow::anyhow!("{error:?}"))?- .link_reauth_transitioned- } else {- false- };- if coordinator_reauth_transitioned == Some(true) || prelease_reauth_transitioned {- ctx.sqs_client- .enqueue_link_manager_notification(LinkManagerMessage::NotifyReauthRequired {- link_id: scope.link_id,- })- .await- .inspect_err(|error| {- tracing::error!(- error=?error,- link_id=%scope.link_id,- "Failed to enqueue reauth notification after calendar backfill failure"- );- })- .ok();- }- }// Best-effort side seed — a failure must not fail the backfill job.BackfillOperation::SeedSentContact(_) => {}BackfillOperation::PopulateCrmContact(_) => {}@@ -114,22 +70,6 @@ pub async fn handle_non_retryable_error(Ok(())}-fn coordinator_reauth_edge(error: &anyhow::Error) -> Option<bool> {- error.chain().find_map(|cause| {- cause- .downcast_ref::<GoogleCalendarBackfillRunError>()- .map(|error| {- matches!(- error,- GoogleCalendarBackfillRunError::ReauthRequired {- link_reauth_transitioned: true,- ..- }- )- })- })-}-#[tracing::instrument(skip(ctx), err)]async fn mark_job_failed(ctx: &PubSubContext, job_id: Uuid) -> anyhow::Result<()> {let transitioned =@@ -167,9 +107,6 @@ async fn notify_job_failed(ctx: &PubSubContext, job_id: Uuid) {}}-#[cfg(test)]-mod test;-/// Handles retryable errors by updating status to InProgress and adding the error message#[tracing::instrument(skip(data, _e),@@ -220,12 +157,6 @@ pub async fn handle_retryable_error("Retryable error finalizing completed backfill")}- BackfillOperation::CalendarGoogleBackfill(scope) => {- tracing::warn!(- calendar_job_id = %scope.payload.calendar_job_id,- "Retryable error backfilling Google Calendar"- )- }BackfillOperation::SeedSentContact(scope) => {tracing::warn!(message_id = %scope.payload.message_provider_id,diff --git a/services/email_service/src/pubsub/backfill/error_handlers/test.rs b/services/email_service/src/pubsub/backfill/error_handlers/test.rsdeleted file mode 100644index 63040192cd..0000000000--- a/services/email_service/src/pubsub/backfill/error_handlers/test.rs+++ /dev/null@@ -1,27 +0,0 @@-use super::*;--#[test]-fn detects_coordinator_failure_without_replaying_unclaimed_transition() {- let permanent = anyhow::Error::new(GoogleCalendarBackfillRunError::Permanent(- "invalid event".into(),- ));- assert_eq!(coordinator_reauth_edge(&permanent), Some(false));-}--#[test]-fn preserves_coordinator_reauth_notification_edge_through_context() {- let reauth = anyhow::Error::new(GoogleCalendarBackfillRunError::ReauthRequired {- message: "insufficient permissions".into(),- link_reauth_transitioned: true,- })- .context("calendar worker failed");- assert_eq!(coordinator_reauth_edge(&reauth), Some(true));-}--#[test]-fn prelease_failure_has_no_coordinator_marker() {- assert_eq!(- coordinator_reauth_edge(&anyhow::anyhow!("token refresh failed")),- None- );-}diff --git a/services/email_service/src/pubsub/backfill/mod.rs b/services/email_service/src/pubsub/backfill/mod.rsindex 7345db8aa2..b56880458c 100644--- a/services/email_service/src/pubsub/backfill/mod.rs+++ b/services/email_service/src/pubsub/backfill/mod.rs@@ -1,7 +1,6 @@mod backfill_attachment;mod backfill_message;mod backfill_thread;-mod calendar_google_backfill;pub(crate) mod db_error;mod depopulate_crm_contact;mod depopulate_crm_for_user;diff --git a/services/email_service/src/pubsub/backfill/process.rs b/services/email_service/src/pubsub/backfill/process.rsindex 4e565714dc..8e051f9fc3 100644--- a/services/email_service/src/pubsub/backfill/process.rs+++ b/services/email_service/src/pubsub/backfill/process.rs@@ -1,11 +1,10 @@use crate::pubsub::backfill::{- backfill_attachment, backfill_message, backfill_thread, calendar_google_backfill,- depopulate_crm_contact, depopulate_crm_for_user, error_handlers, increment_counters, init,- list_threads, populate_crm_contact, populate_crm_for_user, seed_sent_contact, update_metadata,+ backfill_attachment, backfill_message, backfill_thread, depopulate_crm_contact,+ depopulate_crm_for_user, error_handlers, increment_counters, init, list_threads,+ populate_crm_contact, populate_crm_for_user, seed_sent_contact, update_metadata,};use crate::pubsub::context::PubSubContext;use anyhow::Context;-use email_api_client::domain::models::{EmailApiError, TokenFreshness};use models_email::email::service::backfill::{BackfillJob, BackfillJobStatus, BackfillOperation, BackfillPubsubMessage, JobScopedPayload,};@@ -14,30 +13,6 @@ use models_email::email::service::pubsub::{DetailedError, FailureReason, Processuse sqs_worker::cleanup_message;use uuid::Uuid;-/// When calendar sync is disabled, return the delivery's outbox row to the-/// unpublished state and ack the message; the outbox drain republishes it-/// once the switch flips back on. `None` means calendar sync is enabled and-/// the delivery should proceed.-async fn park_calendar_delivery(- ctx: &PubSubContext,- calendar_job_id: Uuid,-) -> Option<Result<(), ProcessingError>> {- if ctx.calendar_sync_enabled {- return None;- }- tracing::info!(%calendar_job_id, "calendar sync disabled; returning delivery to the outbox");- Some(- crate::calendar_outbox::republish_calendar_job(&ctx.db, calendar_job_id)- .await- .map_err(|e| {- ProcessingError::Retryable(DetailedError {- reason: FailureReason::DatabaseQueryFailed,- source: e.context("failed to return calendar delivery to the outbox"),- })- }),- )-}-// Process a single message from the backfill queuepub async fn process_message(ctx: PubSubContext,@@ -144,39 +119,6 @@ async fn inner_process_message(};backfill_attachment::backfill_attachment(ctx, &link, &scope.payload).await}- BackfillOperation::CalendarGoogleBackfill(scope) => {- if let Some(parked) = park_calendar_delivery(ctx, scope.payload.calendar_job_id).await {- return parked;- }- let link = fetch_link(ctx, scope.link_id).await?;- // Calendar jobs can be created immediately after an incremental- // Google scope grant. Bypass the Gmail token cache so this job does- // not reuse a pre-consent access token that lacks calendar scopes.- let access_token = ctx- .email_api- .get_access_token(link.id, TokenFreshness::Fresh)- .await- .map_err(|error| {- let is_auth_required = matches!(error, EmailApiError::AuthRequired);- let detail = DetailedError {- reason: FailureReason::AccessTokenFetchFailed,- source: anyhow::anyhow!(error)- .context("failed to fetch token for Google Calendar backfill"),- };- if is_auth_required {- ProcessingError::NonRetryable(detail)- } else {- ProcessingError::Retryable(detail)- }- })?;- calendar_google_backfill::calendar_google_backfill(- ctx,- access_token.expose_secret(),- &link,- &scope.payload,- )- .await- }BackfillOperation::FinalizeBackfill(scope) => {increment_counters::finalize_backfill(ctx, scope.link_id, scope.job_id).await}diff --git a/services/email_service/src/pubsub/backfill/worker.rs b/services/email_service/src/pubsub/backfill/worker.rsindex bf304a5e4a..68a6a937f1 100644--- a/services/email_service/src/pubsub/backfill/worker.rs+++ b/services/email_service/src/pubsub/backfill/worker.rs@@ -1,8 +1,7 @@use crate::outbound::email_api::GmailApi;use crate::pubsub::backfill::process;use crate::pubsub::context::{- CalendarBackfillServices, CrmServiceType, NotificationIngressType, PubSubContext,- PubSubEventBroker,+ CrmServiceType, NotificationIngressType, PubSubContext, PubSubEventBroker,};use crate::pubsub::worker_lifecycle::run_until_cancelled;use crate::util::redis::RedisClient;@@ -33,7 +32,6 @@ pub async fn run_worker(crm_service: CrmServiceType,macro_event_broker: PubSubEventBroker,notifications_enabled: bool,- calendar_sync_enabled: bool,) {run_worker_with_cancellation(db,@@ -50,7 +48,6 @@ pub async fn run_worker(crm_service,macro_event_broker,notifications_enabled,- calendar_sync_enabled,CancellationToken::new(),).await;@@ -75,11 +72,8 @@ pub async fn run_worker_with_cancellation(crm_service: CrmServiceType,macro_event_broker: PubSubEventBroker,notifications_enabled: bool,- calendar_sync_enabled: bool,cancellation_token: CancellationToken,) {- let calendar_backfills =- CalendarBackfillServices::new(db.clone(), redis_client.clone(), macro_event_broker.clone());let ctx = PubSubContext {db,sqs_worker: worker.clone(),@@ -95,9 +89,7 @@ pub async fn run_worker_with_cancellation(crm_service,macro_event_broker,notifications_enabled,- calendar_sync_enabled,retry_worker: false,- calendar_backfills,};loop {diff --git a/services/email_service/src/pubsub/context.rs b/services/email_service/src/pubsub/context.rsindex 65ab5fbe5c..4ad664cc55 100644--- a/services/email_service/src/pubsub/context.rs+++ b/services/email_service/src/pubsub/context.rs@@ -1,11 +1,5 @@use crate::outbound::email_api::GmailApi;-use crate::pubsub::calendar_backfill_adapters::RedisCalendarRequestGate;use crate::util::redis::RedisClient;-use calendar_events::{- domain::models::GoogleWatchConfig,- domain::service::{GoogleCalendarBackfillCoordinator, GoogleCalendarBackfillFailureService},- outbound::{google::GoogleCalendarClient, pg::PgCalendarRepository},-};use connection_gateway_client::client::ConnectionGatewayClient;use contacts::domain::service::SqsContactsIngress;use contacts::outbound::ingress::SqsContactsQueue;@@ -31,70 +25,6 @@ pub type PubSubEventBroker = MacroEventBrokerService<KafkaEventPublisher, TaskTr/// The concrete notification ingress service type.pub type NotificationIngressType = SqsNotificationIngress<SqsQueue>;-/// Concrete Google Calendar backfill application service.-pub type GoogleCalendarBackfillService = GoogleCalendarBackfillCoordinator<- PgCalendarRepository,- GoogleCalendarClient<RedisCalendarRequestGate>,- PgCalendarRepository,- PubSubEventBroker,->;--/// Concrete pre-lease Google Calendar failure application service.-pub type GoogleCalendarBackfillFailureHandler =- GoogleCalendarBackfillFailureService<PgCalendarRepository>;--/// Calendar application services composed once when a worker starts.-#[derive(Clone)]-pub struct CalendarBackfillServices {- /// Google provider backfill coordinator.- pub google: Arc<GoogleCalendarBackfillService>,- /// Applies terminal provider failures that happen before a lease is claimed.- pub google_failure: Arc<GoogleCalendarBackfillFailureHandler>,-}--impl CalendarBackfillServices {- /// Compose calendar application services from process-level adapters.- pub fn new(- db: PgPool,- redis_client: RedisClient,- macro_event_broker: PubSubEventBroker,- ) -> Self {- let repository = PgCalendarRepository::new(db);- Self {- google: Arc::new(GoogleCalendarBackfillCoordinator::new(- repository.clone(),- GoogleCalendarClient::with_gate(- reqwest::Client::builder()- .timeout(std::time::Duration::from_secs(30))- .build()- .expect("calendar client configuration is valid"),- RedisCalendarRequestGate::new(redis_client),- ),- repository.clone(),- macro_event_broker,- calendar_watch_config(),- )),- google_failure: Arc::new(GoogleCalendarBackfillFailureService::new(repository)),- }- }-}--/// Push notification channels are opened only when both optional watch-/// variables are configured; without them the 5-minute poll is the sole-/// freshness mechanism.-pub fn calendar_watch_config() -> Option<GoogleWatchConfig> {- // A variable set to an empty string must count as unset: a blank token- // would verify blank-header webhook requests.- let read = |name| {- macro_env_var::maybe_read_env(name)- .map(|value| value.trim().to_owned())- .filter(|value| !value.is_empty())- };- let address = read("CALENDAR_WATCH_WEBHOOK_URL")?;- let token = read("CALENDAR_WATCH_TOKEN")?;- Some(GoogleWatchConfig { address, token })-}-/// The unfurl-backed resolver used when Apollo enrichment is disabled.type UnfurlResolver = UnfurlCompanyMetadataResolver<unfurl::domain::service::UnfurlServiceImpl<unfurl::outbound::ReqwestUnfurlFetcher>,@@ -144,7 +74,5 @@ pub struct PubSubContext {pub crm_service: CrmServiceType,pub macro_event_broker: PubSubEventBroker,pub notifications_enabled: bool,- pub calendar_sync_enabled: bool,pub retry_worker: bool,- pub calendar_backfills: CalendarBackfillServices,}diff --git a/services/email_service/src/pubsub/inbox_sync/worker.rs b/services/email_service/src/pubsub/inbox_sync/worker.rsindex d3bf7bb197..18df3b0cde 100644--- a/services/email_service/src/pubsub/inbox_sync/worker.rs+++ b/services/email_service/src/pubsub/inbox_sync/worker.rs@@ -1,7 +1,6 @@use crate::outbound::email_api::GmailApi;use crate::pubsub::context::{- CalendarBackfillServices, CrmServiceType, NotificationIngressType, PubSubContext,- PubSubEventBroker,+ CrmServiceType, NotificationIngressType, PubSubContext, PubSubEventBroker,};use crate::pubsub::inbox_sync::process;use crate::pubsub::worker_lifecycle::run_until_cancelled;@@ -33,7 +32,6 @@ pub async fn run_worker(crm_service: CrmServiceType,macro_event_broker: PubSubEventBroker,notifications_enabled: bool,- calendar_sync_enabled: bool,retry_worker: bool,) {run_worker_with_cancellation(@@ -51,7 +49,6 @@ pub async fn run_worker(crm_service,macro_event_broker,notifications_enabled,- calendar_sync_enabled,retry_worker,CancellationToken::new(),)@@ -77,12 +74,9 @@ pub async fn run_worker_with_cancellation(crm_service: CrmServiceType,macro_event_broker: PubSubEventBroker,notifications_enabled: bool,- calendar_sync_enabled: bool,retry_worker: bool,cancellation_token: CancellationToken,) {- let calendar_backfills =- CalendarBackfillServices::new(db.clone(), redis_client.clone(), macro_event_broker.clone());let ctx = PubSubContext {db,sqs_worker: worker.clone(),@@ -98,9 +92,7 @@ pub async fn run_worker_with_cancellation(crm_service,macro_event_broker,notifications_enabled,- calendar_sync_enabled,retry_worker,- calendar_backfills,};loop {diff --git a/services/email_service/src/pubsub/mod.rs b/services/email_service/src/pubsub/mod.rsindex e34bbceeef..7d08068e8a 100644--- a/services/email_service/src/pubsub/mod.rs+++ b/services/email_service/src/pubsub/mod.rs@@ -1,6 +1,4 @@pub mod backfill;-/// Outbound adapters used by calendar backfill application services.-pub mod calendar_backfill_adapters;pub mod context;/// The flag-selected CRM metadata resolver, re-exported for the/// pubsub_workers binary to construct.