Skip to content

armgit / macro

Public Imported from GitHub
0

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

feat(calendar): overlay teammates out-of-office on the calendar (#6156)

gbirman271b94f9907c
diff --git a/.sqlx/query-6d25203568e8d3b2465b5305f9eed99f0d33a0e834a34f1618267626cba12cd6.json b/.sqlx/query-6d25203568e8d3b2465b5305f9eed99f0d33a0e834a34f1618267626cba12cd6.json
new file mode 100644
index 0000000000..6d3e030973
--- /dev/null
+++ b/.sqlx/query-6d25203568e8d3b2465b5305f9eed99f0d33a0e834a34f1618267626cba12cd6.json
@@ -0,0 +1,87 @@
+{
+ "db_name": "PostgreSQL",
+ "query": "\n SELECT\n owner_id AS \"owner_id!\",\n event_id AS \"event_id!\",\n ical_uid AS \"ical_uid!\",\n occurrence_key AS \"occurrence_key!\",\n title AS \"title!\",\n visibility AS \"visibility!\",\n time_zone,\n occurrence_starts_at AS \"occurrence_starts_at?\",\n occurrence_ends_at AS \"occurrence_ends_at?\",\n occurrence_start_date AS \"occurrence_start_date?\",\n occurrence_end_date AS \"occurrence_end_date?\"\n FROM (\n SELECT DISTINCT ON (event.owner_id, event.ical_uid, occurrence.occurrence_key)\n event.owner_id,\n occurrence.event_id,\n event.ical_uid,\n occurrence.occurrence_key,\n event.title,\n event.visibility,\n event.time_zone,\n occurrence.starts_at AS occurrence_starts_at,\n occurrence.ends_at AS occurrence_ends_at,\n occurrence.start_date AS occurrence_start_date,\n occurrence.end_date AS occurrence_end_date,\n COALESCE(\n occurrence.starts_at,\n occurrence.start_date::timestamp AT TIME ZONE 'UTC'\n ) AS occurrence_ordering\n FROM calendar_event_occurrences occurrence\n JOIN calendar_events event ON event.id = occurrence.event_id\n WHERE occurrence.owner_id IN (\n SELECT teammate.user_id\n FROM team_user membership\n JOIN team_user teammate ON teammate.team_id = membership.team_id\n WHERE membership.user_id = $1\n AND teammate.user_id <> $1\n )\n AND event.event_type = 'out_of_office'\n AND event.status <> 'cancelled'\n AND NOT occurrence.is_cancelled\n AND EXISTS (\n SELECT 1\n FROM calendar_event_sources source\n JOIN calendars calendar ON calendar.id = source.calendar_id\n JOIN calendar_accounts account ON account.id = source.account_id\n WHERE source.event_id = event.id\n AND calendar.is_primary\n AND NOT calendar.is_deleted\n AND account.sync_status <> 'disabled'\n )\n AND (\n occurrence.timed_span && tstzrange($2, $3, '[)')\n OR occurrence.day_span && daterange($4, $5, '[)')\n )\n ORDER BY\n event.owner_id,\n event.ical_uid,\n occurrence.occurrence_key,\n occurrence.event_id\n ) occurrence\n ORDER BY\n occurrence.occurrence_ordering,\n occurrence.event_id,\n occurrence.occurrence_key\n LIMIT $6\n ",
+ "describe": {
+ "columns": [
+ {
+ "ordinal": 0,
+ "name": "owner_id!",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 1,
+ "name": "event_id!",
+ "type_info": "Uuid"
+ },
+ {
+ "ordinal": 2,
+ "name": "ical_uid!",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 3,
+ "name": "occurrence_key!",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 4,
+ "name": "title!",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 5,
+ "name": "visibility!",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 6,
+ "name": "time_zone",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 7,
+ "name": "occurrence_starts_at?",
+ "type_info": "Timestamptz"
+ },
+ {
+ "ordinal": 8,
+ "name": "occurrence_ends_at?",
+ "type_info": "Timestamptz"
+ },
+ {
+ "ordinal": 9,
+ "name": "occurrence_start_date?",
+ "type_info": "Date"
+ },
+ {
+ "ordinal": 10,
+ "name": "occurrence_end_date?",
+ "type_info": "Date"
+ }
+ ],
+ "parameters": {
+ "Left": [
+ "Text",
+ "Timestamptz",
+ "Timestamptz",
+ "Date",
+ "Date",
+ "Int8"
+ ]
+ },
+ "nullable": [
+ false,
+ false,
+ false,
+ false,
+ false,
+ false,
+ true,
+ true,
+ true,
+ true,
+ true
+ ]
+ },
+ "hash": "6d25203568e8d3b2465b5305f9eed99f0d33a0e834a34f1618267626cba12cd6"
+}
diff --git a/apps/web/AGENTS.md b/apps/web/AGENTS.md
index c4f5677c0e..3aa68a00bc 100644
--- a/apps/web/AGENTS.md
+++ b/apps/web/AGENTS.md
@@ -21,6 +21,20 @@ cd apps/web && PORT=3003 bun run dev # any free port in 3000-3009
- Never assume port 3000 or 3002 is yours. Check with `lsof -nP -iTCP:<port> -sTCP:LISTEN -t` and confirm the owner's worktree via `lsof -p <pid> | awk '$4=="cwd"'`. Take a free port instead of killing another session's server, and reuse one only if its cwd is this worktree.
- The `.cursor/*.sh` scripts and the `run-app` skill are **Cursor Cloud** entry points. On a local machine they prompt for sudo and are the wrong tool. Only backend (Rust) changes need the local stack.
+
+### When the change needs a local backend
+
+`bun run dev` talks to the deployed dev backend, so a change that adds or alters a backend endpoint can't be fully verified that way (the new route 404s against dev). Start the full local stack from the repository root:
+
+```sh
+nix develop --command just run_local --instance <name>
+```
+
+- Launch it through `nix develop`: the services are cross-compiled with `cargo zigbuild`, which only exists in the nix dev shell. A bare `just run_local` fails with ``no such command: `zigbuild` ``.
+- `--instance <name>` gives an isolated Compose project, volumes, and a deterministic per-name port window, so it never clashes with another worktree's stack. `just status_local --instance <name>` prints the endpoints without starting anything; `just stop_local --instance <name>` stops it (volumes kept) and `just destroy_local --instance <name>` removes it.
+- First bring-up is slow (zigbuild of every service plus the agent-harness sandbox image); later runs reuse the caches. While attached, press `r` to rebuild changed Rust services in place and `q` to stop cleanly.
+- No accounts are pre-created: passwordless login registers any email on demand, and the one-time code lands in the instance's Mailpit (endpoint in `just status_local`). `just seed-scenario apply --file seed/scenarios/team-perms.json` seeds multi-user team fixtures with printed login links.
+- Full details, Doppler vs no-Doppler modes, and port-conflict debugging: `docs/RUNNING_LOCALLY.md`.
- First run in a fresh worktree spends a few minutes on `just ensure-cache-wasm` / `just ensure-agent-fold-wasm` before Vite serves.
- That tab is pointed at **real dev data**. Treat creates, edits, and deletes as real, and discard drafts you open.
diff --git a/apps/web/src/features/block-calendar/components/Page.tsx b/apps/web/src/features/block-calendar/components/Page.tsx
index d5519e14c8..ecfc3ddfb9 100644
--- a/apps/web/src/features/block-calendar/components/Page.tsx
+++ b/apps/web/src/features/block-calendar/components/Page.tsx
@@ -13,6 +13,7 @@ import {
useCalendarOccurrenceData,
} from '@app/features/calendar/hooks/use-calendar-occurrence-data';
import { useCalendarTimeGridHoverIndicator } from '@app/features/calendar/hooks/use-calendar-time-grid-hover-indicator';
+import { useTeamOooEvents } from '@app/features/calendar/hooks/use-team-ooo';
import type { CalendarEvent } from '@app/features/calendar/types';
import { DEFAULT_CALENDAR_SOURCE } from '@app/features/calendar/types';
import { isCalendarRangeSupported } from '@app/features/calendar/utils/calendar-supported-range';
@@ -236,6 +237,20 @@ export function Page(props: {
refetchOnWindowFocus: isActive(),
}),
});
+ const teamOoo = useTeamOooEvents({
+ range,
+ isSourceVisible: calendarView.isSourceVisible,
+ refetchOnWindowFocus: isActive,
+ });
+ const visibleEvents = createMemo(() => [
+ ...data.visibleEvents(),
+ ...teamOoo.visibleEvents(),
+ ]);
+ const eventsById = createMemo(() =>
+ teamOoo.eventsById().size === 0
+ ? data.eventsById()
+ : new Map([...data.eventsById(), ...teamOoo.eventsById()])
+ );
const updateEventTime = useUpdateCalendarEventMutation();
const handleSelect = (selection: DateSelectArg) => {
if (!isActive()) return;
@@ -305,8 +320,8 @@ export function Page(props: {
return (
<CalendarGrid
initialDate={props.initialDate}
- events={data.visibleEvents()}
- eventsById={data.eventsById()}
+ events={visibleEvents()}
+ eventsById={eventsById()}
settings={{
initialView: calendarView.displaySettings.periodView,
showWeekends: calendarView.displaySettings.showWeekends,
@@ -327,7 +342,15 @@ export function Page(props: {
onDatesSet={handleDatesSet}
onEventTimeChange={handleEventTimeChange}
>
- {(grid) => <CalendarPageHost id={props.id} data={data} grid={grid} />}
+ {(grid) => (
+ <CalendarPageHost
+ id={props.id}
+ data={data}
+ teamEvents={teamOoo.visibleEvents}
+ eventsById={eventsById}
+ grid={grid}
+ />
+ )}
</CalendarGrid>
);
}
@@ -335,6 +358,10 @@ export function Page(props: {
function CalendarPageHost(props: {
id: CalendarPageId;
data: CalendarOccurrenceData;
+ /** Teammate out-of-office events rendered on this page. */
+ teamEvents: Accessor<CalendarEvent[]>;
+ /** Occurrence events merged with the team out-of-office overlay. */
+ eventsById: Accessor<Map<string, CalendarEvent>>;
grid: CalendarGridHandle;
}) {
const pager = useCalendarPager();
@@ -361,7 +388,7 @@ function CalendarPageHost(props: {
return;
}
const targetId = calendarFocusTargetId(target);
- const event = props.data.eventsById().get(targetId);
+ const event = props.eventsById().get(targetId);
const chip = props.grid.eventElements.get(targetId);
if (!event || !chip?.isConnected) return;
calendarFocus.consume(target.requestId);
@@ -380,6 +407,7 @@ function CalendarPageHost(props: {
dateInfo: props.grid.dateInfo,
element: props.grid.element,
data: props.data,
+ teamEvents: props.teamEvents,
});
onCleanup(unregister);
});
@@ -417,7 +445,7 @@ function CalendarPageHost(props: {
return;
}
- const selectedEvent = props.data.eventsById().get(selectedEventId);
+ const selectedEvent = props.eventsById().get(selectedEventId);
if (selectedEvent) calendarView.refreshSelectedEvent(selectedEvent);
else calendarView.closeEventDetails();
}
diff --git a/apps/web/src/features/block-calendar/components/SetupStatus.tsx b/apps/web/src/features/block-calendar/components/SetupStatus.tsx
index 2f6d3c59ec..01f37abe5e 100644
--- a/apps/web/src/features/block-calendar/components/SetupStatus.tsx
+++ b/apps/web/src/features/block-calendar/components/SetupStatus.tsx
@@ -35,7 +35,8 @@ export function SetupStatus() {
const startAddInbox = useAddInboxFlow();
const hasEvents = () =>
- (calendarPager.activeData()?.events().length ?? 0) > 0;
+ (calendarPager.activeData()?.events().length ?? 0) > 0 ||
+ calendarPager.activeTeamEvents().length > 0;
// Existing events are not evidence that setup is complete: a revoked grant
// or delegated inbox can leave events visible without a working calendar
diff --git a/apps/web/src/features/block-calendar/components/SidePanelSections.tsx b/apps/web/src/features/block-calendar/components/SidePanelSections.tsx
index a5b25be0da..7dab09d6de 100644
--- a/apps/web/src/features/block-calendar/components/SidePanelSections.tsx
+++ b/apps/web/src/features/block-calendar/components/SidePanelSections.tsx
@@ -1,9 +1,24 @@
import { useCalendarPager } from '@app/features/calendar/components/CalendarPagerContext';
import { useCalendarView } from '@app/features/calendar/components/CalendarViewContext';
import { SourceControls } from '@app/features/calendar/components/SourceControls';
+import {
+ TEAM_OOO_SOURCE_ID,
+ TEAM_OOO_SOURCE_PREFIX,
+ type TeamOooWindow,
+ useHasTeammates,
+ useUpcomingTeamOoo,
+} from '@app/features/calendar/hooks/use-team-ooo';
import { SidePanel, useSidePanel } from '@components/app/side-panel/SidePanel';
-import { Calendar as MiniCalendar } from '@ui';
-import { createEffect, createMemo, createSignal, on, Show } from 'solid-js';
+import { Calendar as MiniCalendar, ToggleSwitch } from '@ui';
+import { format } from 'date-fns';
+import {
+ createEffect,
+ createMemo,
+ createSignal,
+ For,
+ on,
+ Show,
+} from 'solid-js';
function CalendarMiniCalendarSidePanelSection() {
const calendarView = useCalendarView();
@@ -85,6 +100,106 @@ function CalendarSourcesSidePanelSection() {
);
}
+function CalendarTeamOooSidePanelSection() {
+ const calendarView = useCalendarView();
+ const hasTeammates = useHasTeammates();
+ const isOverlayVisible = () =>
+ calendarView.isSourceVisible(TEAM_OOO_SOURCE_ID);
+ const setOverlayVisible = (visible: boolean) => {
+ calendarView.setSourceVisibility(TEAM_OOO_SOURCE_ID, visible);
+ // Hiding the whole overlay closes a teammate event's open details, which
+ // the per-source close in setSourceVisibility only does for exact ids.
+ if (
+ !visible &&
+ calendarView
+ .selectedEvent()
+ ?.calendar.id.startsWith(TEAM_OOO_SOURCE_PREFIX)
+ ) {
+ calendarView.closeEventDetails();
+ }
+ };
+
+ return (
+ <Show when={hasTeammates()}>
+ <SidePanel.Section
+ id="calendar-team-ooo"
+ title="Team out of office"
+ order={30}
+ defaultOpen
+ actions={
+ <span title="Show on calendar">
+ <ToggleSwitch
+ checked={isOverlayVisible()}
+ onChange={setOverlayVisible}
+ aria-label="Show team out of office on the calendar"
+ />
+ </span>
+ }
+ >
+ <TeamOooUpcomingList />
+ </SidePanel.Section>
+ </Show>
+ );
+}
+
+const UPCOMING_SHOWN_MAX = 10;
+
+function windowDateLabel(window: TeamOooWindow): string {
+ // The exclusive end pulled back a moment lands on the last covered day for
+ // both all-day dates and timed spans ending at midnight.
+ const lastDay = new Date(window.end.getTime() - 1);
+ return window.start.toDateString() === lastDay.toDateString()
+ ? format(window.start, 'EEE, MMM d')
+ : `${format(window.start, 'MMM d')} – ${format(lastDay, 'MMM d')}`;
+}
+
+function TeamOooUpcomingList() {
+ const calendarPager = useCalendarPager();
+ const windows = useUpcomingTeamOoo();
+
+ return (
+ <div class="flex flex-col gap-0.5">
+ <Show
+ when={windows().length > 0}
+ fallback={
+ <span class="px-2 py-1 text-xs text-ink-muted">
+ No time off in the next 90 days
+ </span>
+ }
+ >
+ <For each={windows().slice(0, UPCOMING_SHOWN_MAX)}>
+ {(window) => (
+ <button
+ type="button"
+ class="flex w-full flex-col rounded-lg px-2 py-1.5 text-left text-xs hover:bg-hover"
+ onClick={() => calendarPager.gotoDate(window.start)}
+ >
+ <span class="flex w-full items-baseline gap-2">
+ <span class="min-w-0 flex-1 truncate text-ink">
+ {window.name}
+ </span>
+ <span class="shrink-0 text-ink-muted">
+ {windowDateLabel(window)}
+ </span>
+ </span>
+ <Show when={window.title}>
+ <span class="w-full truncate text-ink-muted">
+ {window.title}
+ </span>
+ </Show>
+ </button>
+ )}
+ </For>
+ <Show when={windows().length > UPCOMING_SHOWN_MAX}>
+ <span class="px-2 py-1 text-xs text-ink-muted">
+ +{windows().length - UPCOMING_SHOWN_MAX} more
+ </span>
+ </Show>
+ </Show>
+ </div>
+ );
+}
+
/** Registers the calendar's contextual right-side panel sections. */
export function SidePanelSections() {
const sidePanel = useSidePanel();
@@ -93,6 +208,7 @@ export function SidePanelSections() {
<Show when={!sidePanel?.isNarrow()}>
<CalendarMiniCalendarSidePanelSection />
<CalendarSourcesSidePanelSection />
+ <CalendarTeamOooSidePanelSection />
</Show>
);
}
diff --git a/apps/web/src/features/calendar/components/CalendarPagerContext.tsx b/apps/web/src/features/calendar/components/CalendarPagerContext.tsx
index bab0bc224e..b3c4eec354 100644
--- a/apps/web/src/features/calendar/components/CalendarPagerContext.tsx
+++ b/apps/web/src/features/calendar/components/CalendarPagerContext.tsx
@@ -12,7 +12,7 @@ import {
type ParentProps,
} from 'solid-js';
import type { CalendarOccurrenceData } from '../hooks/use-calendar-occurrence-data';
-import type { CalendarPeriodView } from '../types';
+import type { CalendarEvent, CalendarPeriodView } from '../types';
import { timeGridScroller } from '../utils/time-grid-scroller';
export const CALENDAR_PAGE_IDS = ['previous', 'current', 'next'] as const;
@@ -24,6 +24,10 @@ interface CalendarPageHandle {
dateInfo: Accessor<DatesSetArg | undefined>;
element: Accessor<HTMLDivElement | undefined>;
data: CalendarOccurrenceData;
+ /** Teammate out-of-office events overlaid on the page, when the surface
+ * renders them. Kept out of `data` so occurrence-derived consumers (e.g.
+ * availability) never mix in other people's events. */
+ teamEvents?: Accessor<CalendarEvent[]>;
}
const shiftedDateForView = (
@@ -285,6 +289,7 @@ function createCalendarPagerContext(props: CalendarPagerContextProps) {
activePage,
activeData,
activeDateInfo,
+ activeTeamEvents: () => activePage()?.teamEvents?.() ?? [],
visibleRange: () => activeData()?.range(),
initialDateFor: (id: CalendarPageId) => initialDates[id],
isActive: (id: CalendarPageId) => activePageId() === id,
diff --git a/apps/web/src/features/calendar/hooks/use-team-ooo.ts b/apps/web/src/features/calendar/hooks/use-team-ooo.ts
new file mode 100644
index 0000000000..9e1e5ea02d
--- /dev/null
+++ b/apps/web/src/features/calendar/hooks/use-team-ooo.ts
@@ -0,0 +1,159 @@
+import { useUserId } from '@core/context/user';
+import { getDisplayName, tryMacroId } from '@core/user';
+import {
+ type CalendarOccurrenceQueryRange,
+ createCalendarOccurrenceQueryRange,
+} from '@queries/calendar/occurrences';
+import { useTeamOutOfOfficeQuery } from '@queries/calendar/team-ooo';
+import { useCurrentTeamQuery } from '@queries/team/teams';
+import { EventType } from '@service-storage/generated/schemas/eventType';
+import type { TeamOutOfOfficeItem } from '@service-storage/generated/schemas/teamOutOfOfficeItem';
+import { parseISO } from 'date-fns';
+import { type Accessor, createMemo } from 'solid-js';
+import type { CalendarEvent } from '../types';
+import { isCalendarRangeSupported } from '../utils/calendar-supported-range';
+
+/** Visibility-source id gating the whole team out-of-office overlay. */
+export const TEAM_OOO_SOURCE_ID = 'team-ooo';
+
+/** Prefix of every per-teammate visibility-source id. */
+export const TEAM_OOO_SOURCE_PREFIX = 'team-ooo:';
+
+const TEAM_OOO_COLOR = 'var(--color-ink-muted)';
+const TEAM_OOO_FALLBACK_TITLE = 'Out of office';
+
+/** Visibility-source id for one teammate's out-of-office overlay. */
+export function teamOooSourceId(ownerId: string) {
+ return `${TEAM_OOO_SOURCE_PREFIX}${ownerId}`;
+}
+
+/** Whether the current user's team has other members. */
+export function useHasTeammates(): Accessor<boolean> {
+ const userId = useUserId();
+ const teamQuery = useCurrentTeamQuery();
+
+ return () => {
+ const team = teamQuery.isSuccess ? teamQuery.data : undefined;
+ const self = userId();
+ return (team?.members ?? []).some((member) => member.user_id !== self);
+ };
+}
+
+function mapTeamOooItem(item: TeamOutOfOfficeItem): CalendarEvent {
+ const time = item.time;
+ const range =
+ time.kind === 'timed'
+ ? { allDay: false, start: time.startsAt, end: time.endsAt }
+ : { allDay: true, start: time.startDate, end: time.endDate };
+ const name = getDisplayName(tryMacroId(item.ownerId));
+ const title = item.title ?? TEAM_OOO_FALLBACK_TITLE;
+
+ return {
+ ...range,
+ id: JSON.stringify([item.eventId, item.occurrenceKey]),
+ eventId: item.eventId,
+ occurrenceKey: item.occurrenceKey,
+ isCancelled: false,
+ isReadOnly: true,
+ attendees: [],
+ recurrenceLines: [],
+ eventType: EventType.out_of_office,
+ timeZone: time.kind === 'timed' ? (time.timeZone ?? undefined) : undefined,
+ title: name ? `${name}: ${title}` : title,
+ calendar: {
+ id: teamOooSourceId(item.ownerId),
+ name: name || TEAM_OOO_FALLBACK_TITLE,
+ color: TEAM_OOO_COLOR,
+ },
+ };
+}
+
+export interface TeamOooEventData {
+ events: Accessor<CalendarEvent[]>;
+ visibleEvents: Accessor<CalendarEvent[]>;
+ eventsById: Accessor<Map<string, CalendarEvent>>;
+}
+
+export interface TeamOooEventOptions {
+ range: Accessor<CalendarOccurrenceQueryRange | undefined>;
+ isSourceVisible?: (sourceId: string) => boolean;
+ refetchOnWindowFocus?: Accessor<boolean>;
+}
+
+/** Query-backed teammate out-of-office events overlaid on the calendar. */
+export function useTeamOooEvents(
+ options: TeamOooEventOptions
+): TeamOooEventData {
+ const userId = useUserId();
+ const isRangeSupported = createMemo(() => {
+ const range = options.range();
+ return range !== undefined && isCalendarRangeSupported(range);
+ });
+ const isOverlayVisible = () =>
+ options.isSourceVisible?.(TEAM_OOO_SOURCE_ID) !== false;
+ const query = useTeamOutOfOfficeQuery(
+ () => ({ userId: userId(), range: options.range() }),
+ () => ({
+ enabled: isRangeSupported() && isOverlayVisible(),
+ refetchOnWindowFocus: options.refetchOnWindowFocus?.(),
+ })
+ );
+ const events = createMemo(() => {
+ if (!isRangeSupported()) return [];
+ return (query.data ?? []).map(mapTeamOooItem);
+ });
+ const visibleEvents = createMemo(() => (isOverlayVisible() ? events() : []));
+ const eventsById = createMemo(
+ () => new Map(events().map((event) => [event.id, event]))
+ );
+
+ return { events, visibleEvents, eventsById };
+}
+
+/** One teammate absence window for list surfaces. */
+export interface TeamOooWindow {
+ ownerId: string;
+ eventId: string;
+ occurrenceKey: string;
+ /** Teammate display name, resolved reactively from the shared cache. */
+ name: string;
+ /** Event title, absent when visibility withholds it. */
+ title?: string;
+ start: Date;
+ /** Exclusive end. */
+ end: Date;
+ allDay: boolean;
+}
+
+const UPCOMING_TEAM_OOO_DAYS = 90;
+
+/** Teammates' out-of-office windows from today forward, soonest first. */
+export function useUpcomingTeamOoo(): Accessor<TeamOooWindow[]> {
+ const userId = useUserId();
+ const rangeStart = new Date();
+ rangeStart.setHours(0, 0, 0, 0);
+ const rangeEnd = new Date(rangeStart);
+ rangeEnd.setDate(rangeEnd.getDate() + UPCOMING_TEAM_OOO_DAYS);
+ const range = createCalendarOccurrenceQueryRange(rangeStart, rangeEnd);
+ const query = useTeamOutOfOfficeQuery(() => ({ userId: userId(), range }));
+
+ return createMemo(() =>
+ (query.data ?? []).map((item) => {
+ const time = item.time;
+ const [start, end, allDay] =
+ time.kind === 'timed'
+ ? [new Date(time.startsAt), new Date(time.endsAt), false]
+ : [parseISO(time.startDate), parseISO(time.endDate), true];
+ return {
+ ownerId: item.ownerId,
+ eventId: item.eventId,
+ occurrenceKey: item.occurrenceKey,
+ name: getDisplayName(tryMacroId(item.ownerId)),
+ title: item.title ?? undefined,
+ start,
+ end,
+ allDay,
+ };
+ })
+ );
+}
diff --git a/apps/web/src/lib/queries/calendar/keys.ts b/apps/web/src/lib/queries/calendar/keys.ts
index 9cc56e7abc..528cbdf155 100644
--- a/apps/web/src/lib/queries/calendar/keys.ts
+++ b/apps/web/src/lib/queries/calendar/keys.ts
@@ -15,6 +15,12 @@ export const calendarKeys = createQueryKeys('calendar', {
) => ({
queryKey: [userId, range],
}),
+ teamOutOfOffice: (
+ userId: string,
+ range: CalendarOccurrenceQueryRange | undefined
+ ) => ({
+ queryKey: [userId, range],
+ }),
mentionPreview: (eventId: string, occurrenceKey: string | undefined) => ({
queryKey: [eventId, occurrenceKey],
}),
diff --git a/apps/web/src/lib/queries/calendar/team-ooo.ts b/apps/web/src/lib/queries/calendar/team-ooo.ts
new file mode 100644
index 0000000000..1e3636e24c
--- /dev/null
+++ b/apps/web/src/lib/queries/calendar/team-ooo.ts
@@ -0,0 +1,66 @@
+import { throwOnErr } from '@core/util/result';
+import { queryClient } from '@queries/client';
+import { storageServiceClient } from '@service-storage/client';
+import type { TeamOutOfOfficeItem } from '@service-storage/generated/schemas/teamOutOfOfficeItem';
+import { useQuery } from '@tanstack/solid-query';
+import type { Accessor } from 'solid-js';
+import { type CalendarOccurrenceQueryRange, calendarKeys } from './keys';
+
+const TEAM_OOO_PAGE_SIZE = 2000;
+const TEAM_OOO_STALE_TIME = 60_000;
+
+export interface TeamOutOfOfficeQueryInput {
+ userId: string | undefined;
+ range: CalendarOccurrenceQueryRange | undefined;
+}
+
+export interface TeamOutOfOfficeQueryOptions {
+ enabled?: boolean;
+ refetchOnWindowFocus?: boolean;
+}
+
+/** Fetches teammates' out-of-office occurrences for one viewport. */
+export async function fetchTeamOutOfOffice(
+ range: CalendarOccurrenceQueryRange,
+ signal?: AbortSignal
+): Promise<TeamOutOfOfficeItem[]> {
+ const response = await throwOnErr(() =>
+ storageServiceClient.listTeamOutOfOffice({
+ ...range,
+ limit: TEAM_OOO_PAGE_SIZE,
+ signal,
+ })
+ );
+ return response.items;
+}
+
+export function useTeamOutOfOfficeQuery(
+ input: Accessor<TeamOutOfOfficeQueryInput>,
+ options?: Accessor<TeamOutOfOfficeQueryOptions>
+) {
+ return useQuery(() => {
+ const { userId, range } = input();
+
+ return {
+ queryKey: calendarKeys.teamOutOfOffice(userId ?? '', range).queryKey,
+ queryFn: ({ signal }: { signal?: AbortSignal }) => {
+ if (!range) {
+ throw new Error('Team out-of-office range is unavailable');
+ }
+
+ return fetchTeamOutOfOffice(range, signal);
+ },
+ enabled:
+ Boolean(userId) && range !== undefined && options?.().enabled !== false,
+ staleTime: TEAM_OOO_STALE_TIME,
+ placeholderData: (p: TeamOutOfOfficeItem[] | undefined) => p,
+ refetchOnWindowFocus: options?.().refetchOnWindowFocus ?? true,
+ };
+ });
+}
+
+export function invalidateTeamOutOfOffice() {
+ return queryClient.invalidateQueries({
+ queryKey: calendarKeys.teamOutOfOffice._def,
+ });
+}
diff --git a/apps/web/src/lib/service-clients/service-cognition/generated/tools/schemas.ts b/apps/web/src/lib/service-clients/service-cognition/generated/tools/schemas.ts
index 53c6475a53..5aa3bbd00a 100644
--- a/apps/web/src/lib/service-clients/service-cognition/generated/tools/schemas.ts
+++ b/apps/web/src/lib/service-clients/service-cognition/generated/tools/schemas.ts
@@ -1752,6 +1752,7 @@ export const ListCalendarEventsResponse = z.object({
location: z.union([z.string(), z.null()]).optional(),
description: z.union([z.string(), z.null()]).optional(),
status: z.string(),
+ eventType: z.union([z.string(), z.null()]).optional(),
isRecurring: z.boolean(),
recurrenceId: z.union([z.string(), z.null()]).optional(),
attendees: z.array(
diff --git a/apps/web/src/lib/service-clients/service-cognition/generated/tools/types.ts b/apps/web/src/lib/service-clients/service-cognition/generated/tools/types.ts
index 861856abc7..39d7cf268a 100644
--- a/apps/web/src/lib/service-clients/service-cognition/generated/tools/types.ts
+++ b/apps/web/src/lib/service-clients/service-cognition/generated/tools/types.ts
@@ -3008,6 +3008,12 @@ export interface CalendarEventListItem {
* Event status: confirmed or tentative.
*/
status: string;
+ /**
+ * Provider event type for status-style events (out_of_office,
+ * focus_time, working_location, birthday, from_gmail); absent for
+ * regular events.
+ */
+ eventType?: string | null;
/**
* Whether this occurrence belongs to a recurring series.
*/
diff --git a/apps/web/src/lib/service-clients/service-storage/client.ts b/apps/web/src/lib/service-clients/service-storage/client.ts
index 0d2f8d50c9..fbb92062e2 100644
--- a/apps/web/src/lib/service-clients/service-storage/client.ts
+++ b/apps/web/src/lib/service-clients/service-storage/client.ts
@@ -128,6 +128,7 @@ import type { GroupedSoupSort } from './generated/schemas/groupedSoupSort';
import type { Item } from './generated/schemas/item';
import type { ListOccurrencesParams } from './generated/schemas/listOccurrencesParams';
import type { ListRemindersParams } from './generated/schemas/listRemindersParams';
+import type { ListTeamOutOfOfficeParams } from './generated/schemas/listTeamOutOfOfficeParams';
import type { LocationResponseV3 } from './generated/schemas/locationResponseV3';
import type { PatchChannelRequest } from './generated/schemas/patchChannelRequest';
import type { PatchMessageRequest } from './generated/schemas/patchMessageRequest';
@@ -154,6 +155,7 @@ import type { SetContactNameRequest } from './generated/schemas/setContactNameRe
import type { SharePermissionV2 } from './generated/schemas/sharePermissionV2';
import type { SoupPage } from './generated/schemas/soupPage';
import type { SyncServiceVersionID } from './generated/schemas/syncServiceVersionID';
+import type { TeamOutOfOfficeResponse } from './generated/schemas/teamOutOfOfficeResponse';
import type { ThreadResponse } from './generated/schemas/threadResponse';
import type { TypedSuccessResponse } from './generated/schemas/typedSuccessResponse';
import type { UpdateAgentRequest } from './generated/schemas/updateAgentRequest';
@@ -431,6 +433,24 @@ export const storageServiceClient = {
).map((result) => result);
},
+ async listTeamOutOfOffice(
+ args: ListTeamOutOfOfficeParams & { signal?: AbortSignal }
+ ) {
+ const { end, endDate, limit, signal, start, startDate } = args;
+ const params = new URLSearchParams({ end, start });
+
+ if (startDate) params.set('startDate', startDate);
+ if (endDate) params.set('endDate', endDate);
+ if (limit !== undefined) params.set('limit', String(limit));
+
+ return (
+ await dssFetch<TeamOutOfOfficeResponse>(
+ `/calendar-events/team-out-of-office?${params.toString()}`,
+ { method: 'GET', signal }
+ )
+ ).map((result) => result);
+ },
+
async getBatchCalendarEventPreviews(args: CalendarMentionPreviewRequest) {
return (
await dssFetch<CalendarMentionPreviewResponse>(
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/index.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/index.ts
index d3a3cf116a..360ac76343 100644
--- a/apps/web/src/lib/service-clients/service-storage/generated/schemas/index.ts
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/index.ts
@@ -788,6 +788,7 @@ export * from './linkShare';
export * from './listOccurrencesParams';
export * from './listRemindersEntityType';
export * from './listRemindersParams';
+export * from './listTeamOutOfOfficeParams';
export * from './listWebhooksResponse';
export * from './locationResponseData';
export * from './locationResponseDataOneOf';
@@ -1195,6 +1196,9 @@ export * from './systemSkillSummary';
export * from './tagFilterMode';
export * from './taskFilters';
export * from './taskFiltersIncludeCbmAtmNc';
+export * from './teamOutOfOfficeItem';
+export * from './teamOutOfOfficeItemTitle';
+export * from './teamOutOfOfficeResponse';
export * from './teamRole';
export * from './thread';
export * from './threadCreatedAt';
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/listTeamOutOfOfficeParams.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/listTeamOutOfOfficeParams.ts
new file mode 100644
index 0000000000..2f9b5a4345
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/listTeamOutOfOfficeParams.ts
@@ -0,0 +1,31 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * document_storage_service
+ * OpenAPI spec version: 0.1.0
+ */
+
+export type ListTeamOutOfOfficeParams = {
+ /**
+ * Inclusive UTC viewport start.
+ */
+ start: string;
+ /**
+ * Exclusive UTC viewport end.
+ */
+ end: string;
+ /**
+ * Inclusive local date boundary for all-day events.
+ */
+ startDate?: string;
+ /**
+ * Exclusive local date boundary for all-day events.
+ */
+ endDate?: string;
+ /**
+ * Maximum number of occurrences, from 1 through 2,000.
+ * @minimum 1
+ * @maximum 2000
+ */
+ limit?: number;
+};
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/teamOutOfOfficeItem.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/teamOutOfOfficeItem.ts
new file mode 100644
index 0000000000..5ad1378ecf
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/teamOutOfOfficeItem.ts
@@ -0,0 +1,24 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * document_storage_service
+ * OpenAPI spec version: 0.1.0
+ */
+import type { EventTime } from './eventTime';
+import type { TeamOutOfOfficeItemTitle } from './teamOutOfOfficeItemTitle';
+
+/**
+ * One teammate's out-of-office occurrence.
+ */
+export interface TeamOutOfOfficeItem {
+ /** The teammate's calendar event id. */
+ eventId: string;
+ /** Stable occurrence key within the event. */
+ occurrenceKey: string;
+ /** Macro user id of the teammate who is out. */
+ ownerId: string;
+ /** Occurrence time span. */
+ time: EventTime;
+ /** Event title, absent when the event's visibility withholds details. */
+ title?: TeamOutOfOfficeItemTitle;
+}
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/teamOutOfOfficeItemTitle.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/teamOutOfOfficeItemTitle.ts
new file mode 100644
index 0000000000..6858dd6558
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/teamOutOfOfficeItemTitle.ts
@@ -0,0 +1,11 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * document_storage_service
+ * OpenAPI spec version: 0.1.0
+ */
+
+/**
+ * Event title, absent when the event's visibility withholds details.
+ */
+export type TeamOutOfOfficeItemTitle = string | null;
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/teamOutOfOfficeResponse.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/teamOutOfOfficeResponse.ts
new file mode 100644
index 0000000000..0acb9ee35a
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/teamOutOfOfficeResponse.ts
@@ -0,0 +1,15 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * document_storage_service
+ * OpenAPI spec version: 0.1.0
+ */
+import type { TeamOutOfOfficeItem } from './teamOutOfOfficeItem';
+
+/**
+ * Team out-of-office viewport response.
+ */
+export interface TeamOutOfOfficeResponse {
+ hasMore: boolean;
+ items: TeamOutOfOfficeItem[];
+}
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/zod.ts b/apps/web/src/lib/service-clients/service-storage/generated/zod.ts
index 4d10bc921d..59250d8827 100644
--- a/apps/web/src/lib/service-clients/service-storage/generated/zod.ts
+++ b/apps/web/src/lib/service-clients/service-storage/generated/zod.ts
@@ -1410,6 +1410,89 @@ export const mentionPreviewsResponse = zod
})
.describe('Batch calendar mention preview response.');
+/**
+ * @summary Return teammates' out-of-office occurrences in the requested viewport.
+ */
+export const listTeamOutOfOfficeQueryLimitMax = 2000;
+
+export const listTeamOutOfOfficeQueryParams = zod.object({
+ start: zod.iso.datetime({}).describe('Inclusive UTC viewport start.'),
+ end: zod.iso.datetime({}).describe('Exclusive UTC viewport end.'),
+ startDate: zod.iso
+ .date()
+ .optional()
+ .describe('Inclusive local date boundary for all-day events.'),
+ endDate: zod.iso
+ .date()
+ .optional()
+ .describe('Exclusive local date boundary for all-day events.'),
+ limit: zod
+ .number()
+ .min(1)
+ .max(listTeamOutOfOfficeQueryLimitMax)
+ .optional()
+ .describe('Maximum number of occurrences, from 1 through 2,000.'),
+});
+
+export const listTeamOutOfOfficeResponse = zod
+ .object({
+ hasMore: zod.boolean(),
+ items: zod.array(
+ zod
+ .object({
+ eventId: zod.uuid().describe("The teammate's calendar event id."),
+ occurrenceKey: zod
+ .string()
+ .describe('Stable occurrence key within the event.'),
+ ownerId: zod
+ .string()
+ .describe('Macro user id of the teammate who is out.'),
+ time: zod
+ .union([
+ zod
+ .object({
+ endsAt: zod.iso
+ .datetime({})
+ .describe('Exclusive end instant.'),
+ kind: zod.enum(['timed']),
+ startsAt: zod.iso
+ .datetime({})
+ .describe('Inclusive start instant.'),
+ timeZone: zod
+ .string()
+ .nullish()
+ .describe(
+ 'Original IANA time-zone identifier, when supplied.'
+ ),
+ })
+ .describe('An event with absolute instants.'),
+ zod
+ .object({
+ endDate: zod.iso.date().describe('Exclusive local end date.'),
+ kind: zod.enum(['allDay']),
+ startDate: zod.iso
+ .date()
+ .describe('Inclusive local start date.'),
+ })
+ .describe(
+ "An all-day event using RFC 5545's exclusive end date."
+ ),
+ ])
+ .describe(
+ '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.'
+ ),
+ title: zod
+ .string()
+ .nullish()
+ .describe(
+ "Event title, absent when the event's visibility withholds details."
+ ),
+ })
+ .describe("One teammate's out-of-office occurrence.")
+ ),
+ })
+ .describe('Team out-of-office viewport response.');
+
/**
* Lists all active calls in channels the caller is an active member of,
newest first. Calls with no active participants (orphaned by dropped RTC
diff --git a/apps/web/src/lib/service-clients/service-storage/openapi.json b/apps/web/src/lib/service-clients/service-storage/openapi.json
index 6a561759d8..3444009408 100644
--- a/apps/web/src/lib/service-clients/service-storage/openapi.json
+++ b/apps/web/src/lib/service-clients/service-storage/openapi.json
@@ -1015,6 +1015,88 @@
}
}
},
+ "/calendar-events/team-out-of-office": {
+ "get": {
+ "tags": ["calendar_events"],
+ "summary": "Return teammates' out-of-office occurrences in the requested viewport.",
+ "operationId": "list_team_out_of_office",
+ "parameters": [
+ {
+ "name": "start",
+ "in": "query",
+ "description": "Inclusive UTC viewport start.",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "format": "date-time"
+ }
+ },
+ {
+ "name": "end",
+ "in": "query",
+ "description": "Exclusive UTC viewport end.",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "format": "date-time"
+ }
+ },
+ {
+ "name": "startDate",
+ "in": "query",
+ "description": "Inclusive local date boundary for all-day events.",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "format": "date"
+ }
+ },
+ {
+ "name": "endDate",
+ "in": "query",
+ "description": "Exclusive local date boundary for all-day events.",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "format": "date"
+ }
+ },
+ {
+ "name": "limit",
+ "in": "query",
+ "description": "Maximum number of occurrences, from 1 through 2,000.",
+ "required": false,
+ "schema": {
+ "type": "integer",
+ "format": "int32",
+ "maximum": 2000,
+ "minimum": 1
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Teammates' out-of-office occurrences in the requested viewport",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/TeamOutOfOfficeResponse"
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Invalid or unsupported calendar viewport"
+ },
+ "401": {
+ "description": "Authentication required"
+ },
+ "500": {
+ "description": "Calendar query failed"
+ }
+ }
+ }
+ },
"/call/active": {
"get": {
"tags": ["call::inbound::axum_router"],
@@ -25826,6 +25908,50 @@
}
}
},
+ "TeamOutOfOfficeItem": {
+ "type": "object",
+ "description": "One teammate's out-of-office occurrence.",
+ "required": ["ownerId", "eventId", "occurrenceKey", "time"],
+ "properties": {
+ "eventId": {
+ "type": "string",
+ "format": "uuid",
+ "description": "The teammate's calendar event id."
+ },
+ "occurrenceKey": {
+ "type": "string",
+ "description": "Stable occurrence key within the event."
+ },
+ "ownerId": {
+ "type": "string",
+ "description": "Macro user id of the teammate who is out."
+ },
+ "time": {
+ "$ref": "#/components/schemas/EventTime",
+ "description": "Occurrence time span."
+ },
+ "title": {
+ "type": ["string", "null"],
+ "description": "Event title, absent when the event's visibility withholds details."
+ }
+ }
+ },
+ "TeamOutOfOfficeResponse": {
+ "type": "object",
+ "description": "Team out-of-office viewport response.",
+ "required": ["items", "hasMore"],
+ "properties": {
+ "hasMore": {
+ "type": "boolean"
+ },
+ "items": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/TeamOutOfOfficeItem"
+ }
+ }
+ }
+ },
"TeamRole": {
"type": "string",
"description": "The role a user has within a team.\n\nOrdered least to most privileged so comparisons reflect access strength.",
diff --git a/crates/calendar_events/src/domain/models.rs b/crates/calendar_events/src/domain/models.rs
index bef37b75ed..6d30875e7b 100644
--- a/crates/calendar_events/src/domain/models.rs
+++ b/crates/calendar_events/src/domain/models.rs
@@ -649,6 +649,27 @@ impl CalendarOccurrenceCursor {
}
}
+/// One teammate's out-of-office occurrence, read from the projection their
+/// own connected primary calendar synced.
+#[derive(Clone, Debug, PartialEq, Eq)]
+pub struct TeamOutOfOffice {
+ /// Macro user who is out of office.
+ pub owner_id: String,
+ /// The teammate's calendar event entity id.
+ pub event_id: Uuid,
+ /// RFC 5545 UID, used to collapse the same event synced through more
+ /// than one of the teammate's connected inboxes.
+ pub ical_uid: String,
+ /// Stable key of this occurrence within the event.
+ pub occurrence_key: String,
+ /// Event title. `None` once visibility policy withholds it.
+ pub title: Option<String>,
+ /// Stored event visibility backing the title policy.
+ pub visibility: EventVisibility,
+ /// Occurrence time span.
+ pub time: EventTime,
+}
+
/// One mentioned event to resolve for a requester's mention preview.
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct CalendarMentionRequestItem {
diff --git a/crates/calendar_events/src/domain/mutations/test.rs b/crates/calendar_events/src/domain/mutations/test.rs
index 2dc69e526a..b7194f2ad2 100644
--- a/crates/calendar_events/src/domain/mutations/test.rs
+++ b/crates/calendar_events/src/domain/mutations/test.rs
@@ -241,6 +241,15 @@ impl CalendarRepository for FakeRepo {
unreachable!()
}
+ async fn list_team_out_of_office(
+ &self,
+ _requester_id: &str,
+ _range: OccurrenceRange,
+ _limit: u16,
+ ) -> Result<Vec<crate::domain::models::TeamOutOfOffice>, rootcause::Report> {
+ unreachable!()
+ }
+
async fn upsert_google_calendar(
&self,
_key: CalendarBackfillJobKey,
diff --git a/crates/calendar_events/src/domain/ports.rs b/crates/calendar_events/src/domain/ports.rs
index 4cbc7f252e..e15a2adb44 100644
--- a/crates/calendar_events/src/domain/ports.rs
+++ b/crates/calendar_events/src/domain/ports.rs
@@ -17,7 +17,7 @@ use super::models::{
CalendarSyncStatus, DisconnectedGoogleCalendar, DueCalendarReminder,
GoogleCalendarSyncSnapshot, GoogleCalendarTarget, GoogleEventSyncBatch, GoogleScopeSet,
GoogleSyncPlan, GoogleWatchChannel, GoogleWatchConfig, OccurrenceRange, ProviderCalendar,
- StoredGoogleCalendar, VisibleCalendar,
+ StoredGoogleCalendar, TeamOutOfOffice, VisibleCalendar,
};
/// Classification supplied by provider adapters to backfill policy.
@@ -319,6 +319,15 @@ pub trait CalendarOccurrenceService: Send + Sync + 'static {
requester_id: &str,
items: Vec<CalendarMentionRequestItem>,
) -> impl Future<Output = Result<Vec<CalendarMentionPreview>, Report>> + Send;
+
+ /// Return teammates' out-of-office occurrences overlapping the viewport,
+ /// soonest first, with title visibility policy already applied.
+ fn list_team_out_of_office(
+ &self,
+ requester_id: &str,
+ range: OccurrenceRange,
+ limit: u16,
+ ) -> impl Future<Output = Result<Vec<TeamOutOfOffice>, Report>> + Send;
}
/// What a write did to one event's canonical `calendar_events` row.
@@ -423,6 +432,25 @@ pub trait CalendarRepository: Send + Sync + 'static {
now: DateTime<Utc>,
) -> impl Future<Output = Result<Vec<CalendarMentionPreview>, Report>> + Send;
+ /// Out-of-office occurrences owned by the requester's teammates — the
+ /// other members of the requester's team — overlapping the viewport,
+ /// soonest first, sourced from a primary calendar on an account that is
+ /// not disabled. The same provider event synced through more than one of
+ /// a teammate's inboxes collapses to one row before the limit applies,
+ /// so callers can detect truncation by row count. Titles arrive
+ /// unmasked; the domain service owns the visibility policy.
+ ///
+ /// "Team" is singular by schema: `team_user` is unique per user, so the
+ /// membership lookup cannot span teams. Relaxing that constraint would
+ /// silently widen this query to every team the requester belongs to —
+ /// revisit it together with any multi-team migration.
+ fn list_team_out_of_office(
+ &self,
+ requester_id: &str,
+ range: OccurrenceRange,
+ limit: u16,
+ ) -> impl Future<Output = Result<Vec<TeamOutOfOffice>, Report>> + Send;
+
/// Upsert one provider calendar while holding the current backfill fence.
fn upsert_google_calendar(
&self,
diff --git a/crates/calendar_events/src/domain/service.rs b/crates/calendar_events/src/domain/service.rs
index a89695e2c7..110f665253 100644
--- a/crates/calendar_events/src/domain/service.rs
+++ b/crates/calendar_events/src/domain/service.rs
@@ -110,6 +110,40 @@ where
Ok(rows)
}
+ /// Query teammates' out-of-office occurrences in a bounded viewport.
+ ///
+ /// Teammates learn when — not necessarily why — each other are out: an
+ /// event marked private or confidential keeps its title withheld,
+ /// mirroring what Google shows viewers without full detail access. The
+ /// same provider event synced through more than one of a teammate's
+ /// connected inboxes collapses to one occurrence.
+ #[tracing::instrument(skip(self, requester_id, range), err)]
+ pub async fn list_team_out_of_office(
+ &self,
+ requester_id: &str,
+ range: OccurrenceRange,
+ limit: u16,
+ ) -> Result<Vec<super::models::TeamOutOfOffice>, Report> {
+ validate_query(&range, limit)?;
+ let rows = self
+ .repository
+ .list_team_out_of_office(requester_id, range, limit)
+ .await?;
+ Ok(rows
+ .into_iter()
+ .map(|mut row| {
+ if matches!(
+ row.visibility,
+ super::models::EventVisibility::Private
+ | super::models::EventVisibility::Confidential
+ ) {
+ row.title = None;
+ }
+ row
+ })
+ .collect())
+ }
+
/// Return the aggregate ingestion state of the requester's visible accounts.
#[tracing::instrument(skip(self, requester_id), err)]
pub async fn sync_status(
@@ -197,6 +231,15 @@ where
{
CalendarService::mention_previews(self, requester_id, items)
}
+
+ fn list_team_out_of_office(
+ &self,
+ requester_id: &str,
+ range: OccurrenceRange,
+ limit: u16,
+ ) -> impl Future<Output = Result<Vec<super::models::TeamOutOfOffice>, Report>> + Send {
+ CalendarService::list_team_out_of_office(self, requester_id, range, limit)
+ }
}
/// Orchestrates a Google account backfill while keeping HTTP and SQL behind ports.
diff --git a/crates/calendar_events/src/domain/service/test.rs b/crates/calendar_events/src/domain/service/test.rs
index 0a0357df7d..68d72f698a 100644
--- a/crates/calendar_events/src/domain/service/test.rs
+++ b/crates/calendar_events/src/domain/service/test.rs
@@ -92,6 +92,15 @@ impl CalendarRepository for FakeRepo {
.collect())
}
+ async fn list_team_out_of_office(
+ &self,
+ _requester_id: &str,
+ _range: OccurrenceRange,
+ _limit: u16,
+ ) -> Result<Vec<crate::domain::models::TeamOutOfOffice>, Report> {
+ Ok(Vec::new())
+ }
+
async fn get_event_mutation_target(
&self,
_requester_id: &str,
diff --git a/crates/calendar_events/src/inbound/axum_router.rs b/crates/calendar_events/src/inbound/axum_router.rs
index 0d4b90dc8b..594f5b4d16 100644
--- a/crates/calendar_events/src/inbound/axum_router.rs
+++ b/crates/calendar_events/src/inbound/axum_router.rs
@@ -23,7 +23,8 @@ use uuid::Uuid;
use crate::domain::{
models::{
CalendarEvent, CalendarMentionEvent, CalendarMentionPreview, CalendarMentionRequestItem,
- CalendarOccurrence, CalendarOccurrenceCursor, CalendarSyncStatus, OccurrenceRange,
+ CalendarOccurrence, CalendarOccurrenceCursor, CalendarSyncStatus, EventTime,
+ OccurrenceRange,
},
ports::CalendarOccurrenceService,
service::CalendarValidationError,
@@ -74,6 +75,10 @@ where
"/calendar-events/preview",
post(mention_previews::<S, Auth>),
)
+ .route(
+ "/calendar-events/team-out-of-office",
+ get(list_team_out_of_office::<S, Auth>),
+ )
.with_state(state)
}
@@ -236,6 +241,127 @@ where
}))
}
+/// Query parameters for the team out-of-office viewport.
+#[derive(Debug, Deserialize, utoipa::IntoParams)]
+#[into_params(parameter_in = Query)]
+#[serde(rename_all = "camelCase")]
+pub struct TeamOutOfOfficeQuery {
+ /// Inclusive UTC viewport start.
+ start: DateTime<Utc>,
+ /// Exclusive UTC viewport end.
+ end: DateTime<Utc>,
+ /// Inclusive local date boundary for all-day events.
+ start_date: Option<NaiveDate>,
+ /// Exclusive local date boundary for all-day events.
+ end_date: Option<NaiveDate>,
+ /// Maximum number of occurrences, from 1 through 2,000.
+ #[param(minimum = 1, maximum = 2000)]
+ limit: Option<u16>,
+}
+
+/// One teammate's out-of-office occurrence.
+#[derive(Serialize, utoipa::ToSchema)]
+#[serde(rename_all = "camelCase")]
+pub struct TeamOutOfOfficeItem {
+ /// Macro user id of the teammate who is out.
+ owner_id: String,
+ /// The teammate's calendar event id.
+ event_id: Uuid,
+ /// Stable occurrence key within the event.
+ occurrence_key: String,
+ /// Event title, absent when the event's visibility withholds details.
+ #[serde(skip_serializing_if = "Option::is_none")]
+ title: Option<String>,
+ /// Occurrence time span.
+ time: EventTime,
+}
+
+/// Team out-of-office viewport response.
+#[derive(Serialize, utoipa::ToSchema)]
+#[serde(rename_all = "camelCase")]
+pub struct TeamOutOfOfficeResponse {
+ items: Vec<TeamOutOfOfficeItem>,
+ has_more: bool,
+}
+
+/// Return teammates' out-of-office occurrences in the requested viewport.
+#[tracing::instrument(skip_all, err)]
+#[utoipa::path(
+ get,
+ path = "/calendar-events/team-out-of-office",
+ tag = "calendar_events",
+ params(TeamOutOfOfficeQuery),
+ responses(
+ (status = 200, description = "Teammates' out-of-office occurrences in the requested viewport", body = TeamOutOfOfficeResponse),
+ (status = 400, description = "Invalid or unsupported calendar viewport"),
+ (status = 401, description = "Authentication required"),
+ (status = 500, description = "Calendar query failed"),
+ )
+)]
+pub async fn list_team_out_of_office<S, Auth>(
+ State(state): State<CalendarRouterState<S, Auth>>,
+ user: MacroAuthorizationExtractor<Auth, UserOrInternal>,
+ Query(query): Query<TeamOutOfOfficeQuery>,
+) -> Result<Json<TeamOutOfOfficeResponse>, CalendarApiError>
+where
+ S: CalendarOccurrenceService,
+ Auth: MacroAuthorizationService,
+{
+ let default_end_date = default_end_date(query.end);
+ let range = OccurrenceRange {
+ starts_at: query.start,
+ ends_at: query.end,
+ start_date: query.start_date.unwrap_or_else(|| query.start.date_naive()),
+ end_date: query
+ .end_date
+ .or(default_end_date)
+ .ok_or(CalendarApiError {
+ status: StatusCode::BAD_REQUEST,
+ message: "calendar end is outside the supported date range",
+ })?,
+ };
+ let (limit, repository_limit) = query_limits(query.limit)?;
+ let mut occurrences = state
+ .service
+ .list_team_out_of_office(
+ user.authorization.user.macro_user_id.as_ref(),
+ range,
+ repository_limit,
+ )
+ .await
+ .map_err(|error| {
+ if error
+ .as_ref()
+ .downcast_current_context::<CalendarValidationError>()
+ .is_some()
+ {
+ return CalendarApiError {
+ status: StatusCode::BAD_REQUEST,
+ message: "calendar range must be positive, at most 370 days, inside the maintained one-year-history/two-year-future window, with limit 1–2000",
+ };
+ }
+ tracing::error!(error = ?error, "failed to query team out-of-office occurrences");
+ CalendarApiError {
+ status: StatusCode::INTERNAL_SERVER_ERROR,
+ message: "unable to query team out-of-office occurrences",
+ }
+ })?;
+ let has_more = occurrences.len() > usize::from(limit);
+ occurrences.truncate(usize::from(limit));
+ let items = occurrences
+ .into_iter()
+ .map(|row| TeamOutOfOfficeItem {
+ owner_id: row.owner_id,
+ event_id: row.event_id,
+ occurrence_key: row.occurrence_key,
+ title: row.title,
+ time: row.time,
+ })
+ .collect();
+
+ Ok(Json(TeamOutOfOfficeResponse { items, has_more }))
+}
+
/// One mentioned event to resolve for the requester.
#[derive(Debug, Deserialize, utoipa::ToSchema)]
#[serde(rename_all = "camelCase")]
diff --git a/crates/calendar_events/src/inbound/toolset/list_calendar_events.rs b/crates/calendar_events/src/inbound/toolset/list_calendar_events.rs
index 1ae268291c..d97ff4472d 100644
--- a/crates/calendar_events/src/inbound/toolset/list_calendar_events.rs
+++ b/crates/calendar_events/src/inbound/toolset/list_calendar_events.rs
@@ -49,6 +49,11 @@ pub struct CalendarEventListItem {
pub description: Option<String>,
/// Event status: confirmed or tentative.
pub status: String,
+ /// Provider event type for status-style events (out_of_office,
+ /// focus_time, working_location, birthday, from_gmail); absent for
+ /// regular events.
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub event_type: Option<String>,
/// Whether this occurrence belongs to a recurring series.
pub is_recurring: bool,
/// Occurrence key identifying this instance within its recurring series;
@@ -202,6 +207,8 @@ where
location: event.location.clone(),
description: description_preview(event.description.as_deref()),
status: event.status.as_str().to_string(),
+ event_type: (!event.event_type.is_default())
+ .then(|| event.event_type.as_str().to_string()),
is_recurring,
recurrence_id: is_recurring.then(|| occurrence.occurrence_key.clone()),
attendees: event
diff --git a/crates/calendar_events/src/inbound/toolset/test.rs b/crates/calendar_events/src/inbound/toolset/test.rs
index 3ee767b5c3..f92c2f3c37 100644
--- a/crates/calendar_events/src/inbound/toolset/test.rs
+++ b/crates/calendar_events/src/inbound/toolset/test.rs
@@ -258,6 +258,15 @@ impl CalendarOccurrenceService for MockOccurrences {
) -> Result<Vec<crate::domain::models::CalendarMentionPreview>, rootcause::Report> {
unreachable!("no calendar tool resolves mention previews")
}
+
+ async fn list_team_out_of_office(
+ &self,
+ _requester_id: &str,
+ _range: OccurrenceRange,
+ _limit: u16,
+ ) -> Result<Vec<crate::domain::models::TeamOutOfOffice>, rootcause::Report> {
+ unreachable!("no calendar tool lists team out-of-office")
+ }
}
fn context(
diff --git a/crates/calendar_events/src/outbound/pg.rs b/crates/calendar_events/src/outbound/pg.rs
index 0e0f09b9c6..71a11590b2 100644
--- a/crates/calendar_events/src/outbound/pg.rs
+++ b/crates/calendar_events/src/outbound/pg.rs
@@ -22,7 +22,7 @@ use crate::domain::{
EventReminders, EventStart, EventStatus, EventTime, EventTransparency, EventType,
EventVisibility, GOOGLE_CALENDAR_SCOPES, GoogleCalendarSyncSnapshot, GoogleScopeSet,
GoogleWatchChannel, OccurrenceRange, ProviderCalendar, StoredGoogleCalendar,
- VisibleCalendar,
+ TeamOutOfOffice, VisibleCalendar,
},
ports::{
CalendarBackfillRepository, CalendarEventChange, CalendarEventWrite,
@@ -1017,6 +1017,119 @@ impl CalendarRepository for PgCalendarRepository {
.collect()
}
+ #[tracing::instrument(skip(self, requester_id, range), err)]
+ async fn list_team_out_of_office(
+ &self,
+ requester_id: &str,
+ range: OccurrenceRange,
+ limit: u16,
+ ) -> Result<Vec<TeamOutOfOffice>, Report> {
+ // The primary-calendar source guard keeps this to the teammate's own
+ // status: an out-of-office event on a calendar they merely subscribe
+ // to belongs to that calendar's owner, not to them. DISTINCT ON
+ // collapses the same provider event synced through more than one of
+ // the teammate's inboxes before the limit, so duplicates never eat
+ // page slots or skew the caller's truncation detection.
+ let rows = sqlx::query!(
+ r#"
+ SELECT
+ owner_id AS "owner_id!",
+ event_id AS "event_id!",
+ ical_uid AS "ical_uid!",
+ occurrence_key AS "occurrence_key!",
+ title AS "title!",
+ visibility AS "visibility!",
+ time_zone,
+ occurrence_starts_at AS "occurrence_starts_at?",
+ occurrence_ends_at AS "occurrence_ends_at?",
+ occurrence_start_date AS "occurrence_start_date?",
+ occurrence_end_date AS "occurrence_end_date?"
+ FROM (
+ SELECT DISTINCT ON (event.owner_id, event.ical_uid, occurrence.occurrence_key)
+ event.owner_id,
+ occurrence.event_id,
+ event.ical_uid,
+ occurrence.occurrence_key,
+ event.title,
+ event.visibility,
+ event.time_zone,
+ occurrence.starts_at AS occurrence_starts_at,
+ occurrence.ends_at AS occurrence_ends_at,
+ occurrence.start_date AS occurrence_start_date,
+ occurrence.end_date AS occurrence_end_date,
+ COALESCE(
+ occurrence.starts_at,
+ occurrence.start_date::timestamp AT TIME ZONE 'UTC'
+ ) AS occurrence_ordering
+ FROM calendar_event_occurrences occurrence
+ JOIN calendar_events event ON event.id = occurrence.event_id
+ WHERE occurrence.owner_id IN (
+ SELECT teammate.user_id
+ FROM team_user membership
+ JOIN team_user teammate ON teammate.team_id = membership.team_id
+ WHERE membership.user_id = $1
+ AND teammate.user_id <> $1
+ )
+ AND event.event_type = 'out_of_office'
+ AND event.status <> 'cancelled'
+ AND NOT occurrence.is_cancelled
+ AND EXISTS (
+ SELECT 1
+ FROM calendar_event_sources source
+ JOIN calendars calendar ON calendar.id = source.calendar_id
+ JOIN calendar_accounts account ON account.id = source.account_id
+ WHERE source.event_id = event.id
+ AND calendar.is_primary
+ AND NOT calendar.is_deleted
+ AND account.sync_status <> 'disabled'
+ )
+ AND (
+ occurrence.timed_span && tstzrange($2, $3, '[)')
+ OR occurrence.day_span && daterange($4, $5, '[)')
+ )
+ ORDER BY
+ event.owner_id,
+ event.ical_uid,
+ occurrence.occurrence_key,
+ occurrence.event_id
+ ) occurrence
+ ORDER BY
+ occurrence.occurrence_ordering,
+ occurrence.event_id,
+ occurrence.occurrence_key
+ LIMIT $6
+ "#,
+ requester_id,
+ range.starts_at,
+ range.ends_at,
+ range.start_date,
+ range.end_date,
+ i64::from(limit),
+ )
+ .fetch_all(&self.pool)
+ .await
+ .map_err(report)?;
+ rows.into_iter()
+ .map(|row| {
+ Ok(TeamOutOfOffice {
+ owner_id: row.owner_id,
+ event_id: row.event_id,
+ ical_uid: row.ical_uid,
+ occurrence_key: row.occurrence_key,
+ title: Some(row.title),
+ visibility: event_visibility(&row.visibility),
+ time: row_time(
+ row.occurrence_starts_at,
+ row.occurrence_ends_at,
+ row.occurrence_start_date,
+ row.occurrence_end_date,
+ row.time_zone,
+ )?,
+ })
+ })
+ .collect()
+ }
+
#[tracing::instrument(skip(self, requester_id, items), err)]
async fn mention_previews(
&self,
diff --git a/crates/calendar_events/src/outbound/pg/test.rs b/crates/calendar_events/src/outbound/pg/test.rs
index 5b34d1f119..6f244c66a8 100644
--- a/crates/calendar_events/src/outbound/pg/test.rs
+++ b/crates/calendar_events/src/outbound/pg/test.rs
@@ -4,7 +4,7 @@ use crate::domain::models::{
REMINDER_METHOD_EMAIL, REMINDER_METHOD_POPUP,
};
use crate::domain::ports::GoogleCalendarSyncRepository;
-use crate::domain::service::GoogleCalendarBackfillFailureService;
+use crate::domain::service::{CalendarService, GoogleCalendarBackfillFailureService};
use chrono::{Duration, SubsecRound, TimeZone};
use macro_db_migrator::MACRO_DB_MIGRATIONS;
@@ -3742,3 +3742,326 @@ async fn mention_preview_picks_the_requested_or_nearest_occurrence(pool: PgPool)
let (_, key) = preview_time(&previews[0]);
assert_eq!(key.as_deref(), Some(first_start.to_rfc3339().as_str()));
}
+
+async fn insert_team(pool: &PgPool, owner_id: &str, member_ids: &[&str]) -> Uuid {
+ for member_id in member_ids {
+ insert_user(pool, member_id).await;
+ }
+ let team_id = Uuid::now_v7();
+ sqlx::query!(
+ r#"INSERT INTO team (id, name, owner_id) VALUES ($1, 'Team', $2)"#,
+ team_id,
+ owner_id,
+ )
+ .execute(pool)
+ .await
+ .unwrap();
+ for member_id in member_ids {
+ sqlx::query!(
+ r#"INSERT INTO team_user (user_id, team_id, team_role) VALUES ($1, $2, 'member')"#,
+ member_id,
+ team_id,
+ )
+ .execute(pool)
+ .await
+ .unwrap();
+ }
+ team_id
+}
+
+fn ooo_upsert(
+ owner_id: &str,
+ link_id: Uuid,
+ provider: (Uuid, Uuid),
+ uid: &str,
+ title: &str,
+) -> CalendarEventUpsert {
+ let mut upsert = timed_upsert(owner_id, link_id, provider, uid, title, 1);
+ upsert.event.event_type = EventType::OutOfOffice;
+ upsert.event.attendees.clear();
+ upsert.event.recurrence_lines.clear();
+ upsert
+}
+
+fn july_2026_range() -> OccurrenceRange {
+ let starts_at = Utc.with_ymd_and_hms(2026, 7, 24, 0, 0, 0).unwrap();
+ let ends_at = Utc.with_ymd_and_hms(2026, 7, 27, 0, 0, 0).unwrap();
+ OccurrenceRange {
+ starts_at,
+ ends_at,
+ start_date: starts_at.date_naive(),
+ end_date: ends_at.date_naive(),
+ }
+}
+
+#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")]
+async fn team_out_of_office_returns_teammates_status_only(pool: PgPool) {
+ let requester = "macro|[email protected]";
+ let teammate = "macro|[email protected]";
+ let outsider = "macro|[email protected]";
+ insert_team(&pool, requester, &[requester, teammate]).await;
+ insert_team(&pool, outsider, &[outsider]).await;
+ let requester_link = insert_link(&pool, requester).await;
+ let teammate_link = insert_link(&pool, teammate).await;
+ let outsider_link = insert_link(&pool, outsider).await;
+ let repo = PgCalendarRepository::new(pool);
+ let requester_provider = provider_ids(&repo, requester_link).await;
+ let teammate_provider = provider_ids(&repo, teammate_link).await;
+ let outsider_provider = provider_ids(&repo, outsider_link).await;
+ repo.upsert_event_fixture(ooo_upsert(
+ requester,
+ requester_link,
+ requester_provider,
+ "My own OOO",
+ ))
+ .await
+ .unwrap();
+ repo.upsert_event_fixture(ooo_upsert(
+ teammate,
+ teammate_link,
+ teammate_provider,
+ "Vacation",
+ ))
+ .await
+ .unwrap();
+ repo.upsert_event_fixture(timed_upsert(
+ teammate,
+ teammate_link,
+ teammate_provider,
+ "Regular meeting",
+ 1,
+ ))
+ .await
+ .unwrap();
+ repo.upsert_event_fixture(ooo_upsert(
+ outsider,
+ outsider_link,
+ outsider_provider,
+ "Elsewhere",
+ ))
+ .await
+ .unwrap();
+
+ let rows = repo
+ .list_team_out_of_office(requester, july_2026_range(), 100)
+ .await
+ .unwrap();
+
+ assert_eq!(rows.len(), 2);
+ assert!(rows.iter().all(|row| row.owner_id == teammate));
+ assert!(
+ rows.iter()
+ .all(|row| row.title.as_deref() == Some("Vacation"))
+ );
+ let starts: Vec<_> = rows
+ .iter()
+ .map(|row| match row.time {
+ EventTime::Timed { starts_at, .. } => starts_at,
+ EventTime::AllDay { .. } => panic!("out-of-office fixtures are timed"),
+ })
+ .collect();
+ assert!(starts.windows(2).all(|pair| pair[0] <= pair[1]));
+
+ let empty = repo
+ .list_team_out_of_office(outsider, july_2026_range(), 100)
+ .await
+ .unwrap();
+ assert!(empty.is_empty());
+}
+
+#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")]
+async fn team_out_of_office_requires_an_active_primary_calendar_source(pool: PgPool) {
+ let requester = "macro|[email protected]";
+ let subscribed = "macro|[email protected]";
+ let disabled = "macro|[email protected]";
+ insert_team(&pool, requester, &[requester, subscribed, disabled]).await;
+ let subscribed_link = insert_link(&pool, subscribed).await;
+ let disabled_link = insert_link(&pool, disabled).await;
+ let repo = PgCalendarRepository::new(pool.clone());
+
+ // An out-of-office event on a calendar the teammate merely subscribes to
+ // is someone else's status and must not surface as theirs.
+ let subscribed_account = repo.upsert_google_account(subscribed_link).await.unwrap();
+ let subscribed_calendar = repo
+ .upsert_calendar_fixture(
+ subscribed_account,
+ ProviderCalendar {
+ provider_calendar_id: "someone-else".to_string(),
+ name: "Someone else".to_string(),
+ description: None,
+ time_zone: Some("UTC".to_string()),
+ color: None,
+ access_role: Some("reader".to_string()),
+ is_primary: false,
+ is_selected: true,
+ default_reminders: Vec::new(),
+ },
+ )
+ .await
+ .unwrap();
+ repo.upsert_event_fixture(ooo_upsert(
+ subscribed,
+ subscribed_link,
+ (subscribed_account, subscribed_calendar),
+ "Not their own",
+ ))
+ .await
+ .unwrap();
+
+ let disabled_provider = provider_ids(&repo, disabled_link).await;
+ repo.upsert_event_fixture(ooo_upsert(
+ disabled,
+ disabled_link,
+ disabled_provider,
+ "Stale",
+ ))
+ .await
+ .unwrap();
+ sqlx::query!(
+ r#"UPDATE calendar_accounts SET sync_status = 'disabled' WHERE email_link_id = $1"#,
+ disabled_link,
+ )
+ .execute(&pool)
+ .await
+ .unwrap();
+
+ let rows = repo
+ .list_team_out_of_office(requester, july_2026_range(), 100)
+ .await
+ .unwrap();
+
+ assert!(rows.is_empty());
+}
+
+#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")]
+async fn team_out_of_office_masks_private_titles_and_collapses_duplicate_inboxes(pool: PgPool) {
+ let requester = "macro|[email protected]";
+ let teammate = "macro|[email protected]";
+ insert_team(&pool, requester, &[requester, teammate]).await;
+ let first_link = insert_link(&pool, teammate).await;
+ let second_link = insert_link(&pool, teammate).await;
+ let repo = PgCalendarRepository::new(pool);
+ let first_provider = provider_ids(&repo, first_link).await;
+ let second_provider = provider_ids(&repo, second_link).await;
+ let mut private_ooo = ooo_upsert(
+ teammate,
+ first_link,
+ first_provider,
+ "Surgery",
+ );
+ private_ooo.event.visibility = EventVisibility::Private;
+ repo.upsert_event_fixture(private_ooo).await.unwrap();
+ let mut duplicate = ooo_upsert(
+ teammate,
+ second_link,
+ second_provider,
+ "Surgery",
+ );
+ duplicate.event.visibility = EventVisibility::Private;
+ repo.upsert_event_fixture(duplicate).await.unwrap();
+
+ let service = CalendarService::new(repo);
+ let rows = service
+ .list_team_out_of_office(requester, july_2026_range(), 100)
+ .await
+ .unwrap();
+
+ assert_eq!(rows.len(), 2);
+ assert!(rows.iter().all(|row| row.title.is_none()));
+ let mut keys: Vec<_> = rows.iter().map(|row| row.occurrence_key.as_str()).collect();
+ keys.sort_unstable();
+ keys.dedup();
+ assert_eq!(keys.len(), 2);
+}
+
+fn shift_upsert_days(upsert: &mut CalendarEventUpsert, days: i64) {
+ let delta = Duration::days(days);
+ if let EventTime::Timed {
+ starts_at, ends_at, ..
+ } = &mut upsert.event.time
+ {
+ *starts_at += delta;
+ *ends_at += delta;
+ }
+ for occurrence in &mut upsert.occurrences {
+ if let EventTime::Timed {
+ starts_at, ends_at, ..
+ } = &mut occurrence.time
+ {
+ *starts_at += delta;
+ *ends_at += delta;
+ }
+ occurrence.occurrence_key = occurrence.time.occurrence_key();
+ }
+}
+
+#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")]
+async fn team_out_of_office_deduplicates_before_the_limit(pool: PgPool) {
+ let requester = "macro|[email protected]";
+ let teammate = "macro|[email protected]";
+ insert_team(&pool, requester, &[requester, teammate]).await;
+ let first_link = insert_link(&pool, teammate).await;
+ let second_link = insert_link(&pool, teammate).await;
+ let repo = PgCalendarRepository::new(pool);
+ let first_provider = provider_ids(&repo, first_link).await;
+ let second_provider = provider_ids(&repo, second_link).await;
+
+ // The earliest event exists on both of the teammate's inboxes, so its
+ // occurrences arrive first and duplicated.
+ repo.upsert_event_fixture(ooo_upsert(
+ teammate,
+ first_link,
+ first_provider,
+ "Duplicated",
+ ))
+ .await
+ .unwrap();
+ repo.upsert_event_fixture(ooo_upsert(
+ teammate,
+ second_link,
+ second_provider,
+ "Duplicated",
+ ))
+ .await
+ .unwrap();
+ let mut later = ooo_upsert(
+ teammate,
+ first_link,
+ first_provider,
+ "Later",
+ );
+ shift_upsert_days(&mut later, 1);
+ repo.upsert_event_fixture(later).await.unwrap();
+
+ let rows = repo
+ .list_team_out_of_office(requester, july_2026_range(), 3)
+ .await
+ .unwrap();
+
+ // Duplicates collapse before the limit: the page fills with distinct
+ // occurrences and the later unique event still claims a slot, so a
+ // full page keeps signalling truncation accurately.
+ assert_eq!(rows.len(), 3);
+ let mut identities: Vec<_> = rows
+ .iter()
+ .map(|row| (row.ical_uid.as_str(), row.occurrence_key.as_str()))
+ .collect();
+ identities.sort_unstable();
+ identities.dedup();
+ assert_eq!(identities.len(), 3);
+ assert!(
+ rows.iter()
+ .any(|row| row.ical_uid == "[email protected]")
+ );
+}
diff --git a/docs/AGENT_GUIDE/surfaces.md b/docs/AGENT_GUIDE/surfaces.md
index 80bda0ad6b..e33d94cfb5 100644
--- a/docs/AGENT_GUIDE/surfaces.md
+++ b/docs/AGENT_GUIDE/surfaces.md
@@ -38,6 +38,13 @@ section listing each connected account with a per-account `Enable` (grant calend
`Turn off` action, plus `Connect another account` to connect a new Google account
(email + calendar).
+Teammates' Google Calendar out-of-office events overlay the grid as read-only chips titled
+`<name>: <event title>`. The side panel's `Team out of office` section (shown only when the
+user belongs to a team with other members) has a checkbox in its header row toggling the
+whole overlay on or off — all teammates or none — and lists the next 90 days of teammate
+absences; clicking a row navigates the grid to that date. Coverage depends on each teammate
+having connected their own calendar and using Google's out-of-office event type.
+
## Calls — `/app/component/calls`
Tabs `All` / `Missed` / `Unattended`; `Call` button to start one. Recordings, transcriptions
diff --git a/packages/sdk/generated/storage/index.ts b/packages/sdk/generated/storage/index.ts
index da07cfc261..ba1206b282 100644
--- a/packages/sdk/generated/storage/index.ts
+++ b/packages/sdk/generated/storage/index.ts
@@ -1,4 +1,4 @@
// This file is auto-generated by @hey-api/openapi-ts
export { type Options, Sdk } from './sdk.gen';
-export type { AccessLevel, ActiveCallsResponse, ActiveCallSummary, ActivityType, AddFavoriteData, AddFavoriteError, AddFavoriteErrors, AddFavoriteRequest, AddFavoriteResponse, AddFavoriteResponses, AddParticipantsData, AddParticipantsError, AddParticipantsErrors, AddParticipantsRequest, AddParticipantsResponses, AddPinHandlerData, AddPinHandlerError, AddPinHandlerErrors, AddPinHandlerResponse, AddPinHandlerResponses, AddPinRequest, Agent, AgentChannelScope, Anchor, AnchorId, AnchorRequest, AnchorResponse, AnnotationIncrementalUpdate, ApiActivity, ApiAttachmentChannelReference, ApiAttachmentEntityReference, ApiAttachmentGenericReference, ApiChannelAttachment, ApiChannelAttachmentsPage, ApiChannelContextMessage, ApiChannelDetail, ApiChannelListMessage, ApiChannelListPage, ApiChannelListParticipant, ApiChannelListType, ApiChannelMessage, ApiChannelMessageKind, ApiChannelMessagesPage, ApiChannelParticipant, ApiChannelWithLatest, ApiCountedReaction, ApiEntityFilterAst, ApiGroupByField, ApiGroupMeta, ApiMessageAttachment, ApiMessageSender, ApiMessageSenderType, ApiParticipantListRole, ApiParticipantRole, ApiPropertyEntityType, ApiResolvedChannelMessage, ApiThreadInfo, ApiThreadReply, ApproveHarnessPairingData, ApproveHarnessPairingError, ApproveHarnessPairingErrors, ApproveHarnessPairingResponse, ApproveHarnessPairingResponses, ApprovePairingRequest, AttendeeResponseStatus, BasicDocument, BasicDocumentSubType, BomPart, Bot, BotChannel, BotChannelType, BotId, BotKind, BotOwner, BotToken, BranchNameResponse, BTreeMap, BulkWakeupRequest, BulkWakeupResponse, BulkWakeupSyncServiceDocumentsData, BulkWakeupSyncServiceDocumentsErrors, BulkWakeupSyncServiceDocumentsResponse, BulkWakeupSyncServiceDocumentsResponses, CalendarAttendee, CalendarEvent, CalendarEventFilters, CalendarMentionEvent, CalendarMentionPreviewItem, CalendarMentionPreviewKind, CalendarMentionPreviewRequest, CalendarMentionPreviewRequestItem, CalendarMentionPreviewResponse, CalendarOccurrence, CalendarOccurrenceItem, CalendarOccurrenceResponse, CalendarSyncStatus, CallActiveResponse, CallFilters, CallRecord, CallRecordParticipant, CallRecordPreview, CallRecordPreviewData, CallRecordTranscriptSegment, CallStatus, CallTokenResponse, CallWebhookData, CallWebhookError, CallWebhookErrors, CallWebhookResponses, Channel, ChannelCreatedMetadata, ChannelDeletedMetadata, ChannelEventAttachment, ChannelFilters, ChannelJoinCodeResponse, ChannelMentionedMetadata, ChannelMessage, ChannelMessageAttachmentCreatedMetadata, ChannelMessageAttachmentRemovedMetadata, ChannelMessageDeletedMetadata, ChannelMessageFilters, ChannelMessagePatchedMetadata, ChannelMessagePostedMetadata, ChannelParticipant, ChannelParticipantAddedMetadata, ChannelParticipantRemovedMetadata, ChannelPreview, ChannelPreviewData, ChannelSender, ChannelSharePermission, ChannelThreadFilters, ChannelTopicEvent, ChannelType, ChannelUpdatedMetadata, ChannelWebhookRequest, ChannelWebhookResponse, ChannelWithParticipants, Chat, ChatFilters, CheckActiveCallData, CheckActiveCallError, CheckActiveCallErrors, CheckActiveCallResponse, CheckActiveCallResponses, ClaimedPairing, ClaimHarnessPairingData, ClaimHarnessPairingError, ClaimHarnessPairingErrors, ClaimHarnessPairingResponse, ClaimHarnessPairingResponses, ClaimPairingRequest, ClientOptions, CloudStorageItemType, CollabSurfaceResponse, CollabSurfaceTokenResponse, Comment, CommentThread, ConferenceProvider, CopyDocumentData, CopyDocumentError, CopyDocumentErrors, CopyDocumentQueryParams, CopyDocumentRequest, CopyDocumentResponse, CopyDocumentResponse2, CopyDocumentResponses, CreateAgentData, CreateAgentError, CreateAgentErrors, CreateAgentRequest, CreateAgentResponse, CreateAgentResponses, CreateAnchorData, CreateAnchorError, CreateAnchorErrors, CreateAnchorResponse, CreateAnchorResponses, CreateBotRequest, CreateBulkDocumentResponse, CreateBulkDocumentResponseData, CreateChannelData, CreateChannelError, CreateChannelErrors, CreateChannelRequest, CreateChannelResponse, CreateChannelResponse2, CreateChannelResponses, CreateChannelScopedBotData, CreateChannelScopedBotError, CreateChannelScopedBotErrors, CreateChannelScopedBotRequest, CreateChannelScopedBotResponse, CreateChannelScopedBotResponse2, CreateChannelScopedBotResponses, CreateCollabSurfaceTokenData, CreateCollabSurfaceTokenError, CreateCollabSurfaceTokenErrors, CreateCollabSurfaceTokenResponse, CreateCollabSurfaceTokenResponses, CreateCommentData, CreateCommentError, CreateCommentErrors, CreateCommentRequest, CreateCommentResponse, CreateCommentResponse2, CreateCommentResponses, CreateCrmCommentData, CreateCrmCommentError, CreateCrmCommentErrors, CreateCrmCommentRequest, CreateCrmCommentResponse, CreateCrmCommentResponses, CreateCrmCompanyData, CreateCrmCompanyError, CreateCrmCompanyErrors, CreateCrmCompanyRequest, CreateCrmCompanyResponse, CreateCrmCompanyResponses, CreateCrmContactData, CreateCrmContactError, CreateCrmContactErrors, CreateCrmContactRequest, CreateCrmContactResponse, CreateCrmContactResponses, CreateDocumentData, CreateDocumentError, CreateDocumentErrors, CreateDocumentRequest, CreateDocumentResponse, CreateDocumentResponseData, CreateDocumentResponses, CreatedPairing, CreatedUserApiKey, CreateEntityMentionData, CreateEntityMentionError, CreateEntityMentionErrors, CreateEntityMentionRequest, CreateEntityMentionResponse, CreateEntityMentionResponse2, CreateEntityMentionResponses, CreateHarnessPairingData, CreateHarnessPairingError, CreateHarnessPairingErrors, CreateHarnessPairingResponse, CreateHarnessPairingResponses, CreateInstructionsDocumentResponse, CreateInstructionsHandlerData, CreateInstructionsHandlerError, CreateInstructionsHandlerErrors, CreateInstructionsHandlerResponse, CreateInstructionsHandlerResponses, CreateMarkdownDocumentRequest, CreateMarkdownDocumentResponse, CreateMarkdownHandlerData, CreateMarkdownHandlerError, CreateMarkdownHandlerErrors, CreateMarkdownHandlerResponse, CreateMarkdownHandlerResponses, CreatePairingRequest, CreateProjectHandlerData, CreateProjectHandlerError, CreateProjectHandlerErrors, CreateProjectHandlerResponse, CreateProjectHandlerResponses, CreateProjectRequest, CreateProjectResponse, CreateReminderData, CreateReminderError, CreateReminderErrors, CreateReminderRequest, CreateReminderResponse, CreateReminderResponses, CreateSkillHandlerData, CreateSkillHandlerError, CreateSkillHandlerErrors, CreateSkillHandlerResponse, CreateSkillHandlerResponses, CreateSkillRequest, CreateSkillResponse, CreateSnippetHandlerData, CreateSnippetHandlerError, CreateSnippetHandlerErrors, CreateSnippetHandlerResponse, CreateSnippetHandlerResponses, CreateSnippetRequest, CreateSnippetResponse, CreateTaskHandlerData, CreateTaskHandlerError, CreateTaskHandlerErrors, CreateTaskHandlerResponse, CreateTaskHandlerResponses, CreateTaskRequest, CreateTaskResponse, CreateUnthreadedAnchorRequest, CreateUnthreadedAnchorResponse, CreateUnthreadedPdfAnchorRequest, CreateUserApiKeyData, CreateUserApiKeyError, CreateUserApiKeyErrors, CreateUserApiKeyRequest, CreateUserApiKeyResponse, CreateUserApiKeyResponses, CreateViewHandlerData, CreateViewHandlerError, CreateViewHandlerErrors, CreateViewHandlerResponse, CreateViewHandlerResponses, CreateViewRequest, CreateWebhookData, CreateWebhookError, CreateWebhookErrors, CreateWebhookRequest, CreateWebhookResponse, CreateWebhookResponse2, CreateWebhookResponses, CrmComment, CrmCommentEntityType, CrmCommentThread, CrmCompanyFilters, CrmCompanyResponse, CrmContactResponse, CrmDomainResponse, CrmPermissionRole, CrmTeamSettingsResponse, CrmThread, CustomSpeakerAssignment, DataType, DeleteAnchorData, DeleteAnchorError, DeleteAnchorErrors, DeleteAnchorInfo, DeleteAnchorResponse, DeleteAnchorResponses, DeleteCallRecordData, DeleteCallRecordError, DeleteCallRecordErrors, DeleteCallRecordResponse, DeleteCallRecordResponses, DeleteChannelData, DeleteChannelError, DeleteChannelErrors, DeleteChannelResponse, DeleteChannelResponses, DeleteCollabSurfaceData, DeleteCollabSurfaceError, DeleteCollabSurfaceErrors, DeleteCollabSurfaceResponse, DeleteCollabSurfaceResponses, DeleteCommentData, DeleteCommentError, DeleteCommentErrors, DeleteCommentRequest, DeleteCommentResponse, DeleteCommentResponse2, DeleteCommentResponses, DeleteCrmCommentData, DeleteCrmCommentError, DeleteCrmCommentErrors, DeleteCrmCommentResponse, DeleteCrmCommentResponses, DeleteCrmCommentResult, DeleteDocumentData, DeleteDocumentError, DeleteDocumentErrors, DeleteDocumentResponse, DeleteDocumentResponses, DeleteEntityMentionData, DeleteEntityMentionError, DeleteEntityMentionErrors, DeleteEntityMentionResponse, DeleteEntityMentionResponse2, DeleteEntityMentionResponses, DeleteHarnessData, DeleteHarnessError, DeleteHarnessErrors, DeleteHarnessResponse, DeleteHarnessResponses, DeleteHistoryHandlerData, DeleteHistoryHandlerError, DeleteHistoryHandlerErrors, DeleteHistoryHandlerResponse, DeleteHistoryHandlerResponses, DeleteMessageData, DeleteMessageError, DeleteMessageErrors, DeleteMessageQuery, DeleteMessageResponse, DeleteMessageResponses, DeleteProjectHandlerData, DeleteProjectHandlerError, DeleteProjectHandlerErrors, DeleteProjectHandlerResponse, DeleteProjectHandlerResponses, DeleteReminderData, DeleteReminderError, DeleteReminderErrors, DeleteReminderResponse, DeleteReminderResponses, DeleteSelfHarnessData, DeleteSelfHarnessError, DeleteSelfHarnessErrors, DeleteSelfHarnessResponse, DeleteSelfHarnessResponses, DeleteThreadInfo, DeleteUnthreadedAnchorRequest, DeleteUnthreadedAnchorResponse, DeleteUnthreadedPdfAnchorRequest, DeleteUserApiKeyData, DeleteUserApiKeyError, DeleteUserApiKeyErrors, DeleteUserApiKeyResponse, DeleteUserApiKeyResponses, DeleteUserDocumentViewLocationData, DeleteUserDocumentViewLocationError, DeleteUserDocumentViewLocationErrors, DeleteUserDocumentViewLocationResponse, DeleteUserDocumentViewLocationResponses, DeleteViewHandlerData, DeleteViewHandlerError, DeleteViewHandlerErrors, DeleteViewHandlerResponses, DeleteWebhookData, DeleteWebhookError, DeleteWebhookErrors, DeleteWebhookResponse, DeleteWebhookResponses, DocumentBasic, DocumentContent, DocumentContentLocation, DocumentContentState, DocumentContentUploadedMetadata, DocumentCopiedMetadata, DocumentCreatedMetadata, DocumentDeletedMetadata, DocumentFilters, DocumentInteractionMetadata, DocumentMetadata, DocumentMetadataWithContent, DocumentPermissionsToken, DocumentPermissionsTokenRequest, DocumentPermissionsTokenResponse, DocumentPreview, DocumentPreviewData, DocumentPreviewDataSubType, DocumentPurgedMetadata, DocumentResponse, DocumentResponseMetadata, DocumentResponseMetadataWithContent, DocumentStorageServiceApiVersion, DocumentSubType, DocumentSyncContentUpdatedMetadata, DocumentTeamShareResponse, DocumentTopicEvent, DocumentUpdatedMetadata, EditAnchorData, EditAnchorError, EditAnchorErrors, EditAnchorRequest, EditAnchorResponse, EditAnchorResponse2, EditAnchorResponses, EditCallRecordData, EditCallRecordError, EditCallRecordErrors, EditCallRecordRequest, EditCallRecordResponse, EditCallRecordResponses, EditCallTranscriptData, EditCallTranscriptError, EditCallTranscriptErrors, EditCallTranscriptRequest, EditCallTranscriptResponse, EditCallTranscriptResponses, EditCommentData, EditCommentError, EditCommentErrors, EditCommentRequest, EditCommentResponse, EditCommentResponse2, EditCommentResponses, EditCrmCommentData, EditCrmCommentError, EditCrmCommentErrors, EditCrmCommentRequest, EditCrmCommentResponse, EditCrmCommentResponses, EditDocumentData, EditDocumentError, EditDocumentErrors, EditDocumentResponse, EditDocumentResponse2, EditDocumentResponses, EditDocumentServiceArgs, EditPdfAnchorRequest, EditPdfPlaceableCommentAnchorRequest, EditProjectV2Data, EditProjectV2Error, EditProjectV2Errors, EditProjectV2Response, EditProjectV2Responses, EditThreadV2Data, EditThreadV2Error, EditThreadV2Errors, EditThreadV2Response, EditThreadV2Responses, EmailFilters, EmptyResponse, EnsureCollabSurfaceData, EnsureCollabSurfaceError, EnsureCollabSurfaceErrors, EnsureCollabSurfaceRequest, EnsureCollabSurfaceResponse, EnsureCollabSurfaceResponses, EntityFilters, EntityPermission, EntityPermissionResponse, EntityReference, EntityType, ErrorResponse, EventReminderOverride, EventReminders, EventStatus, EventTime, EventTransparency, EventType, EventVisibility, ExcludedDefaultView, ExcludeDefaultViewHandlerData, ExcludeDefaultViewHandlerError, ExcludeDefaultViewHandlerErrors, ExcludeDefaultViewHandlerResponses, ExcludeDefaultViewRequest, ExportDocumentData, ExportDocumentError, ExportDocumentErrors, ExportDocumentResponse, ExportDocumentResponse2, ExportDocumentResponses, Favorite, FavoriteEntityRef, FavoritesList, FileSystemNodeWithIds, FileType, FileTypeUpdate, FolderItem, ForeignEntity, ForeignEntityFilters, GenericErrorResponse, GenericResponse, GenericSuccessResponse, GetActiveCallsData, GetActiveCallsError, GetActiveCallsErrors, GetActiveCallsResponse, GetActiveCallsResponses, GetActivityData, GetActivityError, GetActivityErrors, GetActivityResponse, GetActivityResponses, GetAttachmentReferencesData, GetAttachmentReferencesError, GetAttachmentReferencesErrors, GetAttachmentReferencesResponse, GetAttachmentReferencesResponse2, GetAttachmentReferencesResponses, GetBatchCallRecordPreviewData, GetBatchCallRecordPreviewError, GetBatchCallRecordPreviewErrors, GetBatchCallRecordPreviewRequest, GetBatchCallRecordPreviewResponse, GetBatchCallRecordPreviewResponse2, GetBatchCallRecordPreviewResponses, GetBatchChannelPreviewData, GetBatchChannelPreviewError, GetBatchChannelPreviewErrors, GetBatchChannelPreviewRequest, GetBatchChannelPreviewResponse, GetBatchChannelPreviewResponse2, GetBatchChannelPreviewResponses, GetBatchPreviewHandlerData, GetBatchPreviewHandlerError, GetBatchPreviewHandlerErrors, GetBatchPreviewHandlerResponse, GetBatchPreviewHandlerResponses, GetBatchPreviewRequest, GetBatchPreviewResponse, GetBatchProjectPreviewData, GetBatchProjectPreviewError, GetBatchProjectPreviewErrors, GetBatchProjectPreviewRequest, GetBatchProjectPreviewResponse, GetBatchProjectPreviewResponse2, GetBatchProjectPreviewResponses, GetCallRecordData, GetCallRecordError, GetCallRecordErrors, GetCallRecordResponse, GetCallRecordResponses, GetChannelAttachmentsData, GetChannelAttachmentsError, GetChannelAttachmentsErrors, GetChannelAttachmentsResponse, GetChannelAttachmentsResponses, GetChannelData, GetChannelError, GetChannelErrors, GetChannelJoinLinkData, GetChannelJoinLinkError, GetChannelJoinLinkErrors, GetChannelJoinLinkResponse, GetChannelJoinLinkResponses, GetChannelMessagesData, GetChannelMessagesError, GetChannelMessagesErrors, GetChannelMessagesResponse, GetChannelMessagesResponses, GetChannelParticipantsData, GetChannelParticipantsError, GetChannelParticipantsErrors, GetChannelParticipantsResponse, GetChannelParticipantsResponses, GetChannelResponse, GetChannelResponses, GetChannelsData, GetChannelsError, GetChannelsErrors, GetChannelsResponse, GetChannelsResponses, GetCollabSurfaceData, GetCollabSurfaceError, GetCollabSurfaceErrors, GetCollabSurfaceResponse, GetCollabSurfaceResponses, GetCompanyData, GetCompanyError, GetCompanyErrors, GetCompanyResponse, GetCompanyResponses, GetContactByEmailData, GetContactByEmailError, GetContactByEmailErrors, GetContactByEmailResponse, GetContactByEmailResponse2, GetContactByEmailResponses, GetContactData, GetContactError, GetContactErrors, GetContactResponse, GetContactResponses, GetCrmTeamSettingsData, GetCrmTeamSettingsError, GetCrmTeamSettingsErrors, GetCrmTeamSettingsResponse, GetCrmTeamSettingsResponses, GetDocumentAnchorsData, GetDocumentAnchorsError, GetDocumentAnchorsErrors, GetDocumentAnchorsResponse, GetDocumentAnchorsResponses, GetDocumentBranchNameData, GetDocumentBranchNameError, GetDocumentBranchNameErrors, GetDocumentBranchNameResponse, GetDocumentBranchNameResponses, GetDocumentByTeamSlugData, GetDocumentByTeamSlugError, GetDocumentByTeamSlugErrors, GetDocumentByTeamSlugResponse, GetDocumentByTeamSlugResponses, GetDocumentCommentsData, GetDocumentCommentsError, GetDocumentCommentsErrors, GetDocumentCommentsResponse, GetDocumentCommentsResponses, GetDocumentData, GetDocumentError, GetDocumentErrors, GetDocumentGithubPullRequestsData, GetDocumentGithubPullRequestsError, GetDocumentGithubPullRequestsErrors, GetDocumentGithubPullRequestsResponse, GetDocumentGithubPullRequestsResponses, GetDocumentKeyResponse, GetDocumentKeyResponseData, GetDocumentListHandlerData, GetDocumentListHandlerError, GetDocumentListHandlerErrors, GetDocumentListHandlerResponse, GetDocumentListHandlerResponses, GetDocumentListResult, GetDocumentLocationV3Data, GetDocumentLocationV3Error, GetDocumentLocationV3Errors, GetDocumentLocationV3Response, GetDocumentLocationV3Responses, GetDocumentPermissionsResponseDataV2, GetDocumentPermissionsTokenData, GetDocumentPermissionsTokenError, GetDocumentPermissionsTokenErrors, GetDocumentPermissionsTokenResponse, GetDocumentPermissionsTokenResponses, GetDocumentPermissionsV2Data, GetDocumentPermissionsV2Error, GetDocumentPermissionsV2Errors, GetDocumentPermissionsV2Response, GetDocumentPermissionsV2Responses, GetDocumentProcessingResult, GetDocumentProcessingResultData, GetDocumentProcessingResultError, GetDocumentProcessingResultErrors, GetDocumentProcessingResultResponse, GetDocumentProcessingResultResponse2, GetDocumentProcessingResultResponses, GetDocumentResponse, GetDocumentResponse2, GetDocumentResponseData, GetDocumentResponses, GetDocumentSearchResponse, GetDocumentShortIdData, GetDocumentShortIdError, GetDocumentShortIdErrors, GetDocumentShortIdResponse, GetDocumentShortIdResponses, GetDocumentsResponse, GetDocumentTeamShareData, GetDocumentTeamShareError, GetDocumentTeamShareErrors, GetDocumentTeamShareResponse, GetDocumentTeamShareResponses, GetDocumentUserAccessLevelResponse, GetDocumentVersionData, GetDocumentVersionError, GetDocumentVersionErrors, GetDocumentVersionResponse, GetDocumentVersionResponses, GetDocumentViewsHandlerData, GetDocumentViewsHandlerError, GetDocumentViewsHandlerErrors, GetDocumentViewsHandlerResponse, GetDocumentViewsHandlerResponses, GetEntityPermissionData, GetEntityPermissionErrors, GetEntityPermissionResponse, GetEntityPermissionResponses, GetForeignEntityData, GetForeignEntityError, GetForeignEntityErrors, GetForeignEntityResponse, GetForeignEntityResponses, GetHarnessPairingData, GetHarnessPairingError, GetHarnessPairingErrors, GetHarnessPairingResponse, GetHarnessPairingResponses, GetHistoryHandlerData, GetHistoryHandlerError, GetHistoryHandlerErrors, GetHistoryHandlerResponse, GetHistoryHandlerResponses, GetInstructionsDocumentResponse, GetInstructionsHandlerData, GetInstructionsHandlerError, GetInstructionsHandlerErrors, GetInstructionsHandlerResponse, GetInstructionsHandlerResponses, GetItemsSoupData, GetItemsSoupError, GetItemsSoupErrors, GetItemsSoupResponse, GetItemsSoupResponses, GetLocationHandlerData, GetLocationHandlerError, GetLocationHandlerErrors, GetLocationHandlerResponse, GetLocationHandlerResponses, GetMessageWithContextData, GetMessageWithContextError, GetMessageWithContextErrors, GetMessageWithContextResponse, GetMessageWithContextResponse2, GetMessageWithContextResponses, GetOrCreateAction, GetOrCreateCallData, GetOrCreateCallError, GetOrCreateCallErrors, GetOrCreateCallResponse, GetOrCreateCallResponses, GetOrCreateChannelResponse, GetOrCreateDmData, GetOrCreateDmError, GetOrCreateDmErrors, GetOrCreateDmRequest, GetOrCreateDmResponse, GetOrCreateDmResponses, GetOrCreatePrivateData, GetOrCreatePrivateError, GetOrCreatePrivateErrors, GetOrCreatePrivateRequest, GetOrCreatePrivateResponse, GetOrCreatePrivateResponses, GetPendingProjectsHandlerData, GetPendingProjectsHandlerError, GetPendingProjectsHandlerErrors, GetPendingProjectsHandlerResponse, GetPendingProjectsHandlerResponses, GetPinsHandlerData, GetPinsHandlerError, GetPinsHandlerErrors, GetPinsHandlerResponse, GetPinsHandlerResponses, GetPinsResponse, GetProjectContentHandlerData, GetProjectContentHandlerError, GetProjectContentHandlerErrors, GetProjectContentHandlerResponse, GetProjectContentHandlerResponses, GetProjectContentResponse, GetProjectHandlerData, GetProjectHandlerError, GetProjectHandlerErrors, GetProjectHandlerResponse, GetProjectHandlerResponses, GetProjectPermissionsV2Data, GetProjectPermissionsV2Error, GetProjectPermissionsV2Errors, GetProjectPermissionsV2Response, GetProjectPermissionsV2Responses, GetProjectResponse, GetProjectResponseData, GetProjectsHandlerData, GetProjectsHandlerError, GetProjectsHandlerErrors, GetProjectsHandlerResponse, GetProjectsHandlerResponses, GetProjectsResponse, GetProjectUserAccessLevelData, GetProjectUserAccessLevelError, GetProjectUserAccessLevelErrors, GetProjectUserAccessLevelResponse, GetProjectUserAccessLevelResponses, GetReminderData, GetReminderError, GetReminderErrors, GetReminderResponse, GetReminderResponses, GetRingStatusData, GetRingStatusError, GetRingStatusErrors, GetRingStatusResponse, GetRingStatusResponses, GetSelfBotData, GetSelfBotError, GetSelfBotErrors, GetSelfBotResponse, GetSelfBotResponses, GetSelfHarnessData, GetSelfHarnessError, GetSelfHarnessErrors, GetSelfHarnessResponse, GetSelfHarnessResponses, GetSystemSkillsHandlerData, GetSystemSkillsHandlerError, GetSystemSkillsHandlerErrors, GetSystemSkillsHandlerResponse, GetSystemSkillsHandlerResponses, GetThreadRepliesData, GetThreadRepliesError, GetThreadRepliesErrors, GetThreadRepliesResponse, GetThreadRepliesResponses, GetUserDocumentsHandlerData, GetUserDocumentsHandlerError, GetUserDocumentsHandlerErrors, GetUserDocumentsHandlerResponse, GetUserDocumentsHandlerResponses, GetUserDocumentViewLocationData, GetUserDocumentViewLocationError, GetUserDocumentViewLocationErrors, GetUserDocumentViewLocationResponse, GetUserDocumentViewLocationResponses, GetUserHistoryResponse, GetViewsHandlerData, GetViewsHandlerError, GetViewsHandlerErrors, GetViewsHandlerResponse, GetViewsHandlerResponses, GetWebhookData, GetWebhookError, GetWebhookErrors, GetWebhookResponse, GetWebhookResponses, GithubPullRequest, GithubPullRequestCheckRun, GithubPullRequestComment, GithubPullRequestsResponse, GroupedInitialParams, GroupedPageParams, GroupedSoupGroupPage, GroupedSoupInitialPage, GroupedSoupPage, GroupedSoupSort, HandlerData, HandlerError, HandlerErrors, HandlerResponse, HandlerResponses, Harness, HarnessAgent, HarnessId, HarnessOwner, HarnessSession, HashMap, HealthHandlerData, HealthHandlerResponse, HealthHandlerResponses, HighlightType, IngestTranscriptData, IngestTranscriptError, IngestTranscriptErrors, IngestTranscriptResponses, InitializeUserDocumentsData, InitializeUserDocumentsError, InitializeUserDocumentsErrors, InitializeUserDocumentsResponse, InitializeUserDocumentsResponses, InstallSyncData, InstallSyncErrors, InteractionReason, Item, ItemWithUserAccessLevel, JobProcessingResultHandlerData, JobProcessingResultHandlerError, JobProcessingResultHandlerErrors, JobProcessingResultHandlerResponse, JobProcessingResultHandlerResponses, JoinChannelByCodeData, JoinChannelByCodeError, JoinChannelByCodeErrors, JoinChannelByCodeResponses, JoinChannelData, JoinChannelError, JoinChannelErrors, JoinChannelResponses, LatestMessage, LeaveCallResponse, LeaveChannelData, LeaveChannelError, LeaveChannelErrors, LeaveChannelResponses, LeaveOrEndCallData, LeaveOrEndCallError, LeaveOrEndCallErrors, LeaveOrEndCallResponse, LeaveOrEndCallResponses, LinkShare, ListAgentsData, ListAgentsError, ListAgentsErrors, ListAgentsResponse, ListAgentsResponses, ListBotChannelsData, ListBotChannelsError, ListBotChannelsErrors, ListBotChannelsResponse, ListBotChannelsResponses, ListCompanyContactsData, ListCompanyContactsError, ListCompanyContactsErrors, ListCompanyContactsResponse, ListCompanyContactsResponses, ListCrmCommentsData, ListCrmCommentsError, ListCrmCommentsErrors, ListCrmCommentsResponse, ListCrmCommentsResponses, ListFavoritesData, ListFavoritesError, ListFavoritesErrors, ListFavoritesResponse, ListFavoritesResponses, ListHarnessAgentsData, ListHarnessAgentsError, ListHarnessAgentsErrors, ListHarnessAgentsResponse, ListHarnessAgentsResponses, ListHarnessesData, ListHarnessesError, ListHarnessesErrors, ListHarnessesResponse, ListHarnessesResponses, ListHarnessSessionsData, ListHarnessSessionsError, ListHarnessSessionsErrors, ListHarnessSessionsResponse, ListHarnessSessionsResponses, ListOccurrencesData, ListOccurrencesErrors, ListOccurrencesResponse, ListOccurrencesResponses, ListRemindersData, ListRemindersError, ListRemindersErrors, ListRemindersResponse, ListRemindersResponses, ListUserApiKeysData, ListUserApiKeysError, ListUserApiKeysErrors, ListUserApiKeysResponse, ListUserApiKeysResponses, ListWebhooksData, ListWebhooksError, ListWebhooksErrors, ListWebhooksResponse, ListWebhooksResponse2, ListWebhooksResponses, LocationResponseData, LocationResponseV3, MacroUserIdStr, MentionPreviewsData, MentionPreviewsErrors, MentionPreviewsResponse, MentionPreviewsResponses, Mentions, NewChannelAttachment, NotificationFilters, PairingDetails, Params, ParticipantRole, PatchBotRequest, PatchChannelData, PatchChannelError, PatchChannelErrors, PatchChannelRequest, PatchChannelResponse, PatchChannelResponses, PatchMessageData, PatchMessageError, PatchMessageErrors, PatchMessageRequest, PatchMessageResponse, PatchMessageResponses, PatchProjectRequestV2, PatchThreadRequestV2, PatchViewHandlerData, PatchViewHandlerError, PatchViewHandlerErrors, PatchViewHandlerResponses, PatchWebhookData, PatchWebhookError, PatchWebhookErrors, PatchWebhookRequest, PatchWebhookResponse, PatchWebhookResponses, PdfAnchor, PdfAnchorId, PdfAnchorRequest, PdfHighlightAnchor, PdfHighlightAnchorRequest, PdfHighlightRect, PdfHighlightRectAnchorRequest, PdfPlaceableCommentAnchor, PdfPlaceableCommentAnchorRequest, PendingClaimResponse, PermanentlyDeleteDocumentData, PermanentlyDeleteDocumentError, PermanentlyDeleteDocumentErrors, PermanentlyDeleteDocumentResponse, PermanentlyDeleteDocumentResponses, PermanentlyDeleteProjectData, PermanentlyDeleteProjectError, PermanentlyDeleteProjectErrors, PermanentlyDeleteProjectResponse, PermanentlyDeleteProjectResponses, PinnedItem, PinRequest, PostActivityData, PostActivityError, PostActivityErrors, PostActivityRequest, PostActivityResponse, PostActivityResponses, PostChannelBotWebhookData, PostChannelBotWebhookError, PostChannelBotWebhookErrors, PostChannelBotWebhookResponse, PostChannelBotWebhookResponses, PostChannelMessagesData, PostChannelMessagesError, PostChannelMessagesErrors, PostChannelMessagesResponse, PostChannelMessagesResponses, PostGroupedSoupAstGroupPageRequest, PostGroupedSoupAstInitialRequest, PostGroupedSoupAstRequest, PostItemsSoupAstData, PostItemsSoupAstError, PostItemsSoupAstErrors, PostItemsSoupAstGroupedData, PostItemsSoupAstGroupedError, PostItemsSoupAstGroupedErrors, PostItemsSoupAstGroupedResponse, PostItemsSoupAstGroupedResponses, PostItemsSoupAstResponse, PostItemsSoupAstResponses, PostItemsSoupData, PostItemsSoupError, PostItemsSoupErrors, PostItemsSoupResponse, PostItemsSoupResponses, PostMessageData, PostMessageError, PostMessageErrors, PostMessageRequest, PostMessageResponse, PostMessageResponse2, PostMessageResponses, PostReactionData, PostReactionError, PostReactionErrors, PostReactionRequest, PostReactionResponse, PostReactionResponses, PostSoupAstRequest, PostSoupRequest, PostTypingData, PostTypingError, PostTypingErrors, PostTypingRequest, PostTypingResponse, PostTypingResponses, PresaveDocumentHandlerData, PresaveDocumentHandlerError, PresaveDocumentHandlerErrors, PresaveDocumentHandlerResponse, PresaveDocumentHandlerResponses, PreSaveDocumentRequest, PreSaveDocumentResponse, PreSaveDocumentResponseData, PresignedUrl, Project, ProjectDeleteResponseData, ProjectDocumentStatus, ProjectFilters, ProjectPreview, ProjectPreviewData, PropertyDefinition, PropertyFilter, PropertyInput, PropertyOwner, PropertyValue, PutCrmTeamSettingsData, PutCrmTeamSettingsError, PutCrmTeamSettingsErrors, PutCrmTeamSettingsResponse, PutCrmTeamSettingsResponses, ReactionAction, RecentlyDeletedData, RecentlyDeletedError, RecentlyDeletedErrors, RecentlyDeletedResponse, RecentlyDeletedResponseData, RecentlyDeletedResponses, Reminder, ReminderFilters, ReminderSchedule, RemindersList, RemoveBotFromChannelByBotData, RemoveBotFromChannelByBotError, RemoveBotFromChannelByBotErrors, RemoveBotFromChannelByBotResponse, RemoveBotFromChannelByBotResponses, RemoveFavoriteByEntityData, RemoveFavoriteByEntityError, RemoveFavoriteByEntityErrors, RemoveFavoriteByEntityResponses, RemoveParticipantsData, RemoveParticipantsError, RemoveParticipantsErrors, RemoveParticipantsRequest, RemoveParticipantsResponses, RemovePinHandlerData, RemovePinHandlerError, RemovePinHandlerErrors, RemovePinHandlerResponse, RemovePinHandlerResponses, ReorderFavoritesData, ReorderFavoritesError, ReorderFavoritesErrors, ReorderFavoritesRequest, ReorderFavoritesResponses, ReorderPinRequest, ReorderPinsHandlerData, ReorderPinsHandlerError, ReorderPinsHandlerErrors, ReorderPinsHandlerResponse, ReorderPinsHandlerResponses, RequestedHarnessScope, ResolveChannelMessageData, ResolveChannelMessageError, ResolveChannelMessageErrors, ResolveChannelMessageResponse, ResolveChannelMessageResponses, RevertDeleteDocumentData, RevertDeleteDocumentError, RevertDeleteDocumentErrors, RevertDeleteDocumentResponse, RevertDeleteDocumentResponses, RevertDeleteProjectData, RevertDeleteProjectError, RevertDeleteProjectErrors, RevertDeleteProjectResponse, RevertDeleteProjectResponses, RingStatus, RingStatusResponse, S3ObjectInfo, SaveBomPart, SaveDocumentHandlerData, SaveDocumentHandlerError, SaveDocumentHandlerErrors, SaveDocumentHandlerResponse, SaveDocumentHandlerResponses, SaveDocumentRequest, SaveDocumentResponse, SaveDocumentResponseData, SetCompanyHiddenData, SetCompanyHiddenError, SetCompanyHiddenErrors, SetCompanyHiddenRequest, SetCompanyHiddenResponse, SetCompanyHiddenResponses, SetCompanyNameRequest, SetContactHiddenData, SetContactHiddenError, SetContactHiddenErrors, SetContactHiddenRequest, SetContactHiddenResponse, SetContactHiddenResponses, SetContactNameRequest, SetCrmCompanyNameData, SetCrmCompanyNameError, SetCrmCompanyNameErrors, SetCrmCompanyNameResponse, SetCrmCompanyNameResponses, SetCrmContactNameData, SetCrmContactNameError, SetCrmContactNameErrors, SetCrmContactNameResponse, SetCrmContactNameResponses, SetDocumentTeamShareData, SetDocumentTeamShareError, SetDocumentTeamShareErrors, SetDocumentTeamShareRequest, SetDocumentTeamShareResponse, SetDocumentTeamShareResponses, SetEmailSyncData, SetEmailSyncError, SetEmailSyncErrors, SetEmailSyncRequest, SetEmailSyncResponse, SetEmailSyncResponses, SetPropertyValue, SharedEmailFilter, SharePermissionV2, ShortIdResponse, SimpleMention, SimpleSaveData, SimpleSaveError, SimpleSaveErrors, SimpleSaveResponse, SimpleSaveResponses, SoupApiItem, SoupApiSort, SoupApiSortDirection, SoupAttachment, SoupCalendarEventSoupPropertiesField, SoupCalendarEventTime, SoupCallRecordParticipant, SoupCallRecordSoupPropertiesField, SoupChannel, SoupChannelThread, SoupChatSoupPropertiesField, SoupContact, SoupCountedReaction, SoupCrmCompanySoupPropertiesField, SoupCrmDomain, SoupDocumentSoupPropertiesField, SoupDocumentSubType, SoupEmailThreadPreview, SoupEnrichedEmailThreadPreviewSoupPropertiesField, SoupForeignEntity, SoupItem, SoupLabel, SoupLabelListVisibility, SoupLabelType, SoupMessageAttachment, SoupMessageListVisibility, SoupMessageSender, SoupMessageSenderType, SoupPage, SoupProjectSoupPropertiesField, SoupPropertiesField, SoupProperty, SoupReminderReference, SoupReminderSchedule, SoupReminderSoupPropertiesField, SoupThreadInfo, SoupThreadReply, StarterDocumentsResponse, StreamEventsData, StreamEventsError, StreamEventsErrors, StreamEventsResponse, StreamEventsResponses, String, SuccessResponse, SurfaceState, SyncServiceVersionId, SystemSkillSummary, TagFilterMode, TaskFilters, TeamRole, Thread, ThreadResponse, ToggleShareWithTeamData, ToggleShareWithTeamError, ToggleShareWithTeamErrors, ToggleShareWithTeamResponse, ToggleShareWithTeamResponses, TranscriptSegmentRequest, TypedSuccessResponse, TypedSuccessResponseGetDocumentResponseData, TypingAction, UnthreadedPdfUuidRequest, UpdateAgentData, UpdateAgentError, UpdateAgentErrors, UpdateAgentRequest, UpdateAgentResponse, UpdateAgentResponses, UpdateChannelSharePermission, UpdateCrmTeamSettingsRequest, UpdateOperation, UpdateReminderData, UpdateReminderError, UpdateReminderErrors, UpdateReminderRequest, UpdateReminderResponse, UpdateReminderResponses, UpdateSharePermissionRequestV2, UploadDocumentStatus, UploadExtractFolderHandlerData, UploadExtractFolderHandlerError, UploadExtractFolderHandlerErrors, UploadExtractFolderHandlerResponse, UploadExtractFolderHandlerResponses, UploadExtractFolderRequest, UploadFolderHandlerData, UploadFolderHandlerError, UploadFolderHandlerErrors, UploadFolderHandlerResponse, UploadFolderHandlerResponses, UploadFolderRequest, UpsertHistoryHandlerData, UpsertHistoryHandlerError, UpsertHistoryHandlerErrors, UpsertHistoryHandlerResponse, UpsertHistoryHandlerResponses, UpsertUserDocumentViewLocationData, UpsertUserDocumentViewLocationError, UpsertUserDocumentViewLocationErrors, UpsertUserDocumentViewLocationRequest, UpsertUserDocumentViewLocationResponse, UpsertUserDocumentViewLocationResponses, UserApiKeyId, UserApiKeyInfo, UserApiKeysList, UserDocumentsResponse, UserDocumentViewLocation, UserDocumentViewLocationResponse, UserPinsResponse, UserViewsResponse, ValidateDocumentPermissionsTokenData, ValidateDocumentPermissionsTokenError, ValidateDocumentPermissionsTokenErrors, ValidateDocumentPermissionsTokenResponse, ValidateDocumentPermissionsTokenResponses, ValidateWebhookData, ValidateWebhookError, ValidateWebhookErrors, ValidateWebhookResponse, ValidateWebhookResponse2, ValidateWebhookResponses, Vec, View, ViewPatch, ViewsResponse, Webhook, WebhookEvent, WebhookFilter, WebhookScope, WebhookStatus, WebhookValidationTestEvent, WithCallId, WithChannelId, WithDocumentId, WithProjectId } from './types.gen';
+export type { AccessLevel, ActiveCallsResponse, ActiveCallSummary, ActivityType, AddFavoriteData, AddFavoriteError, AddFavoriteErrors, AddFavoriteRequest, AddFavoriteResponse, AddFavoriteResponses, AddParticipantsData, AddParticipantsError, AddParticipantsErrors, AddParticipantsRequest, AddParticipantsResponses, AddPinHandlerData, AddPinHandlerError, AddPinHandlerErrors, AddPinHandlerResponse, AddPinHandlerResponses, AddPinRequest, Agent, AgentChannelScope, Anchor, AnchorId, AnchorRequest, AnchorResponse, AnnotationIncrementalUpdate, ApiActivity, ApiAttachmentChannelReference, ApiAttachmentEntityReference, ApiAttachmentGenericReference, ApiChannelAttachment, ApiChannelAttachmentsPage, ApiChannelContextMessage, ApiChannelDetail, ApiChannelListMessage, ApiChannelListPage, ApiChannelListParticipant, ApiChannelListType, ApiChannelMessage, ApiChannelMessageKind, ApiChannelMessagesPage, ApiChannelParticipant, ApiChannelWithLatest, ApiCountedReaction, ApiEntityFilterAst, ApiGroupByField, ApiGroupMeta, ApiMessageAttachment, ApiMessageSender, ApiMessageSenderType, ApiParticipantListRole, ApiParticipantRole, ApiPropertyEntityType, ApiResolvedChannelMessage, ApiThreadInfo, ApiThreadReply, ApproveHarnessPairingData, ApproveHarnessPairingError, ApproveHarnessPairingErrors, ApproveHarnessPairingResponse, ApproveHarnessPairingResponses, ApprovePairingRequest, AttendeeResponseStatus, BasicDocument, BasicDocumentSubType, BomPart, Bot, BotChannel, BotChannelType, BotId, BotKind, BotOwner, BotToken, BranchNameResponse, BTreeMap, BulkWakeupRequest, BulkWakeupResponse, BulkWakeupSyncServiceDocumentsData, BulkWakeupSyncServiceDocumentsErrors, BulkWakeupSyncServiceDocumentsResponse, BulkWakeupSyncServiceDocumentsResponses, CalendarAttendee, CalendarEvent, CalendarEventFilters, CalendarMentionEvent, CalendarMentionPreviewItem, CalendarMentionPreviewKind, CalendarMentionPreviewRequest, CalendarMentionPreviewRequestItem, CalendarMentionPreviewResponse, CalendarOccurrence, CalendarOccurrenceItem, CalendarOccurrenceResponse, CalendarSyncStatus, CallActiveResponse, CallFilters, CallRecord, CallRecordParticipant, CallRecordPreview, CallRecordPreviewData, CallRecordTranscriptSegment, CallStatus, CallTokenResponse, CallWebhookData, CallWebhookError, CallWebhookErrors, CallWebhookResponses, Channel, ChannelCreatedMetadata, ChannelDeletedMetadata, ChannelEventAttachment, ChannelFilters, ChannelJoinCodeResponse, ChannelMentionedMetadata, ChannelMessage, ChannelMessageAttachmentCreatedMetadata, ChannelMessageAttachmentRemovedMetadata, ChannelMessageDeletedMetadata, ChannelMessageFilters, ChannelMessagePatchedMetadata, ChannelMessagePostedMetadata, ChannelParticipant, ChannelParticipantAddedMetadata, ChannelParticipantRemovedMetadata, ChannelPreview, ChannelPreviewData, ChannelSender, ChannelSharePermission, ChannelThreadFilters, ChannelTopicEvent, ChannelType, ChannelUpdatedMetadata, ChannelWebhookRequest, ChannelWebhookResponse, ChannelWithParticipants, Chat, ChatFilters, CheckActiveCallData, CheckActiveCallError, CheckActiveCallErrors, CheckActiveCallResponse, CheckActiveCallResponses, ClaimedPairing, ClaimHarnessPairingData, ClaimHarnessPairingError, ClaimHarnessPairingErrors, ClaimHarnessPairingResponse, ClaimHarnessPairingResponses, ClaimPairingRequest, ClientOptions, CloudStorageItemType, CollabSurfaceResponse, CollabSurfaceTokenResponse, Comment, CommentThread, ConferenceProvider, CopyDocumentData, CopyDocumentError, CopyDocumentErrors, CopyDocumentQueryParams, CopyDocumentRequest, CopyDocumentResponse, CopyDocumentResponse2, CopyDocumentResponses, CreateAgentData, CreateAgentError, CreateAgentErrors, CreateAgentRequest, CreateAgentResponse, CreateAgentResponses, CreateAnchorData, CreateAnchorError, CreateAnchorErrors, CreateAnchorResponse, CreateAnchorResponses, CreateBotRequest, CreateBulkDocumentResponse, CreateBulkDocumentResponseData, CreateChannelData, CreateChannelError, CreateChannelErrors, CreateChannelRequest, CreateChannelResponse, CreateChannelResponse2, CreateChannelResponses, CreateChannelScopedBotData, CreateChannelScopedBotError, CreateChannelScopedBotErrors, CreateChannelScopedBotRequest, CreateChannelScopedBotResponse, CreateChannelScopedBotResponse2, CreateChannelScopedBotResponses, CreateCollabSurfaceTokenData, CreateCollabSurfaceTokenError, CreateCollabSurfaceTokenErrors, CreateCollabSurfaceTokenResponse, CreateCollabSurfaceTokenResponses, CreateCommentData, CreateCommentError, CreateCommentErrors, CreateCommentRequest, CreateCommentResponse, CreateCommentResponse2, CreateCommentResponses, CreateCrmCommentData, CreateCrmCommentError, CreateCrmCommentErrors, CreateCrmCommentRequest, CreateCrmCommentResponse, CreateCrmCommentResponses, CreateCrmCompanyData, CreateCrmCompanyError, CreateCrmCompanyErrors, CreateCrmCompanyRequest, CreateCrmCompanyResponse, CreateCrmCompanyResponses, CreateCrmContactData, CreateCrmContactError, CreateCrmContactErrors, CreateCrmContactRequest, CreateCrmContactResponse, CreateCrmContactResponses, CreateDocumentData, CreateDocumentError, CreateDocumentErrors, CreateDocumentRequest, CreateDocumentResponse, CreateDocumentResponseData, CreateDocumentResponses, CreatedPairing, CreatedUserApiKey, CreateEntityMentionData, CreateEntityMentionError, CreateEntityMentionErrors, CreateEntityMentionRequest, CreateEntityMentionResponse, CreateEntityMentionResponse2, CreateEntityMentionResponses, CreateHarnessPairingData, CreateHarnessPairingError, CreateHarnessPairingErrors, CreateHarnessPairingResponse, CreateHarnessPairingResponses, CreateInstructionsDocumentResponse, CreateInstructionsHandlerData, CreateInstructionsHandlerError, CreateInstructionsHandlerErrors, CreateInstructionsHandlerResponse, CreateInstructionsHandlerResponses, CreateMarkdownDocumentRequest, CreateMarkdownDocumentResponse, CreateMarkdownHandlerData, CreateMarkdownHandlerError, CreateMarkdownHandlerErrors, CreateMarkdownHandlerResponse, CreateMarkdownHandlerResponses, CreatePairingRequest, CreateProjectHandlerData, CreateProjectHandlerError, CreateProjectHandlerErrors, CreateProjectHandlerResponse, CreateProjectHandlerResponses, CreateProjectRequest, CreateProjectResponse, CreateReminderData, CreateReminderError, CreateReminderErrors, CreateReminderRequest, CreateReminderResponse, CreateReminderResponses, CreateSkillHandlerData, CreateSkillHandlerError, CreateSkillHandlerErrors, CreateSkillHandlerResponse, CreateSkillHandlerResponses, CreateSkillRequest, CreateSkillResponse, CreateSnippetHandlerData, CreateSnippetHandlerError, CreateSnippetHandlerErrors, CreateSnippetHandlerResponse, CreateSnippetHandlerResponses, CreateSnippetRequest, CreateSnippetResponse, CreateTaskHandlerData, CreateTaskHandlerError, CreateTaskHandlerErrors, CreateTaskHandlerResponse, CreateTaskHandlerResponses, CreateTaskRequest, CreateTaskResponse, CreateUnthreadedAnchorRequest, CreateUnthreadedAnchorResponse, CreateUnthreadedPdfAnchorRequest, CreateUserApiKeyData, CreateUserApiKeyError, CreateUserApiKeyErrors, CreateUserApiKeyRequest, CreateUserApiKeyResponse, CreateUserApiKeyResponses, CreateViewHandlerData, CreateViewHandlerError, CreateViewHandlerErrors, CreateViewHandlerResponse, CreateViewHandlerResponses, CreateViewRequest, CreateWebhookData, CreateWebhookError, CreateWebhookErrors, CreateWebhookRequest, CreateWebhookResponse, CreateWebhookResponse2, CreateWebhookResponses, CrmComment, CrmCommentEntityType, CrmCommentThread, CrmCompanyFilters, CrmCompanyResponse, CrmContactResponse, CrmDomainResponse, CrmPermissionRole, CrmTeamSettingsResponse, CrmThread, CustomSpeakerAssignment, DataType, DeleteAnchorData, DeleteAnchorError, DeleteAnchorErrors, DeleteAnchorInfo, DeleteAnchorResponse, DeleteAnchorResponses, DeleteCallRecordData, DeleteCallRecordError, DeleteCallRecordErrors, DeleteCallRecordResponse, DeleteCallRecordResponses, DeleteChannelData, DeleteChannelError, DeleteChannelErrors, DeleteChannelResponse, DeleteChannelResponses, DeleteCollabSurfaceData, DeleteCollabSurfaceError, DeleteCollabSurfaceErrors, DeleteCollabSurfaceResponse, DeleteCollabSurfaceResponses, DeleteCommentData, DeleteCommentError, DeleteCommentErrors, DeleteCommentRequest, DeleteCommentResponse, DeleteCommentResponse2, DeleteCommentResponses, DeleteCrmCommentData, DeleteCrmCommentError, DeleteCrmCommentErrors, DeleteCrmCommentResponse, DeleteCrmCommentResponses, DeleteCrmCommentResult, DeleteDocumentData, DeleteDocumentError, DeleteDocumentErrors, DeleteDocumentResponse, DeleteDocumentResponses, DeleteEntityMentionData, DeleteEntityMentionError, DeleteEntityMentionErrors, DeleteEntityMentionResponse, DeleteEntityMentionResponse2, DeleteEntityMentionResponses, DeleteHarnessData, DeleteHarnessError, DeleteHarnessErrors, DeleteHarnessResponse, DeleteHarnessResponses, DeleteHistoryHandlerData, DeleteHistoryHandlerError, DeleteHistoryHandlerErrors, DeleteHistoryHandlerResponse, DeleteHistoryHandlerResponses, DeleteMessageData, DeleteMessageError, DeleteMessageErrors, DeleteMessageQuery, DeleteMessageResponse, DeleteMessageResponses, DeleteProjectHandlerData, DeleteProjectHandlerError, DeleteProjectHandlerErrors, DeleteProjectHandlerResponse, DeleteProjectHandlerResponses, DeleteReminderData, DeleteReminderError, DeleteReminderErrors, DeleteReminderResponse, DeleteReminderResponses, DeleteSelfHarnessData, DeleteSelfHarnessError, DeleteSelfHarnessErrors, DeleteSelfHarnessResponse, DeleteSelfHarnessResponses, DeleteThreadInfo, DeleteUnthreadedAnchorRequest, DeleteUnthreadedAnchorResponse, DeleteUnthreadedPdfAnchorRequest, DeleteUserApiKeyData, DeleteUserApiKeyError, DeleteUserApiKeyErrors, DeleteUserApiKeyResponse, DeleteUserApiKeyResponses, DeleteUserDocumentViewLocationData, DeleteUserDocumentViewLocationError, DeleteUserDocumentViewLocationErrors, DeleteUserDocumentViewLocationResponse, DeleteUserDocumentViewLocationResponses, DeleteViewHandlerData, DeleteViewHandlerError, DeleteViewHandlerErrors, DeleteViewHandlerResponses, DeleteWebhookData, DeleteWebhookError, DeleteWebhookErrors, DeleteWebhookResponse, DeleteWebhookResponses, DocumentBasic, DocumentContent, DocumentContentLocation, DocumentContentState, DocumentContentUploadedMetadata, DocumentCopiedMetadata, DocumentCreatedMetadata, DocumentDeletedMetadata, DocumentFilters, DocumentInteractionMetadata, DocumentMetadata, DocumentMetadataWithContent, DocumentPermissionsToken, DocumentPermissionsTokenRequest, DocumentPermissionsTokenResponse, DocumentPreview, DocumentPreviewData, DocumentPreviewDataSubType, DocumentPurgedMetadata, DocumentResponse, DocumentResponseMetadata, DocumentResponseMetadataWithContent, DocumentStorageServiceApiVersion, DocumentSubType, DocumentSyncContentUpdatedMetadata, DocumentTeamShareResponse, DocumentTopicEvent, DocumentUpdatedMetadata, EditAnchorData, EditAnchorError, EditAnchorErrors, EditAnchorRequest, EditAnchorResponse, EditAnchorResponse2, EditAnchorResponses, EditCallRecordData, EditCallRecordError, EditCallRecordErrors, EditCallRecordRequest, EditCallRecordResponse, EditCallRecordResponses, EditCallTranscriptData, EditCallTranscriptError, EditCallTranscriptErrors, EditCallTranscriptRequest, EditCallTranscriptResponse, EditCallTranscriptResponses, EditCommentData, EditCommentError, EditCommentErrors, EditCommentRequest, EditCommentResponse, EditCommentResponse2, EditCommentResponses, EditCrmCommentData, EditCrmCommentError, EditCrmCommentErrors, EditCrmCommentRequest, EditCrmCommentResponse, EditCrmCommentResponses, EditDocumentData, EditDocumentError, EditDocumentErrors, EditDocumentResponse, EditDocumentResponse2, EditDocumentResponses, EditDocumentServiceArgs, EditPdfAnchorRequest, EditPdfPlaceableCommentAnchorRequest, EditProjectV2Data, EditProjectV2Error, EditProjectV2Errors, EditProjectV2Response, EditProjectV2Responses, EditThreadV2Data, EditThreadV2Error, EditThreadV2Errors, EditThreadV2Response, EditThreadV2Responses, EmailFilters, EmptyResponse, EnsureCollabSurfaceData, EnsureCollabSurfaceError, EnsureCollabSurfaceErrors, EnsureCollabSurfaceRequest, EnsureCollabSurfaceResponse, EnsureCollabSurfaceResponses, EntityFilters, EntityPermission, EntityPermissionResponse, EntityReference, EntityType, ErrorResponse, EventReminderOverride, EventReminders, EventStatus, EventTime, EventTransparency, EventType, EventVisibility, ExcludedDefaultView, ExcludeDefaultViewHandlerData, ExcludeDefaultViewHandlerError, ExcludeDefaultViewHandlerErrors, ExcludeDefaultViewHandlerResponses, ExcludeDefaultViewRequest, ExportDocumentData, ExportDocumentError, ExportDocumentErrors, ExportDocumentResponse, ExportDocumentResponse2, ExportDocumentResponses, Favorite, FavoriteEntityRef, FavoritesList, FileSystemNodeWithIds, FileType, FileTypeUpdate, FolderItem, ForeignEntity, ForeignEntityFilters, GenericErrorResponse, GenericResponse, GenericSuccessResponse, GetActiveCallsData, GetActiveCallsError, GetActiveCallsErrors, GetActiveCallsResponse, GetActiveCallsResponses, GetActivityData, GetActivityError, GetActivityErrors, GetActivityResponse, GetActivityResponses, GetAttachmentReferencesData, GetAttachmentReferencesError, GetAttachmentReferencesErrors, GetAttachmentReferencesResponse, GetAttachmentReferencesResponse2, GetAttachmentReferencesResponses, GetBatchCallRecordPreviewData, GetBatchCallRecordPreviewError, GetBatchCallRecordPreviewErrors, GetBatchCallRecordPreviewRequest, GetBatchCallRecordPreviewResponse, GetBatchCallRecordPreviewResponse2, GetBatchCallRecordPreviewResponses, GetBatchChannelPreviewData, GetBatchChannelPreviewError, GetBatchChannelPreviewErrors, GetBatchChannelPreviewRequest, GetBatchChannelPreviewResponse, GetBatchChannelPreviewResponse2, GetBatchChannelPreviewResponses, GetBatchPreviewHandlerData, GetBatchPreviewHandlerError, GetBatchPreviewHandlerErrors, GetBatchPreviewHandlerResponse, GetBatchPreviewHandlerResponses, GetBatchPreviewRequest, GetBatchPreviewResponse, GetBatchProjectPreviewData, GetBatchProjectPreviewError, GetBatchProjectPreviewErrors, GetBatchProjectPreviewRequest, GetBatchProjectPreviewResponse, GetBatchProjectPreviewResponse2, GetBatchProjectPreviewResponses, GetCallRecordData, GetCallRecordError, GetCallRecordErrors, GetCallRecordResponse, GetCallRecordResponses, GetChannelAttachmentsData, GetChannelAttachmentsError, GetChannelAttachmentsErrors, GetChannelAttachmentsResponse, GetChannelAttachmentsResponses, GetChannelData, GetChannelError, GetChannelErrors, GetChannelJoinLinkData, GetChannelJoinLinkError, GetChannelJoinLinkErrors, GetChannelJoinLinkResponse, GetChannelJoinLinkResponses, GetChannelMessagesData, GetChannelMessagesError, GetChannelMessagesErrors, GetChannelMessagesResponse, GetChannelMessagesResponses, GetChannelParticipantsData, GetChannelParticipantsError, GetChannelParticipantsErrors, GetChannelParticipantsResponse, GetChannelParticipantsResponses, GetChannelResponse, GetChannelResponses, GetChannelsData, GetChannelsError, GetChannelsErrors, GetChannelsResponse, GetChannelsResponses, GetCollabSurfaceData, GetCollabSurfaceError, GetCollabSurfaceErrors, GetCollabSurfaceResponse, GetCollabSurfaceResponses, GetCompanyData, GetCompanyError, GetCompanyErrors, GetCompanyResponse, GetCompanyResponses, GetContactByEmailData, GetContactByEmailError, GetContactByEmailErrors, GetContactByEmailResponse, GetContactByEmailResponse2, GetContactByEmailResponses, GetContactData, GetContactError, GetContactErrors, GetContactResponse, GetContactResponses, GetCrmTeamSettingsData, GetCrmTeamSettingsError, GetCrmTeamSettingsErrors, GetCrmTeamSettingsResponse, GetCrmTeamSettingsResponses, GetDocumentAnchorsData, GetDocumentAnchorsError, GetDocumentAnchorsErrors, GetDocumentAnchorsResponse, GetDocumentAnchorsResponses, GetDocumentBranchNameData, GetDocumentBranchNameError, GetDocumentBranchNameErrors, GetDocumentBranchNameResponse, GetDocumentBranchNameResponses, GetDocumentByTeamSlugData, GetDocumentByTeamSlugError, GetDocumentByTeamSlugErrors, GetDocumentByTeamSlugResponse, GetDocumentByTeamSlugResponses, GetDocumentCommentsData, GetDocumentCommentsError, GetDocumentCommentsErrors, GetDocumentCommentsResponse, GetDocumentCommentsResponses, GetDocumentData, GetDocumentError, GetDocumentErrors, GetDocumentGithubPullRequestsData, GetDocumentGithubPullRequestsError, GetDocumentGithubPullRequestsErrors, GetDocumentGithubPullRequestsResponse, GetDocumentGithubPullRequestsResponses, GetDocumentKeyResponse, GetDocumentKeyResponseData, GetDocumentListHandlerData, GetDocumentListHandlerError, GetDocumentListHandlerErrors, GetDocumentListHandlerResponse, GetDocumentListHandlerResponses, GetDocumentListResult, GetDocumentLocationV3Data, GetDocumentLocationV3Error, GetDocumentLocationV3Errors, GetDocumentLocationV3Response, GetDocumentLocationV3Responses, GetDocumentPermissionsResponseDataV2, GetDocumentPermissionsTokenData, GetDocumentPermissionsTokenError, GetDocumentPermissionsTokenErrors, GetDocumentPermissionsTokenResponse, GetDocumentPermissionsTokenResponses, GetDocumentPermissionsV2Data, GetDocumentPermissionsV2Error, GetDocumentPermissionsV2Errors, GetDocumentPermissionsV2Response, GetDocumentPermissionsV2Responses, GetDocumentProcessingResult, GetDocumentProcessingResultData, GetDocumentProcessingResultError, GetDocumentProcessingResultErrors, GetDocumentProcessingResultResponse, GetDocumentProcessingResultResponse2, GetDocumentProcessingResultResponses, GetDocumentResponse, GetDocumentResponse2, GetDocumentResponseData, GetDocumentResponses, GetDocumentSearchResponse, GetDocumentShortIdData, GetDocumentShortIdError, GetDocumentShortIdErrors, GetDocumentShortIdResponse, GetDocumentShortIdResponses, GetDocumentsResponse, GetDocumentTeamShareData, GetDocumentTeamShareError, GetDocumentTeamShareErrors, GetDocumentTeamShareResponse, GetDocumentTeamShareResponses, GetDocumentUserAccessLevelResponse, GetDocumentVersionData, GetDocumentVersionError, GetDocumentVersionErrors, GetDocumentVersionResponse, GetDocumentVersionResponses, GetDocumentViewsHandlerData, GetDocumentViewsHandlerError, GetDocumentViewsHandlerErrors, GetDocumentViewsHandlerResponse, GetDocumentViewsHandlerResponses, GetEntityPermissionData, GetEntityPermissionErrors, GetEntityPermissionResponse, GetEntityPermissionResponses, GetForeignEntityData, GetForeignEntityError, GetForeignEntityErrors, GetForeignEntityResponse, GetForeignEntityResponses, GetHarnessPairingData, GetHarnessPairingError, GetHarnessPairingErrors, GetHarnessPairingResponse, GetHarnessPairingResponses, GetHistoryHandlerData, GetHistoryHandlerError, GetHistoryHandlerErrors, GetHistoryHandlerResponse, GetHistoryHandlerResponses, GetInstructionsDocumentResponse, GetInstructionsHandlerData, GetInstructionsHandlerError, GetInstructionsHandlerErrors, GetInstructionsHandlerResponse, GetInstructionsHandlerResponses, GetItemsSoupData, GetItemsSoupError, GetItemsSoupErrors, GetItemsSoupResponse, GetItemsSoupResponses, GetLocationHandlerData, GetLocationHandlerError, GetLocationHandlerErrors, GetLocationHandlerResponse, GetLocationHandlerResponses, GetMessageWithContextData, GetMessageWithContextError, GetMessageWithContextErrors, GetMessageWithContextResponse, GetMessageWithContextResponse2, GetMessageWithContextResponses, GetOrCreateAction, GetOrCreateCallData, GetOrCreateCallError, GetOrCreateCallErrors, GetOrCreateCallResponse, GetOrCreateCallResponses, GetOrCreateChannelResponse, GetOrCreateDmData, GetOrCreateDmError, GetOrCreateDmErrors, GetOrCreateDmRequest, GetOrCreateDmResponse, GetOrCreateDmResponses, GetOrCreatePrivateData, GetOrCreatePrivateError, GetOrCreatePrivateErrors, GetOrCreatePrivateRequest, GetOrCreatePrivateResponse, GetOrCreatePrivateResponses, GetPendingProjectsHandlerData, GetPendingProjectsHandlerError, GetPendingProjectsHandlerErrors, GetPendingProjectsHandlerResponse, GetPendingProjectsHandlerResponses, GetPinsHandlerData, GetPinsHandlerError, GetPinsHandlerErrors, GetPinsHandlerResponse, GetPinsHandlerResponses, GetPinsResponse, GetProjectContentHandlerData, GetProjectContentHandlerError, GetProjectContentHandlerErrors, GetProjectContentHandlerResponse, GetProjectContentHandlerResponses, GetProjectContentResponse, GetProjectHandlerData, GetProjectHandlerError, GetProjectHandlerErrors, GetProjectHandlerResponse, GetProjectHandlerResponses, GetProjectPermissionsV2Data, GetProjectPermissionsV2Error, GetProjectPermissionsV2Errors, GetProjectPermissionsV2Response, GetProjectPermissionsV2Responses, GetProjectResponse, GetProjectResponseData, GetProjectsHandlerData, GetProjectsHandlerError, GetProjectsHandlerErrors, GetProjectsHandlerResponse, GetProjectsHandlerResponses, GetProjectsResponse, GetProjectUserAccessLevelData, GetProjectUserAccessLevelError, GetProjectUserAccessLevelErrors, GetProjectUserAccessLevelResponse, GetProjectUserAccessLevelResponses, GetReminderData, GetReminderError, GetReminderErrors, GetReminderResponse, GetReminderResponses, GetRingStatusData, GetRingStatusError, GetRingStatusErrors, GetRingStatusResponse, GetRingStatusResponses, GetSelfBotData, GetSelfBotError, GetSelfBotErrors, GetSelfBotResponse, GetSelfBotResponses, GetSelfHarnessData, GetSelfHarnessError, GetSelfHarnessErrors, GetSelfHarnessResponse, GetSelfHarnessResponses, GetSystemSkillsHandlerData, GetSystemSkillsHandlerError, GetSystemSkillsHandlerErrors, GetSystemSkillsHandlerResponse, GetSystemSkillsHandlerResponses, GetThreadRepliesData, GetThreadRepliesError, GetThreadRepliesErrors, GetThreadRepliesResponse, GetThreadRepliesResponses, GetUserDocumentsHandlerData, GetUserDocumentsHandlerError, GetUserDocumentsHandlerErrors, GetUserDocumentsHandlerResponse, GetUserDocumentsHandlerResponses, GetUserDocumentViewLocationData, GetUserDocumentViewLocationError, GetUserDocumentViewLocationErrors, GetUserDocumentViewLocationResponse, GetUserDocumentViewLocationResponses, GetUserHistoryResponse, GetViewsHandlerData, GetViewsHandlerError, GetViewsHandlerErrors, GetViewsHandlerResponse, GetViewsHandlerResponses, GetWebhookData, GetWebhookError, GetWebhookErrors, GetWebhookResponse, GetWebhookResponses, GithubPullRequest, GithubPullRequestCheckRun, GithubPullRequestComment, GithubPullRequestsResponse, GroupedInitialParams, GroupedPageParams, GroupedSoupGroupPage, GroupedSoupInitialPage, GroupedSoupPage, GroupedSoupSort, HandlerData, HandlerError, HandlerErrors, HandlerResponse, HandlerResponses, Harness, HarnessAgent, HarnessId, HarnessOwner, HarnessSession, HashMap, HealthHandlerData, HealthHandlerResponse, HealthHandlerResponses, HighlightType, IngestTranscriptData, IngestTranscriptError, IngestTranscriptErrors, IngestTranscriptResponses, InitializeUserDocumentsData, InitializeUserDocumentsError, InitializeUserDocumentsErrors, InitializeUserDocumentsResponse, InitializeUserDocumentsResponses, InstallSyncData, InstallSyncErrors, InteractionReason, Item, ItemWithUserAccessLevel, JobProcessingResultHandlerData, JobProcessingResultHandlerError, JobProcessingResultHandlerErrors, JobProcessingResultHandlerResponse, JobProcessingResultHandlerResponses, JoinChannelByCodeData, JoinChannelByCodeError, JoinChannelByCodeErrors, JoinChannelByCodeResponses, JoinChannelData, JoinChannelError, JoinChannelErrors, JoinChannelResponses, LatestMessage, LeaveCallResponse, LeaveChannelData, LeaveChannelError, LeaveChannelErrors, LeaveChannelResponses, LeaveOrEndCallData, LeaveOrEndCallError, LeaveOrEndCallErrors, LeaveOrEndCallResponse, LeaveOrEndCallResponses, LinkShare, ListAgentsData, ListAgentsError, ListAgentsErrors, ListAgentsResponse, ListAgentsResponses, ListBotChannelsData, ListBotChannelsError, ListBotChannelsErrors, ListBotChannelsResponse, ListBotChannelsResponses, ListCompanyContactsData, ListCompanyContactsError, ListCompanyContactsErrors, ListCompanyContactsResponse, ListCompanyContactsResponses, ListCrmCommentsData, ListCrmCommentsError, ListCrmCommentsErrors, ListCrmCommentsResponse, ListCrmCommentsResponses, ListFavoritesData, ListFavoritesError, ListFavoritesErrors, ListFavoritesResponse, ListFavoritesResponses, ListHarnessAgentsData, ListHarnessAgentsError, ListHarnessAgentsErrors, ListHarnessAgentsResponse, ListHarnessAgentsResponses, ListHarnessesData, ListHarnessesError, ListHarnessesErrors, ListHarnessesResponse, ListHarnessesResponses, ListHarnessSessionsData, ListHarnessSessionsError, ListHarnessSessionsErrors, ListHarnessSessionsResponse, ListHarnessSessionsResponses, ListOccurrencesData, ListOccurrencesErrors, ListOccurrencesResponse, ListOccurrencesResponses, ListRemindersData, ListRemindersError, ListRemindersErrors, ListRemindersResponse, ListRemindersResponses, ListTeamOutOfOfficeData, ListTeamOutOfOfficeErrors, ListTeamOutOfOfficeResponse, ListTeamOutOfOfficeResponses, ListUserApiKeysData, ListUserApiKeysError, ListUserApiKeysErrors, ListUserApiKeysResponse, ListUserApiKeysResponses, ListWebhooksData, ListWebhooksError, ListWebhooksErrors, ListWebhooksResponse, ListWebhooksResponse2, ListWebhooksResponses, LocationResponseData, LocationResponseV3, MacroUserIdStr, MentionPreviewsData, MentionPreviewsErrors, MentionPreviewsResponse, MentionPreviewsResponses, Mentions, NewChannelAttachment, NotificationFilters, PairingDetails, Params, ParticipantRole, PatchBotRequest, PatchChannelData, PatchChannelError, PatchChannelErrors, PatchChannelRequest, PatchChannelResponse, PatchChannelResponses, PatchMessageData, PatchMessageError, PatchMessageErrors, PatchMessageRequest, PatchMessageResponse, PatchMessageResponses, PatchProjectRequestV2, PatchThreadRequestV2, PatchViewHandlerData, PatchViewHandlerError, PatchViewHandlerErrors, PatchViewHandlerResponses, PatchWebhookData, PatchWebhookError, PatchWebhookErrors, PatchWebhookRequest, PatchWebhookResponse, PatchWebhookResponses, PdfAnchor, PdfAnchorId, PdfAnchorRequest, PdfHighlightAnchor, PdfHighlightAnchorRequest, PdfHighlightRect, PdfHighlightRectAnchorRequest, PdfPlaceableCommentAnchor, PdfPlaceableCommentAnchorRequest, PendingClaimResponse, PermanentlyDeleteDocumentData, PermanentlyDeleteDocumentError, PermanentlyDeleteDocumentErrors, PermanentlyDeleteDocumentResponse, PermanentlyDeleteDocumentResponses, PermanentlyDeleteProjectData, PermanentlyDeleteProjectError, PermanentlyDeleteProjectErrors, PermanentlyDeleteProjectResponse, PermanentlyDeleteProjectResponses, PinnedItem, PinRequest, PostActivityData, PostActivityError, PostActivityErrors, PostActivityRequest, PostActivityResponse, PostActivityResponses, PostChannelBotWebhookData, PostChannelBotWebhookError, PostChannelBotWebhookErrors, PostChannelBotWebhookResponse, PostChannelBotWebhookResponses, PostChannelMessagesData, PostChannelMessagesError, PostChannelMessagesErrors, PostChannelMessagesResponse, PostChannelMessagesResponses, PostGroupedSoupAstGroupPageRequest, PostGroupedSoupAstInitialRequest, PostGroupedSoupAstRequest, PostItemsSoupAstData, PostItemsSoupAstError, PostItemsSoupAstErrors, PostItemsSoupAstGroupedData, PostItemsSoupAstGroupedError, PostItemsSoupAstGroupedErrors, PostItemsSoupAstGroupedResponse, PostItemsSoupAstGroupedResponses, PostItemsSoupAstResponse, PostItemsSoupAstResponses, PostItemsSoupData, PostItemsSoupError, PostItemsSoupErrors, PostItemsSoupResponse, PostItemsSoupResponses, PostMessageData, PostMessageError, PostMessageErrors, PostMessageRequest, PostMessageResponse, PostMessageResponse2, PostMessageResponses, PostReactionData, PostReactionError, PostReactionErrors, PostReactionRequest, PostReactionResponse, PostReactionResponses, PostSoupAstRequest, PostSoupRequest, PostTypingData, PostTypingError, PostTypingErrors, PostTypingRequest, PostTypingResponse, PostTypingResponses, PresaveDocumentHandlerData, PresaveDocumentHandlerError, PresaveDocumentHandlerErrors, PresaveDocumentHandlerResponse, PresaveDocumentHandlerResponses, PreSaveDocumentRequest, PreSaveDocumentResponse, PreSaveDocumentResponseData, PresignedUrl, Project, ProjectDeleteResponseData, ProjectDocumentStatus, ProjectFilters, ProjectPreview, ProjectPreviewData, PropertyDefinition, PropertyFilter, PropertyInput, PropertyOwner, PropertyValue, PutCrmTeamSettingsData, PutCrmTeamSettingsError, PutCrmTeamSettingsErrors, PutCrmTeamSettingsResponse, PutCrmTeamSettingsResponses, ReactionAction, RecentlyDeletedData, RecentlyDeletedError, RecentlyDeletedErrors, RecentlyDeletedResponse, RecentlyDeletedResponseData, RecentlyDeletedResponses, Reminder, ReminderFilters, ReminderSchedule, RemindersList, RemoveBotFromChannelByBotData, RemoveBotFromChannelByBotError, RemoveBotFromChannelByBotErrors, RemoveBotFromChannelByBotResponse, RemoveBotFromChannelByBotResponses, RemoveFavoriteByEntityData, RemoveFavoriteByEntityError, RemoveFavoriteByEntityErrors, RemoveFavoriteByEntityResponses, RemoveParticipantsData, RemoveParticipantsError, RemoveParticipantsErrors, RemoveParticipantsRequest, RemoveParticipantsResponses, RemovePinHandlerData, RemovePinHandlerError, RemovePinHandlerErrors, RemovePinHandlerResponse, RemovePinHandlerResponses, ReorderFavoritesData, ReorderFavoritesError, ReorderFavoritesErrors, ReorderFavoritesRequest, ReorderFavoritesResponses, ReorderPinRequest, ReorderPinsHandlerData, ReorderPinsHandlerError, ReorderPinsHandlerErrors, ReorderPinsHandlerResponse, ReorderPinsHandlerResponses, RequestedHarnessScope, ResolveChannelMessageData, ResolveChannelMessageError, ResolveChannelMessageErrors, ResolveChannelMessageResponse, ResolveChannelMessageResponses, RevertDeleteDocumentData, RevertDeleteDocumentError, RevertDeleteDocumentErrors, RevertDeleteDocumentResponse, RevertDeleteDocumentResponses, RevertDeleteProjectData, RevertDeleteProjectError, RevertDeleteProjectErrors, RevertDeleteProjectResponse, RevertDeleteProjectResponses, RingStatus, RingStatusResponse, S3ObjectInfo, SaveBomPart, SaveDocumentHandlerData, SaveDocumentHandlerError, SaveDocumentHandlerErrors, SaveDocumentHandlerResponse, SaveDocumentHandlerResponses, SaveDocumentRequest, SaveDocumentResponse, SaveDocumentResponseData, SetCompanyHiddenData, SetCompanyHiddenError, SetCompanyHiddenErrors, SetCompanyHiddenRequest, SetCompanyHiddenResponse, SetCompanyHiddenResponses, SetCompanyNameRequest, SetContactHiddenData, SetContactHiddenError, SetContactHiddenErrors, SetContactHiddenRequest, SetContactHiddenResponse, SetContactHiddenResponses, SetContactNameRequest, SetCrmCompanyNameData, SetCrmCompanyNameError, SetCrmCompanyNameErrors, SetCrmCompanyNameResponse, SetCrmCompanyNameResponses, SetCrmContactNameData, SetCrmContactNameError, SetCrmContactNameErrors, SetCrmContactNameResponse, SetCrmContactNameResponses, SetDocumentTeamShareData, SetDocumentTeamShareError, SetDocumentTeamShareErrors, SetDocumentTeamShareRequest, SetDocumentTeamShareResponse, SetDocumentTeamShareResponses, SetEmailSyncData, SetEmailSyncError, SetEmailSyncErrors, SetEmailSyncRequest, SetEmailSyncResponse, SetEmailSyncResponses, SetPropertyValue, SharedEmailFilter, SharePermissionV2, ShortIdResponse, SimpleMention, SimpleSaveData, SimpleSaveError, SimpleSaveErrors, SimpleSaveResponse, SimpleSaveResponses, SoupApiItem, SoupApiSort, SoupApiSortDirection, SoupAttachment, SoupCalendarEventSoupPropertiesField, SoupCalendarEventTime, SoupCallRecordParticipant, SoupCallRecordSoupPropertiesField, SoupChannel, SoupChannelThread, SoupChatSoupPropertiesField, SoupContact, SoupCountedReaction, SoupCrmCompanySoupPropertiesField, SoupCrmDomain, SoupDocumentSoupPropertiesField, SoupDocumentSubType, SoupEmailThreadPreview, SoupEnrichedEmailThreadPreviewSoupPropertiesField, SoupForeignEntity, SoupItem, SoupLabel, SoupLabelListVisibility, SoupLabelType, SoupMessageAttachment, SoupMessageListVisibility, SoupMessageSender, SoupMessageSenderType, SoupPage, SoupProjectSoupPropertiesField, SoupPropertiesField, SoupProperty, SoupReminderReference, SoupReminderSchedule, SoupReminderSoupPropertiesField, SoupThreadInfo, SoupThreadReply, StarterDocumentsResponse, StreamEventsData, StreamEventsError, StreamEventsErrors, StreamEventsResponse, StreamEventsResponses, String, SuccessResponse, SurfaceState, SyncServiceVersionId, SystemSkillSummary, TagFilterMode, TaskFilters, TeamOutOfOfficeItem, TeamOutOfOfficeResponse, TeamRole, Thread, ThreadResponse, ToggleShareWithTeamData, ToggleShareWithTeamError, ToggleShareWithTeamErrors, ToggleShareWithTeamResponse, ToggleShareWithTeamResponses, TranscriptSegmentRequest, TypedSuccessResponse, TypedSuccessResponseGetDocumentResponseData, TypingAction, UnthreadedPdfUuidRequest, UpdateAgentData, UpdateAgentError, UpdateAgentErrors, UpdateAgentRequest, UpdateAgentResponse, UpdateAgentResponses, UpdateChannelSharePermission, UpdateCrmTeamSettingsRequest, UpdateOperation, UpdateReminderData, UpdateReminderError, UpdateReminderErrors, UpdateReminderRequest, UpdateReminderResponse, UpdateReminderResponses, UpdateSharePermissionRequestV2, UploadDocumentStatus, UploadExtractFolderHandlerData, UploadExtractFolderHandlerError, UploadExtractFolderHandlerErrors, UploadExtractFolderHandlerResponse, UploadExtractFolderHandlerResponses, UploadExtractFolderRequest, UploadFolderHandlerData, UploadFolderHandlerError, UploadFolderHandlerErrors, UploadFolderHandlerResponse, UploadFolderHandlerResponses, UploadFolderRequest, UpsertHistoryHandlerData, UpsertHistoryHandlerError, UpsertHistoryHandlerErrors, UpsertHistoryHandlerResponse, UpsertHistoryHandlerResponses, UpsertUserDocumentViewLocationData, UpsertUserDocumentViewLocationError, UpsertUserDocumentViewLocationErrors, UpsertUserDocumentViewLocationRequest, UpsertUserDocumentViewLocationResponse, UpsertUserDocumentViewLocationResponses, UserApiKeyId, UserApiKeyInfo, UserApiKeysList, UserDocumentsResponse, UserDocumentViewLocation, UserDocumentViewLocationResponse, UserPinsResponse, UserViewsResponse, ValidateDocumentPermissionsTokenData, ValidateDocumentPermissionsTokenError, ValidateDocumentPermissionsTokenErrors, ValidateDocumentPermissionsTokenResponse, ValidateDocumentPermissionsTokenResponses, ValidateWebhookData, ValidateWebhookError, ValidateWebhookErrors, ValidateWebhookResponse, ValidateWebhookResponse2, ValidateWebhookResponses, Vec, View, ViewPatch, ViewsResponse, Webhook, WebhookEvent, WebhookFilter, WebhookScope, WebhookStatus, WebhookValidationTestEvent, WithCallId, WithChannelId, WithDocumentId, WithProjectId } from './types.gen';
diff --git a/packages/sdk/generated/storage/sdk.gen.ts b/packages/sdk/generated/storage/sdk.gen.ts
index 579837ba6a..965209ebc8 100644
--- a/packages/sdk/generated/storage/sdk.gen.ts
+++ b/packages/sdk/generated/storage/sdk.gen.ts
@@ -2,7 +2,7 @@
import type { Client, ClientMeta, Options as Options2, RequestResult, ServerSentEventsResult, TDataShape } from './client';
import { client } from './client.gen';
-import type { AddFavoriteData, AddFavoriteErrors, AddFavoriteResponses, AddParticipantsData, AddParticipantsErrors, AddParticipantsResponses, AddPinHandlerData, AddPinHandlerErrors, AddPinHandlerResponses, ApproveHarnessPairingData, ApproveHarnessPairingErrors, ApproveHarnessPairingResponses, BulkWakeupSyncServiceDocumentsData, BulkWakeupSyncServiceDocumentsErrors, BulkWakeupSyncServiceDocumentsResponses, CallWebhookData, CallWebhookErrors, CallWebhookResponses, CheckActiveCallData, CheckActiveCallErrors, CheckActiveCallResponses, ClaimHarnessPairingData, ClaimHarnessPairingErrors, ClaimHarnessPairingResponses, CopyDocumentData, CopyDocumentErrors, CopyDocumentResponses, CreateAgentData, CreateAgentErrors, CreateAgentResponses, CreateAnchorData, CreateAnchorErrors, CreateAnchorResponses, CreateChannelData, CreateChannelErrors, CreateChannelResponses, CreateChannelScopedBotData, CreateChannelScopedBotErrors, CreateChannelScopedBotResponses, CreateCollabSurfaceTokenData, CreateCollabSurfaceTokenErrors, CreateCollabSurfaceTokenResponses, CreateCommentData, CreateCommentErrors, CreateCommentResponses, CreateCrmCommentData, CreateCrmCommentErrors, CreateCrmCommentResponses, CreateCrmCompanyData, CreateCrmCompanyErrors, CreateCrmCompanyResponses, CreateCrmContactData, CreateCrmContactErrors, CreateCrmContactResponses, CreateDocumentData, CreateDocumentErrors, CreateDocumentResponses, CreateEntityMentionData, CreateEntityMentionErrors, CreateEntityMentionResponses, CreateHarnessPairingData, CreateHarnessPairingErrors, CreateHarnessPairingResponses, CreateInstructionsHandlerData, CreateInstructionsHandlerErrors, CreateInstructionsHandlerResponses, CreateMarkdownHandlerData, CreateMarkdownHandlerErrors, CreateMarkdownHandlerResponses, CreateProjectHandlerData, CreateProjectHandlerErrors, CreateProjectHandlerResponses, CreateReminderData, CreateReminderErrors, CreateReminderResponses, CreateSkillHandlerData, CreateSkillHandlerErrors, CreateSkillHandlerResponses, CreateSnippetHandlerData, CreateSnippetHandlerErrors, CreateSnippetHandlerResponses, CreateTaskHandlerData, CreateTaskHandlerErrors, CreateTaskHandlerResponses, CreateUserApiKeyData, CreateUserApiKeyErrors, CreateUserApiKeyResponses, CreateViewHandlerData, CreateViewHandlerErrors, CreateViewHandlerResponses, CreateWebhookData, CreateWebhookErrors, CreateWebhookResponses, DeleteAnchorData, DeleteAnchorErrors, DeleteAnchorResponses, DeleteCallRecordData, DeleteCallRecordErrors, DeleteCallRecordResponses, DeleteChannelData, DeleteChannelErrors, DeleteChannelResponses, DeleteCollabSurfaceData, DeleteCollabSurfaceErrors, DeleteCollabSurfaceResponses, DeleteCommentData, DeleteCommentErrors, DeleteCommentResponses, DeleteCrmCommentData, DeleteCrmCommentErrors, DeleteCrmCommentResponses, DeleteDocumentData, DeleteDocumentErrors, DeleteDocumentResponses, DeleteEntityMentionData, DeleteEntityMentionErrors, DeleteEntityMentionResponses, DeleteHarnessData, DeleteHarnessErrors, DeleteHarnessResponses, DeleteHistoryHandlerData, DeleteHistoryHandlerErrors, DeleteHistoryHandlerResponses, DeleteMessageData, DeleteMessageErrors, DeleteMessageResponses, DeleteProjectHandlerData, DeleteProjectHandlerErrors, DeleteProjectHandlerResponses, DeleteReminderData, DeleteReminderErrors, DeleteReminderResponses, DeleteSelfHarnessData, DeleteSelfHarnessErrors, DeleteSelfHarnessResponses, DeleteUserApiKeyData, DeleteUserApiKeyErrors, DeleteUserApiKeyResponses, DeleteUserDocumentViewLocationData, DeleteUserDocumentViewLocationErrors, DeleteUserDocumentViewLocationResponses, DeleteViewHandlerData, DeleteViewHandlerErrors, DeleteViewHandlerResponses, DeleteWebhookData, DeleteWebhookErrors, DeleteWebhookResponses, EditAnchorData, EditAnchorErrors, EditAnchorResponses, EditCallRecordData, EditCallRecordErrors, EditCallRecordResponses, EditCallTranscriptData, EditCallTranscriptErrors, EditCallTranscriptResponses, EditCommentData, EditCommentErrors, EditCommentResponses, EditCrmCommentData, EditCrmCommentErrors, EditCrmCommentResponses, EditDocumentData, EditDocumentErrors, EditDocumentResponses, EditProjectV2Data, EditProjectV2Errors, EditProjectV2Responses, EditThreadV2Data, EditThreadV2Errors, EditThreadV2Responses, EnsureCollabSurfaceData, EnsureCollabSurfaceErrors, EnsureCollabSurfaceResponses, ExcludeDefaultViewHandlerData, ExcludeDefaultViewHandlerErrors, ExcludeDefaultViewHandlerResponses, ExportDocumentData, ExportDocumentErrors, ExportDocumentResponses, GetActiveCallsData, GetActiveCallsErrors, GetActiveCallsResponses, GetActivityData, GetActivityErrors, GetActivityResponses, GetAttachmentReferencesData, GetAttachmentReferencesErrors, GetAttachmentReferencesResponses, GetBatchCallRecordPreviewData, GetBatchCallRecordPreviewErrors, GetBatchCallRecordPreviewResponses, GetBatchChannelPreviewData, GetBatchChannelPreviewErrors, GetBatchChannelPreviewResponses, GetBatchPreviewHandlerData, GetBatchPreviewHandlerErrors, GetBatchPreviewHandlerResponses, GetBatchProjectPreviewData, GetBatchProjectPreviewErrors, GetBatchProjectPreviewResponses, GetCallRecordData, GetCallRecordErrors, GetCallRecordResponses, GetChannelAttachmentsData, GetChannelAttachmentsErrors, GetChannelAttachmentsResponses, GetChannelData, GetChannelErrors, GetChannelJoinLinkData, GetChannelJoinLinkErrors, GetChannelJoinLinkResponses, GetChannelMessagesData, GetChannelMessagesErrors, GetChannelMessagesResponses, GetChannelParticipantsData, GetChannelParticipantsErrors, GetChannelParticipantsResponses, GetChannelResponses, GetChannelsData, GetChannelsErrors, GetChannelsResponses, GetCollabSurfaceData, GetCollabSurfaceErrors, GetCollabSurfaceResponses, GetCompanyData, GetCompanyErrors, GetCompanyResponses, GetContactByEmailData, GetContactByEmailErrors, GetContactByEmailResponses, GetContactData, GetContactErrors, GetContactResponses, GetCrmTeamSettingsData, GetCrmTeamSettingsErrors, GetCrmTeamSettingsResponses, GetDocumentAnchorsData, GetDocumentAnchorsErrors, GetDocumentAnchorsResponses, GetDocumentBranchNameData, GetDocumentBranchNameErrors, GetDocumentBranchNameResponses, GetDocumentByTeamSlugData, GetDocumentByTeamSlugErrors, GetDocumentByTeamSlugResponses, GetDocumentCommentsData, GetDocumentCommentsErrors, GetDocumentCommentsResponses, GetDocumentData, GetDocumentErrors, GetDocumentGithubPullRequestsData, GetDocumentGithubPullRequestsErrors, GetDocumentGithubPullRequestsResponses, GetDocumentListHandlerData, GetDocumentListHandlerErrors, GetDocumentListHandlerResponses, GetDocumentLocationV3Data, GetDocumentLocationV3Errors, GetDocumentLocationV3Responses, GetDocumentPermissionsTokenData, GetDocumentPermissionsTokenErrors, GetDocumentPermissionsTokenResponses, GetDocumentPermissionsV2Data, GetDocumentPermissionsV2Errors, GetDocumentPermissionsV2Responses, GetDocumentProcessingResultData, GetDocumentProcessingResultErrors, GetDocumentProcessingResultResponses, GetDocumentResponses, GetDocumentShortIdData, GetDocumentShortIdErrors, GetDocumentShortIdResponses, GetDocumentTeamShareData, GetDocumentTeamShareErrors, GetDocumentTeamShareResponses, GetDocumentVersionData, GetDocumentVersionErrors, GetDocumentVersionResponses, GetDocumentViewsHandlerData, GetDocumentViewsHandlerErrors, GetDocumentViewsHandlerResponses, GetEntityPermissionData, GetEntityPermissionErrors, GetEntityPermissionResponses, GetForeignEntityData, GetForeignEntityErrors, GetForeignEntityResponses, GetHarnessPairingData, GetHarnessPairingErrors, GetHarnessPairingResponses, GetHistoryHandlerData, GetHistoryHandlerErrors, GetHistoryHandlerResponses, GetInstructionsHandlerData, GetInstructionsHandlerErrors, GetInstructionsHandlerResponses, GetItemsSoupData, GetItemsSoupErrors, GetItemsSoupResponses, GetLocationHandlerData, GetLocationHandlerErrors, GetLocationHandlerResponses, GetMessageWithContextData, GetMessageWithContextErrors, GetMessageWithContextResponses, GetOrCreateCallData, GetOrCreateCallErrors, GetOrCreateCallResponses, GetOrCreateDmData, GetOrCreateDmErrors, GetOrCreateDmResponses, GetOrCreatePrivateData, GetOrCreatePrivateErrors, GetOrCreatePrivateResponses, GetPendingProjectsHandlerData, GetPendingProjectsHandlerErrors, GetPendingProjectsHandlerResponses, GetPinsHandlerData, GetPinsHandlerErrors, GetPinsHandlerResponses, GetProjectContentHandlerData, GetProjectContentHandlerErrors, GetProjectContentHandlerResponses, GetProjectHandlerData, GetProjectHandlerErrors, GetProjectHandlerResponses, GetProjectPermissionsV2Data, GetProjectPermissionsV2Errors, GetProjectPermissionsV2Responses, GetProjectsHandlerData, GetProjectsHandlerErrors, GetProjectsHandlerResponses, GetProjectUserAccessLevelData, GetProjectUserAccessLevelErrors, GetProjectUserAccessLevelResponses, GetReminderData, GetReminderErrors, GetReminderResponses, GetRingStatusData, GetRingStatusErrors, GetRingStatusResponses, GetSelfBotData, GetSelfBotErrors, GetSelfBotResponses, GetSelfHarnessData, GetSelfHarnessErrors, GetSelfHarnessResponses, GetSystemSkillsHandlerData, GetSystemSkillsHandlerErrors, GetSystemSkillsHandlerResponses, GetThreadRepliesData, GetThreadRepliesErrors, GetThreadRepliesResponses, GetUserDocumentsHandlerData, GetUserDocumentsHandlerErrors, GetUserDocumentsHandlerResponses, GetUserDocumentViewLocationData, GetUserDocumentViewLocationErrors, GetUserDocumentViewLocationResponses, GetViewsHandlerData, GetViewsHandlerErrors, GetViewsHandlerResponses, GetWebhookData, GetWebhookErrors, GetWebhookResponses, HandlerData, HandlerErrors, HandlerResponses, HealthHandlerData, HealthHandlerResponses, IngestTranscriptData, IngestTranscriptErrors, IngestTranscriptResponses, InitializeUserDocumentsData, InitializeUserDocumentsErrors, InitializeUserDocumentsResponses, InstallSyncData, InstallSyncErrors, JobProcessingResultHandlerData, JobProcessingResultHandlerErrors, JobProcessingResultHandlerResponses, JoinChannelByCodeData, JoinChannelByCodeErrors, JoinChannelByCodeResponses, JoinChannelData, JoinChannelErrors, JoinChannelResponses, LeaveChannelData, LeaveChannelErrors, LeaveChannelResponses, LeaveOrEndCallData, LeaveOrEndCallErrors, LeaveOrEndCallResponses, ListAgentsData, ListAgentsErrors, ListAgentsResponses, ListBotChannelsData, ListBotChannelsErrors, ListBotChannelsResponses, ListCompanyContactsData, ListCompanyContactsErrors, ListCompanyContactsResponses, ListCrmCommentsData, ListCrmCommentsErrors, ListCrmCommentsResponses, ListFavoritesData, ListFavoritesErrors, ListFavoritesResponses, ListHarnessAgentsData, ListHarnessAgentsErrors, ListHarnessAgentsResponses, ListHarnessesData, ListHarnessesErrors, ListHarnessesResponses, ListHarnessSessionsData, ListHarnessSessionsErrors, ListHarnessSessionsResponses, ListOccurrencesData, ListOccurrencesErrors, ListOccurrencesResponses, ListRemindersData, ListRemindersErrors, ListRemindersResponses, ListUserApiKeysData, ListUserApiKeysErrors, ListUserApiKeysResponses, ListWebhooksData, ListWebhooksErrors, ListWebhooksResponses, MentionPreviewsData, MentionPreviewsErrors, MentionPreviewsResponses, PatchChannelData, PatchChannelErrors, PatchChannelResponses, PatchMessageData, PatchMessageErrors, PatchMessageResponses, PatchViewHandlerData, PatchViewHandlerErrors, PatchViewHandlerResponses, PatchWebhookData, PatchWebhookErrors, PatchWebhookResponses, PermanentlyDeleteDocumentData, PermanentlyDeleteDocumentErrors, PermanentlyDeleteDocumentResponses, PermanentlyDeleteProjectData, PermanentlyDeleteProjectErrors, PermanentlyDeleteProjectResponses, PostActivityData, PostActivityErrors, PostActivityResponses, PostChannelBotWebhookData, PostChannelBotWebhookErrors, PostChannelBotWebhookResponses, PostChannelMessagesData, PostChannelMessagesErrors, PostChannelMessagesResponses, PostItemsSoupAstData, PostItemsSoupAstErrors, PostItemsSoupAstGroupedData, PostItemsSoupAstGroupedErrors, PostItemsSoupAstGroupedResponses, PostItemsSoupAstResponses, PostItemsSoupData, PostItemsSoupErrors, PostItemsSoupResponses, PostMessageData, PostMessageErrors, PostMessageResponses, PostReactionData, PostReactionErrors, PostReactionResponses, PostTypingData, PostTypingErrors, PostTypingResponses, PresaveDocumentHandlerData, PresaveDocumentHandlerErrors, PresaveDocumentHandlerResponses, PutCrmTeamSettingsData, PutCrmTeamSettingsErrors, PutCrmTeamSettingsResponses, RecentlyDeletedData, RecentlyDeletedErrors, RecentlyDeletedResponses, RemoveBotFromChannelByBotData, RemoveBotFromChannelByBotErrors, RemoveBotFromChannelByBotResponses, RemoveFavoriteByEntityData, RemoveFavoriteByEntityErrors, RemoveFavoriteByEntityResponses, RemoveParticipantsData, RemoveParticipantsErrors, RemoveParticipantsResponses, RemovePinHandlerData, RemovePinHandlerErrors, RemovePinHandlerResponses, ReorderFavoritesData, ReorderFavoritesErrors, ReorderFavoritesResponses, ReorderPinsHandlerData, ReorderPinsHandlerErrors, ReorderPinsHandlerResponses, ResolveChannelMessageData, ResolveChannelMessageErrors, ResolveChannelMessageResponses, RevertDeleteDocumentData, RevertDeleteDocumentErrors, RevertDeleteDocumentResponses, RevertDeleteProjectData, RevertDeleteProjectErrors, RevertDeleteProjectResponses, SaveDocumentHandlerData, SaveDocumentHandlerErrors, SaveDocumentHandlerResponses, SetCompanyHiddenData, SetCompanyHiddenErrors, SetCompanyHiddenResponses, SetContactHiddenData, SetContactHiddenErrors, SetContactHiddenResponses, SetCrmCompanyNameData, SetCrmCompanyNameErrors, SetCrmCompanyNameResponses, SetCrmContactNameData, SetCrmContactNameErrors, SetCrmContactNameResponses, SetDocumentTeamShareData, SetDocumentTeamShareErrors, SetDocumentTeamShareResponses, SetEmailSyncData, SetEmailSyncErrors, SetEmailSyncResponses, SimpleSaveData, SimpleSaveErrors, SimpleSaveResponses, StreamEventsData, StreamEventsErrors, StreamEventsResponse, StreamEventsResponses, ToggleShareWithTeamData, ToggleShareWithTeamErrors, ToggleShareWithTeamResponses, UpdateAgentData, UpdateAgentErrors, UpdateAgentResponses, UpdateReminderData, UpdateReminderErrors, UpdateReminderResponses, UploadExtractFolderHandlerData, UploadExtractFolderHandlerErrors, UploadExtractFolderHandlerResponses, UploadFolderHandlerData, UploadFolderHandlerErrors, UploadFolderHandlerResponses, UpsertHistoryHandlerData, UpsertHistoryHandlerErrors, UpsertHistoryHandlerResponses, UpsertUserDocumentViewLocationData, UpsertUserDocumentViewLocationErrors, UpsertUserDocumentViewLocationResponses, ValidateDocumentPermissionsTokenData, ValidateDocumentPermissionsTokenErrors, ValidateDocumentPermissionsTokenResponses, ValidateWebhookData, ValidateWebhookErrors, ValidateWebhookResponses } from './types.gen';
+import type { AddFavoriteData, AddFavoriteErrors, AddFavoriteResponses, AddParticipantsData, AddParticipantsErrors, AddParticipantsResponses, AddPinHandlerData, AddPinHandlerErrors, AddPinHandlerResponses, ApproveHarnessPairingData, ApproveHarnessPairingErrors, ApproveHarnessPairingResponses, BulkWakeupSyncServiceDocumentsData, BulkWakeupSyncServiceDocumentsErrors, BulkWakeupSyncServiceDocumentsResponses, CallWebhookData, CallWebhookErrors, CallWebhookResponses, CheckActiveCallData, CheckActiveCallErrors, CheckActiveCallResponses, ClaimHarnessPairingData, ClaimHarnessPairingErrors, ClaimHarnessPairingResponses, CopyDocumentData, CopyDocumentErrors, CopyDocumentResponses, CreateAgentData, CreateAgentErrors, CreateAgentResponses, CreateAnchorData, CreateAnchorErrors, CreateAnchorResponses, CreateChannelData, CreateChannelErrors, CreateChannelResponses, CreateChannelScopedBotData, CreateChannelScopedBotErrors, CreateChannelScopedBotResponses, CreateCollabSurfaceTokenData, CreateCollabSurfaceTokenErrors, CreateCollabSurfaceTokenResponses, CreateCommentData, CreateCommentErrors, CreateCommentResponses, CreateCrmCommentData, CreateCrmCommentErrors, CreateCrmCommentResponses, CreateCrmCompanyData, CreateCrmCompanyErrors, CreateCrmCompanyResponses, CreateCrmContactData, CreateCrmContactErrors, CreateCrmContactResponses, CreateDocumentData, CreateDocumentErrors, CreateDocumentResponses, CreateEntityMentionData, CreateEntityMentionErrors, CreateEntityMentionResponses, CreateHarnessPairingData, CreateHarnessPairingErrors, CreateHarnessPairingResponses, CreateInstructionsHandlerData, CreateInstructionsHandlerErrors, CreateInstructionsHandlerResponses, CreateMarkdownHandlerData, CreateMarkdownHandlerErrors, CreateMarkdownHandlerResponses, CreateProjectHandlerData, CreateProjectHandlerErrors, CreateProjectHandlerResponses, CreateReminderData, CreateReminderErrors, CreateReminderResponses, CreateSkillHandlerData, CreateSkillHandlerErrors, CreateSkillHandlerResponses, CreateSnippetHandlerData, CreateSnippetHandlerErrors, CreateSnippetHandlerResponses, CreateTaskHandlerData, CreateTaskHandlerErrors, CreateTaskHandlerResponses, CreateUserApiKeyData, CreateUserApiKeyErrors, CreateUserApiKeyResponses, CreateViewHandlerData, CreateViewHandlerErrors, CreateViewHandlerResponses, CreateWebhookData, CreateWebhookErrors, CreateWebhookResponses, DeleteAnchorData, DeleteAnchorErrors, DeleteAnchorResponses, DeleteCallRecordData, DeleteCallRecordErrors, DeleteCallRecordResponses, DeleteChannelData, DeleteChannelErrors, DeleteChannelResponses, DeleteCollabSurfaceData, DeleteCollabSurfaceErrors, DeleteCollabSurfaceResponses, DeleteCommentData, DeleteCommentErrors, DeleteCommentResponses, DeleteCrmCommentData, DeleteCrmCommentErrors, DeleteCrmCommentResponses, DeleteDocumentData, DeleteDocumentErrors, DeleteDocumentResponses, DeleteEntityMentionData, DeleteEntityMentionErrors, DeleteEntityMentionResponses, DeleteHarnessData, DeleteHarnessErrors, DeleteHarnessResponses, DeleteHistoryHandlerData, DeleteHistoryHandlerErrors, DeleteHistoryHandlerResponses, DeleteMessageData, DeleteMessageErrors, DeleteMessageResponses, DeleteProjectHandlerData, DeleteProjectHandlerErrors, DeleteProjectHandlerResponses, DeleteReminderData, DeleteReminderErrors, DeleteReminderResponses, DeleteSelfHarnessData, DeleteSelfHarnessErrors, DeleteSelfHarnessResponses, DeleteUserApiKeyData, DeleteUserApiKeyErrors, DeleteUserApiKeyResponses, DeleteUserDocumentViewLocationData, DeleteUserDocumentViewLocationErrors, DeleteUserDocumentViewLocationResponses, DeleteViewHandlerData, DeleteViewHandlerErrors, DeleteViewHandlerResponses, DeleteWebhookData, DeleteWebhookErrors, DeleteWebhookResponses, EditAnchorData, EditAnchorErrors, EditAnchorResponses, EditCallRecordData, EditCallRecordErrors, EditCallRecordResponses, EditCallTranscriptData, EditCallTranscriptErrors, EditCallTranscriptResponses, EditCommentData, EditCommentErrors, EditCommentResponses, EditCrmCommentData, EditCrmCommentErrors, EditCrmCommentResponses, EditDocumentData, EditDocumentErrors, EditDocumentResponses, EditProjectV2Data, EditProjectV2Errors, EditProjectV2Responses, EditThreadV2Data, EditThreadV2Errors, EditThreadV2Responses, EnsureCollabSurfaceData, EnsureCollabSurfaceErrors, EnsureCollabSurfaceResponses, ExcludeDefaultViewHandlerData, ExcludeDefaultViewHandlerErrors, ExcludeDefaultViewHandlerResponses, ExportDocumentData, ExportDocumentErrors, ExportDocumentResponses, GetActiveCallsData, GetActiveCallsErrors, GetActiveCallsResponses, GetActivityData, GetActivityErrors, GetActivityResponses, GetAttachmentReferencesData, GetAttachmentReferencesErrors, GetAttachmentReferencesResponses, GetBatchCallRecordPreviewData, GetBatchCallRecordPreviewErrors, GetBatchCallRecordPreviewResponses, GetBatchChannelPreviewData, GetBatchChannelPreviewErrors, GetBatchChannelPreviewResponses, GetBatchPreviewHandlerData, GetBatchPreviewHandlerErrors, GetBatchPreviewHandlerResponses, GetBatchProjectPreviewData, GetBatchProjectPreviewErrors, GetBatchProjectPreviewResponses, GetCallRecordData, GetCallRecordErrors, GetCallRecordResponses, GetChannelAttachmentsData, GetChannelAttachmentsErrors, GetChannelAttachmentsResponses, GetChannelData, GetChannelErrors, GetChannelJoinLinkData, GetChannelJoinLinkErrors, GetChannelJoinLinkResponses, GetChannelMessagesData, GetChannelMessagesErrors, GetChannelMessagesResponses, GetChannelParticipantsData, GetChannelParticipantsErrors, GetChannelParticipantsResponses, GetChannelResponses, GetChannelsData, GetChannelsErrors, GetChannelsResponses, GetCollabSurfaceData, GetCollabSurfaceErrors, GetCollabSurfaceResponses, GetCompanyData, GetCompanyErrors, GetCompanyResponses, GetContactByEmailData, GetContactByEmailErrors, GetContactByEmailResponses, GetContactData, GetContactErrors, GetContactResponses, GetCrmTeamSettingsData, GetCrmTeamSettingsErrors, GetCrmTeamSettingsResponses, GetDocumentAnchorsData, GetDocumentAnchorsErrors, GetDocumentAnchorsResponses, GetDocumentBranchNameData, GetDocumentBranchNameErrors, GetDocumentBranchNameResponses, GetDocumentByTeamSlugData, GetDocumentByTeamSlugErrors, GetDocumentByTeamSlugResponses, GetDocumentCommentsData, GetDocumentCommentsErrors, GetDocumentCommentsResponses, GetDocumentData, GetDocumentErrors, GetDocumentGithubPullRequestsData, GetDocumentGithubPullRequestsErrors, GetDocumentGithubPullRequestsResponses, GetDocumentListHandlerData, GetDocumentListHandlerErrors, GetDocumentListHandlerResponses, GetDocumentLocationV3Data, GetDocumentLocationV3Errors, GetDocumentLocationV3Responses, GetDocumentPermissionsTokenData, GetDocumentPermissionsTokenErrors, GetDocumentPermissionsTokenResponses, GetDocumentPermissionsV2Data, GetDocumentPermissionsV2Errors, GetDocumentPermissionsV2Responses, GetDocumentProcessingResultData, GetDocumentProcessingResultErrors, GetDocumentProcessingResultResponses, GetDocumentResponses, GetDocumentShortIdData, GetDocumentShortIdErrors, GetDocumentShortIdResponses, GetDocumentTeamShareData, GetDocumentTeamShareErrors, GetDocumentTeamShareResponses, GetDocumentVersionData, GetDocumentVersionErrors, GetDocumentVersionResponses, GetDocumentViewsHandlerData, GetDocumentViewsHandlerErrors, GetDocumentViewsHandlerResponses, GetEntityPermissionData, GetEntityPermissionErrors, GetEntityPermissionResponses, GetForeignEntityData, GetForeignEntityErrors, GetForeignEntityResponses, GetHarnessPairingData, GetHarnessPairingErrors, GetHarnessPairingResponses, GetHistoryHandlerData, GetHistoryHandlerErrors, GetHistoryHandlerResponses, GetInstructionsHandlerData, GetInstructionsHandlerErrors, GetInstructionsHandlerResponses, GetItemsSoupData, GetItemsSoupErrors, GetItemsSoupResponses, GetLocationHandlerData, GetLocationHandlerErrors, GetLocationHandlerResponses, GetMessageWithContextData, GetMessageWithContextErrors, GetMessageWithContextResponses, GetOrCreateCallData, GetOrCreateCallErrors, GetOrCreateCallResponses, GetOrCreateDmData, GetOrCreateDmErrors, GetOrCreateDmResponses, GetOrCreatePrivateData, GetOrCreatePrivateErrors, GetOrCreatePrivateResponses, GetPendingProjectsHandlerData, GetPendingProjectsHandlerErrors, GetPendingProjectsHandlerResponses, GetPinsHandlerData, GetPinsHandlerErrors, GetPinsHandlerResponses, GetProjectContentHandlerData, GetProjectContentHandlerErrors, GetProjectContentHandlerResponses, GetProjectHandlerData, GetProjectHandlerErrors, GetProjectHandlerResponses, GetProjectPermissionsV2Data, GetProjectPermissionsV2Errors, GetProjectPermissionsV2Responses, GetProjectsHandlerData, GetProjectsHandlerErrors, GetProjectsHandlerResponses, GetProjectUserAccessLevelData, GetProjectUserAccessLevelErrors, GetProjectUserAccessLevelResponses, GetReminderData, GetReminderErrors, GetReminderResponses, GetRingStatusData, GetRingStatusErrors, GetRingStatusResponses, GetSelfBotData, GetSelfBotErrors, GetSelfBotResponses, GetSelfHarnessData, GetSelfHarnessErrors, GetSelfHarnessResponses, GetSystemSkillsHandlerData, GetSystemSkillsHandlerErrors, GetSystemSkillsHandlerResponses, GetThreadRepliesData, GetThreadRepliesErrors, GetThreadRepliesResponses, GetUserDocumentsHandlerData, GetUserDocumentsHandlerErrors, GetUserDocumentsHandlerResponses, GetUserDocumentViewLocationData, GetUserDocumentViewLocationErrors, GetUserDocumentViewLocationResponses, GetViewsHandlerData, GetViewsHandlerErrors, GetViewsHandlerResponses, GetWebhookData, GetWebhookErrors, GetWebhookResponses, HandlerData, HandlerErrors, HandlerResponses, HealthHandlerData, HealthHandlerResponses, IngestTranscriptData, IngestTranscriptErrors, IngestTranscriptResponses, InitializeUserDocumentsData, InitializeUserDocumentsErrors, InitializeUserDocumentsResponses, InstallSyncData, InstallSyncErrors, JobProcessingResultHandlerData, JobProcessingResultHandlerErrors, JobProcessingResultHandlerResponses, JoinChannelByCodeData, JoinChannelByCodeErrors, JoinChannelByCodeResponses, JoinChannelData, JoinChannelErrors, JoinChannelResponses, LeaveChannelData, LeaveChannelErrors, LeaveChannelResponses, LeaveOrEndCallData, LeaveOrEndCallErrors, LeaveOrEndCallResponses, ListAgentsData, ListAgentsErrors, ListAgentsResponses, ListBotChannelsData, ListBotChannelsErrors, ListBotChannelsResponses, ListCompanyContactsData, ListCompanyContactsErrors, ListCompanyContactsResponses, ListCrmCommentsData, ListCrmCommentsErrors, ListCrmCommentsResponses, ListFavoritesData, ListFavoritesErrors, ListFavoritesResponses, ListHarnessAgentsData, ListHarnessAgentsErrors, ListHarnessAgentsResponses, ListHarnessesData, ListHarnessesErrors, ListHarnessesResponses, ListHarnessSessionsData, ListHarnessSessionsErrors, ListHarnessSessionsResponses, ListOccurrencesData, ListOccurrencesErrors, ListOccurrencesResponses, ListRemindersData, ListRemindersErrors, ListRemindersResponses, ListTeamOutOfOfficeData, ListTeamOutOfOfficeErrors, ListTeamOutOfOfficeResponses, ListUserApiKeysData, ListUserApiKeysErrors, ListUserApiKeysResponses, ListWebhooksData, ListWebhooksErrors, ListWebhooksResponses, MentionPreviewsData, MentionPreviewsErrors, MentionPreviewsResponses, PatchChannelData, PatchChannelErrors, PatchChannelResponses, PatchMessageData, PatchMessageErrors, PatchMessageResponses, PatchViewHandlerData, PatchViewHandlerErrors, PatchViewHandlerResponses, PatchWebhookData, PatchWebhookErrors, PatchWebhookResponses, PermanentlyDeleteDocumentData, PermanentlyDeleteDocumentErrors, PermanentlyDeleteDocumentResponses, PermanentlyDeleteProjectData, PermanentlyDeleteProjectErrors, PermanentlyDeleteProjectResponses, PostActivityData, PostActivityErrors, PostActivityResponses, PostChannelBotWebhookData, PostChannelBotWebhookErrors, PostChannelBotWebhookResponses, PostChannelMessagesData, PostChannelMessagesErrors, PostChannelMessagesResponses, PostItemsSoupAstData, PostItemsSoupAstErrors, PostItemsSoupAstGroupedData, PostItemsSoupAstGroupedErrors, PostItemsSoupAstGroupedResponses, PostItemsSoupAstResponses, PostItemsSoupData, PostItemsSoupErrors, PostItemsSoupResponses, PostMessageData, PostMessageErrors, PostMessageResponses, PostReactionData, PostReactionErrors, PostReactionResponses, PostTypingData, PostTypingErrors, PostTypingResponses, PresaveDocumentHandlerData, PresaveDocumentHandlerErrors, PresaveDocumentHandlerResponses, PutCrmTeamSettingsData, PutCrmTeamSettingsErrors, PutCrmTeamSettingsResponses, RecentlyDeletedData, RecentlyDeletedErrors, RecentlyDeletedResponses, RemoveBotFromChannelByBotData, RemoveBotFromChannelByBotErrors, RemoveBotFromChannelByBotResponses, RemoveFavoriteByEntityData, RemoveFavoriteByEntityErrors, RemoveFavoriteByEntityResponses, RemoveParticipantsData, RemoveParticipantsErrors, RemoveParticipantsResponses, RemovePinHandlerData, RemovePinHandlerErrors, RemovePinHandlerResponses, ReorderFavoritesData, ReorderFavoritesErrors, ReorderFavoritesResponses, ReorderPinsHandlerData, ReorderPinsHandlerErrors, ReorderPinsHandlerResponses, ResolveChannelMessageData, ResolveChannelMessageErrors, ResolveChannelMessageResponses, RevertDeleteDocumentData, RevertDeleteDocumentErrors, RevertDeleteDocumentResponses, RevertDeleteProjectData, RevertDeleteProjectErrors, RevertDeleteProjectResponses, SaveDocumentHandlerData, SaveDocumentHandlerErrors, SaveDocumentHandlerResponses, SetCompanyHiddenData, SetCompanyHiddenErrors, SetCompanyHiddenResponses, SetContactHiddenData, SetContactHiddenErrors, SetContactHiddenResponses, SetCrmCompanyNameData, SetCrmCompanyNameErrors, SetCrmCompanyNameResponses, SetCrmContactNameData, SetCrmContactNameErrors, SetCrmContactNameResponses, SetDocumentTeamShareData, SetDocumentTeamShareErrors, SetDocumentTeamShareResponses, SetEmailSyncData, SetEmailSyncErrors, SetEmailSyncResponses, SimpleSaveData, SimpleSaveErrors, SimpleSaveResponses, StreamEventsData, StreamEventsErrors, StreamEventsResponse, StreamEventsResponses, ToggleShareWithTeamData, ToggleShareWithTeamErrors, ToggleShareWithTeamResponses, UpdateAgentData, UpdateAgentErrors, UpdateAgentResponses, UpdateReminderData, UpdateReminderErrors, UpdateReminderResponses, UploadExtractFolderHandlerData, UploadExtractFolderHandlerErrors, UploadExtractFolderHandlerResponses, UploadFolderHandlerData, UploadFolderHandlerErrors, UploadFolderHandlerResponses, UpsertHistoryHandlerData, UpsertHistoryHandlerErrors, UpsertHistoryHandlerResponses, UpsertUserDocumentViewLocationData, UpsertUserDocumentViewLocationErrors, UpsertUserDocumentViewLocationResponses, ValidateDocumentPermissionsTokenData, ValidateDocumentPermissionsTokenErrors, ValidateDocumentPermissionsTokenResponses, ValidateWebhookData, ValidateWebhookErrors, ValidateWebhookResponses } from './types.gen';
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
/**
@@ -235,6 +235,13 @@ export class Sdk extends HeyApiClient {
});
}
+ /**
+ * Return teammates' out-of-office occurrences in the requested viewport.
+ */
+ public listTeamOutOfOffice<ThrowOnError extends boolean = false>(options: Options<ListTeamOutOfOfficeData, ThrowOnError>): RequestResult<ListTeamOutOfOfficeResponses, ListTeamOutOfOfficeErrors, ThrowOnError> {
+ return (options.client ?? this.client).get<ListTeamOutOfOfficeResponses, ListTeamOutOfOfficeErrors, ThrowOnError>({ url: '/calendar-events/team-out-of-office', ...options });
+ }
+
/**
* Handler for `GET /call/active`.
*
diff --git a/packages/sdk/generated/storage/types.gen.ts b/packages/sdk/generated/storage/types.gen.ts
index 3f59c560f4..961facf533 100644
--- a/packages/sdk/generated/storage/types.gen.ts
+++ b/packages/sdk/generated/storage/types.gen.ts
@@ -8461,6 +8461,40 @@ export type TaskFilters = {
include_cbm_atm_nc?: boolean | null;
};
+/**
+ * One teammate's out-of-office occurrence.
+ */
+export type TeamOutOfOfficeItem = {
+ /**
+ * The teammate's calendar event id.
+ */
+ eventId: string;
+ /**
+ * Stable occurrence key within the event.
+ */
+ occurrenceKey: string;
+ /**
+ * Macro user id of the teammate who is out.
+ */
+ ownerId: string;
+ /**
+ * Occurrence time span.
+ */
+ time: EventTime;
+ /**
+ * Event title, absent when the event's visibility withholds details.
+ */
+ title?: string | null;
+};
+
+/**
+ * Team out-of-office viewport response.
+ */
+export type TeamOutOfOfficeResponse = {
+ hasMore: boolean;
+ items: Array<TeamOutOfOfficeItem>;
+};
+
/**
* The role a user has within a team.
*
@@ -9456,6 +9490,58 @@ export type MentionPreviewsResponses = {
export type MentionPreviewsResponse = MentionPreviewsResponses[keyof MentionPreviewsResponses];
+export type ListTeamOutOfOfficeData = {
+ body?: never;
+ path?: never;
+ query: {
+ /**
+ * Inclusive UTC viewport start.
+ */
+ start: string;
+ /**
+ * Exclusive UTC viewport end.
+ */
+ end: string;
+ /**
+ * Inclusive local date boundary for all-day events.
+ */
+ startDate?: string;
+ /**
+ * Exclusive local date boundary for all-day events.
+ */
+ endDate?: string;
+ /**
+ * Maximum number of occurrences, from 1 through 2,000.
+ */
+ limit?: number;
+ };
+ url: '/calendar-events/team-out-of-office';
+};
+
+export type ListTeamOutOfOfficeErrors = {
+ /**
+ * Invalid or unsupported calendar viewport
+ */
+ 400: unknown;
+ /**
+ * Authentication required
+ */
+ 401: unknown;
+ /**
+ * Calendar query failed
+ */
+ 500: unknown;
+};
+
+export type ListTeamOutOfOfficeResponses = {
+ /**
+ * Teammates' out-of-office occurrences in the requested viewport
+ */
+ 200: TeamOutOfOfficeResponse;
+};
+
+export type ListTeamOutOfOfficeResponse = ListTeamOutOfOfficeResponses[keyof ListTeamOutOfOfficeResponses];
+
export type GetActiveCallsData = {
body?: never;
path?: never;
diff --git a/packages/sdk/specs/storage.json b/packages/sdk/specs/storage.json
index 6a561759d8..3444009408 100644
--- a/packages/sdk/specs/storage.json
+++ b/packages/sdk/specs/storage.json
@@ -1015,6 +1015,88 @@
}
}
},
+ "/calendar-events/team-out-of-office": {
+ "get": {
+ "tags": ["calendar_events"],
+ "summary": "Return teammates' out-of-office occurrences in the requested viewport.",
+ "operationId": "list_team_out_of_office",
+ "parameters": [
+ {
+ "name": "start",
+ "in": "query",
+ "description": "Inclusive UTC viewport start.",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "format": "date-time"
+ }
+ },
+ {
+ "name": "end",
+ "in": "query",
+ "description": "Exclusive UTC viewport end.",
+ "required": true,
+ "schema": {
+ "type": "string",
+ "format": "date-time"
+ }
+ },
+ {
+ "name": "startDate",
+ "in": "query",
+ "description": "Inclusive local date boundary for all-day events.",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "format": "date"
+ }
+ },
+ {
+ "name": "endDate",
+ "in": "query",
+ "description": "Exclusive local date boundary for all-day events.",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "format": "date"
+ }
+ },
+ {
+ "name": "limit",
+ "in": "query",
+ "description": "Maximum number of occurrences, from 1 through 2,000.",
+ "required": false,
+ "schema": {
+ "type": "integer",
+ "format": "int32",
+ "maximum": 2000,
+ "minimum": 1
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Teammates' out-of-office occurrences in the requested viewport",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/TeamOutOfOfficeResponse"
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "Invalid or unsupported calendar viewport"
+ },
+ "401": {
+ "description": "Authentication required"
+ },
+ "500": {
+ "description": "Calendar query failed"
+ }
+ }
+ }
+ },
"/call/active": {
"get": {
"tags": ["call::inbound::axum_router"],
@@ -25826,6 +25908,50 @@
}
}
},
+ "TeamOutOfOfficeItem": {
+ "type": "object",
+ "description": "One teammate's out-of-office occurrence.",
+ "required": ["ownerId", "eventId", "occurrenceKey", "time"],
+ "properties": {
+ "eventId": {
+ "type": "string",
+ "format": "uuid",
+ "description": "The teammate's calendar event id."
+ },
+ "occurrenceKey": {
+ "type": "string",
+ "description": "Stable occurrence key within the event."
+ },
+ "ownerId": {
+ "type": "string",
+ "description": "Macro user id of the teammate who is out."
+ },
+ "time": {
+ "$ref": "#/components/schemas/EventTime",
+ "description": "Occurrence time span."
+ },
+ "title": {
+ "type": ["string", "null"],
+ "description": "Event title, absent when the event's visibility withholds details."
+ }
+ }
+ },
+ "TeamOutOfOfficeResponse": {
+ "type": "object",
+ "description": "Team out-of-office viewport response.",
+ "required": ["items", "hasMore"],
+ "properties": {
+ "hasMore": {
+ "type": "boolean"
+ },
+ "items": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/TeamOutOfOfficeItem"
+ }
+ }
+ }
+ },
"TeamRole": {
"type": "string",
"description": "The role a user has within a team.\n\nOrdered least to most privileged so comparisons reflect access strength.",
diff --git a/packages/sdk/src/coverage/skipped.ts b/packages/sdk/src/coverage/skipped.ts
index 93ff317080..fff2ee79e6 100644
--- a/packages/sdk/src/coverage/skipped.ts
+++ b/packages/sdk/src/coverage/skipped.ts
@@ -345,6 +345,7 @@ export const storageBacklog = [
'listHarnesses',
'listOccurrences',
'listReminders',
+ 'listTeamOutOfOffice',
'listUserApiKeys',
'postActivity',
'presaveDocumentHandler',
diff --git a/services/document_storage_service/src/api/swagger.rs b/services/document_storage_service/src/api/swagger.rs
index 1f8208e31a..3e5d87c260 100644
--- a/services/document_storage_service/src/api/swagger.rs
+++ b/services/document_storage_service/src/api/swagger.rs
@@ -148,6 +148,7 @@ use utoipa::OpenApi;
health::health_handler,
calendar_events::inbound::axum_router::list_occurrences,
calendar_events::inbound::axum_router::mention_previews,
+ calendar_events::inbound::axum_router::list_team_out_of_office,
// annotations
annotations::get::get_document_comments_handler,
@@ -467,6 +468,8 @@ use utoipa::OpenApi;
calendar_events::inbound::axum_router::CalendarMentionPreviewResponse,
calendar_events::inbound::axum_router::CalendarMentionPreviewItem,
calendar_events::inbound::axum_router::CalendarMentionPreviewKind,
+ calendar_events::inbound::axum_router::TeamOutOfOfficeItem,
+ calendar_events::inbound::axum_router::TeamOutOfOfficeResponse,
calendar_events::domain::models::CalendarMentionEvent,
calendar_events::domain::models::CalendarSyncStatus,
SoupItemWithProperties,