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(reviews): add pull request priority, origin, and linked work (#7671)

Jacob Beckerman93d78afc337a
diff --git a/.sqlx/query-4a951a58a2ea7d8aa39e34d5965d1b254b871f51e2246fbcd7783cb7840ff4bb.json b/.sqlx/query-4a951a58a2ea7d8aa39e34d5965d1b254b871f51e2246fbcd7783cb7840ff4bb.json
new file mode 100644
index 0000000000..cabf090ec3
--- /dev/null
+++ b/.sqlx/query-4a951a58a2ea7d8aa39e34d5965d1b254b871f51e2246fbcd7783cb7840ff4bb.json
@@ -0,0 +1,28 @@
+{
+ "db_name": "PostgreSQL",
+ "query": "\n SELECT github_key, task_id\n FROM github_pr_tasks\n WHERE github_key = ANY($1)\n ORDER BY created_at ASC, task_id ASC\n ",
+ "describe": {
+ "columns": [
+ {
+ "ordinal": 0,
+ "name": "github_key",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 1,
+ "name": "task_id",
+ "type_info": "Text"
+ }
+ ],
+ "parameters": {
+ "Left": [
+ "TextArray"
+ ]
+ },
+ "nullable": [
+ false,
+ false
+ ]
+ },
+ "hash": "4a951a58a2ea7d8aa39e34d5965d1b254b871f51e2246fbcd7783cb7840ff4bb"
+}
diff --git a/.sqlx/query-79c6d4a87facfbb433b9bfde54f94c7349983acf44ed2cded7c067d60d2b59e6.json b/.sqlx/query-79c6d4a87facfbb433b9bfde54f94c7349983acf44ed2cded7c067d60d2b59e6.json
new file mode 100644
index 0000000000..b0f4e424c6
--- /dev/null
+++ b/.sqlx/query-79c6d4a87facfbb433b9bfde54f94c7349983acf44ed2cded7c067d60d2b59e6.json
@@ -0,0 +1,40 @@
+{
+ "db_name": "PostgreSQL",
+ "query": "\n SELECT\n link.github_key,\n link.agent_session_id,\n link.source,\n (SELECT jsonb_build_object('type', parent_entity_type, 'id', parent_entity_id)\n FROM comms_messages WHERE id = session.thread_id)\n AS \"thread_parent?: Json<MessageParent>\"\n FROM agent_session_pull_request AS link\n JOIN agent_session AS session ON session.id = link.agent_session_id\n WHERE lower(link.github_key) = ANY($1)\n ORDER BY link.created_at, link.agent_session_id\n ",
+ "describe": {
+ "columns": [
+ {
+ "ordinal": 0,
+ "name": "github_key",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 1,
+ "name": "agent_session_id",
+ "type_info": "Uuid"
+ },
+ {
+ "ordinal": 2,
+ "name": "source",
+ "type_info": "Text"
+ },
+ {
+ "ordinal": 3,
+ "name": "thread_parent?: Json<MessageParent>",
+ "type_info": "Jsonb"
+ }
+ ],
+ "parameters": {
+ "Left": [
+ "TextArray"
+ ]
+ },
+ "nullable": [
+ false,
+ false,
+ false,
+ null
+ ]
+ },
+ "hash": "79c6d4a87facfbb433b9bfde54f94c7349983acf44ed2cded7c067d60d2b59e6"
+}
diff --git a/apps/web/src/features/block-pr/component/PrLinks.tsx b/apps/web/src/features/block-pr/component/PrLinks.tsx
new file mode 100644
index 0000000000..21c015baf8
--- /dev/null
+++ b/apps/web/src/features/block-pr/component/PrLinks.tsx
@@ -0,0 +1,407 @@
+import type { SplitContent } from '@components/app/split-layout/layoutManager';
+import { AgentSessionMentionLabel } from '@core/component/LexicalMarkdown/component/decorator/AgentSessionMentionLabel';
+import { useChannelName } from '@core/context/channels';
+import MacroIcon from '@icon/macro-logo.svg';
+import ClaudeIcon from '@icon/wide-claude.svg';
+import CodexIcon from '@icon/wide-codex-ide.svg';
+import CursorIcon from '@icon/wide-cursor-ide.svg';
+import { Popover } from '@kobalte/core/popover';
+import BuildingsIcon from '@phosphor/buildings.svg';
+import GithubIcon from '@phosphor/github-logo.svg';
+import HashIcon from '@phosphor/hash.svg';
+import ListChecksIcon from '@phosphor/list-checks.svg';
+import RobotIcon from '@phosphor/robot.svg';
+import AgentIcon from '@phosphor/sparkle.svg';
+import { PropertyValueIcon } from '@property/component/propertyValue';
+import { PROPERTY_OPTION_IDS } from '@property/constants';
+import { useAgentSessionMentionPreview } from '@queries/agent-session/mentions';
+import { cn, Surface, Tooltip } from '@ui';
+import { type Component, For, type JSX, Show } from 'solid-js';
+import { Dynamic } from 'solid-js/web';
+import { match } from 'ts-pattern';
+import {
+ PR_PRIORITY_LABELS,
+ type PrLinks,
+ type PrPriority,
+ type PrPriorityId,
+} from '../data/pr-links';
+import {
+ PR_ORIGIN_LABELS,
+ PR_ORIGIN_SIGNAL_LABELS,
+ type PrOrigin,
+ type PrOriginTool,
+} from '../data/pr-origin';
+
+/** Opens a linked item; `newSplit` when the viewer asked for another split. */
+export type OpenPrLink = (content: SplitContent, newSplit: boolean) => void;
+
+const PRIORITY_OPTION_IDS: Record<Exclude<PrPriorityId, 'none'>, string> = {
+ urgent: PROPERTY_OPTION_IDS.PRIORITY.URGENT,
+ high: PROPERTY_OPTION_IDS.PRIORITY.HIGH,
+ medium: PROPERTY_OPTION_IDS.PRIORITY.MEDIUM,
+ low: PROPERTY_OPTION_IDS.PRIORITY.LOW,
+};
+
+/** Keeps a chip's pointer and key events from also activating the row under it. */
+const isolate = {
+ onKeyDown: (event: KeyboardEvent) => event.stopPropagation(),
+ onPointerDown: (event: PointerEvent) => event.stopPropagation(),
+};
+
+function priorityTooltip(priority: PrPriority, taskName?: string) {
+ if (priority.id === 'none') return PR_PRIORITY_LABELS.none;
+ const label = `${PR_PRIORITY_LABELS[priority.id]} priority`;
+ if (priority.source === 'label') return `${label}, from a GitHub label`;
+ return taskName ? `${label}, from ${taskName}` : label;
+}
+
+/** A priority's icon; `none` draws an empty slot. */
+export function PrPriorityIcon(props: {
+ priority: PrPriorityId;
+ class?: string;
+}) {
+ return (
+ <Show
+ when={props.priority !== 'none' && props.priority}
+ fallback={<span class={cn('inline-block size-3', props.class)} />}
+ >
+ {(id) => (
+ <PropertyValueIcon
+ optionId={PRIORITY_OPTION_IDS[id()]}
+ class={props.class}
+ />
+ )}
+ </Show>
+ );
+}
+
+/** The pull request's priority, from its linked tasks or GitHub labels. */
+export function PrPriorityBadge(props: {
+ priority: PrPriority;
+ taskName?: string;
+}) {
+ return (
+ <Show when={props.priority.id !== 'none' && props.priority.id}>
+ {(id) => (
+ <Tooltip
+ as="span"
+ label={priorityTooltip(props.priority, props.taskName)}
+ class="inline-flex size-4 shrink-0 items-center justify-center"
+ >
+ <span
+ role="img"
+ aria-label={`${PR_PRIORITY_LABELS[id()]} priority`}
+ class="inline-flex"
+ >
+ <PrPriorityIcon priority={id()} />
+ </span>
+ </Tooltip>
+ )}
+ </Show>
+ );
+}
+
+type LinkItem = {
+ key: string;
+ content: SplitContent;
+ label: () => JSX.Element;
+ /** Plain-text detail for the chip's tooltip, when the label is not plain text. */
+ text?: () => string;
+};
+
+/**
+ * One kind of link: opens the item directly when there is one, or lists them
+ * in a popover when there are several.
+ */
+function LinkPill(props: {
+ kind: string;
+ icon: Component<{ class?: string }>;
+ items: LinkItem[];
+ onOpen: OpenPrLink;
+ class?: string;
+}) {
+ const first = () => props.items[0];
+ const body = () => (
+ <>
+ <props.icon class="size-3 shrink-0" />
+ <span class="min-w-0 truncate">{first()?.label()}</span>
+ <Show when={props.items.length > 1}>
+ <span class="shrink-0 tabular-nums text-ink-extra-muted">
+ +{props.items.length - 1}
+ </span>
+ </Show>
+ </>
+ );
+
+ return (
+ <Show when={first()}>
+ {(item) => (
+ <Show
+ when={props.items.length > 1}
+ fallback={
+ <Tooltip
+ as="span"
+ label={
+ item().text ? `${props.kind}: ${item().text?.()}` : props.kind
+ }
+ >
+ <button
+ type="button"
+ class={cn(
+ 'inline-flex h-6 min-w-0 max-w-40 items-center gap-1 rounded-full border border-edge bg-surface/50 px-1.5 text-xs font-medium text-ink-muted hover:bg-hover hover:text-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent',
+ props.class
+ )}
+ aria-label={`Open linked ${props.kind.toLowerCase()}`}
+ {...isolate}
+ onClick={(event) => {
+ event.stopPropagation();
+ props.onOpen(item().content, event.shiftKey);
+ }}
+ >
+ {body()}
+ </button>
+ </Tooltip>
+ }
+ >
+ <Popover placement="bottom-end" gutter={4} flip>
+ <Popover.Trigger
+ class={cn(
+ 'inline-flex h-6 min-w-0 max-w-40 items-center gap-1 rounded-full border border-edge bg-surface/50 px-1.5 text-xs font-medium text-ink-muted hover:bg-hover hover:text-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent',
+ props.class
+ )}
+ aria-label={`${props.items.length} linked ${props.kind.toLowerCase()}s`}
+ {...isolate}
+ onClick={(event: MouseEvent) => event.stopPropagation()}
+ >
+ {body()}
+ </Popover.Trigger>
+ <Popover.Portal>
+ <Popover.Content
+ class="z-tool-tip w-64 max-w-[calc(100vw-32px)]"
+ {...isolate}
+ onClick={(event: MouseEvent) => event.stopPropagation()}
+ >
+ <Surface
+ class="flex flex-col gap-0.5 rounded-xl p-1 glass bg-menu-glass"
+ depth={3}
+ hideBorder
+ >
+ <div class="px-2 py-1 text-xxs font-medium uppercase text-ink-extra-muted">
+ {props.kind}s
+ </div>
+ <For each={props.items}>
+ {(entry) => (
+ <button
+ type="button"
+ class="flex h-7 min-w-0 items-center gap-2 rounded-lg px-2 text-left text-xs text-ink hover:bg-hover focus-visible:bg-hover focus-visible:outline-none"
+ onClick={(event) =>
+ props.onOpen(entry.content, event.shiftKey)
+ }
+ >
+ <props.icon class="size-3.5 shrink-0 text-ink-muted" />
+ <span class="min-w-0 truncate">{entry.label()}</span>
+ </button>
+ )}
+ </For>
+ </Surface>
+ </Popover.Content>
+ </Popover.Portal>
+ </Popover>
+ </Show>
+ )}
+ </Show>
+ );
+}
+
+function SessionName(props: { id: string }) {
+ const preview = useAgentSessionMentionPreview(
+ () => props.id,
+ () => true
+ );
+ const name = () => {
+ const current = preview.isSuccess ? preview.data : undefined;
+ return current?.access === 'access'
+ ? current.data.name || 'Agent session'
+ : 'Agent session';
+ };
+ return <AgentSessionMentionLabel label={name()} />;
+}
+
+function ChannelName(props: { id: string }) {
+ const name = useChannelName(props.id, 'Channel');
+ return <>{name()}</>;
+}
+
+/**
+ * Chips for the agents, tickets, customers, and channels a pull request links
+ * to. Each opens the linked item in a split.
+ */
+export function PrLinkChips(props: {
+ links: PrLinks;
+ companyName: (id: string) => string | undefined;
+ onOpen: OpenPrLink;
+}) {
+ const sessions = (): LinkItem[] =>
+ props.links.sessions.map((session) => ({
+ key: session.id,
+ content: { type: 'agent', id: session.id },
+ text: () =>
+ session.source === 'agent' ? 'opened by its agent' : 'linked session',
+ label: () => <SessionName id={session.id} />,
+ }));
+ const tasks = (): LinkItem[] =>
+ props.links.tasks.map((task) => ({
+ key: task.id,
+ content: { type: 'md', id: task.id },
+ text: () => task.name || 'Untitled task',
+ label: () => (
+ <span class="flex min-w-0 items-center gap-1">
+ <PrPriorityIcon priority={task.priority} class="shrink-0" />
+ <span
+ class={cn(
+ 'min-w-0 truncate',
+ task.closed && 'text-ink-muted line-through'
+ )}
+ >
+ {task.name || 'Untitled task'}
+ </span>
+ </span>
+ ),
+ }));
+ const companies = (): LinkItem[] =>
+ props.links.companyIds.map((id) => {
+ const text = () => props.companyName(id) ?? 'Customer';
+ return {
+ key: id,
+ content: { type: 'company', id },
+ text,
+ label: text,
+ };
+ });
+ const channels = (): LinkItem[] =>
+ props.links.channelIds.map((id) => ({
+ key: id,
+ content: { type: 'channel', id },
+ label: () => <ChannelName id={id} />,
+ }));
+
+ return (
+ <span class="flex min-w-0 shrink items-center gap-1">
+ <Show when={props.links.origin}>
+ {(origin) => <PrOriginBadge origin={origin()} onOpen={props.onOpen} />}
+ </Show>
+ <LinkPill
+ kind="Agent session"
+ icon={AgentIcon}
+ items={sessions()}
+ onOpen={props.onOpen}
+ />
+ <LinkPill
+ kind="Customer"
+ icon={BuildingsIcon}
+ items={companies()}
+ onOpen={props.onOpen}
+ />
+ <LinkPill
+ kind="Ticket"
+ icon={ListChecksIcon}
+ items={tasks()}
+ onOpen={props.onOpen}
+ />
+ <LinkPill
+ kind="Channel"
+ icon={HashIcon}
+ items={channels()}
+ onOpen={props.onOpen}
+ />
+ </span>
+ );
+}
+
+/** The mark of the tool a pull request was started from. */
+export function PrOriginIcon(props: { tool: PrOriginTool; class?: string }) {
+ const icon = () =>
+ match(props.tool)
+ .with('claude', () => ClaudeIcon)
+ .with('codex', () => CodexIcon)
+ .with('cursor', () => CursorIcon)
+ .with('macro', () => MacroIcon)
+ .with('copilot', () => GithubIcon)
+ .with('devin', 'jules', () => RobotIcon)
+ .exhaustive();
+ return (
+ <Dynamic
+ component={icon()}
+ class={cn('size-3 shrink-0', props.class)}
+ aria-hidden="true"
+ />
+ );
+}
+
+/** "Claude, from its branch name"; Macro sessions say which tool they ran. */
+export function prOriginDescription(origin: PrOrigin) {
+ const tool = PR_ORIGIN_LABELS[origin.tool];
+ if (origin.signal === 'agent-session')
+ return origin.tool === 'macro'
+ ? 'Started from a Macro agent session'
+ : `Started from ${tool} in a Macro agent session`;
+ return `Started from ${tool}, ${PR_ORIGIN_SIGNAL_LABELS[origin.signal]}`;
+}
+
+/**
+ * Where the pull request was started. Opens the originating session: the
+ * Macro agent session in a split, or the external session link in a tab.
+ */
+export function PrOriginBadge(props: { origin: PrOrigin; onOpen: OpenPrLink }) {
+ const target = () => props.origin.sessionId ?? props.origin.url;
+ const content = () => (
+ <>
+ <PrOriginIcon tool={props.origin.tool} />
+ <span class="min-w-0 truncate">
+ {PR_ORIGIN_LABELS[props.origin.tool]}
+ </span>
+ </>
+ );
+ return (
+ <Tooltip as="span" label={prOriginDescription(props.origin)}>
+ <Show
+ when={target()}
+ fallback={
+ <span
+ class="inline-flex h-6 min-w-0 max-w-32 items-center gap-1 rounded-full border border-edge bg-surface/50 px-1.5 text-xs font-medium text-ink-muted"
+ aria-label={prOriginDescription(props.origin)}
+ >
+ {content()}
+ </span>
+ }
+ >
+ <button
+ type="button"
+ class="inline-flex h-6 min-w-0 max-w-32 items-center gap-1 rounded-full border border-edge bg-surface/50 px-1.5 text-xs font-medium text-ink-muted hover:bg-hover hover:text-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent"
+ aria-label={`${prOriginDescription(props.origin)}. Open the session`}
+ {...isolate}
+ onClick={(event) => {
+ event.stopPropagation();
+ const sessionId = props.origin.sessionId;
+ if (sessionId)
+ props.onOpen({ type: 'agent', id: sessionId }, event.shiftKey);
+ else if (props.origin.url)
+ window.open(props.origin.url, '_blank', 'noopener,noreferrer');
+ }}
+ >
+ {content()}
+ </button>
+ </Show>
+ </Tooltip>
+ );
+}
+
+/** Space-holding placeholder while a row's links load, so pills don't shift. */
+export function PrLinksPending() {
+ return (
+ <span
+ aria-hidden="true"
+ class="h-5 w-12 shrink-0 animate-pulse rounded-full bg-ink/5"
+ />
+ );
+}
diff --git a/apps/web/src/features/block-pr/component/sidepanel/PrLinkedWorkSection.tsx b/apps/web/src/features/block-pr/component/sidepanel/PrLinkedWorkSection.tsx
new file mode 100644
index 0000000000..4711d7c7a0
--- /dev/null
+++ b/apps/web/src/features/block-pr/component/sidepanel/PrLinkedWorkSection.tsx
@@ -0,0 +1,210 @@
+import { SidePanel } from '@components/app/side-panel';
+import { useSplitLayout } from '@components/app/split-layout/layout';
+import type { SplitContent } from '@components/app/split-layout/layoutManager';
+import { useChannelName } from '@core/context/channels';
+import BuildingsIcon from '@phosphor/buildings.svg';
+import HashIcon from '@phosphor/hash.svg';
+import { Button, cn } from '@ui';
+import { type Component, For, type JSX, Match, Show, Switch } from 'solid-js';
+import {
+ PR_PRIORITY_LABELS,
+ type PrLinks,
+ priorityTaskName,
+} from '../../data/pr-links';
+import { prLinksTarget, usePrLinksQuery } from '../../queries/pr-links-query';
+import { PrOriginBadge, PrPriorityIcon, prOriginDescription } from '../PrLinks';
+
+function LinkRow(props: {
+ icon?: Component<{ class?: string }>;
+ leading?: JSX.Element;
+ content: SplitContent;
+ children: JSX.Element;
+ class?: string;
+}) {
+ const layout = useSplitLayout();
+ return (
+ <button
+ type="button"
+ class={cn(
+ 'flex h-6 w-full min-w-0 items-center gap-2 rounded text-left hover:text-ink',
+ props.class
+ )}
+ onClick={(event) =>
+ layout?.openWithSplit(props.content, {
+ preferNewSplit: event.shiftKey,
+ })
+ }
+ >
+ <Show when={props.icon} fallback={props.leading}>
+ {(icon) => {
+ const Icon = icon();
+ return <Icon class="size-3.5 shrink-0 text-ink-muted" />;
+ }}
+ </Show>
+ <span class="min-w-0 truncate">{props.children}</span>
+ </button>
+ );
+}
+
+function ChannelRow(props: { id: string }) {
+ const name = useChannelName(props.id, 'Channel');
+ return (
+ <LinkRow icon={HashIcon} content={{ type: 'channel', id: props.id }}>
+ {name()}
+ </LinkRow>
+ );
+}
+
+function LinkGroup(props: { label: string; children: JSX.Element }) {
+ return (
+ <div class="flex flex-col gap-0.5">
+ <div class="text-ink-placeholder">{props.label}</div>
+ {props.children}
+ </div>
+ );
+}
+
+function priorityDetail(links: PrLinks) {
+ const { priority } = links;
+ if (priority.id === 'none') return 'Link a task with a priority to set one';
+ if (priority.source === 'label') return 'From a GitHub label';
+ const task = priorityTaskName(links);
+ return task ? `From ${task}` : 'From a linked task';
+}
+
+/**
+ * The tickets, customers, and channels a pull request links to, and the
+ * priority they give it. Agent sessions have their own section.
+ */
+export function PrLinkedWorkSection(props: {
+ pullRequest?: {
+ owner: string;
+ repo: string;
+ number: number;
+ labels?: readonly { name: string }[] | null;
+ description?: string | null;
+ authorLogin?: string | null;
+ };
+}) {
+ const layout = useSplitLayout();
+ const target = () =>
+ props.pullRequest ? prLinksTarget(props.pullRequest) : undefined;
+ const query = usePrLinksQuery(() => {
+ const current = target();
+ return current ? [current] : [];
+ });
+ const links = () => {
+ const current = target();
+ return current ? query.linksFor(current.url) : undefined;
+ };
+
+ return (
+ <SidePanel.Section id="pr-linked-work" title="Linked work" order={25}>
+ <Switch>
+ <Match when={!props.pullRequest}>
+ <div class="text-ink-placeholder" role="status">
+ Loading pull request details…
+ </div>
+ </Match>
+ <Match when={query.isError()}>
+ <div class="text-ink-placeholder">Linked work couldn’t be loaded</div>
+ <Button variant="ghost" size="xs" onClick={() => void query.retry()}>
+ Retry
+ </Button>
+ </Match>
+ <Match when={links()}>
+ {(current) => (
+ <div class="flex flex-col gap-3 text-xs">
+ <Show when={current().origin}>
+ {(origin) => (
+ <LinkGroup label="Started from">
+ <div class="flex h-6 items-center">
+ <PrOriginBadge
+ origin={origin()}
+ onOpen={(content, newSplit) =>
+ layout?.openWithSplit(content, {
+ preferNewSplit: newSplit,
+ })
+ }
+ />
+ </div>
+ <div class="text-ink-placeholder">
+ {prOriginDescription(origin())}
+ </div>
+ </LinkGroup>
+ )}
+ </Show>
+ <LinkGroup label="Priority">
+ <div class="flex h-6 items-center gap-2">
+ <PrPriorityIcon
+ priority={current().priority.id}
+ class="shrink-0"
+ />
+ <span class="text-ink">
+ {PR_PRIORITY_LABELS[current().priority.id]}
+ </span>
+ </div>
+ <div class="text-ink-placeholder">
+ {priorityDetail(current())}
+ </div>
+ </LinkGroup>
+ <LinkGroup label="Tickets">
+ <Show
+ when={current().tasks.length > 0}
+ fallback={
+ <div class="text-ink-placeholder">
+ Mention a task in the pull request to link it
+ </div>
+ }
+ >
+ <For each={current().tasks}>
+ {(task) => (
+ <LinkRow
+ leading={
+ <PrPriorityIcon
+ priority={task.priority}
+ class="shrink-0"
+ />
+ }
+ content={{ type: 'md', id: task.id }}
+ class={cn(task.closed && 'text-ink-muted line-through')}
+ >
+ {task.name || 'Untitled task'}
+ </LinkRow>
+ )}
+ </For>
+ </Show>
+ </LinkGroup>
+ <Show when={current().companyIds.length > 0}>
+ <LinkGroup label="Customers">
+ <For each={current().companyIds}>
+ {(id) => (
+ <LinkRow
+ icon={BuildingsIcon}
+ content={{ type: 'company', id }}
+ >
+ {query.companyName(id) ?? 'Customer'}
+ </LinkRow>
+ )}
+ </For>
+ </LinkGroup>
+ </Show>
+ <Show when={current().channelIds.length > 0}>
+ <LinkGroup label="Channels">
+ <For each={current().channelIds}>
+ {(id) => <ChannelRow id={id} />}
+ </For>
+ </LinkGroup>
+ </Show>
+ </div>
+ )}
+ </Match>
+ <Match when={true}>
+ <div class="text-ink-placeholder" role="status">
+ Loading linked work…
+ </div>
+ </Match>
+ </Switch>
+ </SidePanel.Section>
+ );
+}
diff --git a/apps/web/src/features/block-pr/component/sidepanel/PrSidePanelSections.tsx b/apps/web/src/features/block-pr/component/sidepanel/PrSidePanelSections.tsx
index 5ff76f4514..07b1238e16 100644
--- a/apps/web/src/features/block-pr/component/sidepanel/PrSidePanelSections.tsx
+++ b/apps/web/src/features/block-pr/component/sidepanel/PrSidePanelSections.tsx
@@ -5,6 +5,7 @@ import {
import type { GithubPullRequestWithDetails } from '@queries/storage/github-pull-requests';
import { Show } from 'solid-js';
import { PrAgentSessionsSection } from './PrAgentSessionsSection';
+import { PrLinkedWorkSection } from './PrLinkedWorkSection';
export function PrSidePanelSections(props: {
enrichment?: GithubPullRequestWithDetails;
@@ -47,6 +48,8 @@ export function PrSidePanelSections(props: {
<GithubPullRequestChecksContent enrichment={props.enrichment} />
</SidePanel.Section>
+ <PrLinkedWorkSection pullRequest={props.enrichment} />
+
<PrAgentSessionsSection
url={props.enrichment?.url}
prStatus={props.status}
diff --git a/apps/web/src/features/block-pr/data/pr-links.test.ts b/apps/web/src/features/block-pr/data/pr-links.test.ts
new file mode 100644
index 0000000000..22c3dff9df
--- /dev/null
+++ b/apps/web/src/features/block-pr/data/pr-links.test.ts
@@ -0,0 +1,95 @@
+import { describe, expect, it } from 'vitest';
+import {
+ buildPrLinks,
+ derivePriority,
+ hasPrLink,
+ type PrLinkTask,
+ priorityFromLabelName,
+} from './pr-links';
+
+const task = (overrides: Partial<PrLinkTask>): PrLinkTask => ({
+ id: 'task',
+ name: 'Task',
+ priority: 'none',
+ closed: false,
+ companyIds: [],
+ ...overrides,
+});
+
+describe('priorityFromLabelName', () => {
+ it.each([
+ ['P0', 'urgent'],
+ ['p1', 'high'],
+ ['priority: p2', 'medium'],
+ ['P3', 'low'],
+ ['priority: high', 'high'],
+ ['Priority/Critical', 'urgent'],
+ ['urgent', 'urgent'],
+ ] as const)('reads %s as %s', (name, priority) => {
+ expect(priorityFromLabelName(name)).toBe(priority);
+ });
+
+ it.each(['bug', 'p4', 'high-risk', 'enhancement'])('ignores %s', (name) => {
+ expect(priorityFromLabelName(name)).toBeNull();
+ });
+});
+
+describe('derivePriority', () => {
+ it('takes the most urgent open task over closed ones and labels', () => {
+ expect(
+ derivePriority(
+ [
+ task({ id: 'done', priority: 'urgent', closed: true }),
+ task({ id: 'low', priority: 'low' }),
+ task({ id: 'high', priority: 'high' }),
+ ],
+ [{ name: 'P0' }]
+ )
+ ).toEqual({ id: 'high', source: 'task', taskId: 'high' });
+ });
+
+ it('falls back to closed tasks, then to GitHub labels', () => {
+ expect(
+ derivePriority(
+ [task({ id: 'done', priority: 'medium', closed: true })],
+ []
+ )
+ ).toEqual({ id: 'medium', source: 'task', taskId: 'done' });
+ expect(
+ derivePriority([task({})], [{ name: 'bug' }, { name: 'P1' }])
+ ).toEqual({ id: 'high', source: 'label' });
+ expect(derivePriority([], [])).toEqual({ id: 'none' });
+ });
+});
+
+describe('buildPrLinks', () => {
+ it('collects channels and customers from sessions and tasks', () => {
+ const links = buildPrLinks({
+ sessions: [
+ { id: 's1', source: 'agent', parent: { type: 'channel', id: 'c1' } },
+ { id: 's2', source: 'user', parent: { type: 'channel', id: 'c1' } },
+ {
+ id: 's3',
+ source: 'user',
+ parent: { type: 'crm_company', id: 'acme' },
+ },
+ ],
+ tasks: [
+ task({ id: 'closed', closed: true, companyIds: ['globex'] }),
+ task({ id: 'open', priority: 'low', companyIds: ['acme'] }),
+ ],
+ labels: [],
+ });
+
+ expect(links.channelIds).toEqual(['c1']);
+ expect(links.companyIds).toEqual(['acme', 'globex']);
+ expect(links.tasks.map((linked) => linked.id)).toEqual(['open', 'closed']);
+ expect(links.priority).toEqual({
+ id: 'low',
+ source: 'task',
+ taskId: 'open',
+ });
+ expect(hasPrLink(links, 'agent')).toBe(true);
+ expect(hasPrLink(links, 'customer')).toBe(true);
+ });
+});
diff --git a/apps/web/src/features/block-pr/data/pr-links.ts b/apps/web/src/features/block-pr/data/pr-links.ts
new file mode 100644
index 0000000000..6c6f868b9e
--- /dev/null
+++ b/apps/web/src/features/block-pr/data/pr-links.ts
@@ -0,0 +1,189 @@
+import { match } from 'ts-pattern';
+import { detectPrOrigin, type PrOrigin } from './pr-origin';
+
+export type PrPriorityId = 'urgent' | 'high' | 'medium' | 'low' | 'none';
+
+/** Where a pull request's priority came from. */
+export type PrPriority =
+ | { id: 'none' }
+ | {
+ id: Exclude<PrPriorityId, 'none'>;
+ source: 'task';
+ /** The linked task whose Priority this is. */
+ taskId: string;
+ }
+ | { id: Exclude<PrPriorityId, 'none'>; source: 'label' };
+
+/** The entity whose thread an agent session was started from. */
+export type PrLinkSessionParent = {
+ type: 'channel' | 'document' | 'crm_company' | 'crm_contact' | 'other';
+ id: string;
+};
+
+export type PrLinkSession = {
+ id: string;
+ /** `agent` when the session's agent opened the pull request. */
+ source: 'agent' | 'user';
+ parent?: PrLinkSessionParent;
+ /** The session's harness slug, for sessions whose agent opened the PR. */
+ harness?: string;
+};
+
+/** A task the pull request references: a customer ticket when it names a company. */
+export type PrLinkTask = {
+ id: string;
+ name: string;
+ priority: PrPriorityId;
+ closed: boolean;
+ /** CRM companies in the task's Companies property. */
+ companyIds: string[];
+};
+
+export type GithubLabelLike = { name: string };
+
+/** Everything one pull request row links to. */
+export type PrLinks = {
+ sessions: PrLinkSession[];
+ /** Linked tasks, open first, most urgent first. */
+ tasks: PrLinkTask[];
+ channelIds: string[];
+ companyIds: string[];
+ priority: PrPriority;
+ /** Where the pull request was started, when anything gives it away. */
+ origin?: PrOrigin;
+};
+
+export type PrLinkKind = 'agent' | 'ticket' | 'customer' | 'channel';
+
+/** Most to least urgent; `none` sorts last. */
+export const PR_PRIORITY_IDS: readonly PrPriorityId[] = [
+ 'urgent',
+ 'high',
+ 'medium',
+ 'low',
+ 'none',
+];
+
+export const PR_PRIORITY_LABELS: Record<PrPriorityId, string> = {
+ urgent: 'Urgent',
+ high: 'High',
+ medium: 'Medium',
+ low: 'Low',
+ none: 'No priority',
+};
+
+const PRIORITY_RANK: Record<PrPriorityId, number> = {
+ urgent: 4,
+ high: 3,
+ medium: 2,
+ low: 1,
+ none: 0,
+};
+
+/**
+ * GitHub label names teams use for priority: `P0`–`P3`, `priority: high`,
+ * `urgent`, `critical`. Anything else is not a priority label.
+ */
+export function priorityFromLabelName(
+ name: string
+): Exclude<PrPriorityId, 'none'> | null {
+ const label = name.trim().toLowerCase();
+ const level = label.match(/^(?:priority[\s:/_-]*)?p([0-3])$/)?.[1];
+ if (level) return (['urgent', 'high', 'medium', 'low'] as const)[+level];
+ if (label === 'urgent' || label === 'critical') return 'urgent';
+ const named = label.match(
+ /^priority[\s:/_-]*(urgent|critical|high|medium|low)$/
+ )?.[1];
+ if (!named) return null;
+ return named === 'critical'
+ ? 'urgent'
+ : (named as Exclude<PrPriorityId, 'none'>);
+}
+
+const higher = (a: PrPriority, b: PrPriority) =>
+ PRIORITY_RANK[b.id] > PRIORITY_RANK[a.id] ? b : a;
+
+/**
+ * A pull request's priority: the most urgent linked task's, else the most
+ * urgent GitHub priority label's. Open tasks outrank closed ones, so a PR
+ * stays labeled by the work it still unblocks.
+ */
+export function derivePriority(
+ tasks: readonly PrLinkTask[],
+ labels: readonly GithubLabelLike[]
+): PrPriority {
+ const open = tasks.filter((task) => !task.closed);
+ const candidates = open.length > 0 ? open : tasks;
+ let priority: PrPriority = { id: 'none' };
+ for (const task of candidates)
+ if (task.priority !== 'none')
+ priority = higher(priority, {
+ id: task.priority,
+ source: 'task',
+ taskId: task.id,
+ });
+ if (priority.id !== 'none') return priority;
+ for (const label of labels) {
+ const id = priorityFromLabelName(label.name);
+ if (id) priority = higher(priority, { id, source: 'label' });
+ }
+ return priority;
+}
+
+export const comparePriority = (a: PrPriorityId, b: PrPriorityId) =>
+ PRIORITY_RANK[b] - PRIORITY_RANK[a];
+
+const unique = (values: Iterable<string>) => [...new Set(values)];
+
+/**
+ * Join a pull request's linked sessions and tasks into the links its row
+ * shows. Channels and customers come from where each session was started and
+ * from each task's Companies property.
+ */
+export function buildPrLinks(input: {
+ sessions: readonly PrLinkSession[];
+ tasks: readonly PrLinkTask[];
+ labels: readonly GithubLabelLike[];
+ description?: string;
+ headBranch?: string;
+ authorLogin?: string;
+}): PrLinks {
+ const tasks = [...input.tasks].sort(
+ (a, b) =>
+ Number(a.closed) - Number(b.closed) ||
+ comparePriority(a.priority, b.priority)
+ );
+ return {
+ sessions: [...input.sessions],
+ tasks,
+ channelIds: unique(
+ input.sessions.flatMap((session) =>
+ session.parent?.type === 'channel' ? [session.parent.id] : []
+ )
+ ),
+ companyIds: unique([
+ ...tasks.flatMap((task) => task.companyIds),
+ ...input.sessions.flatMap((session) =>
+ session.parent?.type === 'crm_company' ? [session.parent.id] : []
+ ),
+ ]),
+ priority: derivePriority(tasks, input.labels),
+ origin: detectPrOrigin(input),
+ };
+}
+
+/** Whether any link of `kind` exists, for the Reviews link filter. */
+export const hasPrLink = (links: PrLinks, kind: PrLinkKind) =>
+ match(kind)
+ .with('agent', () => links.sessions.length > 0)
+ .with('ticket', () => links.tasks.length > 0)
+ .with('customer', () => links.companyIds.length > 0)
+ .with('channel', () => links.channelIds.length > 0)
+ .exhaustive();
+
+/** The name of the task a pull request's priority comes from, if any. */
+export function priorityTaskName(links: PrLinks): string | undefined {
+ const { priority } = links;
+ if (priority.id === 'none' || priority.source !== 'task') return undefined;
+ return links.tasks.find((task) => task.id === priority.taskId)?.name;
+}
diff --git a/apps/web/src/features/block-pr/data/pr-origin.test.ts b/apps/web/src/features/block-pr/data/pr-origin.test.ts
new file mode 100644
index 0000000000..6118f37697
--- /dev/null
+++ b/apps/web/src/features/block-pr/data/pr-origin.test.ts
@@ -0,0 +1,104 @@
+import { describe, expect, it } from 'vitest';
+import { detectPrOrigin, toolForHarness } from './pr-origin';
+
+describe('detectPrOrigin', () => {
+ it('prefers the Macro agent session that opened the pull request', () => {
+ expect(
+ detectPrOrigin({
+ description: 'https://claude.ai/code/session_123',
+ sessions: [
+ { id: 'linked', source: 'user', harness: 'cursor' },
+ { id: 'opener', source: 'agent', harness: 'codex-cloud' },
+ ],
+ })
+ ).toEqual({ tool: 'codex', signal: 'agent-session', sessionId: 'opener' });
+ });
+
+ it.each([
+ [
+ 'Summary\n\nhttps://claude.ai/code/session_014v5t2656hDgbY8N9VFDZsN',
+ 'claude',
+ 'https://claude.ai/code/session_014v5t2656hDgbY8N9VFDZsN',
+ ],
+ [
+ 'Codex Task: https://chatgpt.com/codex/tasks/task_e_68a1b2',
+ 'codex',
+ 'https://chatgpt.com/codex/tasks/task_e_68a1b2',
+ ],
+ [
+ '[Open in Cursor](https://cursor.com/agents?id=bc-123abc)',
+ 'cursor',
+ 'https://cursor.com/agents?id=bc-123abc',
+ ],
+ [
+ 'Devin run: https://app.devin.ai/sessions/0a1b2c3d',
+ 'devin',
+ 'https://app.devin.ai/sessions/0a1b2c3d',
+ ],
+ [
+ 'From https://macro.com/app/agent/0198a4cc-e138-7670',
+ 'macro',
+ 'https://macro.com/app/agent/0198a4cc-e138-7670',
+ ],
+ ] as const)('reads a session link in %j', (description, tool, url) => {
+ expect(detectPrOrigin({ description })).toEqual({
+ tool,
+ signal: 'session-link',
+ url,
+ });
+ });
+
+ it('reads footers and trailers without a link', () => {
+ expect(
+ detectPrOrigin({
+ description:
+ '🤖 Generated with [Claude Code](https://claude.com/claude-code)',
+ })
+ ).toEqual({ tool: 'claude', signal: 'description' });
+ expect(
+ detectPrOrigin({
+ description: 'Co-Authored-By: Claude <[email protected]>',
+ })
+ ).toEqual({ tool: 'claude', signal: 'description' });
+ });
+
+ it('falls back to the bot author, then the branch name', () => {
+ expect(
+ detectPrOrigin({ authorLogin: 'Copilot', headBranch: 'claude/x' })
+ ).toEqual({ tool: 'copilot', signal: 'author' });
+ expect(
+ detectPrOrigin({ authorLogin: 'devin-ai-integration[bot]' })
+ ).toEqual({ tool: 'devin', signal: 'author' });
+ expect(detectPrOrigin({ headBranch: 'cursor/fix-login-1a2b' })).toEqual({
+ tool: 'cursor',
+ signal: 'branch',
+ });
+ expect(detectPrOrigin({ headBranch: 'codex/add-filters' })).toEqual({
+ tool: 'codex',
+ signal: 'branch',
+ });
+ });
+
+ it('finds nothing for a pull request a person opened by hand', () => {
+ expect(
+ detectPrOrigin({
+ description: 'Fixes the claude.ai settings page copy.',
+ authorLogin: 'octocat',
+ headBranch: 'octocat/fix-copy',
+ })
+ ).toBeUndefined();
+ });
+});
+
+describe('toolForHarness', () => {
+ it.each([
+ ['claude-code', 'claude'],
+ ['claude-cloud', 'claude'],
+ ['codex-cloud', 'codex'],
+ ['cursor', 'cursor'],
+ ['macrod', 'macro'],
+ [undefined, 'macro'],
+ ] as const)('maps %s to %s', (harness, tool) => {
+ expect(toolForHarness(harness)).toBe(tool);
+ });
+});
diff --git a/apps/web/src/features/block-pr/data/pr-origin.ts b/apps/web/src/features/block-pr/data/pr-origin.ts
new file mode 100644
index 0000000000..7d0e10b85f
--- /dev/null
+++ b/apps/web/src/features/block-pr/data/pr-origin.ts
@@ -0,0 +1,159 @@
+/** The tool a pull request was started from. */
+export type PrOriginTool =
+ | 'claude'
+ | 'codex'
+ | 'cursor'
+ | 'devin'
+ | 'copilot'
+ | 'jules'
+ | 'macro';
+
+/** What gave the origin away, strongest first. */
+export type PrOriginSignal =
+ | 'agent-session'
+ | 'session-link'
+ | 'description'
+ | 'author'
+ | 'branch';
+
+export type PrOrigin = {
+ tool: PrOriginTool;
+ signal: PrOriginSignal;
+ /** The session the pull request came from, when one is linked. */
+ url?: string;
+ /** The Macro agent session that opened the pull request. */
+ sessionId?: string;
+};
+
+export const PR_ORIGIN_TOOLS: readonly PrOriginTool[] = [
+ 'claude',
+ 'codex',
+ 'cursor',
+ 'devin',
+ 'copilot',
+ 'jules',
+ 'macro',
+];
+
+export const PR_ORIGIN_LABELS: Record<PrOriginTool, string> = {
+ claude: 'Claude',
+ codex: 'Codex',
+ cursor: 'Cursor',
+ devin: 'Devin',
+ copilot: 'Copilot',
+ jules: 'Jules',
+ macro: 'Macro',
+};
+
+export const PR_ORIGIN_SIGNAL_LABELS: Record<PrOriginSignal, string> = {
+ 'agent-session': 'opened by a Macro agent session',
+ 'session-link': 'session linked in the description',
+ description: 'named in the description',
+ author: 'opened by its bot account',
+ branch: 'from its branch name',
+};
+
+/** The tool behind a Macro agent harness slug. */
+export function toolForHarness(harness: string | undefined): PrOriginTool {
+ if (!harness) return 'macro';
+ if (harness.startsWith('claude')) return 'claude';
+ if (harness.startsWith('codex')) return 'codex';
+ if (harness.startsWith('cursor')) return 'cursor';
+ return 'macro';
+}
+
+/** Session links agents leave in the pull requests they open. */
+const SESSION_LINKS: readonly [PrOriginTool, RegExp][] = [
+ ['claude', /https:\/\/claude\.ai\/code\/[\w-]+/i],
+ ['codex', /https:\/\/chatgpt\.com\/codex\/tasks\/[\w-]+/i],
+ [
+ 'cursor',
+ /https:\/\/(?:www\.)?cursor\.com\/(?:agents|background-agent)[^\s)\]"'>]*/i,
+ ],
+ ['devin', /https:\/\/app\.devin\.ai\/sessions\/[\w-]+/i],
+ ['jules', /https:\/\/jules\.google\.com\/[^\s)\]"'>]+/i],
+ ['macro', /https:\/\/(?:[\w-]+\.)?macro\.com\/app\/agent\/[\w-]+/i],
+];
+
+/** Footers and trailers that name the tool without a session link. */
+const DESCRIPTION_MARKS: readonly [PrOriginTool, RegExp][] = [
+ ['claude', /generated with \[?claude code|co-authored-by:\s*claude\b/i],
+ ['codex', /\bcodex task\b|chatgpt\.com\/codex/i],
+ ['cursor', /cursor\.com\/(?:agents|background-agent)|\bcursor agent\b/i],
+ ['devin', /\bdevin run\b|app\.devin\.ai/i],
+ ['copilot', /\bcopilot coding agent\b/i],
+ ['jules', /jules\.google\.com/i],
+];
+
+/** Bot accounts that open pull requests for these tools. */
+const AUTHORS: readonly [PrOriginTool, RegExp][] = [
+ ['copilot', /^(?:copilot|copilot-swe-agent)(?:\[bot\])?$/i],
+ ['devin', /^devin-ai-integration(?:\[bot\])?$/i],
+ ['cursor', /^cursor(?:agent)?(?:\[bot\])?$/i],
+ ['codex', /^chatgpt-codex-connector(?:\[bot\])?$/i],
+ ['claude', /^claude(?:\[bot\])?$/i],
+ ['jules', /^google-labs-jules(?:\[bot\])?$/i],
+];
+
+/** Branch prefixes these tools name their branches with. */
+const BRANCHES: readonly [PrOriginTool, RegExp][] = [
+ ['claude', /^claude\//i],
+ ['codex', /^codex\//i],
+ ['cursor', /^cursor\//i],
+ ['devin', /^devin\//i],
+ ['copilot', /^copilot\//i],
+ ['jules', /^jules[-/]/i],
+];
+
+const firstMatch = (
+ patterns: readonly [PrOriginTool, RegExp][],
+ value: string | undefined
+) => {
+ if (!value) return undefined;
+ for (const [tool, pattern] of patterns) {
+ const found = value.match(pattern);
+ if (found) return { tool, match: found[0] };
+ }
+ return undefined;
+};
+
+/**
+ * Where a pull request was started, from the strongest signal it carries: a
+ * Macro agent session that opened it, a session link or footer in its
+ * description, the bot account that opened it, or its branch name. Pull
+ * requests opened outside Macro are recognized the same way.
+ */
+export function detectPrOrigin(input: {
+ description?: string | null;
+ headBranch?: string | null;
+ authorLogin?: string | null;
+ /** Linked Macro agent sessions; only one whose agent opened the PR counts. */
+ sessions?: readonly {
+ id: string;
+ source: 'agent' | 'user';
+ harness?: string;
+ }[];
+}): PrOrigin | undefined {
+ const opener = input.sessions?.find((session) => session.source === 'agent');
+ if (opener)
+ return {
+ tool: toolForHarness(opener.harness),
+ signal: 'agent-session',
+ sessionId: opener.id,
+ };
+
+ const description = input.description ?? undefined;
+ const link = firstMatch(SESSION_LINKS, description);
+ if (link) return { tool: link.tool, signal: 'session-link', url: link.match };
+
+ const mark = firstMatch(DESCRIPTION_MARKS, description);
+ if (mark) return { tool: mark.tool, signal: 'description' };
+
+ const author = firstMatch(AUTHORS, input.authorLogin ?? undefined);
+ if (author) return { tool: author.tool, signal: 'author' };
+
+ const branch = firstMatch(BRANCHES, input.headBranch ?? undefined);
+ if (branch) return { tool: branch.tool, signal: 'branch' };
+
+ return undefined;
+}
diff --git a/apps/web/src/features/block-pr/queries/pr-links-query.ts b/apps/web/src/features/block-pr/queries/pr-links-query.ts
new file mode 100644
index 0000000000..e0f3efe9a8
--- /dev/null
+++ b/apps/web/src/features/block-pr/queries/pr-links-query.ts
@@ -0,0 +1,295 @@
+import { clause, compileClause, confine } from '@app/features/soup/filters';
+import { throwOnErr } from '@core/util/result';
+import {
+ type EntityData,
+ getTaskReferencedEntityIds,
+ isTaskEntity,
+} from '@entity';
+import {
+ getTaskPriorityOptionId,
+ isTaskClosed,
+} from '@entity/utils/task-properties';
+import { PROPERTY_OPTION_IDS, SYSTEM_PROPERTY_IDS } from '@property/constants';
+import { agentSessionPullRequestKeys } from '@queries/agent-session/keys';
+import {
+ isDisplayableSoupItem,
+ mapApiSoupItemToEntity,
+} from '@queries/soup/transform-utils';
+import { agentHarnessServiceClient } from '@service-agent-harness/client';
+import type { MessageParent } from '@service-agent-harness/generated/schemas';
+import { storageServiceClient } from '@service-storage/client';
+import { useQueries } from '@tanstack/solid-query';
+import { type Accessor, createMemo } from 'solid-js';
+import {
+ buildPrLinks,
+ type PrLinkSession,
+ type PrLinkSessionParent,
+ type PrLinks,
+ type PrLinkTask,
+ type PrPriorityId,
+} from '../data/pr-links';
+import { prHtmlUrl, toGithubKey } from '../util/prKey';
+
+/** The batch endpoints answer at most one Reviews page at a time. */
+const LINKS_CHUNK_SIZE = 100;
+const LINKS_STALE_TIME = 60_000;
+
+const PRIORITY_BY_OPTION_ID: Record<string, PrPriorityId> = {
+ [PROPERTY_OPTION_IDS.PRIORITY.URGENT]: 'urgent',
+ [PROPERTY_OPTION_IDS.PRIORITY.HIGH]: 'high',
+ [PROPERTY_OPTION_IDS.PRIORITY.MEDIUM]: 'medium',
+ [PROPERTY_OPTION_IDS.PRIORITY.LOW]: 'low',
+};
+
+/** A pull request whose links to look up, with what its origin is read from. */
+export type PrLinksTarget = {
+ url: string;
+ githubKey: string;
+ labels: readonly { name: string }[];
+ description?: string;
+ headBranch?: string;
+ authorLogin?: string;
+};
+
+export const prLinksTarget = (pullRequest: {
+ owner: string;
+ repo: string;
+ number: number;
+ labels?: readonly { name: string }[] | null;
+ description?: string | null;
+ headBranch?: string | null;
+ authorLogin?: string | null;
+}): PrLinksTarget => ({
+ url: prHtmlUrl(pullRequest),
+ githubKey: toGithubKey(pullRequest),
+ labels: pullRequest.labels ?? [],
+ description: pullRequest.description ?? undefined,
+ headBranch: pullRequest.headBranch ?? undefined,
+ authorLogin: pullRequest.authorLogin ?? undefined,
+});
+
+const sessionParent = (
+ parent: MessageParent | null | undefined
+): PrLinkSessionParent | undefined => {
+ if (!parent) return undefined;
+ switch (parent.type) {
+ case 'channel':
+ case 'document':
+ case 'crm_company':
+ case 'crm_contact':
+ return { type: parent.type, id: parent.id };
+ default:
+ return { type: 'other', id: parent.id };
+ }
+};
+
+/** The Soup id field of each entity target fetched by id. */
+const SOUP_ID_FIELDS = {
+ df: 'documentId',
+ ccf: 'crmCompanyId',
+ asf: 'agentSessionId',
+} as const;
+
+/** Soup rows for exactly `ids` of one entity target, with their properties. */
+async function fetchSoupEntitiesById(
+ target: keyof typeof SOUP_ID_FIELDS,
+ ids: readonly string[]
+): Promise<EntityData[]> {
+ if (ids.length === 0) return [];
+ const field = SOUP_ID_FIELDS[target];
+ const page = await throwOnErr(() =>
+ storageServiceClient.getSoupAstItems({
+ params: {},
+ body: {
+ ...compileClause(
+ confine({
+ [target]: clause.or(...ids.map((id) => clause.eq(field, id))),
+ })
+ ),
+ limit: ids.length,
+ expand: true,
+ },
+ })
+ );
+ return page.items.filter(isDisplayableSoupItem).map(mapApiSoupItemToEntity);
+}
+
+const toLinkTask = (entity: EntityData): PrLinkTask | undefined => {
+ if (!isTaskEntity(entity)) return undefined;
+ const optionId = getTaskPriorityOptionId(entity);
+ return {
+ id: entity.id,
+ name: entity.name,
+ priority: (optionId && PRIORITY_BY_OPTION_ID[optionId]) || 'none',
+ closed: isTaskClosed(entity),
+ companyIds: getTaskReferencedEntityIds(
+ entity,
+ SYSTEM_PROPERTY_IDS.COMPANIES
+ ),
+ };
+};
+
+export type PrLinkCompany = { id: string; name: string };
+
+export type PrLinksPage = {
+ /** Links per pull request URL. */
+ links: Map<string, PrLinks>;
+ /** Names of the customers the links name, for the ones the viewer can see. */
+ companies: Map<string, PrLinkCompany>;
+};
+
+/**
+ * Agent sessions, tasks, channels, and customers linked to up to 100 pull
+ * requests, with each pull request's priority.
+ */
+export async function fetchPrLinks(
+ pullRequests: readonly PrLinksTarget[]
+): Promise<PrLinksPage> {
+ const [sessionsResponse, tasksResponse] = await Promise.all([
+ throwOnErr(() =>
+ agentHarnessServiceClient.sessionsForPullRequests(
+ pullRequests.map((pullRequest) => pullRequest.url)
+ )
+ ),
+ throwOnErr(() =>
+ storageServiceClient.getGithubPullRequestTasks({
+ githubKeys: pullRequests.map((pullRequest) => pullRequest.githubKey),
+ })
+ ),
+ ]);
+
+ const sessionsByUrl = new Map<string, PrLinkSession[]>(
+ sessionsResponse.pullRequests.map((pullRequest) => [
+ pullRequest.url,
+ pullRequest.sessions.map((session) => ({
+ id: session.sessionId,
+ source: session.source,
+ parent: sessionParent(session.threadParent),
+ })),
+ ])
+ );
+ const taskIdsByKey = new Map<string, string[]>(
+ tasksResponse.pullRequests.map((pullRequest) => [
+ pullRequest.githubKey,
+ pullRequest.taskIds,
+ ])
+ );
+ // A session started from a task's thread links that task too.
+ const taskIdsFor = (pullRequest: PrLinksTarget) => [
+ ...new Set([
+ ...(taskIdsByKey.get(pullRequest.githubKey) ?? []),
+ ...(sessionsByUrl.get(pullRequest.url) ?? []).flatMap((session) =>
+ session.parent?.type === 'document' ? [session.parent.id] : []
+ ),
+ ]),
+ ];
+
+ const taskIds = [...new Set(pullRequests.flatMap(taskIdsFor))];
+ // The harness of a session whose agent opened a PR names the tool it ran.
+ const openerIds = [
+ ...new Set(
+ [...sessionsByUrl.values()].flatMap((sessions) =>
+ sessions.flatMap((session) =>
+ session.source === 'agent' ? [session.id] : []
+ )
+ )
+ ),
+ ];
+ const [taskEntities, openerEntities] = await Promise.all([
+ fetchSoupEntitiesById('df', taskIds),
+ fetchSoupEntitiesById('asf', openerIds),
+ ]);
+ const tasks = new Map(
+ taskEntities.flatMap((entity) => {
+ const task = toLinkTask(entity);
+ return task ? [[task.id, task] as const] : [];
+ })
+ );
+ const harnesses = new Map(
+ openerEntities.flatMap((entity) =>
+ entity.type === 'agent_session' && entity.harness
+ ? [[entity.id, entity.harness] as const]
+ : []
+ )
+ );
+
+ const links = new Map(
+ pullRequests.map((pullRequest) => [
+ pullRequest.url,
+ buildPrLinks({
+ sessions: (sessionsByUrl.get(pullRequest.url) ?? []).map((session) => ({
+ ...session,
+ harness: harnesses.get(session.id),
+ })),
+ tasks: taskIdsFor(pullRequest).flatMap((id) => tasks.get(id) ?? []),
+ labels: pullRequest.labels,
+ description: pullRequest.description,
+ headBranch: pullRequest.headBranch,
+ authorLogin: pullRequest.authorLogin,
+ }),
+ ])
+ );
+
+ const companyIds = [
+ ...new Set([...links.values()].flatMap((link) => link.companyIds)),
+ ];
+ const companies = new Map(
+ (await fetchSoupEntitiesById('ccf', companyIds)).map((entity) => [
+ entity.id,
+ { id: entity.id, name: entity.name },
+ ])
+ );
+ // Customers the viewer cannot see are not shown.
+ for (const link of links.values())
+ link.companyIds = link.companyIds.filter((id) => companies.has(id));
+
+ return { links, companies };
+}
+
+const chunk = <T>(items: readonly T[], size: number): T[][] =>
+ Array.from({ length: Math.ceil(items.length / size) }, (_, index) =>
+ items.slice(index * size, (index + 1) * size)
+ );
+
+/**
+ * Links for each pull request, fetched one page-sized chunk at a time so a
+ * list that loads another page reuses the earlier chunks' cache entries.
+ */
+export function usePrLinksQuery(
+ pullRequests: Accessor<readonly PrLinksTarget[]>
+) {
+ const chunks = createMemo(() => chunk(pullRequests(), LINKS_CHUNK_SIZE));
+ const queries = useQueries(() => ({
+ queries: chunks().map((pullRequests) => ({
+ queryKey: agentSessionPullRequestKeys.linksForPullRequests(
+ pullRequests.map((pullRequest) => pullRequest.url)
+ ).queryKey,
+ queryFn: () => fetchPrLinks(pullRequests),
+ staleTime: LINKS_STALE_TIME,
+ })),
+ }));
+
+ const page = createMemo<PrLinksPage>(() => {
+ const links = new Map<string, PrLinks>();
+ const companies = new Map<string, PrLinkCompany>();
+ for (const query of queries) {
+ if (!query.isSuccess) continue;
+ for (const [url, link] of query.data.links) links.set(url, link);
+ for (const [id, company] of query.data.companies)
+ companies.set(id, company);
+ }
+ return { links, companies };
+ });
+
+ return {
+ /** Links for the pull request at `url`, or `undefined` while they load. */
+ linksFor: (url: string): PrLinks | undefined => page().links.get(url),
+ companyName: (id: string) => page().companies.get(id)?.name,
+ isLoading: () => queries.some((query) => query.isPending),
+ isError: () => queries.some((query) => query.isError),
+ retry: () =>
+ Promise.all(
+ queries.filter((query) => query.isError).map((query) => query.refetch())
+ ),
+ };
+}
diff --git a/apps/web/src/features/entity/composed/ListEntity.tsx b/apps/web/src/features/entity/composed/ListEntity.tsx
index 5d20ebeec7..cafafbcb45 100644
--- a/apps/web/src/features/entity/composed/ListEntity.tsx
+++ b/apps/web/src/features/entity/composed/ListEntity.tsx
@@ -98,6 +98,8 @@ export function ListEntity(props: ListEntityProps) {
const soupView = useMaybeSoupView();
const rowActions = children(() => props.actions);
const leadingAction = children(() => props.leadingAction);
+ const titleLeading = children(() => props.titleLeading);
+ const meta = children(() => props.meta);
const scheduleStatus = children(() => props.scheduleStatus);
const unread = () => unreadFilterFn(props.entity);
@@ -156,6 +158,8 @@ export function ListEntity(props: ListEntityProps) {
entity: props.entity,
actions: !isTouchDevice() ? rowActions() : undefined,
leadingAction: !isTouchDevice() ? leadingAction() : undefined,
+ titleLeading: titleLeading(),
+ meta: meta(),
scheduleStatus: scheduleStatus(),
authorDisplayName: props.authorDisplayName,
checked: props.checked,
diff --git a/apps/web/src/features/entity/composed/list-entity/narrow-layout.tsx b/apps/web/src/features/entity/composed/list-entity/narrow-layout.tsx
index 58778270b3..baa342450b 100644
--- a/apps/web/src/features/entity/composed/list-entity/narrow-layout.tsx
+++ b/apps/web/src/features/entity/composed/list-entity/narrow-layout.tsx
@@ -56,6 +56,7 @@ export function NarrowLayout(props: LayoutProps) {
<div class="size-4 shrink-0">
<Entity.Icon entity={props.entity} streamState={props.streamState} />
</div>
+ {props.titleLeading}
<Show
when={isChannelMessageEntity(props.entity) && props.entity}
fallback={<Entity.Title entity={props.entity} />}
diff --git a/apps/web/src/features/entity/composed/list-entity/shared.tsx b/apps/web/src/features/entity/composed/list-entity/shared.tsx
index d24fd53662..80aea3026c 100644
--- a/apps/web/src/features/entity/composed/list-entity/shared.tsx
+++ b/apps/web/src/features/entity/composed/list-entity/shared.tsx
@@ -32,6 +32,10 @@ export interface BaseListEntityProps<E extends EntityData = EntityData> {
actions?: JSX.Element;
/** Persistent status/action immediately before the timestamp. */
leadingAction?: JSX.Element;
+ /** Caller-owned marker between the icon and the title, e.g. a priority. */
+ titleLeading?: JSX.Element;
+ /** Caller-owned metadata ahead of the entity's own, in wide rows only. */
+ meta?: JSX.Element;
hideContentHits?: boolean;
/** Resolved app display name for a linked GitHub PR author, when available. */
authorDisplayName?: string;
@@ -66,6 +70,8 @@ export interface LayoutProps {
scheduleStatus?: JSX.Element;
actions?: JSX.Element;
leadingAction?: JSX.Element;
+ titleLeading?: JSX.Element;
+ meta?: JSX.Element;
checked?: boolean;
authorDisplayName?: string;
hideCheckbox?: boolean;
diff --git a/apps/web/src/features/entity/composed/list-entity/wide-layout.tsx b/apps/web/src/features/entity/composed/list-entity/wide-layout.tsx
index 92ad2530e3..d74b6a07de 100644
--- a/apps/web/src/features/entity/composed/list-entity/wide-layout.tsx
+++ b/apps/web/src/features/entity/composed/list-entity/wide-layout.tsx
@@ -124,6 +124,7 @@ export function WideLayout(props: LayoutProps) {
<div class="size-4 shrink-0">
<Entity.Icon entity={props.entity} streamState={props.streamState} />
</div>
+ {props.titleLeading}
<Switch>
<Match when={isEmailEntity(props.entity) && props.entity}>
{(entity) => (
@@ -183,6 +184,7 @@ export function WideLayout(props: LayoutProps) {
</Switch>
</Entity.Slot>
<Entity.Slot placement="meta" class="flex items-center gap-2">
+ {props.meta}
<Show when={isProjectEntity(props.entity) && props.entity}>
{(entity) => (
<RowTags
diff --git a/apps/web/src/features/entity/types/entity.ts b/apps/web/src/features/entity/types/entity.ts
index 9afb8dce2f..95c20f3bbb 100644
--- a/apps/web/src/features/entity/types/entity.ts
+++ b/apps/web/src/features/entity/types/entity.ts
@@ -77,6 +77,10 @@ export type GithubPullRequestEntity = ForeignEntityBase & {
labels: GithubPullRequestLabel[];
authorLogin?: string;
authorId?: number;
+ /** The pull request description (body), when stored. */
+ description?: string;
+ /** The branch carrying the pull request's changes, when stored. */
+ headBranch?: string;
};
};
diff --git a/apps/web/src/features/reviews-view/components/ReviewsControls.tsx b/apps/web/src/features/reviews-view/components/ReviewsControls.tsx
index b72b907408..6a00d206fa 100644
--- a/apps/web/src/features/reviews-view/components/ReviewsControls.tsx
+++ b/apps/web/src/features/reviews-view/components/ReviewsControls.tsx
@@ -6,10 +6,18 @@ import {
MobileFilterDrawer,
useViewControlHotkeys,
} from '@app/components/view-shell';
+import { PrOriginIcon, PrPriorityIcon } from '@block-pr/component/PrLinks';
+import {
+ PR_PRIORITY_IDS,
+ PR_PRIORITY_LABELS,
+ type PrLinkKind,
+} from '@block-pr/data/pr-links';
+import { PR_ORIGIN_LABELS, PR_ORIGIN_TOOLS } from '@block-pr/data/pr-origin';
import { MobileDrawer } from '@components/app/mobile/MobileDrawer';
import { useSplitPanelOrThrow } from '@components/app/split-layout/layoutUtils';
import { Accordion } from '@kobalte/core/accordion';
import { createSignal, For, Show } from 'solid-js';
+import { UNKNOWN_ORIGIN } from '../reviews-filter';
import type {
ReviewsFilterId,
ReviewsFilterSelection,
@@ -37,6 +45,7 @@ export type ReviewsControlProps = {
};
const SORT_OPTIONS: ListControlOption<ReviewsSortId>[] = [
+ { id: 'priority', label: 'Priority' },
{ id: 'recently_updated', label: 'Recently updated' },
{ id: 'least_recently_updated', label: 'Least recently updated' },
{ id: 'newest', label: 'Newest' },
@@ -55,11 +64,38 @@ const REVIEW_OPTIONS: ListControlOption<ReviewsReviewFilterId>[] = [
{ id: 'awaiting_my_review', label: 'Awaiting review from you' },
];
+const PRIORITY_OPTIONS: ListControlOption<string>[] = PR_PRIORITY_IDS.map(
+ (id) => ({
+ id,
+ label: PR_PRIORITY_LABELS[id],
+ icon: () => <PrPriorityIcon priority={id} />,
+ })
+);
+
+const ORIGIN_OPTIONS: ListControlOption<string>[] = [
+ ...PR_ORIGIN_TOOLS.map((tool) => ({
+ id: tool,
+ label: PR_ORIGIN_LABELS[tool],
+ icon: () => <PrOriginIcon tool={tool} class="size-4" />,
+ })),
+ { id: UNKNOWN_ORIGIN, label: 'Unknown' },
+];
+
+const LINKED_OPTIONS: ListControlOption<string>[] = [
+ { id: 'agent', label: 'An agent session' },
+ { id: 'ticket', label: 'A ticket' },
+ { id: 'customer', label: 'A customer' },
+ { id: 'channel', label: 'A channel' },
+] satisfies ListControlOption<PrLinkKind>[];
+
function filterGroups(
props: ReviewsControlProps
): ListFilterGroup<ReviewsFilterId, string>[] {
return [
{ id: 'status', label: 'Status', options: STATUS_OPTIONS },
+ { id: 'priority', label: 'Priority', options: PRIORITY_OPTIONS },
+ { id: 'linked', label: 'Linked to', options: LINKED_OPTIONS },
+ { id: 'origin', label: 'Started from', options: ORIGIN_OPTIONS },
{
id: 'repository',
label: 'Repository',
@@ -200,7 +236,7 @@ export function ReviewsFilterDrawer(props: ReviewsControlProps) {
</For>
</MobileDrawer.Section>
<MobileDrawer.Label class="pt-4">Filters</MobileDrawer.Label>
- <Accordion multiple collapsible defaultValue={['repository']}>
+ <Accordion multiple collapsible defaultValue={['priority']}>
<div class="flex flex-col gap-3">
<For each={groups()}>
{(group) => (
diff --git a/apps/web/src/features/reviews-view/components/ReviewsList.tsx b/apps/web/src/features/reviews-view/components/ReviewsList.tsx
index 4c36c631e4..25c836e356 100644
--- a/apps/web/src/features/reviews-view/components/ReviewsList.tsx
+++ b/apps/web/src/features/reviews-view/components/ReviewsList.tsx
@@ -7,6 +7,13 @@ import {
} from '@app/features/next-soup/actions';
import { useInfiniteScrollSentinel } from '@app/lib/primitives/infinite-scroll-sentinel';
import { globalSplitManager } from '@app/signal/splitLayout';
+import {
+ type OpenPrLink,
+ PrLinkChips,
+ PrLinksPending,
+ PrPriorityBadge,
+} from '@block-pr/component/PrLinks';
+import { type PrLinks, priorityTaskName } from '@block-pr/data/pr-links';
import { useSplitPanelOrThrow } from '@components/app/split-layout/layoutUtils';
import { ContextMenuContent, MenuItem } from '@core/component/ContextMenu';
import {
@@ -44,6 +51,13 @@ import {
} from '../reviews-types';
import { ReviewsEmptyState } from './ReviewsEmptyState';
+/** What each row links to, loaded alongside the list. */
+export type ReviewsListLinks = {
+ linksFor: (review: GithubPullRequestEntity) => PrLinks | undefined;
+ companyName: (id: string) => string | undefined;
+ onOpen: OpenPrLink;
+};
+
export type ReviewsListProps = {
list: ReviewsListController;
source: ReturnType<typeof useReviewsQuery>;
@@ -58,6 +72,7 @@ export type ReviewsListProps = {
onClearSearch: () => void;
onClearFilters: () => void;
onOpen: (foreignEntityId: string, newSplit: boolean) => void;
+ links: ReviewsListLinks;
};
const copyLink = makeCopyLinkAction();
@@ -73,6 +88,7 @@ function ReviewRow(props: {
onChecked: (checked: boolean, shiftKey: boolean) => void;
favoriteAction: ReturnType<typeof makeFavoriteAction>;
onOpen: ReviewsListProps['onOpen'];
+ links: ReviewsListLinks;
onActivate: (newSplit: boolean) => void;
onClick: (event: MouseEvent) => void;
onFocus: () => void;
@@ -99,6 +115,30 @@ function ReviewRow(props: {
checked={props.checked}
onChecked={props.onChecked}
onClick={props.onClick}
+ titleLeading={
+ <Show when={props.links.linksFor(props.review)}>
+ {(links) => (
+ <PrPriorityBadge
+ priority={links().priority}
+ taskName={priorityTaskName(links())}
+ />
+ )}
+ </Show>
+ }
+ meta={
+ <Show
+ when={props.links.linksFor(props.review)}
+ fallback={<PrLinksPending />}
+ >
+ {(links) => (
+ <PrLinkChips
+ links={links()}
+ companyName={props.links.companyName}
+ onOpen={props.links.onOpen}
+ />
+ )}
+ </Show>
+ }
/>
</ContextMenu.Trigger>
<ContextMenu.Portal>
@@ -368,6 +408,7 @@ export function ReviewsList(props: ReviewsListProps) {
}
favoriteAction={favoriteAction}
onOpen={props.onOpen}
+ links={props.links}
onChecked={(checked, shiftKey) =>
listInteractions.selection.set(review.id, checked, {
range: shiftKey,
diff --git a/apps/web/src/features/reviews-view/queries/use-reviews-query.ts b/apps/web/src/features/reviews-view/queries/use-reviews-query.ts
index 382ca5924f..63ef525497 100644
--- a/apps/web/src/features/reviews-view/queries/use-reviews-query.ts
+++ b/apps/web/src/features/reviews-view/queries/use-reviews-query.ts
@@ -32,6 +32,8 @@ const REVIEWS_SORTS: Record<
ReviewsSortId,
{ sort_method: 'updated_at' | 'created_at'; sort_direction: 'asc' | 'desc' }
> = {
+ // Priority comes from links, so loaded rows are ordered on the client.
+ priority: { sort_method: 'updated_at', sort_direction: 'desc' },
recently_updated: { sort_method: 'updated_at', sort_direction: 'desc' },
least_recently_updated: { sort_method: 'updated_at', sort_direction: 'asc' },
newest: { sort_method: 'created_at', sort_direction: 'desc' },
diff --git a/apps/web/src/features/reviews-view/reviews-filter.test.ts b/apps/web/src/features/reviews-view/reviews-filter.test.ts
index 040a8c4de1..54a5f9ba26 100644
--- a/apps/web/src/features/reviews-view/reviews-filter.test.ts
+++ b/apps/web/src/features/reviews-view/reviews-filter.test.ts
@@ -1,5 +1,11 @@
+import type { PrLinks } from '@block-pr/data/pr-links';
+import type { GithubPullRequestEntity } from '@entity';
import { describe, expect, it } from 'vitest';
-import { effectiveReviewsFilters } from './reviews-filter';
+import {
+ applyReviewLinks,
+ effectiveReviewsFilters,
+ UNKNOWN_ORIGIN,
+} from './reviews-filter';
import {
EMPTY_REVIEWS_FILTERS,
type ReviewsFilterSelection,
@@ -32,3 +38,92 @@ describe('effective review filters', () => {
expect(Object.values(active).flat()).toEqual([]);
});
});
+
+describe('review link filters and priority sort', () => {
+ const review = (id: string) =>
+ ({ id, metadata: { labels: [] } }) as unknown as GithubPullRequestEntity;
+ const links = (overrides: Partial<PrLinks>): PrLinks => ({
+ sessions: [],
+ tasks: [],
+ channelIds: [],
+ companyIds: [],
+ priority: { id: 'none' },
+ ...overrides,
+ });
+ const byId: Record<string, PrLinks | undefined> = {
+ low: links({ priority: { id: 'low', source: 'label' } }),
+ urgent: links({
+ priority: { id: 'urgent', source: 'task', taskId: 't' },
+ companyIds: ['acme'],
+ }),
+ none: links({
+ sessions: [{ id: 's', source: 'agent' }],
+ origin: { tool: 'claude', signal: 'agent-session', sessionId: 's' },
+ }),
+ pending: undefined,
+ };
+ const reviews = ['low', 'pending', 'none', 'urgent'].map(review);
+ const linksFor = (entity: GithubPullRequestEntity) => byId[entity.id];
+ const ids = (list: GithubPullRequestEntity[]) =>
+ list.map((entity) => entity.id);
+
+ it('sorts most urgent first and keeps the server order within a priority', () => {
+ expect(
+ ids(
+ applyReviewLinks(reviews, linksFor, EMPTY_REVIEWS_FILTERS, 'priority')
+ )
+ ).toEqual(['urgent', 'low', 'pending', 'none']);
+ });
+
+ it('leaves the order alone for other sorts', () => {
+ expect(
+ ids(applyReviewLinks(reviews, linksFor, EMPTY_REVIEWS_FILTERS, 'newest'))
+ ).toEqual(['low', 'pending', 'none', 'urgent']);
+ });
+
+ it('matches any selected priority or link and holds back unloaded rows', () => {
+ expect(
+ ids(
+ applyReviewLinks(
+ reviews,
+ linksFor,
+ { ...EMPTY_REVIEWS_FILTERS, priority: ['urgent', 'none'] },
+ 'recently_updated'
+ )
+ )
+ ).toEqual(['none', 'urgent']);
+ expect(
+ ids(
+ applyReviewLinks(
+ reviews,
+ linksFor,
+ { ...EMPTY_REVIEWS_FILTERS, linked: ['agent', 'customer'] },
+ 'recently_updated'
+ )
+ )
+ ).toEqual(['none', 'urgent']);
+ });
+
+ it('matches the tool a pull request was started from, or unknown', () => {
+ expect(
+ ids(
+ applyReviewLinks(
+ reviews,
+ linksFor,
+ { ...EMPTY_REVIEWS_FILTERS, origin: ['claude'] },
+ 'recently_updated'
+ )
+ )
+ ).toEqual(['none']);
+ expect(
+ ids(
+ applyReviewLinks(
+ reviews,
+ linksFor,
+ { ...EMPTY_REVIEWS_FILTERS, origin: [UNKNOWN_ORIGIN] },
+ 'recently_updated'
+ )
+ )
+ ).toEqual(['low', 'urgent']);
+ });
+});
diff --git a/apps/web/src/features/reviews-view/reviews-filter.ts b/apps/web/src/features/reviews-view/reviews-filter.ts
index a3abedc3ad..dbec7efd50 100644
--- a/apps/web/src/features/reviews-view/reviews-filter.ts
+++ b/apps/web/src/features/reviews-view/reviews-filter.ts
@@ -1,5 +1,12 @@
+import {
+ comparePriority,
+ hasPrLink,
+ type PrLinkKind,
+ type PrLinks,
+ type PrPriorityId,
+} from '@block-pr/data/pr-links';
import type { GithubPullRequestEntity } from '@entity';
-import type { ReviewsFilterSelection } from './reviews-types';
+import type { ReviewsFilterSelection, ReviewsSortId } from './reviews-types';
/** Keep saved viewer-specific filters inactive until a GitHub identity is available. */
export function effectiveReviewsFilters(
@@ -42,3 +49,54 @@ export function searchReviews(
].some((value) => value.toLocaleLowerCase().includes(query))
);
}
+
+/** Whether the priority or linked-to filters are narrowing the list. */
+export const hasLinkFilters = (filters: ReviewsFilterSelection) =>
+ filters.priority.length > 0 ||
+ filters.linked.length > 0 ||
+ filters.origin.length > 0;
+
+/** The origin filter option for pull requests nothing identifies. */
+export const UNKNOWN_ORIGIN = 'unknown';
+
+/**
+ * Priority and linked-to filters, and the priority sort, which read each pull
+ * request's links. Rows whose links have not loaded yet are held back while
+ * a link filter is active, since they cannot be matched.
+ */
+export function applyReviewLinks(
+ reviews: readonly GithubPullRequestEntity[],
+ linksFor: (review: GithubPullRequestEntity) => PrLinks | undefined,
+ filters: ReviewsFilterSelection,
+ sort: ReviewsSortId
+): GithubPullRequestEntity[] {
+ let result = [...reviews];
+ if (hasLinkFilters(filters)) {
+ result = result.filter((review) => {
+ const links = linksFor(review);
+ if (!links) return false;
+ if (
+ filters.priority.length > 0 &&
+ !filters.priority.includes(links.priority.id)
+ )
+ return false;
+ if (
+ filters.origin.length > 0 &&
+ !filters.origin.includes(links.origin?.tool ?? UNKNOWN_ORIGIN)
+ )
+ return false;
+ // Like the other groups, any selected option matches.
+ return (
+ filters.linked.length === 0 ||
+ filters.linked.some((kind) => hasPrLink(links, kind as PrLinkKind))
+ );
+ });
+ }
+ if (sort === 'priority') {
+ const priority = (review: GithubPullRequestEntity): PrPriorityId =>
+ linksFor(review)?.priority.id ?? 'none';
+ // Array sort is stable, so equal priorities keep the server's recency order.
+ result.sort((a, b) => comparePriority(priority(a), priority(b)));
+ }
+ return result;
+}
diff --git a/apps/web/src/features/reviews-view/reviews-types.ts b/apps/web/src/features/reviews-view/reviews-types.ts
index 959f0a10d4..4e07f3e4c3 100644
--- a/apps/web/src/features/reviews-view/reviews-types.ts
+++ b/apps/web/src/features/reviews-view/reviews-types.ts
@@ -5,6 +5,7 @@ export type ReviewsScope =
| 'involving'
| 'review_requests';
export type ReviewsSortId =
+ | 'priority'
| 'recently_updated'
| 'least_recently_updated'
| 'newest'
@@ -22,7 +23,10 @@ export type ReviewsFilterId =
| 'author'
| 'assignee'
| 'label'
- | 'review';
+ | 'review'
+ | 'priority'
+ | 'linked'
+ | 'origin';
/** Selected option ids per filter group; any option in a group matches. */
export type ReviewsFilterSelection = Record<ReviewsFilterId, readonly string[]>;
@@ -33,6 +37,9 @@ export const EMPTY_REVIEWS_FILTERS: ReviewsFilterSelection = {
assignee: [],
label: [],
review: [],
+ priority: [],
+ linked: [],
+ origin: [],
};
/** Default and reset state for the Reviews list. */
diff --git a/apps/web/src/features/reviews-view/reviews-view.tsx b/apps/web/src/features/reviews-view/reviews-view.tsx
index 26221780d5..501cd84698 100644
--- a/apps/web/src/features/reviews-view/reviews-view.tsx
+++ b/apps/web/src/features/reviews-view/reviews-view.tsx
@@ -11,13 +11,21 @@ import {
useParams,
} from '@app/lib/split-router';
import { reviewsPrRoute, reviewsSplitRoute } from '@app/routes/routes';
+import {
+ prLinksTarget,
+ usePrLinksQuery,
+} from '@block-pr/queries/pr-links-query';
import { type PillTabItem, PillTabs } from '@components/app/mobile/PillTabs';
import { useSplitLayout } from '@components/app/split-layout/layout';
+import type { SplitContent } from '@components/app/split-layout/layoutManager';
import { useSplitPanelOrThrow } from '@components/app/split-layout/layoutUtils';
import { SplitPanel } from '@components/app/split-panel';
import { useUserContext } from '@core/context/user';
import { isTouchDevice } from '@core/mobile/isTouchDevice';
-import { ListEntityMetadataQueryProvider } from '@entity';
+import {
+ type GithubPullRequestEntity,
+ ListEntityMetadataQueryProvider,
+} from '@entity';
import { GithubLabelPill } from '@entity/components/GithubLabelPill';
import { useGithubLinkStatusQuery } from '@queries/auth/github-link';
import {
@@ -44,7 +52,12 @@ import {
import { createReviewsListController } from './primitives/create-reviews-list-controller';
import { useReviewsFacetsQuery } from './queries/use-reviews-facets-query';
import { useReviewsQuery } from './queries/use-reviews-query';
-import { effectiveReviewsFilters, searchReviews } from './reviews-filter';
+import {
+ applyReviewLinks,
+ effectiveReviewsFilters,
+ hasLinkFilters,
+ searchReviews,
+} from './reviews-filter';
import { reviewsHostedContent } from './reviews-hosted-content';
import { reviewsTabSearch, reviewsTabSearchCodec } from './reviews-tab-search';
import {
@@ -174,7 +187,46 @@ function ReviewsRoot() {
{ search: searchForTab(scope()) }
);
};
- const reviews = createMemo(() => searchReviews(source.reviews(), search()));
+ // Links load for every fetched row, not just the searched ones, so the
+ // per-page cache entries stay stable while the search changes.
+ const links = usePrLinksQuery(() =>
+ source.reviews().map((review) => prLinksTarget(review.metadata))
+ );
+ const linksFor = (review: GithubPullRequestEntity) =>
+ links.linksFor(prLinksTarget(review.metadata).url);
+ const reviews = createMemo(() =>
+ applyReviewLinks(
+ searchReviews(source.reviews(), search()),
+ linksFor,
+ activeFilters(),
+ sort()
+ )
+ );
+ // Link filters cannot match rows before their links arrive, so an empty
+ // result waits for them instead of claiming nothing matches.
+ // A failed link batch can hide every row under a link filter, so the list
+ // then reports it with a retry instead of an empty result.
+ const linkFilterFailed = () =>
+ hasLinkFilters(activeFilters()) && links.isError();
+ const listSource = {
+ ...source,
+ isLoading: () =>
+ source.isLoading() ||
+ (hasLinkFilters(activeFilters()) &&
+ links.isLoading() &&
+ reviews().length === 0),
+ error: () =>
+ source.error() ??
+ (linkFilterFailed() && reviews().length === 0
+ ? new Error('Pull request links couldn’t be loaded')
+ : undefined),
+ retry: () => {
+ if (links.isError()) void links.retry();
+ return source.retry();
+ },
+ };
+ const openLink = (content: SplitContent, newSplit: boolean) =>
+ layout.openWithSplit(content, { preferNewSplit: newSplit });
const listController = createReviewsListController(reviews, openReview);
const selectLabels = (labels: string[]) => {
setFilters((current) => ({ ...current, label: labels }));
@@ -245,7 +297,12 @@ function ReviewsRoot() {
<ViewShell.Content>
<ReviewsList
list={listController}
- source={source}
+ source={listSource}
+ links={{
+ linksFor,
+ companyName: links.companyName,
+ onOpen: openLink,
+ }}
scope={scope()}
authorLogin={authorLogin()}
authorId={authorId()}
diff --git a/apps/web/src/lib/queries/agent-session/keys.ts b/apps/web/src/lib/queries/agent-session/keys.ts
index f040b10ff6..cecb2f5cde 100644
--- a/apps/web/src/lib/queries/agent-session/keys.ts
+++ b/apps/web/src/lib/queries/agent-session/keys.ts
@@ -23,6 +23,10 @@ export const agentSessionPullRequestKeys = createQueryKeys(
{
forPullRequest: (url: string) => ({ queryKey: [url] }),
forSession: (sessionId: string) => ({ queryKey: [sessionId] }),
+ /** Everything a batch of pull requests links to, keyed by their URLs. */
+ linksForPullRequests: (urls: readonly string[]) => ({
+ queryKey: [urls],
+ }),
}
);
diff --git a/apps/web/src/lib/queries/agent-session/pull-requests.ts b/apps/web/src/lib/queries/agent-session/pull-requests.ts
index 3c226dd042..e586a9f2d3 100644
--- a/apps/web/src/lib/queries/agent-session/pull-requests.ts
+++ b/apps/web/src/lib/queries/agent-session/pull-requests.ts
@@ -48,6 +48,9 @@ const invalidateLink = ({ sessionId, url }: PullRequestLinkChange) =>
queryClient.invalidateQueries({
queryKey: agentSessionPullRequestKeys.forSession(sessionId).queryKey,
}),
+ queryClient.invalidateQueries({
+ queryKey: agentSessionPullRequestKeys.linksForPullRequests._def,
+ }),
]);
/** Link a pull request to a session the caller can edit. */
diff --git a/apps/web/src/lib/queries/soup/transform-utils.ts b/apps/web/src/lib/queries/soup/transform-utils.ts
index e06bbf1841..34731acf26 100644
--- a/apps/web/src/lib/queries/soup/transform-utils.ts
+++ b/apps/web/src/lib/queries/soup/transform-utils.ts
@@ -912,6 +912,8 @@ export const mapApiSoupItemToEntity = (
authorLogin?: string | null;
authorId?: number | null;
labels?: GithubPullRequestLabel[] | null;
+ description?: string | null;
+ head?: { name?: string | null } | null;
};
let status: GithubPullRequestEntity['metadata']['status'] = 'open';
@@ -947,6 +949,8 @@ export const mapApiSoupItemToEntity = (
labels: metadata.labels ?? [],
authorLogin: metadata.authorLogin ?? undefined,
authorId: metadata.authorId ?? undefined,
+ description: metadata.description ?? undefined,
+ headBranch: metadata.head?.name ?? undefined,
},
};
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/client.ts b/apps/web/src/lib/service-clients/service-agent-harness/client.ts
index b58e68f811..744fc66006 100644
--- a/apps/web/src/lib/service-clients/service-agent-harness/client.ts
+++ b/apps/web/src/lib/service-clients/service-agent-harness/client.ts
@@ -24,6 +24,7 @@ import type {
LoadAgentModelsResponse,
PreviewAgentSessionsResponse,
PullRequestSessionsResponse,
+ PullRequestsSessionsResponse,
SandboxSize,
SandboxSizeBody,
SessionPullRequestsResponse,
@@ -355,6 +356,21 @@ export const agentHarnessServiceClient = {
).then((result) => result.map(() => undefined));
},
+ /**
+ * The sessions linked to each pull request in `urls` (at most 100) that the
+ * caller can view, with the thread each session was started from.
+ */
+ sessionsForPullRequests(urls: string[]) {
+ return fetchWithToken<PullRequestsSessionsResponse>(
+ `${agentHarnessHost}/agent-sessions/by-pull-requests`,
+ {
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json' },
+ body: JSON.stringify({ urls }),
+ }
+ );
+ },
+
/** The sessions linked to the pull request at `url` that the caller can view. */
sessionsForPullRequest(url: string) {
return fetchWithToken<PullRequestSessionsResponse>(
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/generated/client.ts b/apps/web/src/lib/service-clients/service-agent-harness/generated/client.ts
index 7bc17977fe..bd0ed36f81 100644
--- a/apps/web/src/lib/service-clients/service-agent-harness/generated/client.ts
+++ b/apps/web/src/lib/service-clients/service-agent-harness/generated/client.ts
@@ -30,7 +30,9 @@ import type {
PreviewAgentSessionsRequest,
PreviewAgentSessionsResponse,
PullRequestSessionsResponse,
+ PullRequestsSessionsResponse,
PullRequestUrl,
+ PullRequestUrls,
RenameAgentSessionRequest,
SandboxSizeBody,
SessionPullRequestsResponse,
@@ -629,6 +631,73 @@ export const agentSessionsForPullRequest = async (
} as agentSessionsForPullRequestResponse;
};
+/**
+ * @summary List the sessions associated with each of up to 100 pull requests that the caller can view,
+with the thread each session was started from.
+ */
+export type agentSessionsForPullRequestsResponse200 = {
+ data: PullRequestsSessionsResponse;
+ status: 200;
+};
+
+export type agentSessionsForPullRequestsResponse400 = {
+ data: string;
+ status: 400;
+};
+
+export type agentSessionsForPullRequestsResponse401 = {
+ data: string;
+ status: 401;
+};
+
+export type agentSessionsForPullRequestsResponse500 = {
+ data: string;
+ status: 500;
+};
+
+export type agentSessionsForPullRequestsResponseSuccess =
+ agentSessionsForPullRequestsResponse200 & {
+ headers: Headers;
+ };
+export type agentSessionsForPullRequestsResponseError = (
+ | agentSessionsForPullRequestsResponse400
+ | agentSessionsForPullRequestsResponse401
+ | agentSessionsForPullRequestsResponse500
+) & {
+ headers: Headers;
+};
+
+export type agentSessionsForPullRequestsResponse =
+ | agentSessionsForPullRequestsResponseSuccess
+ | agentSessionsForPullRequestsResponseError;
+
+export const getAgentSessionsForPullRequestsUrl = () => {
+ return `/agent-sessions/by-pull-requests`;
+};
+
+export const agentSessionsForPullRequests = async (
+ pullRequestUrls: PullRequestUrls,
+ options?: RequestInit
+): Promise<agentSessionsForPullRequestsResponse> => {
+ const res = await fetch(getAgentSessionsForPullRequestsUrl(), {
+ ...options,
+ method: 'POST',
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
+ body: JSON.stringify(pullRequestUrls),
+ });
+
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
+
+ const data: agentSessionsForPullRequestsResponse['data'] = body
+ ? JSON.parse(body)
+ : {};
+ return {
+ data,
+ status: res.status,
+ headers: res.headers,
+ } as agentSessionsForPullRequestsResponse;
+};
+
/**
* No per-id access extractor: a chip has to render for a session the caller
cannot open, so access is answered per id in the body rather than
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/index.ts b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/index.ts
index ec881a8615..c53228cb37 100644
--- a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/index.ts
+++ b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/index.ts
@@ -180,9 +180,14 @@ export * from './previewAgentSessionsResponse';
export * from './promptAttachment';
export * from './promptAttachmentMimeType';
export * from './promptAttachmentSize';
+export * from './pullRequestLinkedSession';
+export * from './pullRequestLinkedSessionThreadParent';
export * from './pullRequestLinkSource';
+export * from './pullRequestSessions';
export * from './pullRequestSessionsResponse';
+export * from './pullRequestsSessionsResponse';
export * from './pullRequestUrl';
+export * from './pullRequestUrls';
export * from './queuedActionDto';
export * from './queuedActionDtoActorUserId';
export * from './queuedActionDtoPrompt';
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/pullRequestLinkedSession.ts b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/pullRequestLinkedSession.ts
new file mode 100644
index 0000000000..7ea81eb8a8
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/pullRequestLinkedSession.ts
@@ -0,0 +1,20 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * agent_harness_service
+ * OpenAPI spec version: 0.1.0
+ */
+
+import type { PullRequestLinkedSessionThreadParent } from './pullRequestLinkedSessionThreadParent';
+import type { PullRequestLinkSource } from './pullRequestLinkSource';
+
+/**
+ * A session linked to a pull request, as a viewer of that session sees it.
+ */
+export interface PullRequestLinkedSession {
+ /** The session id. */
+ sessionId: string;
+ /** Who associated the pull request with the session. */
+ source: PullRequestLinkSource;
+ threadParent?: PullRequestLinkedSessionThreadParent;
+}
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/pullRequestLinkedSessionThreadParent.ts b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/pullRequestLinkedSessionThreadParent.ts
new file mode 100644
index 0000000000..c6700f9ac9
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/pullRequestLinkedSessionThreadParent.ts
@@ -0,0 +1,9 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * agent_harness_service
+ * OpenAPI spec version: 0.1.0
+ */
+import type { MessageParent } from './messageParent';
+
+export type PullRequestLinkedSessionThreadParent = null | MessageParent;
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/pullRequestSessions.ts b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/pullRequestSessions.ts
new file mode 100644
index 0000000000..1beb7770eb
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/pullRequestSessions.ts
@@ -0,0 +1,19 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * agent_harness_service
+ * OpenAPI spec version: 0.1.0
+ */
+import type { PullRequestLinkedSession } from './pullRequestLinkedSession';
+
+/**
+ * The sessions linked to one pull request that the caller can view.
+ */
+export interface PullRequestSessions {
+ /** The pull request's `owner/repo/pull/number` key. */
+ githubKey: string;
+ /** Linked sessions the caller can view, oldest link first. */
+ sessions: PullRequestLinkedSession[];
+ /** The requested pull request URL, canonicalized. */
+ url: string;
+}
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/pullRequestUrls.ts b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/pullRequestUrls.ts
new file mode 100644
index 0000000000..05c7ce2261
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/pullRequestUrls.ts
@@ -0,0 +1,14 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * agent_harness_service
+ * OpenAPI spec version: 0.1.0
+ */
+
+/**
+ * GitHub pull requests, by URL.
+ */
+export interface PullRequestUrls {
+ /** Pull request GitHub URLs, at most 100. */
+ urls: string[];
+}
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/pullRequestsSessionsResponse.ts b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/pullRequestsSessionsResponse.ts
new file mode 100644
index 0000000000..95adc2c8bd
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-agent-harness/generated/schemas/pullRequestsSessionsResponse.ts
@@ -0,0 +1,15 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * agent_harness_service
+ * OpenAPI spec version: 0.1.0
+ */
+import type { PullRequestSessions } from './pullRequestSessions';
+
+/**
+ * The sessions associated with each requested pull request.
+ */
+export interface PullRequestsSessionsResponse {
+ /** One entry per requested pull request, in request order. */
+ pullRequests: PullRequestSessions[];
+}
diff --git a/apps/web/src/lib/service-clients/service-agent-harness/openapi.json b/apps/web/src/lib/service-clients/service-agent-harness/openapi.json
index 84f162abbd..44f6ce700b 100644
--- a/apps/web/src/lib/service-clients/service-agent-harness/openapi.json
+++ b/apps/web/src/lib/service-clients/service-agent-harness/openapi.json
@@ -436,6 +436,65 @@
}
}
},
+ "/agent-sessions/by-pull-requests": {
+ "post": {
+ "tags": ["agent-sessions"],
+ "summary": "List the sessions associated with each of up to 100 pull requests that the caller can view,\nwith the thread each session was started from.",
+ "operationId": "agent_sessions_for_pull_requests",
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/PullRequestUrls"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/PullRequestsSessionsResponse"
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "",
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "",
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "",
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
"/agent-sessions/preview": {
"post": {
"tags": ["agent-sessions"],
@@ -3661,6 +3720,55 @@
"description": "Who associated a pull request with a session.",
"enum": ["agent", "user"]
},
+ "PullRequestLinkedSession": {
+ "type": "object",
+ "description": "A session linked to a pull request, as a viewer of that session sees it.",
+ "required": ["sessionId", "source"],
+ "properties": {
+ "sessionId": {
+ "type": "string",
+ "format": "uuid",
+ "description": "The session id."
+ },
+ "source": {
+ "$ref": "#/components/schemas/PullRequestLinkSource",
+ "description": "Who associated the pull request with the session."
+ },
+ "threadParent": {
+ "oneOf": [
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/MessageParent",
+ "description": "The channel, task, or CRM record whose thread the session was started from, if any."
+ }
+ ]
+ }
+ }
+ },
+ "PullRequestSessions": {
+ "type": "object",
+ "description": "The sessions linked to one pull request that the caller can view.",
+ "required": ["url", "githubKey", "sessions"],
+ "properties": {
+ "githubKey": {
+ "type": "string",
+ "description": "The pull request's `owner/repo/pull/number` key."
+ },
+ "sessions": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/PullRequestLinkedSession"
+ },
+ "description": "Linked sessions the caller can view, oldest link first."
+ },
+ "url": {
+ "type": "string",
+ "description": "The requested pull request URL, canonicalized."
+ }
+ }
+ },
"PullRequestSessionsResponse": {
"type": "object",
"description": "The sessions associated with a pull request.",
@@ -3687,6 +3795,34 @@
}
}
},
+ "PullRequestUrls": {
+ "type": "object",
+ "description": "GitHub pull requests, by URL.",
+ "required": ["urls"],
+ "properties": {
+ "urls": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Pull request GitHub URLs, at most 100."
+ }
+ }
+ },
+ "PullRequestsSessionsResponse": {
+ "type": "object",
+ "description": "The sessions associated with each requested pull request.",
+ "required": ["pullRequests"],
+ "properties": {
+ "pullRequests": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/PullRequestSessions"
+ },
+ "description": "One entry per requested pull request, in request order."
+ }
+ }
+ },
"QueuedActionDto": {
"type": "object",
"description": "One action waiting in a session's queue.\n\nClients deserialize this, so both derives are used.",
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 91c9b12ed3..4f92a6c26a 100644
--- a/apps/web/src/lib/service-clients/service-storage/client.ts
+++ b/apps/web/src/lib/service-clients/service-storage/client.ts
@@ -121,6 +121,7 @@ import type { GithubPullRequestChangesPatchResponse } from './generated/schemas/
import type { GithubPullRequestChangesResponse } from './generated/schemas/githubPullRequestChangesResponse';
import type { GithubPullRequestFacets } from './generated/schemas/githubPullRequestFacets';
import type { GithubPullRequestsResponse } from './generated/schemas/githubPullRequestsResponse';
+import type { GithubPullRequestTasksResponse } from './generated/schemas/githubPullRequestTasksResponse';
import type { GroupedSoupGroupPage } from './generated/schemas/groupedSoupGroupPage';
import type { GroupedSoupInitialPage } from './generated/schemas/groupedSoupInitialPage';
import type { GroupedSoupSort } from './generated/schemas/groupedSoupSort';
@@ -1756,6 +1757,23 @@ export const storageServiceClient = {
);
},
+ /** The tasks each pull request (`owner/repo/pull/number`, at most 100) references. */
+ async getGithubPullRequestTasks({
+ githubKeys,
+ }: {
+ githubKeys: string[];
+ }): Promise<
+ Result<
+ GithubPullRequestTasksResponse,
+ ResultError<FetchWithTokenErrorCode>[]
+ >
+ > {
+ return await dssFetch<GithubPullRequestTasksResponse>(
+ '/documents/github_prs/tasks',
+ { method: 'POST', body: JSON.stringify({ githubKeys }) }
+ );
+ },
+
async getForeignEntity({
id,
}: {
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestTasks.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestTasks.ts
new file mode 100644
index 0000000000..f0310e54dd
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestTasks.ts
@@ -0,0 +1,17 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * document_storage_service
+ * OpenAPI spec version: 0.1.0
+ */
+
+/**
+ * The tasks linked to one GitHub pull request.
+ */
+export interface GithubPullRequestTasks {
+ /** The pull request's `owner/repo/pull/number` key, as requested. */
+ githubKey: string;
+ /** Ids of the task documents the pull request references, oldest link first. Empty when
+the caller cannot see the pull request. The caller may still lack access to a task. */
+ taskIds: string[];
+}
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestTasksRequest.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestTasksRequest.ts
new file mode 100644
index 0000000000..ee4afecfb3
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestTasksRequest.ts
@@ -0,0 +1,14 @@
+/**
+ * Generated by orval v7.21.0 🍺
+ * Do not edit manually.
+ * document_storage_service
+ * OpenAPI spec version: 0.1.0
+ */
+
+/**
+ * Request body for looking up the tasks linked to GitHub pull requests.
+ */
+export interface GithubPullRequestTasksRequest {
+ /** Pull request `owner/repo/pull/number` keys, at most 100. */
+ githubKeys: string[];
+}
diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestTasksResponse.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestTasksResponse.ts
new file mode 100644
index 0000000000..0734cecca6
--- /dev/null
+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/githubPullRequestTasksResponse.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 { GithubPullRequestTasks } from './githubPullRequestTasks';
+
+/**
+ * The tasks linked to each requested GitHub pull request.
+ */
+export interface GithubPullRequestTasksResponse {
+ /** One entry per requested pull request, in request order. */
+ pullRequests: GithubPullRequestTasks[];
+}
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 9957a13af0..4d3318007a 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
@@ -1009,6 +1009,9 @@ export * from './githubPullRequestReviewState';
export * from './githubPullRequestReviewSubmittedAt';
export * from './githubPullRequestStatus';
export * from './githubPullRequestsResponse';
+export * from './githubPullRequestTasks';
+export * from './githubPullRequestTasksRequest';
+export * from './githubPullRequestTasksResponse';
export * from './githubPullRequestUser';
export * from './githubPullRequestUserLogin';
export * from './githubRepositoryFacet';
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 a906069f48..39e49934a9 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
@@ -14936,6 +14936,44 @@ export const createTaskHandlerResponse = zod
})
.describe('Response for creating a task.');
+/**
+ * Returns the task documents each of up to 100 GitHub pull requests references, for the pull
+requests the caller can see.
+ * @summary Handler for `POST /documents/github_prs/tasks`.
+ */
+export const getGithubPullRequestTasksBody = zod
+ .object({
+ githubKeys: zod
+ .array(zod.string())
+ .describe('Pull request `owner\/repo\/pull\/number` keys, at most 100.'),
+ })
+ .describe(
+ 'Request body for looking up the tasks linked to GitHub pull requests.'
+ );
+
+export const getGithubPullRequestTasksResponse = zod
+ .object({
+ pullRequests: zod
+ .array(
+ zod
+ .object({
+ githubKey: zod
+ .string()
+ .describe(
+ "The pull request's `owner\/repo\/pull\/number` key, as requested."
+ ),
+ taskIds: zod
+ .array(zod.string())
+ .describe(
+ 'Ids of the task documents the pull request references, oldest link first. Empty when\nthe caller cannot see the pull request. The caller may still lack access to a task.'
+ ),
+ })
+ .describe('The tasks linked to one GitHub pull request.')
+ )
+ .describe('One entry per requested pull request, in request order.'),
+ })
+ .describe('The tasks linked to each requested GitHub pull request.');
+
export const initializeUserDocumentsResponse = zod.object({
success: zod.boolean().describe('Indicates if the request was successful'),
});
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 d2ddc4e017..904516377a 100644
--- a/apps/web/src/lib/service-clients/service-storage/openapi.json
+++ b/apps/web/src/lib/service-clients/service-storage/openapi.json
@@ -8586,6 +8586,66 @@
}
}
},
+ "/documents/github_prs/tasks": {
+ "post": {
+ "tags": ["document"],
+ "summary": "Handler for `POST /documents/github_prs/tasks`.",
+ "description": "Returns the task documents each of up to 100 GitHub pull requests references, for the pull\nrequests the caller can see.",
+ "operationId": "get_github_pull_request_tasks",
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GithubPullRequestTasksRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GithubPullRequestTasksResponse"
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
"/documents/initialize_user_documents": {
"post": {
"tags": ["document"],
@@ -28693,6 +28753,52 @@
"description": "What a reviewer's latest review on a pull request said.",
"enum": ["approved", "changes_requested", "commented", "dismissed"]
},
+ "GithubPullRequestTasks": {
+ "type": "object",
+ "description": "The tasks linked to one GitHub pull request.",
+ "required": ["githubKey", "taskIds"],
+ "properties": {
+ "githubKey": {
+ "type": "string",
+ "description": "The pull request's `owner/repo/pull/number` key, as requested."
+ },
+ "taskIds": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Ids of the task documents the pull request references, oldest link first. Empty when\nthe caller cannot see the pull request. The caller may still lack access to a task."
+ }
+ }
+ },
+ "GithubPullRequestTasksRequest": {
+ "type": "object",
+ "description": "Request body for looking up the tasks linked to GitHub pull requests.",
+ "required": ["githubKeys"],
+ "properties": {
+ "githubKeys": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Pull request `owner/repo/pull/number` keys, at most 100."
+ }
+ }
+ },
+ "GithubPullRequestTasksResponse": {
+ "type": "object",
+ "description": "The tasks linked to each requested GitHub pull request.",
+ "required": ["pullRequests"],
+ "properties": {
+ "pullRequests": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/GithubPullRequestTasks"
+ },
+ "description": "One entry per requested pull request, in request order."
+ }
+ }
+ },
"GithubPullRequestUser": {
"type": "object",
"description": "A GitHub user named on a pull request, such as an assignee.",
diff --git a/crates/agent_session/src/domain/error.rs b/crates/agent_session/src/domain/error.rs
index 865e0ce344..dfbc4734e8 100644
--- a/crates/agent_session/src/domain/error.rs
+++ b/crates/agent_session/src/domain/error.rs
@@ -68,6 +68,8 @@ pub enum AgentSessionError {
Archived(AgentSessionId),
#[error("a preview request may name at most {0} sessions")]
TooManyPreviewIds(usize),
+ #[error("a pull request lookup may name at most {0} pull requests")]
+ TooManyPullRequests(usize),
#[error("the caller may not control this agent session")]
Forbidden,
#[error("no queued action with this id; it may already have been dispatched")]
diff --git a/crates/agent_session/src/domain/pull_request_links.rs b/crates/agent_session/src/domain/pull_request_links.rs
index ad423d27ea..42e0073f18 100644
--- a/crates/agent_session/src/domain/pull_request_links.rs
+++ b/crates/agent_session/src/domain/pull_request_links.rs
@@ -1,6 +1,7 @@
//! Pull requests associated with sessions: the one a session's agent opened, and any a person
//! linked afterwards.
+use std::collections::HashMap;
use std::sync::Arc;
use chrono::{DateTime, Utc};
@@ -10,6 +11,7 @@ use entity_access::domain::models::{
};
use macro_user_id::user_id::MacroUserIdStr;
use macro_uuid::Uuid;
+use messages::domain::models::MessageParent;
use super::error::{AgentSessionError, Result};
use super::model::AgentSessionId;
@@ -47,6 +49,49 @@ pub struct SessionPullRequestLink {
pub created_at: DateTime<Utc>,
}
+/// The most pull requests one batch lookup answers, one Reviews page.
+pub const MAX_PULL_REQUESTS_PER_LOOKUP: usize = 100;
+
+/// A stored link between a pull request and a session, with where the session started.
+#[derive(Debug, Clone, PartialEq, Eq)]
+pub struct PullRequestSessionLinkRow {
+ /// The pull request's `owner/repo/pull/number` key, as stored.
+ pub github_key: String,
+ /// The linked session.
+ pub session: AgentSessionId,
+ /// Who associated the pull request with the session.
+ pub source: PullRequestLinkSource,
+ /// The entity whose thread the session was started from, if any.
+ pub thread_parent: Option<MessageParent>,
+}
+
+/// A session linked to a pull request, as a viewer of that session sees it.
+#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize)]
+#[cfg_attr(feature = "schema", derive(utoipa::ToSchema))]
+#[serde(rename_all = "camelCase")]
+pub struct PullRequestLinkedSession {
+ /// The session id.
+ #[cfg_attr(feature = "schema", schema(value_type = Uuid))]
+ pub session_id: Uuid,
+ /// Who associated the pull request with the session.
+ pub source: PullRequestLinkSource,
+ /// The channel, task, or CRM record whose thread the session was started from, if any.
+ pub thread_parent: Option<MessageParent>,
+}
+
+/// The sessions linked to one pull request that the caller can view.
+#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize)]
+#[cfg_attr(feature = "schema", derive(utoipa::ToSchema))]
+#[serde(rename_all = "camelCase")]
+pub struct PullRequestSessions {
+ /// The requested pull request URL, canonicalized.
+ pub url: String,
+ /// The pull request's `owner/repo/pull/number` key.
+ pub github_key: String,
+ /// Linked sessions the caller can view, oldest link first.
+ pub sessions: Vec<PullRequestLinkedSession>,
+}
+
/// The `owner/repo/pull/number` key of a GitHub pull request URL.
pub(crate) fn pull_request_key(url: &str) -> Result<String> {
let url = canonical_url(url)?;
@@ -82,6 +127,13 @@ pub trait SessionPullRequestLinkRepo: Send + Sync + 'static {
&self,
github_key: &str,
) -> impl Future<Output = Result<Vec<AgentSessionId>>> + Send;
+
+ /// Every link to the pull requests `github_keys`, compared case-insensitively, oldest
+ /// first, with the thread each linked session was started from.
+ fn links_for_pull_requests(
+ &self,
+ github_keys: &[String],
+ ) -> impl Future<Output = Result<Vec<PullRequestSessionLinkRow>>> + Send;
}
/// Associating pull requests with sessions and finding them again.
@@ -113,6 +165,14 @@ pub trait SessionPullRequestLinks: Send + Sync + 'static {
viewer: &MacroUserIdStr<'static>,
url: &str,
) -> impl Future<Output = Result<Vec<AgentSessionId>>> + Send;
+
+ /// The sessions linked to each pull request in `urls` that `viewer` may view, in request
+ /// order. At most [`MAX_PULL_REQUESTS_PER_LOOKUP`] URLs.
+ fn sessions_for_pull_requests(
+ &self,
+ viewer: &MacroUserIdStr<'static>,
+ urls: &[String],
+ ) -> impl Future<Output = Result<Vec<PullRequestSessions>>> + Send;
}
/// Pull request links over the session store, answering session visibility with `view_access`.
@@ -180,6 +240,71 @@ impl<R: SessionPullRequestLinkRepo> SessionPullRequestLinks for SessionPullReque
}
Ok(visible)
}
+
+ #[tracing::instrument(err, skip(self, urls), fields(urls = urls.len()))]
+ async fn sessions_for_pull_requests(
+ &self,
+ viewer: &MacroUserIdStr<'static>,
+ urls: &[String],
+ ) -> Result<Vec<PullRequestSessions>> {
+ if urls.len() > MAX_PULL_REQUESTS_PER_LOOKUP {
+ return Err(AgentSessionError::TooManyPullRequests(
+ MAX_PULL_REQUESTS_PER_LOOKUP,
+ ));
+ }
+ let mut requested = Vec::with_capacity(urls.len());
+ for url in urls {
+ let url = canonical_url(url)?;
+ let github_key = url.trim_start_matches("https://github.com/").to_owned();
+ requested.push(PullRequestSessions {
+ url,
+ github_key,
+ sessions: Vec::new(),
+ });
+ }
+ if requested.is_empty() {
+ return Ok(requested);
+ }
+
+ let mut keys: Vec<String> = requested
+ .iter()
+ .map(|pull_request| pull_request.github_key.to_lowercase())
+ .collect();
+ keys.sort();
+ keys.dedup();
+ let rows = self.repo.links_for_pull_requests(&keys).await?;
+
+ // One access check per session, however many pull requests it links.
+ let mut viewable = HashMap::<AgentSessionId, bool>::new();
+ let mut by_key = HashMap::<String, Vec<PullRequestLinkedSession>>::new();
+ for row in rows {
+ let can_view = match viewable.get(&row.session) {
+ Some(can_view) => *can_view,
+ None => {
+ let can_view = self.view_access.can_view(viewer, row.session).await?;
+ viewable.insert(row.session, can_view);
+ can_view
+ }
+ };
+ if !can_view {
+ continue;
+ }
+ by_key
+ .entry(row.github_key.to_lowercase())
+ .or_default()
+ .push(PullRequestLinkedSession {
+ session_id: row.session.as_uuid(),
+ source: row.source,
+ thread_parent: row.thread_parent,
+ });
+ }
+ for pull_request in &mut requested {
+ if let Some(sessions) = by_key.get(&pull_request.github_key.to_lowercase()) {
+ pull_request.sessions = sessions.clone();
+ }
+ }
+ Ok(requested)
+ }
}
fn session_id<T: RequiredPermission>(access: &EntityAccessReceipt<T>) -> Result<AgentSessionId> {
diff --git a/crates/agent_session/src/domain/pull_request_links/test.rs b/crates/agent_session/src/domain/pull_request_links/test.rs
index 514998b7be..d5ee99498b 100644
--- a/crates/agent_session/src/domain/pull_request_links/test.rs
+++ b/crates/agent_session/src/domain/pull_request_links/test.rs
@@ -92,6 +92,29 @@ impl SessionPullRequestLinkRepo for Arc<StubLinks> {
.map(|(session, ..)| *session)
.collect())
}
+
+ async fn links_for_pull_requests(
+ &self,
+ github_keys: &[String],
+ ) -> Result<Vec<PullRequestSessionLinkRow>> {
+ Ok(self
+ .links
+ .lock()
+ .unwrap()
+ .iter()
+ .filter(|(_, key, ..)| {
+ github_keys
+ .iter()
+ .any(|requested| requested.eq_ignore_ascii_case(key))
+ })
+ .map(|(session, key, source, _)| PullRequestSessionLinkRow {
+ github_key: key.clone(),
+ session: *session,
+ source: *source,
+ thread_parent: Some(MessageParent::Channel(session.as_uuid())),
+ })
+ .collect())
+ }
}
struct ViewableSessions(HashSet<AgentSessionId>);
@@ -260,3 +283,95 @@ async fn sessions_for_a_pull_request_are_the_linked_ones_the_viewer_can_view() {
assert_eq!(sessions, vec![visible]);
}
+
+#[tokio::test]
+async fn sessions_for_pull_requests_answers_each_requested_pull_request_in_order() {
+ let visible = AgentSessionId::new();
+ let hidden = AgentSessionId::new();
+ let links = Arc::new(StubLinks::with_agent_link(
+ visible,
+ "Macro-Inc/Macro/pull/7",
+ ));
+ links.links.lock().unwrap().extend([
+ (
+ visible,
+ "macro-inc/macro/pull/9".to_owned(),
+ PullRequestLinkSource::User,
+ None,
+ ),
+ (
+ hidden,
+ "macro-inc/macro/pull/9".to_owned(),
+ PullRequestLinkSource::User,
+ None,
+ ),
+ ]);
+ let service = service(&links, &[visible]);
+
+ let pull_requests = service
+ .sessions_for_pull_requests(
+ &user(),
+ &[
+ "https://github.com/macro-inc/macro/pull/9".to_owned(),
+ "https://github.com/macro-inc/macro/pull/8".to_owned(),
+ "https://github.com/macro-inc/macro/pull/7#discussion".to_owned(),
+ ],
+ )
+ .await
+ .unwrap();
+
+ let summary: Vec<_> = pull_requests
+ .iter()
+ .map(|pull_request| {
+ (
+ pull_request.github_key.as_str(),
+ pull_request
+ .sessions
+ .iter()
+ .map(|session| (session.session_id, session.source))
+ .collect::<Vec<_>>(),
+ )
+ })
+ .collect();
+ assert_eq!(
+ summary,
+ vec![
+ (
+ "macro-inc/macro/pull/9",
+ vec![(visible.as_uuid(), PullRequestLinkSource::User)]
+ ),
+ ("macro-inc/macro/pull/8", vec![]),
+ (
+ "macro-inc/macro/pull/7",
+ vec![(visible.as_uuid(), PullRequestLinkSource::Agent)]
+ ),
+ ]
+ );
+ assert_eq!(
+ pull_requests[0].sessions[0].thread_parent,
+ Some(MessageParent::Channel(visible.as_uuid()))
+ );
+}
+
+#[tokio::test]
+async fn sessions_for_pull_requests_rejects_oversized_and_invalid_requests() {
+ let links = Arc::new(StubLinks::default());
+ let service = service(&links, &[]);
+
+ let too_many: Vec<_> = (1..=MAX_PULL_REQUESTS_PER_LOOKUP + 1)
+ .map(|number| format!("https://github.com/macro-inc/macro/pull/{number}"))
+ .collect();
+ assert!(matches!(
+ service.sessions_for_pull_requests(&user(), &too_many).await,
+ Err(AgentSessionError::TooManyPullRequests(_))
+ ));
+ assert!(matches!(
+ service
+ .sessions_for_pull_requests(
+ &user(),
+ &["https://github.com/macro-inc/macro/issues/1".to_owned()]
+ )
+ .await,
+ Err(AgentSessionError::InvalidPullRequestUrl)
+ ));
+}
diff --git a/crates/agent_session/src/inbound/axum_router.rs b/crates/agent_session/src/inbound/axum_router.rs
index 5b628f50f4..2b6a69eb5e 100644
--- a/crates/agent_session/src/inbound/axum_router.rs
+++ b/crates/agent_session/src/inbound/axum_router.rs
@@ -391,6 +391,7 @@ impl IntoResponse for AgentSessionApiError {
}
Self::Domain(
error @ (AgentSessionError::TooManyPreviewIds(_)
+ | AgentSessionError::TooManyPullRequests(_)
| AgentSessionError::InvalidPullRequestUrl),
) => (StatusCode::BAD_REQUEST, error.to_string()).into_response(),
Self::Domain(error @ AgentSessionError::Archived(_)) => {
diff --git a/crates/agent_session/src/inbound/axum_router/pull_requests.rs b/crates/agent_session/src/inbound/axum_router/pull_requests.rs
index b1041ee2ec..1e8ce6b7ef 100644
--- a/crates/agent_session/src/inbound/axum_router/pull_requests.rs
+++ b/crates/agent_session/src/inbound/axum_router/pull_requests.rs
@@ -19,7 +19,9 @@ use serde::{Deserialize, Serialize};
use utoipa::ToSchema;
use super::{AgentSessionApiError, AgentSessionRouterState};
-use crate::domain::pull_request_links::{SessionPullRequestLink, SessionPullRequestLinks};
+use crate::domain::pull_request_links::{
+ PullRequestSessions, SessionPullRequestLink, SessionPullRequestLinks,
+};
/// Pull request routes, mounted below `/agent-sessions`.
pub fn agent_session_pull_request_router<T, Access, Auth, S>(
@@ -42,6 +44,10 @@ where
"/by-pull-request",
post(sessions_for_pull_request::<T, Access, Auth>),
)
+ .route(
+ "/by-pull-requests",
+ post(sessions_for_pull_requests::<T, Access, Auth>),
+ )
.with_state(state)
}
@@ -53,6 +59,22 @@ pub struct PullRequestUrl {
pub url: String,
}
+/// GitHub pull requests, by URL.
+#[derive(Debug, Deserialize, ToSchema)]
+#[serde(rename_all = "camelCase")]
+pub struct PullRequestUrls {
+ /// Pull request GitHub URLs, at most 100.
+ pub urls: Vec<String>,
+}
+
+/// The sessions associated with each requested pull request.
+#[derive(Debug, Serialize, ToSchema)]
+#[serde(rename_all = "camelCase")]
+pub struct PullRequestsSessionsResponse {
+ /// One entry per requested pull request, in request order.
+ pub pull_requests: Vec<PullRequestSessions>,
+}
+
/// The pull requests associated with a session.
#[derive(Debug, Serialize, ToSchema)]
#[serde(rename_all = "camelCase")]
@@ -204,3 +226,36 @@ pub async fn sessions_for_pull_request<
.collect(),
}))
}
+
+#[utoipa::path(
+ post,
+ path = "/agent-sessions/by-pull-requests",
+ tag = "agent-sessions",
+ operation_id = "agent_sessions_for_pull_requests",
+ request_body = PullRequestUrls,
+ responses(
+ (status = 200, body = PullRequestsSessionsResponse),
+ (status = 400, body = String),
+ (status = 401, body = String),
+ (status = 500, body = String),
+ )
+)]
+/// List the sessions associated with each of up to 100 pull requests that the caller can view,
+/// with the thread each session was started from.
+#[tracing::instrument(skip_all, err(Debug))]
+pub async fn sessions_for_pull_requests<
+ T: SessionPullRequestLinks,
+ Access: EntityAccessService,
+ Auth: MacroAuthorizationService,
+>(
+ State(state): State<AgentSessionRouterState<T, Access, Auth>>,
+ caller: MacroAuthorizationExtractor<Auth, ActingUser>,
+ Json(request): Json<PullRequestUrls>,
+) -> Result<Json<PullRequestsSessionsResponse>, AgentSessionApiError> {
+ Ok(Json(PullRequestsSessionsResponse {
+ pull_requests: state
+ .service
+ .sessions_for_pull_requests(&caller.authorization.user.macro_user_id, &request.urls)
+ .await?,
+ }))
+}
diff --git a/crates/agent_session/src/outbound/postgres/pull_request.rs b/crates/agent_session/src/outbound/postgres/pull_request.rs
index 4f62d3f82c..d5c1148640 100644
--- a/crates/agent_session/src/outbound/postgres/pull_request.rs
+++ b/crates/agent_session/src/outbound/postgres/pull_request.rs
@@ -154,4 +154,49 @@ impl<B: BotFacts + 'static> crate::domain::pull_request_links::SessionPullReques
.map_err(anyhow::Error::from)?;
Ok(ids.into_iter().map(AgentSessionId::new_from_uuid).collect())
}
+
+ async fn links_for_pull_requests(
+ &self,
+ github_keys: &[String],
+ ) -> Result<Vec<crate::domain::pull_request_links::PullRequestSessionLinkRow>> {
+ use crate::domain::pull_request_links::{PullRequestLinkSource, PullRequestSessionLinkRow};
+
+ if github_keys.is_empty() {
+ return Ok(Vec::new());
+ }
+ let keys: Vec<String> = github_keys.iter().map(|key| key.to_lowercase()).collect();
+ let rows = sqlx::query!(
+ r#"
+ SELECT
+ link.github_key,
+ link.agent_session_id,
+ link.source,
+ (SELECT jsonb_build_object('type', parent_entity_type, 'id', parent_entity_id)
+ FROM comms_messages WHERE id = session.thread_id)
+ AS "thread_parent?: Json<MessageParent>"
+ FROM agent_session_pull_request AS link
+ JOIN agent_session AS session ON session.id = link.agent_session_id
+ WHERE lower(link.github_key) = ANY($1)
+ ORDER BY link.created_at, link.agent_session_id
+ "#,
+ &keys,
+ )
+ .fetch_all(&self.pool)
+ .await
+ .map_err(anyhow::Error::from)?;
+
+ Ok(rows
+ .into_iter()
+ .map(|row| PullRequestSessionLinkRow {
+ github_key: row.github_key,
+ session: AgentSessionId::new_from_uuid(row.agent_session_id),
+ source: if row.source == "agent" {
+ PullRequestLinkSource::Agent
+ } else {
+ PullRequestLinkSource::User
+ },
+ thread_parent: row.thread_parent.map(|parent| parent.0),
+ })
+ .collect())
+ }
}
diff --git a/crates/agent_session/src/outbound/postgres/test.rs b/crates/agent_session/src/outbound/postgres/test.rs
index 3572b7196a..de15e7adbb 100644
--- a/crates/agent_session/src/outbound/postgres/test.rs
+++ b/crates/agent_session/src/outbound/postgres/test.rs
@@ -2372,6 +2372,51 @@ async fn pull_request_links_keep_the_pull_request_the_agent_opened(pool: PgPool)
);
}
+#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")]
+async fn links_for_pull_requests_returns_every_link_to_the_requested_keys(pool: PgPool) {
+ use crate::domain::pull_request::SessionPullRequestRepo;
+ use crate::domain::pull_request_links::{PullRequestLinkSource, SessionPullRequestLinkRepo};
+ let repo = test_repo(&pool);
+ let bot = create_test_bot(&pool).await;
+ let first = create_session(&repo, new_session(bot, None, None)).await;
+ let second = create_session(&repo, new_session(bot, None, None)).await;
+ let owner = first.owner_user().unwrap();
+
+ repo.record_pull_request(first.id, owner, "https://github.com/Org/repo/pull/7", None)
+ .await
+ .unwrap();
+ repo.link_pull_request(second.id, "org/repo/pull/7", owner)
+ .await
+ .unwrap();
+ repo.link_pull_request(second.id, "org/repo/pull/9", owner)
+ .await
+ .unwrap();
+
+ let rows = repo
+ .links_for_pull_requests(&["org/repo/pull/7".to_owned(), "org/repo/pull/8".to_owned()])
+ .await
+ .unwrap();
+ assert_eq!(
+ rows.iter()
+ .map(|row| (row.github_key.to_lowercase(), row.session, row.source))
+ .collect::<Vec<_>>(),
+ vec![
+ (
+ "org/repo/pull/7".to_owned(),
+ first.id,
+ PullRequestLinkSource::Agent
+ ),
+ (
+ "org/repo/pull/7".to_owned(),
+ second.id,
+ PullRequestLinkSource::User
+ ),
+ ]
+ );
+ assert!(rows.iter().all(|row| row.thread_parent.is_none()));
+ assert!(repo.links_for_pull_requests(&[]).await.unwrap().is_empty());
+}
+
#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")]
async fn rotating_a_session_credential_revokes_the_previous_one(pool: PgPool) {
let repo = test_repo(&pool);
diff --git a/crates/documents/src/domain/models.rs b/crates/documents/src/domain/models.rs
index 1cfd509cf6..02211c514d 100644
--- a/crates/documents/src/domain/models.rs
+++ b/crates/documents/src/domain/models.rs
@@ -287,6 +287,39 @@ impl GithubPullRequestsResponse {
}
}
+/// The most pull requests one task lookup answers, one Reviews page.
+pub const MAX_GITHUB_PULL_REQUEST_TASK_LOOKUP: usize = 100;
+
+/// Request body for looking up the tasks linked to GitHub pull requests.
+#[derive(serde::Serialize, serde::Deserialize, Eq, PartialEq, Debug, Clone)]
+#[cfg_attr(feature = "axum", derive(utoipa::ToSchema))]
+#[serde(rename_all = "camelCase")]
+pub struct GithubPullRequestTasksRequest {
+ /// Pull request `owner/repo/pull/number` keys, at most 100.
+ pub github_keys: Vec<String>,
+}
+
+/// The tasks linked to one GitHub pull request.
+#[derive(serde::Serialize, serde::Deserialize, Eq, PartialEq, Debug, Clone)]
+#[cfg_attr(feature = "axum", derive(utoipa::ToSchema))]
+#[serde(rename_all = "camelCase")]
+pub struct GithubPullRequestTasks {
+ /// The pull request's `owner/repo/pull/number` key, as requested.
+ pub github_key: String,
+ /// Ids of the task documents the pull request references, oldest link first. Empty when
+ /// the caller cannot see the pull request. The caller may still lack access to a task.
+ pub task_ids: Vec<String>,
+}
+
+/// The tasks linked to each requested GitHub pull request.
+#[derive(serde::Serialize, serde::Deserialize, Eq, PartialEq, Debug, Clone)]
+#[cfg_attr(feature = "axum", derive(utoipa::ToSchema))]
+#[serde(rename_all = "camelCase")]
+pub struct GithubPullRequestTasksResponse {
+ /// One entry per requested pull request, in request order.
+ pub pull_requests: Vec<GithubPullRequestTasks>,
+}
+
/// Request body for copying a document.
#[derive(serde::Serialize, serde::Deserialize, Eq, PartialEq, Debug)]
#[cfg_attr(feature = "axum", derive(utoipa::ToSchema))]
diff --git a/crates/documents/src/domain/ports.rs b/crates/documents/src/domain/ports.rs
index 75ec845339..2cd33fb470 100644
--- a/crates/documents/src/domain/ports.rs
+++ b/crates/documents/src/domain/ports.rs
@@ -37,9 +37,9 @@ use model_entity::Entity;
use super::models::{
BranchNameContext, CopyDocumentRepoArgs, CreateDocumentRepoArgs, CreateTaskRequest,
DocumentError, DocumentTeamShare, DocumentTeamShareResponse, EditDocumentRepoArgs,
- EditDocumentServiceArgs, EmailImportRepoOutcome, GithubPullRequestsResponse,
- ImportEmailAttachmentRepoArgs, LocationQueryParams, NewDocument, OwnerTeam, TaskBranchName,
- TeamTaskMetadata,
+ EditDocumentServiceArgs, EmailImportRepoOutcome, GithubPullRequestTasksResponse,
+ GithubPullRequestsResponse, ImportEmailAttachmentRepoArgs, LocationQueryParams, NewDocument,
+ OwnerTeam, TaskBranchName, TeamTaskMetadata,
};
/// Repository for accessing document data from the database.
@@ -237,6 +237,12 @@ pub trait DocumentRepo: Send + Sync + 'static {
task_short_id: &str,
) -> impl Future<Output = Result<Vec<String>, Self::Err>> + Send;
+ /// Get `(github_key, task_short_id)` links for the pull requests `github_keys`, oldest first.
+ fn get_github_pull_request_task_links(
+ &self,
+ github_keys: &[String],
+ ) -> impl Future<Output = Result<Vec<(String, String)>, Self::Err>> + Send;
+
/// Load persisted ownership, membership and explicit sharing facts for policy.
///
/// A document whose canonical state is still NULL but whose owner's team holds a
@@ -531,6 +537,14 @@ pub trait DocumentService: Send + Sync + 'static {
document_context: &DocumentBasic,
) -> impl Future<Output = Result<GithubPullRequestsResponse, DocumentError>> + Send;
+ /// Get the tasks linked to each GitHub pull request in `github_keys` that `user_id` can
+ /// see, in request order.
+ fn get_github_pull_request_tasks(
+ &self,
+ user_id: &str,
+ github_keys: Vec<String>,
+ ) -> impl Future<Output = Result<GithubPullRequestTasksResponse, DocumentError>> + Send;
+
/// Edit a document's metadata and share permissions.
///
/// Validates permissions, updates the document, sends invalidation event,
diff --git a/crates/documents/src/domain/service.rs b/crates/documents/src/domain/service.rs
index 0391825356..c980e0d8b3 100644
--- a/crates/documents/src/domain/service.rs
+++ b/crates/documents/src/domain/service.rs
@@ -63,8 +63,9 @@ use super::events::{
use super::models::{
CloudFrontConfig, CopyDocumentRepoArgs, CreateDocumentRepoArgs, CreateTaskRequest,
DocumentError, DocumentTeamShareResponse, EditDocumentRepoArgs, EditDocumentServiceArgs,
- EmailImportRepoOutcome, FileTypeUpdate, GithubPullRequest, GithubPullRequestsResponse,
- ImportEmailAttachmentRepoArgs, LocationQueryParams, NewDocument, TaskBranchName,
+ EmailImportRepoOutcome, FileTypeUpdate, GithubPullRequest, GithubPullRequestTasks,
+ GithubPullRequestTasksResponse, GithubPullRequestsResponse, ImportEmailAttachmentRepoArgs,
+ LocationQueryParams, MAX_GITHUB_PULL_REQUEST_TASK_LOOKUP, NewDocument, TaskBranchName,
TeamTaskMetadata,
};
#[cfg(feature = "document_create")]
@@ -1310,6 +1311,98 @@ impl<
Ok(response)
}
+ #[tracing::instrument(err, skip(self, github_keys), fields(github_keys = github_keys.len()))]
+ async fn get_github_pull_request_tasks(
+ &self,
+ user_id: &str,
+ github_keys: Vec<String>,
+ ) -> Result<GithubPullRequestTasksResponse, DocumentError> {
+ if github_keys.len() > MAX_GITHUB_PULL_REQUEST_TASK_LOOKUP {
+ return Err(DocumentError::BadRequest(format!(
+ "at most {MAX_GITHUB_PULL_REQUEST_TASK_LOOKUP} pull requests per lookup"
+ )));
+ }
+ let mut response = GithubPullRequestTasksResponse {
+ pull_requests: github_keys
+ .into_iter()
+ .map(|github_key| GithubPullRequestTasks {
+ github_key,
+ task_ids: Vec::new(),
+ })
+ .collect(),
+ };
+ let mut keys: Vec<String> = response
+ .pull_requests
+ .iter()
+ .map(|pull_request| pull_request.github_key.clone())
+ .collect();
+ keys.sort();
+ keys.dedup();
+ if keys.is_empty() {
+ return Ok(response);
+ }
+
+ let links = self
+ .repo
+ .get_github_pull_request_task_links(&keys)
+ .await
+ .map_err(|e| DocumentError::Internal(e.into()))?;
+ if links.is_empty() {
+ return Ok(response);
+ }
+
+ let converter = macro_uuid::ShortUuidConverter::default();
+ let mut task_ids_by_key = std::collections::HashMap::<String, Vec<String>>::new();
+ for (github_key, task_short_id) in links {
+ match converter.to_uuid(&task_short_id) {
+ Ok(task_id) => task_ids_by_key
+ .entry(github_key)
+ .or_default()
+ .push(task_id.to_string()),
+ Err(error) => tracing::warn!(
+ error = ?error,
+ github_key = %github_key,
+ "skipping malformed task id linked to a GitHub pull request"
+ ),
+ }
+ }
+
+ // Task ids come from the pull request's own text, so they are visible to whoever can
+ // see the pull request; Soup still checks access to each task.
+ let team_ids = self
+ .repo
+ .get_team_ids_for_user(user_id)
+ .await
+ .map_err(|e| DocumentError::Internal(e.into()))?;
+ let mut source_ids = Vec::with_capacity(team_ids.len() + 1);
+ source_ids.push(SourceId::user(user_id.to_string()));
+ source_ids.extend(team_ids.into_iter().map(SourceId::team));
+
+ let mut visible_keys = std::collections::HashSet::new();
+ for github_key in task_ids_by_key.keys() {
+ let foreign_entities = self
+ .foreign_entity_service
+ .get_foreign_entities_by_foreign_entity_id(
+ github_key,
+ Some(GITHUB_PULL_REQUEST_FOREIGN_ENTITY_SOURCE),
+ )
+ .await
+ .map_err(|error| DocumentError::Internal(error.into()))?;
+ if first_visible_foreign_entity(&foreign_entities, Some(&source_ids)).is_some() {
+ visible_keys.insert(github_key.clone());
+ }
+ }
+
+ for pull_request in &mut response.pull_requests {
+ if visible_keys.contains(&pull_request.github_key)
+ && let Some(task_ids) = task_ids_by_key.get(&pull_request.github_key)
+ {
+ pull_request.task_ids = task_ids.clone();
+ }
+ }
+ Ok(response)
+ }
+
#[tracing::instrument(err, skip(self, document_context))]
async fn get_document_content(
&self,
diff --git a/crates/documents/src/domain/service/tests.rs b/crates/documents/src/domain/service/tests.rs
index 13e41abd9a..b016328d84 100644
--- a/crates/documents/src/domain/service/tests.rs
+++ b/crates/documents/src/domain/service/tests.rs
@@ -3337,3 +3337,96 @@ async fn user_display_names_join_the_parts_a_user_set() {
assert_eq!(name.as_deref(), expected);
}
}
+
+#[tokio::test]
+async fn github_pull_request_tasks_are_returned_only_for_visible_pull_requests() {
+ let visible_task = "00000000-0000-0000-0000-000000000201";
+ let other_task = "00000000-0000-0000-0000-000000000202";
+ let hidden_task = "00000000-0000-0000-0000-000000000203";
+ let short = |id: &str| short_id_for_entity_id(id).unwrap();
+ let links = vec![
+ ("macro/repo/pull/1".to_string(), short(visible_task)),
+ ("macro/repo/pull/1".to_string(), short(other_task)),
+ ("macro/repo/pull/2".to_string(), short(hidden_task)),
+ (
+ "macro/repo/pull/1".to_string(),
+ "not base58 0OIl".to_string(),
+ ),
+ ];
+ let mut repo = make_mock_repo();
+ repo.expect_get_github_pull_request_task_links()
+ .withf(|keys| {
+ keys == [
+ "macro/repo/pull/1".to_string(),
+ "macro/repo/pull/2".to_string(),
+ "macro/repo/pull/3".to_string(),
+ ]
+ })
+ .return_once(move |_| Box::pin(std::future::ready(Ok(links))));
+ expect_authenticated_team_lookup(&mut repo, Vec::new());
+
+ let service = make_test_service_with_foreign_entities(
+ repo,
+ vec![
+ make_foreign_entity(
+ uuid::uuid!("00000000-0000-0000-0000-000000000211"),
+ "macro/repo/pull/1",
+ GITHUB_PULL_REQUEST_FOREIGN_ENTITY_SOURCE,
+ "user",
+ ),
+ make_foreign_entity(
+ uuid::uuid!("00000000-0000-0000-0000-000000000212"),
+ "macro/repo/pull/2",
+ GITHUB_PULL_REQUEST_FOREIGN_ENTITY_SOURCE,
+ "user",
+ ),
+ ],
+ );
+
+ let response = service
+ .get_github_pull_request_tasks(
+ vec![
+ "macro/repo/pull/3".to_string(),
+ "macro/repo/pull/1".to_string(),
+ "macro/repo/pull/2".to_string(),
+ ],
+ )
+ .await
+ .unwrap();
+
+ assert_eq!(
+ response
+ .pull_requests
+ .iter()
+ .map(|pull_request| (
+ pull_request.github_key.as_str(),
+ pull_request.task_ids.clone()
+ ))
+ .collect::<Vec<_>>(),
+ vec![
+ ("macro/repo/pull/3", vec![]),
+ (
+ "macro/repo/pull/1",
+ vec![visible_task.to_string(), other_task.to_string()]
+ ),
+ ("macro/repo/pull/2", vec![]),
+ ]
+ );
+}
+
+#[tokio::test]
+async fn github_pull_request_tasks_reject_oversized_lookups() {
+ let service = make_test_service(make_mock_repo());
+ let keys = (1..=101)
+ .map(|number| format!("macro/repo/pull/{number}"))
+ .collect();
+
+ let result = service
+ .get_github_pull_request_tasks("macro|[email protected]", keys)
+ .await;
+
+ assert!(matches!(result, Err(DocumentError::BadRequest(_))));
+}
diff --git a/crates/documents/src/inbound/axum_router.rs b/crates/documents/src/inbound/axum_router.rs
index df17c046ea..1ae0b15bac 100644
--- a/crates/documents/src/inbound/axum_router.rs
+++ b/crates/documents/src/inbound/axum_router.rs
@@ -7,6 +7,7 @@
//! - `GET /{document_id}/location_v3` — get document content location (presigned URL)
//! - `GET /{document_id}/branch_name` — get short ID + task-aware git branch name (when the document is a task)
//! - `GET /{document_id}/github_prs` — get GitHub pull requests associated with a task document
+//! - `POST /github_prs/tasks` — get the tasks linked to each of a batch of GitHub pull requests
//! - `GET /{document_id}/short_id` — get document short ID
//! - `GET`/`PUT /{document_id}/team_share` — get/set the document's team-share state
//! - `POST /create_markdown` — create and initialize a markdown document
@@ -34,6 +35,7 @@ pub mod get_branch_name;
pub mod get_cached_snapshot_url;
pub mod get_document;
pub mod get_document_by_team_slug;
+pub mod get_github_pull_request_tasks;
pub mod get_github_pull_requests;
pub mod get_location;
pub mod get_short_id;
@@ -79,6 +81,7 @@ use self::{
get_cached_snapshot_url::get_cached_snapshot_url_handler,
get_document::get_document_handler,
get_document_by_team_slug::get_document_by_team_slug_handler,
+ get_github_pull_request_tasks::get_github_pull_request_tasks_handler,
get_github_pull_requests::get_github_pull_requests_handler,
get_location::get_location_v3_handler,
get_short_id::get_short_id_handler,
@@ -306,6 +309,10 @@ where
"/create_task",
axum::routing::post(create_task_handler::<T, Svc, Auth>),
)
+ .route(
+ "/github_prs/tasks",
+ axum::routing::post(get_github_pull_request_tasks_handler::<T, Svc, Auth>),
+ )
.route(
"/similarity_search",
axum::routing::post(task_similarity_search_handler::<T, Svc, Auth>),
diff --git a/crates/documents/src/inbound/axum_router/get_github_pull_request_tasks.rs b/crates/documents/src/inbound/axum_router/get_github_pull_request_tasks.rs
new file mode 100644
index 0000000000..43d08d3241
--- /dev/null
+++ b/crates/documents/src/inbound/axum_router/get_github_pull_request_tasks.rs
@@ -0,0 +1,47 @@
+//! Handler for `POST /documents/github_prs/tasks`.
+
+use axum::{Json, extract::State};
+use entity_access::domain::ports::EntityAccessService;
+use macro_authorization::{ActingUser, MacroAuthorizationExtractor, MacroAuthorizationService};
+
+use super::DocumentRouterState;
+use crate::domain::models::{
+ DocumentError, GithubPullRequestTasksRequest, GithubPullRequestTasksResponse,
+};
+use crate::domain::ports::DocumentService;
+
+/// Handler for `POST /documents/github_prs/tasks`.
+///
+/// Returns the task documents each of up to 100 GitHub pull requests references, for the pull
+/// requests the caller can see.
+#[utoipa::path(
+ tag = "document",
+ post,
+ path = "/documents/github_prs/tasks",
+ operation_id = "get_github_pull_request_tasks",
+ request_body = GithubPullRequestTasksRequest,
+ responses(
+ (status = 200, body = GithubPullRequestTasksResponse),
+ (status = 400, body = model_error_response::ErrorResponse),
+ (status = 401, body = model_error_response::ErrorResponse),
+ (status = 500, body = model_error_response::ErrorResponse),
+ )
+)]
+#[tracing::instrument(skip_all, err)]
+pub async fn get_github_pull_request_tasks_handler<
+ T: DocumentService,
+ Svc: EntityAccessService,
+ Auth: MacroAuthorizationService,
+>(
+ State(state): State<DocumentRouterState<T, Svc, Auth>>,
+ caller: MacroAuthorizationExtractor<Auth, ActingUser>,
+ Json(request): Json<GithubPullRequestTasksRequest>,
+) -> Result<Json<GithubPullRequestTasksResponse>, DocumentError> {
+ let user_id = caller.authorization.user.macro_user_id;
+ Ok(Json(
+ state
+ .service
+ .get_github_pull_request_tasks(user_id.as_ref(), request.github_keys)
+ .await?,
+ ))
+}
diff --git a/crates/documents/src/inbound/axum_router/tests.rs b/crates/documents/src/inbound/axum_router/tests.rs
index fe32905350..fea03e9d30 100644
--- a/crates/documents/src/inbound/axum_router/tests.rs
+++ b/crates/documents/src/inbound/axum_router/tests.rs
@@ -373,6 +373,13 @@ impl DocumentService for FakeDocumentService {
) -> Result<GithubPullRequestsResponse, DocumentError> {
panic!("unexpected get_task_github_pull_requests call")
}
+ async fn get_github_pull_request_tasks(
+ &self,
+ _user_id: &str,
+ _github_keys: Vec<String>,
+ ) -> Result<crate::domain::models::GithubPullRequestTasksResponse, DocumentError> {
+ panic!("unexpected get_github_pull_request_tasks call")
+ }
async fn edit_document(
&self,
diff --git a/crates/documents/src/inbound/toolset/edit_document/test.rs b/crates/documents/src/inbound/toolset/edit_document/test.rs
index 11b2a19ec0..c62a527717 100644
--- a/crates/documents/src/inbound/toolset/edit_document/test.rs
+++ b/crates/documents/src/inbound/toolset/edit_document/test.rs
@@ -233,6 +233,13 @@ impl DocumentService for FakeDocumentService {
) -> Result<GithubPullRequestsResponse, DocumentError> {
panic!("unexpected get_task_github_pull_requests call")
}
+ async fn get_github_pull_request_tasks(
+ &self,
+ _user_id: &str,
+ _github_keys: Vec<String>,
+ ) -> Result<crate::domain::models::GithubPullRequestTasksResponse, DocumentError> {
+ panic!("unexpected get_github_pull_request_tasks call")
+ }
async fn edit_document(
&self,
diff --git a/crates/documents/src/outbound/pg_document_repo.rs b/crates/documents/src/outbound/pg_document_repo.rs
index d1adefcbb0..b169121af5 100644
--- a/crates/documents/src/outbound/pg_document_repo.rs
+++ b/crates/documents/src/outbound/pg_document_repo.rs
@@ -943,6 +943,28 @@ impl<B: BotFacts + 'static> DocumentRepo for PgDocumentRepo<B> {
.await
}
+ #[tracing::instrument(err, skip(self, github_keys), fields(github_keys = github_keys.len()))]
+ async fn get_github_pull_request_task_links(
+ &self,
+ github_keys: &[String],
+ ) -> Result<Vec<(String, String)>, Self::Err> {
+ let rows = sqlx::query!(
+ r#"
+ SELECT github_key, task_id
+ FROM github_pr_tasks
+ WHERE github_key = ANY($1)
+ ORDER BY created_at ASC, task_id ASC
+ "#,
+ github_keys,
+ )
+ .fetch_all(&self.pool)
+ .await?;
+ Ok(rows
+ .into_iter()
+ .map(|row| (row.github_key, row.task_id))
+ .collect())
+ }
+
#[tracing::instrument(err, skip(self))]
async fn get_team_share_facts(
&self,
diff --git a/crates/documents/src/outbound/pg_document_repo/tests.rs b/crates/documents/src/outbound/pg_document_repo/tests.rs
index fe679bc152..67bb856e2f 100644
--- a/crates/documents/src/outbound/pg_document_repo/tests.rs
+++ b/crates/documents/src/outbound/pg_document_repo/tests.rs
@@ -3314,3 +3314,55 @@ async fn failed_sponsor_grant_leaves_no_bot_owned_rows(pool: Pool<Postgres>) {
}
);
}
+
+#[sqlx::test(
+ migrator = "MACRO_DB_MIGRATIONS",
+ fixtures(path = "../../../fixtures", scripts("documents_test_data"))
+)]
+async fn test_get_github_pull_request_task_links_returns_requested_keys_oldest_first(
+ pool: Pool<Postgres>,
+) {
+ let repo = test_repo(pool.clone());
+ let task = create_task_for_team(&repo, "macro|[email protected]", TEST_TEAM_ID).await;
+ let other_task = create_task_for_team(&repo, "macro|[email protected]", TEST_TEAM_ID).await;
+ let task_short_id = short_id_for_document_id(&task.document_id);
+ let other_task_short_id = short_id_for_document_id(&other_task.document_id);
+ let created_at = chrono::DateTime::parse_from_rfc3339("2026-01-01T00:00:00Z")
+ .unwrap()
+ .with_timezone(&chrono::Utc);
+
+ insert_github_pr_task(
+ &pool,
+ "macro/macro/pull/1",
+ &other_task_short_id,
+ created_at + chrono::Duration::seconds(2),
+ )
+ .await;
+ insert_github_pr_task(&pool, "macro/macro/pull/1", &task_short_id, created_at).await;
+ insert_github_pr_task(
+ &pool,
+ "macro/macro/pull/2",
+ &task_short_id,
+ created_at + chrono::Duration::seconds(1),
+ )
+ .await;
+ insert_github_pr_task(&pool, "macro/macro/pull/3", &task_short_id, created_at).await;
+
+ let links = repo
+ .get_github_pull_request_task_links(&[
+ "macro/macro/pull/1".to_string(),
+ "macro/macro/pull/2".to_string(),
+ "macro/macro/pull/9".to_string(),
+ ])
+ .await
+ .unwrap();
+
+ assert_eq!(
+ links,
+ vec![
+ ("macro/macro/pull/1".to_string(), task_short_id.clone()),
+ ("macro/macro/pull/2".to_string(), task_short_id),
+ ("macro/macro/pull/1".to_string(), other_task_short_id),
+ ]
+ );
+}
diff --git a/crates/github/src/domain/service/sync/test.rs b/crates/github/src/domain/service/sync/test.rs
index e092314b24..c65adef483 100644
--- a/crates/github/src/domain/service/sync/test.rs
+++ b/crates/github/src/domain/service/sync/test.rs
@@ -172,6 +172,13 @@ impl DocumentService for StubDocumentService {
) -> Result<documents::domain::models::GithubPullRequestsResponse, DocumentError> {
unimplemented!()
}
+ async fn get_github_pull_request_tasks(
+ &self,
+ _user_id: &str,
+ _github_keys: Vec<String>,
+ ) -> Result<documents::domain::models::GithubPullRequestTasksResponse, DocumentError> {
+ unimplemented!()
+ }
async fn get_project_children(
&self,
_project_id: &str,
diff --git a/docs/AGENT_GUIDE/tasks.md b/docs/AGENT_GUIDE/tasks.md
index 82a39f8f1f..a6f4569543 100644
--- a/docs/AGENT_GUIDE/tasks.md
+++ b/docs/AGENT_GUIDE/tasks.md
@@ -106,14 +106,17 @@ offer independent Open, Closed, and Merged selections. Custom multi-status
selections hide the tabs, except the combined Closed preset keeps them visible.
A partial Closed-only or Merged-only selection leaves both tabs unhighlighted.
Status combines with other filters, counts toward filter badges, and applies
-before pagination. Clearing filters resets to Open. Other filters cover repository,
-author, assignee, label, and, when a GitHub identity is linked, reviews (Reviewed
-by you, Not reviewed by you, and Awaiting review from you). The list topbar says
+before pagination. Clearing filters resets to Open. Other filters cover
+priority, linked work, started from, repository, author, assignee, label, and,
+when a GitHub identity is linked, reviews (Reviewed by you, Not reviewed by you,
+and Awaiting review from you). The list topbar says
Reviews when narrow or when the sidebar is collapsed; the selected scope stays
visible as a heading above search.
Saved review selections stay inactive, including their filter badge and empty-state
copy, while the GitHub identity is unavailable; they resume when it returns.
-Sort offers Recently updated, Least recently updated, Newest, and Oldest. When visible PRs
+Sort offers Priority, Recently updated, Least recently updated, Newest, and Oldest;
+Priority orders the loaded rows most urgent first and keeps recency within a
+priority. When visible PRs
have GitHub labels, a Labels section below Favorites lists them with their
colors; choosing a label shows only PRs with it, and choosing it again clears
it. PR rows use the shared entity layout with selection checkboxes,
@@ -130,6 +133,34 @@ Chip clicks do not open or select the containing PR row. Empty results have no
chip, and loading, private, deleted, or unavailable sessions never offer navigation.
The PR's status pill stays passive; status filtering lives in the Reviews list tabs.
+Each PR row shows what it links to. A priority icon before the title comes from
+the most urgent open linked task (a closed task counts only when none is open),
+otherwise from a GitHub priority label (`P0`–`P3`, `priority: high`, `urgent`,
+`critical`); the tooltip names its source. Pills before the author show the
+linked **Agent session**s (sessions an agent opened the PR from, or a person
+linked), **Customer**s (CRM companies in linked tasks' Companies property, or a
+company whose thread started a session), **Ticket**s (tasks the PR text, branch,
+or comments mention as `MACRO-<id>`, and tasks whose thread started a session),
+and **Channel**s (channels whose thread started a session). A pill with one item
+opens it (Shift-click for another split); with more it shows `+N` and opens a
+list. Items the viewer cannot access are omitted. Rows show a pulsing
+placeholder while links load. The first pill names where the PR was started
+(Claude, Codex, Cursor, Devin, Copilot, Jules, or Macro), including PRs opened
+outside Macro: a Macro agent session that opened the PR wins and shows the tool
+its harness ran; otherwise a session link in the description (`claude.ai/code/…`,
+`chatgpt.com/codex/tasks/…`, `cursor.com/agents…`, `app.devin.ai/sessions/…`,
+`jules.google.com/…`, `macro.com/app/agent/…`), then footers such as
+"Generated with Claude Code" or a `Co-Authored-By: Claude` trailer, then the
+bot author (for example `Copilot` or `devin-ai-integration[bot]`), then the
+branch prefix (`claude/`, `codex/`, `cursor/`, `devin/`, `copilot/`, `jules-`).
+Its tooltip names the signal; clicking it opens the Macro session in a split or
+the external session in a new tab. Filters add **Priority** (including No
+priority), **Linked to** (an agent session, a ticket, a customer, a channel),
+and **Started from** (each tool, or Unknown); these run on the loaded rows,
+which wait for their links before matching. The PR side panel's **Linked work**
+section shows the same origin under **Started from**, plus the priority,
+tickets, customers, and channels.
+
PR rows can be added to or removed from Favorites through their context menu or
bulk entity actions. When at least one accessible PR is favorited, Reviews shows
a collapsible Favorites section below the views; the section is hidden otherwise.
diff --git a/packages/sdk/generated/agent-harness/index.ts b/packages/sdk/generated/agent-harness/index.ts
index 7cfb93718a..c515710766 100644
--- a/packages/sdk/generated/agent-harness/index.ts
+++ b/packages/sdk/generated/agent-harness/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, AgentAction, AgentActionId, AgentConfigKindDto, AgentConfigOptionDto, AgentConfigSelectOptionDto, AgentModelDto, AgentModelsStatusDto, AgentPermissionAction, AgentPromptAction, AgentRepositoriesResponse, AgentRepositoryBranchesResponse, AgentRepositoryDto, AgentRespondElicitationAction, AgentSessionChangesPatchResponse, AgentSessionChangesResponse, AgentSessionLogEntryDto, AgentSessionLogResponse, AgentSessionPreviewData, AgentSessionPreviewDto, AgentSessionQueueResponse, AgentSessionResponse, AgentSessionsForPullRequestData, AgentSessionsForPullRequestError, AgentSessionsForPullRequestErrors, AgentSessionsForPullRequestResponse, AgentSessionsForPullRequestResponses, AgentSetConfigOptionAction, AgentSetModelAction, AiAdmissionErrorBody, AnswerAgentSessionToolApprovalData, AnswerAgentSessionToolApprovalError, AnswerAgentSessionToolApprovalErrors, AnswerAgentSessionToolApprovalResponse, AnswerAgentSessionToolApprovalResponses, AnswerToolApprovalRequest, AnswerToolApprovalResponse, BotId, CapabilityHarnessDto, CaptureAttemptDto, CaptureOutcomeDto, ChangedFileDto, ChangesetDto, ChangesetSourceDto, ChannelSharePermission, ClientOptions, CompleteData, CompleteErrors, CompleteRequest, CompleteResponse, CompleteResponses, ControlAgentSessionData, ControlAgentSessionError, ControlAgentSessionErrors, ControlAgentSessionResponse, ControlAgentSessionResponses, ControlRequest, ControlResponse, ControlStatusDto, CreateAgentSessionData, CreateAgentSessionError, CreateAgentSessionErrors, CreateAgentSessionRequest, CreateAgentSessionResponse, CreateAgentSessionResponse2, CreateAgentSessionResponses, CreateSessionThread, DeleteAgentSessionData, DeleteAgentSessionError, DeleteAgentSessionErrors, DeleteAgentSessionResponses, DisconnectData, DisconnectErrors, DisconnectResponse, DisconnectResponses, DiscoverAgentCapabilitiesHandlerData, DiscoverAgentCapabilitiesHandlerErrors, DiscoverAgentCapabilitiesHandlerResponse, DiscoverAgentCapabilitiesHandlerResponses, DiscoverAgentCapabilitiesRequest, DiscoverAgentCapabilitiesResponse, DocumentId, EditQueuedActionData, EditQueuedActionError, EditQueuedActionErrors, EditQueuedActionRequest, EditQueuedActionResponse, EditQueuedActionResponses, ElicitationAnswer, ElicitationContentValue, ElicitationRequestId, EmptyRequest, ExternalSessionResponse, FileChangeKindDto, GetAgentSandboxSizeData, GetAgentSandboxSizeError, GetAgentSandboxSizeErrors, GetAgentSandboxSizeResponse, GetAgentSandboxSizeResponses, GetAgentSessionChangesData, GetAgentSessionChangesError, GetAgentSessionChangesErrors, GetAgentSessionChangesPatchData, GetAgentSessionChangesPatchError, GetAgentSessionChangesPatchErrors, GetAgentSessionChangesPatchResponse, GetAgentSessionChangesPatchResponses, GetAgentSessionChangesResponse, GetAgentSessionChangesResponses, GetAgentSessionData, GetAgentSessionError, GetAgentSessionErrors, GetAgentSessionLogData, GetAgentSessionLogError, GetAgentSessionLogErrors, GetAgentSessionLogResponse, GetAgentSessionLogResponses, GetAgentSessionPermissionsData, GetAgentSessionPermissionsError, GetAgentSessionPermissionsErrors, GetAgentSessionPermissionsResponse, GetAgentSessionPermissionsResponses, GetAgentSessionQueueData, GetAgentSessionQueueError, GetAgentSessionQueueErrors, GetAgentSessionQueueResponse, GetAgentSessionQueueResponses, GetAgentSessionResponse, GetAgentSessionResponses, GitRefDto, LinkAgentSessionPullRequestData, LinkAgentSessionPullRequestError, LinkAgentSessionPullRequestErrors, LinkAgentSessionPullRequestResponse, LinkAgentSessionPullRequestResponses, LinkShare, ListAgentRepositoriesData, ListAgentRepositoriesErrors, ListAgentRepositoriesResponse, ListAgentRepositoriesResponses, ListAgentRepositoryBranchesData, ListAgentRepositoryBranchesErrors, ListAgentRepositoryBranchesResponse, ListAgentRepositoryBranchesResponses, ListAgentSessionPullRequestsData, ListAgentSessionPullRequestsError, ListAgentSessionPullRequestsErrors, ListAgentSessionPullRequestsResponse, ListAgentSessionPullRequestsResponses, LoadAgentModelsHandlerData, LoadAgentModelsHandlerErrors, LoadAgentModelsHandlerResponse, LoadAgentModelsHandlerResponses, LoadAgentModelsRequest, LoadAgentModelsResponse, LogDirectionDto, LogFrameDto, MessageParent, ModelHarnessDto, PermissionAnswer, PreviewAgentSessionsData, PreviewAgentSessionsError, PreviewAgentSessionsErrors, PreviewAgentSessionsRequest, PreviewAgentSessionsResponse, PreviewAgentSessionsResponse2, PreviewAgentSessionsResponses, PromptAttachment, PullRequestLinkSource, PullRequestSessionsResponse, PullRequestUrl, PutAgentSandboxSizeData, PutAgentSandboxSizeError, PutAgentSandboxSizeErrors, PutAgentSandboxSizeResponse, PutAgentSandboxSizeResponses, PutAgentSessionSandboxSizeData, PutAgentSessionSandboxSizeError, PutAgentSessionSandboxSizeErrors, PutAgentSessionSandboxSizeResponse, PutAgentSessionSandboxSizeResponses, QueuedActionDto, RefreshAgentSessionChangesData, RefreshAgentSessionChangesError, RefreshAgentSessionChangesErrors, RefreshAgentSessionChangesResponse, RefreshAgentSessionChangesResponses, RemoveQueuedActionData, RemoveQueuedActionError, RemoveQueuedActionErrors, RemoveQueuedActionResponse, RemoveQueuedActionResponses, RenameAgentSessionData, RenameAgentSessionError, RenameAgentSessionErrors, RenameAgentSessionRequest, RenameAgentSessionResponse, RenameAgentSessionResponses, SandboxSize, SandboxSizeBody, SessionBot, SessionPullRequestLink, SessionPullRequestsResponse, SessionStatusDto, SetAgentSessionArchivedData, SetAgentSessionArchivedError, SetAgentSessionArchivedErrors, SetAgentSessionArchivedRequest, SetAgentSessionArchivedResponse, SetAgentSessionArchivedResponses, SharePermissionV2, StartData, StartErrors, StartResponse, StartResponse2, StartResponses, StatusData, StatusErrors, StatusResponse, StatusResponse2, StatusResponses, SteerQueuedActionData, SteerQueuedActionError, SteerQueuedActionErrors, SteerQueuedActionResponse, SteerQueuedActionResponses, ToolApprovalAnswerDto, ToolApprovalStatusDto, UnlinkAgentSessionPullRequestData, UnlinkAgentSessionPullRequestError, UnlinkAgentSessionPullRequestErrors, UnlinkAgentSessionPullRequestResponse, UnlinkAgentSessionPullRequestResponses, UpdateAgentSessionPermissionsData, UpdateAgentSessionPermissionsError, UpdateAgentSessionPermissionsErrors, UpdateAgentSessionPermissionsResponse, UpdateAgentSessionPermissionsResponses, UpdateChannelSharePermission, UpdateOperation, UpdateSharePermissionRequestV2, WarmAgentSessionHandlerData, WarmAgentSessionHandlerResponse, WarmAgentSessionHandlerResponses, WarmAgentSessionRequest, WarmAgentSessionResponse, WithAgentSessionId } from './types.gen';
+export type { AccessLevel, AgentAction, AgentActionId, AgentConfigKindDto, AgentConfigOptionDto, AgentConfigSelectOptionDto, AgentModelDto, AgentModelsStatusDto, AgentPermissionAction, AgentPromptAction, AgentRepositoriesResponse, AgentRepositoryBranchesResponse, AgentRepositoryDto, AgentRespondElicitationAction, AgentSessionChangesPatchResponse, AgentSessionChangesResponse, AgentSessionLogEntryDto, AgentSessionLogResponse, AgentSessionPreviewData, AgentSessionPreviewDto, AgentSessionQueueResponse, AgentSessionResponse, AgentSessionsForPullRequestData, AgentSessionsForPullRequestError, AgentSessionsForPullRequestErrors, AgentSessionsForPullRequestResponse, AgentSessionsForPullRequestResponses, AgentSessionsForPullRequestsData, AgentSessionsForPullRequestsError, AgentSessionsForPullRequestsErrors, AgentSessionsForPullRequestsResponse, AgentSessionsForPullRequestsResponses, AgentSetConfigOptionAction, AgentSetModelAction, AiAdmissionErrorBody, AnswerAgentSessionToolApprovalData, AnswerAgentSessionToolApprovalError, AnswerAgentSessionToolApprovalErrors, AnswerAgentSessionToolApprovalResponse, AnswerAgentSessionToolApprovalResponses, AnswerToolApprovalRequest, AnswerToolApprovalResponse, BotId, CapabilityHarnessDto, CaptureAttemptDto, CaptureOutcomeDto, ChangedFileDto, ChangesetDto, ChangesetSourceDto, ChannelSharePermission, ClientOptions, CompleteData, CompleteErrors, CompleteRequest, CompleteResponse, CompleteResponses, ControlAgentSessionData, ControlAgentSessionError, ControlAgentSessionErrors, ControlAgentSessionResponse, ControlAgentSessionResponses, ControlRequest, ControlResponse, ControlStatusDto, CreateAgentSessionData, CreateAgentSessionError, CreateAgentSessionErrors, CreateAgentSessionRequest, CreateAgentSessionResponse, CreateAgentSessionResponse2, CreateAgentSessionResponses, CreateSessionThread, DeleteAgentSessionData, DeleteAgentSessionError, DeleteAgentSessionErrors, DeleteAgentSessionResponses, DisconnectData, DisconnectErrors, DisconnectResponse, DisconnectResponses, DiscoverAgentCapabilitiesHandlerData, DiscoverAgentCapabilitiesHandlerErrors, DiscoverAgentCapabilitiesHandlerResponse, DiscoverAgentCapabilitiesHandlerResponses, DiscoverAgentCapabilitiesRequest, DiscoverAgentCapabilitiesResponse, DocumentId, EditQueuedActionData, EditQueuedActionError, EditQueuedActionErrors, EditQueuedActionRequest, EditQueuedActionResponse, EditQueuedActionResponses, ElicitationAnswer, ElicitationContentValue, ElicitationRequestId, EmptyRequest, ExternalSessionResponse, FileChangeKindDto, GetAgentSandboxSizeData, GetAgentSandboxSizeError, GetAgentSandboxSizeErrors, GetAgentSandboxSizeResponse, GetAgentSandboxSizeResponses, GetAgentSessionChangesData, GetAgentSessionChangesError, GetAgentSessionChangesErrors, GetAgentSessionChangesPatchData, GetAgentSessionChangesPatchError, GetAgentSessionChangesPatchErrors, GetAgentSessionChangesPatchResponse, GetAgentSessionChangesPatchResponses, GetAgentSessionChangesResponse, GetAgentSessionChangesResponses, GetAgentSessionData, GetAgentSessionError, GetAgentSessionErrors, GetAgentSessionLogData, GetAgentSessionLogError, GetAgentSessionLogErrors, GetAgentSessionLogResponse, GetAgentSessionLogResponses, GetAgentSessionPermissionsData, GetAgentSessionPermissionsError, GetAgentSessionPermissionsErrors, GetAgentSessionPermissionsResponse, GetAgentSessionPermissionsResponses, GetAgentSessionQueueData, GetAgentSessionQueueError, GetAgentSessionQueueErrors, GetAgentSessionQueueResponse, GetAgentSessionQueueResponses, GetAgentSessionResponse, GetAgentSessionResponses, GitRefDto, LinkAgentSessionPullRequestData, LinkAgentSessionPullRequestError, LinkAgentSessionPullRequestErrors, LinkAgentSessionPullRequestResponse, LinkAgentSessionPullRequestResponses, LinkShare, ListAgentRepositoriesData, ListAgentRepositoriesErrors, ListAgentRepositoriesResponse, ListAgentRepositoriesResponses, ListAgentRepositoryBranchesData, ListAgentRepositoryBranchesErrors, ListAgentRepositoryBranchesResponse, ListAgentRepositoryBranchesResponses, ListAgentSessionPullRequestsData, ListAgentSessionPullRequestsError, ListAgentSessionPullRequestsErrors, ListAgentSessionPullRequestsResponse, ListAgentSessionPullRequestsResponses, LoadAgentModelsHandlerData, LoadAgentModelsHandlerErrors, LoadAgentModelsHandlerResponse, LoadAgentModelsHandlerResponses, LoadAgentModelsRequest, LoadAgentModelsResponse, LogDirectionDto, LogFrameDto, MessageParent, ModelHarnessDto, PermissionAnswer, PreviewAgentSessionsData, PreviewAgentSessionsError, PreviewAgentSessionsErrors, PreviewAgentSessionsRequest, PreviewAgentSessionsResponse, PreviewAgentSessionsResponse2, PreviewAgentSessionsResponses, PromptAttachment, PullRequestLinkedSession, PullRequestLinkSource, PullRequestSessions, PullRequestSessionsResponse, PullRequestsSessionsResponse, PullRequestUrl, PullRequestUrls, PutAgentSandboxSizeData, PutAgentSandboxSizeError, PutAgentSandboxSizeErrors, PutAgentSandboxSizeResponse, PutAgentSandboxSizeResponses, PutAgentSessionSandboxSizeData, PutAgentSessionSandboxSizeError, PutAgentSessionSandboxSizeErrors, PutAgentSessionSandboxSizeResponse, PutAgentSessionSandboxSizeResponses, QueuedActionDto, RefreshAgentSessionChangesData, RefreshAgentSessionChangesError, RefreshAgentSessionChangesErrors, RefreshAgentSessionChangesResponse, RefreshAgentSessionChangesResponses, RemoveQueuedActionData, RemoveQueuedActionError, RemoveQueuedActionErrors, RemoveQueuedActionResponse, RemoveQueuedActionResponses, RenameAgentSessionData, RenameAgentSessionError, RenameAgentSessionErrors, RenameAgentSessionRequest, RenameAgentSessionResponse, RenameAgentSessionResponses, SandboxSize, SandboxSizeBody, SessionBot, SessionPullRequestLink, SessionPullRequestsResponse, SessionStatusDto, SetAgentSessionArchivedData, SetAgentSessionArchivedError, SetAgentSessionArchivedErrors, SetAgentSessionArchivedRequest, SetAgentSessionArchivedResponse, SetAgentSessionArchivedResponses, SharePermissionV2, StartData, StartErrors, StartResponse, StartResponse2, StartResponses, StatusData, StatusErrors, StatusResponse, StatusResponse2, StatusResponses, SteerQueuedActionData, SteerQueuedActionError, SteerQueuedActionErrors, SteerQueuedActionResponse, SteerQueuedActionResponses, ToolApprovalAnswerDto, ToolApprovalStatusDto, UnlinkAgentSessionPullRequestData, UnlinkAgentSessionPullRequestError, UnlinkAgentSessionPullRequestErrors, UnlinkAgentSessionPullRequestResponse, UnlinkAgentSessionPullRequestResponses, UpdateAgentSessionPermissionsData, UpdateAgentSessionPermissionsError, UpdateAgentSessionPermissionsErrors, UpdateAgentSessionPermissionsResponse, UpdateAgentSessionPermissionsResponses, UpdateChannelSharePermission, UpdateOperation, UpdateSharePermissionRequestV2, WarmAgentSessionHandlerData, WarmAgentSessionHandlerResponse, WarmAgentSessionHandlerResponses, WarmAgentSessionRequest, WarmAgentSessionResponse, WithAgentSessionId } from './types.gen';
diff --git a/packages/sdk/generated/agent-harness/sdk.gen.ts b/packages/sdk/generated/agent-harness/sdk.gen.ts
index 9e585e954c..4903221291 100644
--- a/packages/sdk/generated/agent-harness/sdk.gen.ts
+++ b/packages/sdk/generated/agent-harness/sdk.gen.ts
@@ -2,7 +2,7 @@
import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client';
import { client } from './client.gen';
-import type { AgentSessionsForPullRequestData, AgentSessionsForPullRequestErrors, AgentSessionsForPullRequestResponses, AnswerAgentSessionToolApprovalData, AnswerAgentSessionToolApprovalErrors, AnswerAgentSessionToolApprovalResponses, CompleteData, CompleteErrors, CompleteResponses, ControlAgentSessionData, ControlAgentSessionErrors, ControlAgentSessionResponses, CreateAgentSessionData, CreateAgentSessionErrors, CreateAgentSessionResponses, DeleteAgentSessionData, DeleteAgentSessionErrors, DeleteAgentSessionResponses, DisconnectData, DisconnectErrors, DisconnectResponses, DiscoverAgentCapabilitiesHandlerData, DiscoverAgentCapabilitiesHandlerErrors, DiscoverAgentCapabilitiesHandlerResponses, EditQueuedActionData, EditQueuedActionErrors, EditQueuedActionResponses, GetAgentSandboxSizeData, GetAgentSandboxSizeErrors, GetAgentSandboxSizeResponses, GetAgentSessionChangesData, GetAgentSessionChangesErrors, GetAgentSessionChangesPatchData, GetAgentSessionChangesPatchErrors, GetAgentSessionChangesPatchResponses, GetAgentSessionChangesResponses, GetAgentSessionData, GetAgentSessionErrors, GetAgentSessionLogData, GetAgentSessionLogErrors, GetAgentSessionLogResponses, GetAgentSessionPermissionsData, GetAgentSessionPermissionsErrors, GetAgentSessionPermissionsResponses, GetAgentSessionQueueData, GetAgentSessionQueueErrors, GetAgentSessionQueueResponses, GetAgentSessionResponses, LinkAgentSessionPullRequestData, LinkAgentSessionPullRequestErrors, LinkAgentSessionPullRequestResponses, ListAgentRepositoriesData, ListAgentRepositoriesErrors, ListAgentRepositoriesResponses, ListAgentRepositoryBranchesData, ListAgentRepositoryBranchesErrors, ListAgentRepositoryBranchesResponses, ListAgentSessionPullRequestsData, ListAgentSessionPullRequestsErrors, ListAgentSessionPullRequestsResponses, LoadAgentModelsHandlerData, LoadAgentModelsHandlerErrors, LoadAgentModelsHandlerResponses, PreviewAgentSessionsData, PreviewAgentSessionsErrors, PreviewAgentSessionsResponses, PutAgentSandboxSizeData, PutAgentSandboxSizeErrors, PutAgentSandboxSizeResponses, PutAgentSessionSandboxSizeData, PutAgentSessionSandboxSizeErrors, PutAgentSessionSandboxSizeResponses, RefreshAgentSessionChangesData, RefreshAgentSessionChangesErrors, RefreshAgentSessionChangesResponses, RemoveQueuedActionData, RemoveQueuedActionErrors, RemoveQueuedActionResponses, RenameAgentSessionData, RenameAgentSessionErrors, RenameAgentSessionResponses, SetAgentSessionArchivedData, SetAgentSessionArchivedErrors, SetAgentSessionArchivedResponses, StartData, StartErrors, StartResponses, StatusData, StatusErrors, StatusResponses, SteerQueuedActionData, SteerQueuedActionErrors, SteerQueuedActionResponses, UnlinkAgentSessionPullRequestData, UnlinkAgentSessionPullRequestErrors, UnlinkAgentSessionPullRequestResponses, UpdateAgentSessionPermissionsData, UpdateAgentSessionPermissionsErrors, UpdateAgentSessionPermissionsResponses, WarmAgentSessionHandlerData, WarmAgentSessionHandlerResponses } from './types.gen';
+import type { AgentSessionsForPullRequestData, AgentSessionsForPullRequestErrors, AgentSessionsForPullRequestResponses, AgentSessionsForPullRequestsData, AgentSessionsForPullRequestsErrors, AgentSessionsForPullRequestsResponses, AnswerAgentSessionToolApprovalData, AnswerAgentSessionToolApprovalErrors, AnswerAgentSessionToolApprovalResponses, CompleteData, CompleteErrors, CompleteResponses, ControlAgentSessionData, ControlAgentSessionErrors, ControlAgentSessionResponses, CreateAgentSessionData, CreateAgentSessionErrors, CreateAgentSessionResponses, DeleteAgentSessionData, DeleteAgentSessionErrors, DeleteAgentSessionResponses, DisconnectData, DisconnectErrors, DisconnectResponses, DiscoverAgentCapabilitiesHandlerData, DiscoverAgentCapabilitiesHandlerErrors, DiscoverAgentCapabilitiesHandlerResponses, EditQueuedActionData, EditQueuedActionErrors, EditQueuedActionResponses, GetAgentSandboxSizeData, GetAgentSandboxSizeErrors, GetAgentSandboxSizeResponses, GetAgentSessionChangesData, GetAgentSessionChangesErrors, GetAgentSessionChangesPatchData, GetAgentSessionChangesPatchErrors, GetAgentSessionChangesPatchResponses, GetAgentSessionChangesResponses, GetAgentSessionData, GetAgentSessionErrors, GetAgentSessionLogData, GetAgentSessionLogErrors, GetAgentSessionLogResponses, GetAgentSessionPermissionsData, GetAgentSessionPermissionsErrors, GetAgentSessionPermissionsResponses, GetAgentSessionQueueData, GetAgentSessionQueueErrors, GetAgentSessionQueueResponses, GetAgentSessionResponses, LinkAgentSessionPullRequestData, LinkAgentSessionPullRequestErrors, LinkAgentSessionPullRequestResponses, ListAgentRepositoriesData, ListAgentRepositoriesErrors, ListAgentRepositoriesResponses, ListAgentRepositoryBranchesData, ListAgentRepositoryBranchesErrors, ListAgentRepositoryBranchesResponses, ListAgentSessionPullRequestsData, ListAgentSessionPullRequestsErrors, ListAgentSessionPullRequestsResponses, LoadAgentModelsHandlerData, LoadAgentModelsHandlerErrors, LoadAgentModelsHandlerResponses, PreviewAgentSessionsData, PreviewAgentSessionsErrors, PreviewAgentSessionsResponses, PutAgentSandboxSizeData, PutAgentSandboxSizeErrors, PutAgentSandboxSizeResponses, PutAgentSessionSandboxSizeData, PutAgentSessionSandboxSizeErrors, PutAgentSessionSandboxSizeResponses, RefreshAgentSessionChangesData, RefreshAgentSessionChangesErrors, RefreshAgentSessionChangesResponses, RemoveQueuedActionData, RemoveQueuedActionErrors, RemoveQueuedActionResponses, RenameAgentSessionData, RenameAgentSessionErrors, RenameAgentSessionResponses, SetAgentSessionArchivedData, SetAgentSessionArchivedErrors, SetAgentSessionArchivedResponses, StartData, StartErrors, StartResponses, StatusData, StatusErrors, StatusResponses, SteerQueuedActionData, SteerQueuedActionErrors, SteerQueuedActionResponses, UnlinkAgentSessionPullRequestData, UnlinkAgentSessionPullRequestErrors, UnlinkAgentSessionPullRequestResponses, UpdateAgentSessionPermissionsData, UpdateAgentSessionPermissionsErrors, UpdateAgentSessionPermissionsResponses, WarmAgentSessionHandlerData, WarmAgentSessionHandlerResponses } from './types.gen';
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
/**
@@ -164,6 +164,21 @@ export class Sdk extends HeyApiClient {
});
}
+ /**
+ * List the sessions associated with each of up to 100 pull requests that the caller can view,
+ * with the thread each session was started from.
+ */
+ public agentSessionsForPullRequests<ThrowOnError extends boolean = false>(options: Options<AgentSessionsForPullRequestsData, ThrowOnError>): RequestResult<AgentSessionsForPullRequestsResponses, AgentSessionsForPullRequestsErrors, ThrowOnError> {
+ return (options.client ?? this.client).post<AgentSessionsForPullRequestsResponses, AgentSessionsForPullRequestsErrors, ThrowOnError>({
+ url: '/agent-sessions/by-pull-requests',
+ ...options,
+ headers: {
+ 'Content-Type': 'application/json',
+ ...options.headers
+ }
+ });
+ }
+
/**
* Preview a batch of agent sessions for rendering chips.
*
diff --git a/packages/sdk/generated/agent-harness/types.gen.ts b/packages/sdk/generated/agent-harness/types.gen.ts
index 220a745db6..a857ecb49d 100644
--- a/packages/sdk/generated/agent-harness/types.gen.ts
+++ b/packages/sdk/generated/agent-harness/types.gen.ts
@@ -1169,6 +1169,39 @@ export type PromptAttachment = {
*/
export type PullRequestLinkSource = 'agent' | 'user';
+/**
+ * A session linked to a pull request, as a viewer of that session sees it.
+ */
+export type PullRequestLinkedSession = {
+ /**
+ * The session id.
+ */
+ sessionId: string;
+ /**
+ * Who associated the pull request with the session.
+ */
+ source: PullRequestLinkSource;
+ threadParent?: null | MessageParent;
+};
+
+/**
+ * The sessions linked to one pull request that the caller can view.
+ */
+export type PullRequestSessions = {
+ /**
+ * The pull request's `owner/repo/pull/number` key.
+ */
+ githubKey: string;
+ /**
+ * Linked sessions the caller can view, oldest link first.
+ */
+ sessions: Array<PullRequestLinkedSession>;
+ /**
+ * The requested pull request URL, canonicalized.
+ */
+ url: string;
+};
+
/**
* The sessions associated with a pull request.
*/
@@ -1189,6 +1222,26 @@ export type PullRequestUrl = {
url: string;
};
+/**
+ * GitHub pull requests, by URL.
+ */
+export type PullRequestUrls = {
+ /**
+ * Pull request GitHub URLs, at most 100.
+ */
+ urls: Array<string>;
+};
+
+/**
+ * The sessions associated with each requested pull request.
+ */
+export type PullRequestsSessionsResponse = {
+ /**
+ * One entry per requested pull request, in request order.
+ */
+ pullRequests: Array<PullRequestSessions>;
+};
+
/**
* One action waiting in a session's queue.
*
@@ -1699,6 +1752,27 @@ export type AgentSessionsForPullRequestResponses = {
export type AgentSessionsForPullRequestResponse = AgentSessionsForPullRequestResponses[keyof AgentSessionsForPullRequestResponses];
+export type AgentSessionsForPullRequestsData = {
+ body: PullRequestUrls;
+ path?: never;
+ query?: never;
+ url: '/agent-sessions/by-pull-requests';
+};
+
+export type AgentSessionsForPullRequestsErrors = {
+ 400: string;
+ 401: string;
+ 500: string;
+};
+
+export type AgentSessionsForPullRequestsError = AgentSessionsForPullRequestsErrors[keyof AgentSessionsForPullRequestsErrors];
+
+export type AgentSessionsForPullRequestsResponses = {
+ 200: PullRequestsSessionsResponse;
+};
+
+export type AgentSessionsForPullRequestsResponse = AgentSessionsForPullRequestsResponses[keyof AgentSessionsForPullRequestsResponses];
+
export type PreviewAgentSessionsData = {
body: PreviewAgentSessionsRequest;
path?: never;
diff --git a/packages/sdk/generated/storage/index.ts b/packages/sdk/generated/storage/index.ts
index 4f4336ccf8..507db64e28 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 { AccessiblePipeline, AccessLevel, ActiveCallsResponse, ActiveCallSummary, ActiveMeeting, ActiveMeetingsResponse, ActivityType, AddFavoriteData, AddFavoriteError, AddFavoriteErrors, AddFavoriteRequest, AddFavoriteResponse, AddFavoriteResponses, AddParticipantsData, AddParticipantsError, AddParticipantsErrors, AddParticipantsRequest, AddParticipantsResponses, AddPinHandlerData, AddPinHandlerError, AddPinHandlerErrors, AddPinHandlerResponse, AddPinHandlerResponses, AddPinRequest, Agent, AgentActionId, AgentChannelScope, AgentMcpServer, AgentMcpServers, AgentPullRequestState, AgentSessionFilters, AgentSessionLifecycleEvent, Anchor, AnchorId, AnchorResponse, AnnotationIncrementalUpdate, Answer, ApiActivity, ApiAttachmentChannelReference, ApiAttachmentEntityReference, ApiAttachmentGenericReference, ApiChannelAttachment, ApiChannelAttachmentsPage, ApiChannelDetail, ApiChannelListMessage, ApiChannelListPage, ApiChannelListParticipant, ApiChannelListType, ApiChannelParticipant, ApiChannelWithLatest, ApiEntityFilterAst, ApiGroupByField, ApiGroupMeta, ApiParticipantListRole, ApiParticipantRole, ApiPropertyEntityType, AppliedOps, ApplyCrmPipelineOpsData, ApplyCrmPipelineOpsResponse, ApplyCrmPipelineOpsResponses, ApplyDatabaseOpsData, ApplyDatabaseOpsError, ApplyDatabaseOpsErrors, ApplyDatabaseOpsResponse, ApplyDatabaseOpsResponses, ApplyOpsRequest, ApplyOpsResponse, ApproveHarnessPairingData, ApproveHarnessPairingError, ApproveHarnessPairingErrors, ApproveHarnessPairingResponse, ApproveHarnessPairingResponses, ApprovePairingRequest, AttachmentChange, AttendeeResponseStatus, Audience, Awareness, AwarenessRelay, BasicDocument, BasicDocumentSubType, BomPart, BookingTarget, Bot, BotChannel, BotChannelType, BotId, BotKind, BotOwner, BotOwnerProfile, BotSenderProfile, BotToken, BranchNameResponse, BTreeMap, BulkWakeupRequest, BulkWakeupResponse, BulkWakeupSyncServiceDocumentsData, BulkWakeupSyncServiceDocumentsErrors, BulkWakeupSyncServiceDocumentsResponse, BulkWakeupSyncServiceDocumentsResponses, CalendarAttendee, CalendarEvent, CalendarEventFilters, CalendarEventSourceContent, CalendarMentionEvent, CalendarMentionPreviewItem, CalendarMentionPreviewKind, CalendarMentionPreviewRequest, CalendarMentionPreviewRequestItem, CalendarMentionPreviewResponse, CalendarOccurrence, CalendarOccurrenceItem, CalendarOccurrenceResponse, CalendarSyncStatus, CallActiveResponse, CallFilters, CallRecord, CallRecordGuest, CallRecordParticipant, CallRecordPreview, CallRecordPreviewData, CallRecordTranscriptSegment, CallStatus, CallTokenResponse, CallWebhookData, CallWebhookError, CallWebhookErrors, CallWebhookResponses, CancelSlackImportData, CancelSlackImportErrors, CancelSlackImportResponse, CancelSlackImportResponses, CardPosition, CastVerdict, CellValue, CellWrite, ChangedFileDto, ChangesetDto, ChangesetSourceDto, Channel, ChannelCreatedMetadata, ChannelDeletedMetadata, ChannelFilters, ChannelJoinCodeResponse, ChannelLabel, ChannelLabelRule, ChannelLabelsList, ChannelMessage, 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, CollaborateFormData, CollaborateFormError, CollaborateFormErrors, CollaborateFormResponse, CollaborateFormResponses, CollabSurfaceResponse, CollabSurfaceTokenResponse, Column, ColumnCast, ColumnChange, ColumnChangeKind, ColumnConfig, ColumnConversion, ColumnConversionRequest, ColumnDetail, ColumnKind, ColumnProtection, ColumnResult, CommandFailure, CommandRejectedMetadata, CommittedChange, CompleteSlackImportUploadsData, CompleteSlackImportUploadsErrors, CompleteSlackImportUploadsResponse, CompleteSlackImportUploadsResponses, CompleteUploads, ConferenceProvider, Conjunction, ConversationId, ConversationKind, ConversationMetadata, ConversationProgress, ConversationSeal, ConversationStatus, ConvertDatabaseColumnData, ConvertDatabaseColumnError, ConvertDatabaseColumnErrors, ConvertDatabaseColumnResponse, ConvertDatabaseColumnResponses, ConvertedCell, CopyDocumentData, CopyDocumentError, CopyDocumentErrors, CopyDocumentQueryParams, CopyDocumentRequest, CopyDocumentResponse, CopyDocumentResponse2, CopyDocumentResponses, CountedReaction, CreateAgentData, CreateAgentError, CreateAgentErrors, CreateAgentRequest, CreateAgentResponse, CreateAgentResponses, CreateAnchorData, CreateAnchorError, CreateAnchorErrors, CreateAnchorResponse, CreateAnchorResponses, CreateBotRequest, CreateBulkDocumentResponse, CreateBulkDocumentResponseData, CreateChannelData, CreateChannelError, CreateChannelErrors, CreateChannelLabelData, CreateChannelLabelError, CreateChannelLabelErrors, CreateChannelLabelRequest, CreateChannelLabelResponse, CreateChannelLabelResponses, CreateChannelRequest, CreateChannelResponse, CreateChannelResponse2, CreateChannelResponses, CreateChannelScopedBotData, CreateChannelScopedBotError, CreateChannelScopedBotErrors, CreateChannelScopedBotRequest, CreateChannelScopedBotResponse, CreateChannelScopedBotResponse2, CreateChannelScopedBotResponses, CreateCollabSurfaceTokenData, CreateCollabSurfaceTokenError, CreateCollabSurfaceTokenErrors, CreateCollabSurfaceTokenResponse, CreateCollabSurfaceTokenResponses, CreateCrmCompanyData, CreateCrmCompanyError, CreateCrmCompanyErrors, CreateCrmCompanyRequest, CreateCrmCompanyResponse, CreateCrmCompanyResponses, CreateCrmContactData, CreateCrmContactError, CreateCrmContactErrors, CreateCrmContactRequest, CreateCrmContactResponse, CreateCrmContactResponses, CreateCrmPipelineData, CreateCrmPipelineResponse, CreateCrmPipelineResponses, CreateDatabaseData, CreateDatabaseError, CreateDatabaseErrors, CreateDatabaseRequest, CreateDatabaseResponse, CreateDatabaseResponses, CreateDocumentData, CreateDocumentError, CreateDocumentErrors, CreateDocumentRequest, CreateDocumentResponse, CreateDocumentResponseData, CreateDocumentResponses, CreatedPairing, CreatedUserApiKey, CreateEntityMentionData, CreateEntityMentionError, CreateEntityMentionErrors, CreateEntityMentionRequest, CreateEntityMentionResponse, CreateEntityMentionResponse2, CreateEntityMentionResponses, CreateForm, CreateFormData, CreateFormError, CreateFormErrors, CreateFormResponse, CreateFormResponses, CreateHarnessPairingData, CreateHarnessPairingError, CreateHarnessPairingErrors, CreateHarnessPairingResponse, CreateHarnessPairingResponses, CreateImport, CreateInitiativeData, CreateInitiativeError, CreateInitiativeErrors, CreateInitiativeRequest, CreateInitiativeResponse, CreateInitiativeResponses, CreateInstructionsDocumentResponse, CreateInstructionsHandlerData, CreateInstructionsHandlerError, CreateInstructionsHandlerErrors, CreateInstructionsHandlerResponse, CreateInstructionsHandlerResponses, CreateMarkdownDocumentRequest, CreateMarkdownDocumentResponse, CreateMarkdownHandlerData, CreateMarkdownHandlerError, CreateMarkdownHandlerErrors, CreateMarkdownHandlerResponse, CreateMarkdownHandlerResponses, CreateMeetingRequest, CreatePairingRequest, CreatePipeline, CreateProjectHandlerData, CreateProjectHandlerError, CreateProjectHandlerErrors, CreateProjectHandlerResponse, CreateProjectHandlerResponses, CreateProjectRequest, CreateProjectResponse, CreateSkillHandlerData, CreateSkillHandlerError, CreateSkillHandlerErrors, CreateSkillHandlerResponse, CreateSkillHandlerResponses, CreateSkillRequest, CreateSkillResponse, CreateSlackImportData, CreateSlackImportErrors, CreateSlackImportResponse, CreateSlackImportResponses, CreateSnippetHandlerData, CreateSnippetHandlerError, CreateSnippetHandlerErrors, CreateSnippetHandlerResponse, CreateSnippetHandlerResponses, CreateSnippetRequest, CreateSnippetResponse, CreateTaskHandlerData, CreateTaskHandlerError, CreateTaskHandlerErrors, CreateTaskHandlerResponse, CreateTaskHandlerResponses, CreateTaskRequest, CreateTaskResponse, CreateToken, CreateUnthreadedAnchorRequest, CreateUnthreadedAnchorResponse, CreateUnthreadedPdfAnchorRequest, CreateUserApiKeyData, CreateUserApiKeyError, CreateUserApiKeyErrors, CreateUserApiKeyRequest, CreateUserApiKeyResponse, CreateUserApiKeyResponses, CreateViewHandlerData, CreateViewHandlerError, CreateViewHandlerErrors, CreateViewHandlerResponse, CreateViewHandlerResponses, CreateViewRequest, CreateWebhookData, CreateWebhookError, CreateWebhookErrors, CreateWebhookRequest, CreateWebhookResponse, CreateWebhookResponse2, CreateWebhookResponses, CrmCompanyFilters, CrmCompanyResponse, CrmContactResponse, CrmDomainResponse, CrmPermissionRole, CrmStageInput, CrmStageResponse, CrmStagesResponse, CrmTeamSettingsResponse, CustomSpeakerAssignment, Database, DatabaseDetail, DatabaseOp, DatabaseView, DataType, DateOperator, DeleteAnchorData, DeleteAnchorError, DeleteAnchorErrors, DeleteAnchorResponse, DeleteAnchorResponses, DeleteCallRecordData, DeleteCallRecordError, DeleteCallRecordErrors, DeleteCallRecordResponse, DeleteCallRecordResponses, DeleteChannelData, DeleteChannelError, DeleteChannelErrors, DeleteChannelLabelData, DeleteChannelLabelError, DeleteChannelLabelErrors, DeleteChannelLabelResponse, DeleteChannelLabelResponses, DeleteChannelResponse, DeleteChannelResponses, DeleteCollabSurfaceData, DeleteCollabSurfaceError, DeleteCollabSurfaceErrors, DeleteCollabSurfaceResponse, DeleteCollabSurfaceResponses, DeleteDocumentData, DeleteDocumentError, DeleteDocumentErrors, DeleteDocumentResponse, DeleteDocumentResponses, DeleteEntityMentionData, DeleteEntityMentionError, DeleteEntityMentionErrors, DeleteEntityMentionResponse, DeleteEntityMentionResponse2, DeleteEntityMentionResponses, DeleteHarnessData, DeleteHarnessError, DeleteHarnessErrors, DeleteHarnessResponse, DeleteHarnessResponses, DeleteHistoryHandlerData, DeleteHistoryHandlerError, DeleteHistoryHandlerErrors, DeleteHistoryHandlerResponse, DeleteHistoryHandlerResponses, DeleteInitiativeData, DeleteInitiativeError, DeleteInitiativeErrors, DeleteInitiativeResponse, DeleteInitiativeResponses, DeleteProjectHandlerData, DeleteProjectHandlerError, DeleteProjectHandlerErrors, DeleteProjectHandlerResponse, DeleteProjectHandlerResponses, DeleteSelfHarnessData, DeleteSelfHarnessError, DeleteSelfHarnessErrors, DeleteSelfHarnessResponse, DeleteSelfHarnessResponses, 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, DocumentId, DocumentInteractionMetadata, DocumentMetadata, DocumentMetadataWithContent, DocumentPermissionsToken, DocumentPermissionsTokenRequest, DocumentPermissionsTokenResponse, DocumentPreview, DocumentPreviewData, DocumentPreviewDataSubType, DocumentPurgedMetadata, DocumentResponse, DocumentResponseMetadata, DocumentResponseMetadataWithContent, DocumentStorageServiceApiVersion, DocumentSubType, DocumentSyncContentUpdatedMetadata, DocumentSyncEditor, DocumentTeamShareResponse, DocumentTopicEvent, DocumentUpdatedMetadata, EditAnchorData, EditAnchorError, EditAnchorErrors, EditAnchorRequest, EditAnchorResponse, EditAnchorResponse2, EditAnchorResponses, EditCallRecordData, EditCallRecordError, EditCallRecordErrors, EditCallRecordRequest, EditCallRecordResponse, EditCallRecordResponses, EditCallTranscriptData, EditCallTranscriptError, EditCallTranscriptErrors, EditCallTranscriptRequest, EditCallTranscriptResponse, EditCallTranscriptResponses, EditDocumentData, EditDocumentError, EditDocumentErrors, EditDocumentResponse, EditDocumentResponse2, EditDocumentResponses, EditDocumentServiceArgs, EditMyFormResponseData, EditMyFormResponseError, EditMyFormResponseErrors, EditMyFormResponseResponse, EditMyFormResponseResponses, EditPdfAnchorRequest, EditPdfPlaceableCommentAnchorRequest, EditProjectV2Data, EditProjectV2Error, EditProjectV2Errors, EditProjectV2Response, EditProjectV2Responses, EditThreadV2Data, EditThreadV2Error, EditThreadV2Errors, EditThreadV2Response, EditThreadV2Responses, EmailFilters, EmailFollowup, EmailFollowupCommand, EmailFollowupResponse, EmailReminderCondition, EmailReminderPage, EmailReminderSummary, EmptyResponse, EnsureCollabSurfaceData, EnsureCollabSurfaceError, EnsureCollabSurfaceErrors, EnsureCollabSurfaceRequest, EnsureCollabSurfaceResponse, EnsureCollabSurfaceResponses, EnsureStarterHandlerData, EnsureStarterHandlerErrors, EnsureStarterHandlerResponse, EnsureStarterHandlerResponses, EntityFilters, EntityKind, EntityMessageCreateData, EntityMessageCreateResponse, EntityMessageCreateResponses, EntityMessageDeleteMessageData, EntityMessageDeleteMessageResponse, EntityMessageDeleteMessageResponses, EntityMessageDeleteThreadData, EntityMessageDeleteThreadResponse, EntityMessageDeleteThreadResponses, EntityMessageEditData, EntityMessageEditResponse, EntityMessageEditResponses, EntityMessageGetMessageData, EntityMessageGetMessageResponse, EntityMessageGetMessageResponses, EntityMessageGetThreadData, EntityMessageGetThreadResponse, EntityMessageGetThreadResponses, EntityMessageLegacyData, EntityMessageLegacyResponse, EntityMessageLegacyResponses, EntityMessagePatchThreadData, EntityMessagePatchThreadResponse, EntityMessagePatchThreadResponses, EntityMessageReactData, EntityMessageReactResponse, EntityMessageReactResponses, EntityMessageTypingData, EntityMessageTypingResponse, EntityMessageTypingResponses, EntityPermission, EntityPermissionResponse, EntityRef, 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, FileChangeKindDto, FileSystemNodeWithIds, FileType, FileTypeUpdate, FilterCondition, FilterGroup, FilterNode, FilterTest, FinalizeSlackImportData, FinalizeSlackImportErrors, FinalizeSlackImportResponse, FinalizeSlackImportResponses, FolderItem, FollowupState, ForeignEntity, ForeignEntityFilters, Form, FormAccess, FormCollaboration, FormDetail, FormErrorCode, FormErrorResponse, FormLayout, FormPublicationProblem, FormQuestionDetail, FormResponse, FormSection, FormSectionDetail, FormSource, FormStatus, FormTally, 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, GetBotOwnerProfilesData, GetBotOwnerProfilesError, GetBotOwnerProfilesErrors, GetBotOwnerProfilesResponse, GetBotOwnerProfilesResponses, GetCallRecordData, GetCallRecordError, GetCallRecordErrors, GetCallRecordResponse, GetCallRecordResponses, GetChannelAttachmentsData, GetChannelAttachmentsError, GetChannelAttachmentsErrors, GetChannelAttachmentsResponse, GetChannelAttachmentsResponses, GetChannelData, GetChannelError, GetChannelErrors, GetChannelJoinLinkData, GetChannelJoinLinkError, GetChannelJoinLinkErrors, GetChannelJoinLinkResponse, GetChannelJoinLinkResponses, 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, GetCrmPipelineData, GetCrmPipelineResponse, GetCrmPipelineResponses, GetCrmPipelineRowsData, GetCrmPipelineRowsResponse, GetCrmPipelineRowsResponses, GetCrmPipelineTableData, GetCrmPipelineTableResponse, GetCrmPipelineTableResponses, GetCrmTeamSettingsData, GetCrmTeamSettingsError, GetCrmTeamSettingsErrors, GetCrmTeamSettingsResponse, GetCrmTeamSettingsResponses, GetDatabaseData, GetDatabaseError, GetDatabaseErrors, GetDatabasePermissionsData, GetDatabasePermissionsError, GetDatabasePermissionsErrors, GetDatabasePermissionsResponse, GetDatabasePermissionsResponses, GetDatabaseQueryData, GetDatabaseQueryError, GetDatabaseQueryErrors, GetDatabaseQueryResponse, GetDatabaseQueryResponses, GetDatabaseResponse, GetDatabaseResponses, GetDatabaseRowHistoryData, GetDatabaseRowHistoryError, GetDatabaseRowHistoryErrors, GetDatabaseRowHistoryResponse, GetDatabaseRowHistoryResponses, GetDatabaseTableChangesData, GetDatabaseTableChangesError, GetDatabaseTableChangesErrors, GetDatabaseTableChangesResponse, GetDatabaseTableChangesResponses, GetDatabaseViewPositionsData, GetDatabaseViewPositionsError, GetDatabaseViewPositionsErrors, GetDatabaseViewPositionsResponse, GetDatabaseViewPositionsResponses, GetDocumentAnchorsData, GetDocumentAnchorsError, GetDocumentAnchorsErrors, GetDocumentAnchorsResponse, GetDocumentAnchorsResponses, GetDocumentBranchNameData, GetDocumentBranchNameError, GetDocumentBranchNameErrors, GetDocumentBranchNameResponse, GetDocumentBranchNameResponses, GetDocumentByTeamSlugData, GetDocumentByTeamSlugError, GetDocumentByTeamSlugErrors, GetDocumentByTeamSlugResponse, GetDocumentByTeamSlugResponses, 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, GetEmailFollowupData, GetEmailFollowupError, GetEmailFollowupErrors, GetEmailFollowupResponse, GetEmailFollowupResponses, GetEntityPermissionData, GetEntityPermissionErrors, GetEntityPermissionResponse, GetEntityPermissionResponses, GetForeignEntityBySourceData, GetForeignEntityBySourceError, GetForeignEntityBySourceErrors, GetForeignEntityBySourceResponse, GetForeignEntityBySourceResponses, GetForeignEntityData, GetForeignEntityError, GetForeignEntityErrors, GetForeignEntityResponse, GetForeignEntityResponses, GetFormData, GetFormError, GetFormErrors, GetFormPermissionsData, GetFormPermissionsError, GetFormPermissionsErrors, GetFormPermissionsResponse, GetFormPermissionsResponses, GetFormResponse, GetFormResponses, GetFormResponseSummaryData, GetFormResponseSummaryError, GetFormResponseSummaryErrors, GetFormResponseSummaryResponse, GetFormResponseSummaryResponses, GetFormTallyData, GetFormTallyError, GetFormTallyErrors, GetFormTallyResponse, GetFormTallyResponses, GetGithubPullRequestChangesData, GetGithubPullRequestChangesError, GetGithubPullRequestChangesErrors, GetGithubPullRequestChangesPatchData, GetGithubPullRequestChangesPatchError, GetGithubPullRequestChangesPatchErrors, GetGithubPullRequestChangesPatchResponse, GetGithubPullRequestChangesPatchResponses, GetGithubPullRequestChangesResponse, GetGithubPullRequestChangesResponses, GetGithubPullRequestData, GetGithubPullRequestError, GetGithubPullRequestErrors, GetGithubPullRequestFacetsData, GetGithubPullRequestFacetsError, GetGithubPullRequestFacetsErrors, GetGithubPullRequestFacetsResponse, GetGithubPullRequestFacetsResponses, GetGithubPullRequestResponse, GetGithubPullRequestResponses, GetHarnessPairingData, GetHarnessPairingError, GetHarnessPairingErrors, GetHarnessPairingResponse, GetHarnessPairingResponses, GetHistoryHandlerData, GetHistoryHandlerError, GetHistoryHandlerErrors, GetHistoryHandlerResponse, GetHistoryHandlerResponses, GetInitiativeData, GetInitiativeError, GetInitiativeErrors, GetInitiativeResponse, GetInitiativeResponses, GetInstructionsDocumentResponse, GetInstructionsHandlerData, GetInstructionsHandlerError, GetInstructionsHandlerErrors, GetInstructionsHandlerResponse, GetInstructionsHandlerResponses, GetItemsSoupData, GetItemsSoupError, GetItemsSoupErrors, GetItemsSoupResponse, GetItemsSoupResponses, GetLocationHandlerData, GetLocationHandlerError, GetLocationHandlerErrors, GetLocationHandlerResponse, GetLocationHandlerResponses, GetMyFormResponseData, GetMyFormResponseError, GetMyFormResponseErrors, GetMyFormResponseResponse, GetMyFormResponseResponses, 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, GetRingStatusData, GetRingStatusError, GetRingStatusErrors, GetRingStatusResponse, GetRingStatusResponses, GetSelfBotData, GetSelfBotError, GetSelfBotErrors, GetSelfBotResponse, GetSelfBotResponses, GetSelfHarnessData, GetSelfHarnessError, GetSelfHarnessErrors, GetSelfHarnessResponse, GetSelfHarnessResponses, GetSlackImportData, GetSlackImportErrors, GetSlackImportResponse, GetSlackImportResponses, GetSystemSkillsHandlerData, GetSystemSkillsHandlerError, GetSystemSkillsHandlerErrors, GetSystemSkillsHandlerResponse, GetSystemSkillsHandlerResponses, GetUserDocumentsHandlerData, GetUserDocumentsHandlerError, GetUserDocumentsHandlerErrors, GetUserDocumentsHandlerResponse, GetUserDocumentsHandlerResponses, GetUserDocumentViewLocationData, GetUserDocumentViewLocationError, GetUserDocumentViewLocationErrors, GetUserDocumentViewLocationResponse, GetUserDocumentViewLocationResponses, GetUserHistoryResponse, GetViewsHandlerData, GetViewsHandlerError, GetViewsHandlerErrors, GetViewsHandlerResponse, GetViewsHandlerResponses, GetWebhookData, GetWebhookError, GetWebhookErrors, GetWebhookResponse, GetWebhookResponses, GithubLabelFacet, GithubPullRequest, GithubPullRequestChangesPatchResponse, GithubPullRequestChangesResponse, GithubPullRequestCheckRun, GithubPullRequestComment, GithubPullRequestFacets, GithubPullRequestLabel, GithubPullRequestReview, GithubPullRequestReviewDecision, GithubPullRequestReviewState, GithubPullRequestsResponse, GithubPullRequestUser, GithubRepositoryFacet, GithubUserFacet, GitRefDto, GroupedInitialParams, GroupedPageParams, GroupedSoupGroupPage, GroupedSoupInitialPage, GroupedSoupPage, GroupedSoupSort, GuestId, GuestJoinRequest, HandlerData, HandlerError, HandlerErrors, HandlerResponse, HandlerResponses, Harness, HarnessAgent, HarnessId, HarnessOwner, HarnessSession, HashMap, HealthHandlerData, HealthHandlerResponse, HealthHandlerResponses, HighlightType, ImportCounters, ImportDatabaseTableData, ImportDatabaseTableError, ImportDatabaseTableErrors, ImportDatabaseTableResponse, ImportDatabaseTableResponses, ImportedAuthor, ImportError, ImportLimits, ImportPage, ImportProgress, ImportTable, ImportWarning, InferColumnTypeOutcome, InferColumnTypeRequest, InferDatabaseColumnTypeData, InferDatabaseColumnTypeError, InferDatabaseColumnTypeErrors, InferDatabaseColumnTypeResponse, InferDatabaseColumnTypeResponses, InFlightTurnSummary, IngestTranscriptData, IngestTranscriptError, IngestTranscriptErrors, IngestTranscriptResponses, InitializeUserDocumentsData, InitializeUserDocumentsError, InitializeUserDocumentsErrors, InitializeUserDocumentsResponse, InitializeUserDocumentsResponses, InitialPropertyValue, InitiativeDetail, InitiativeFilters, InitiativeId, InitiativeList, InitiativeSummary, InputReceivedMetadata, InstallSyncData, InstallSyncErrors, InteractionReason, InviteMeetingRequest, InviteMeetingUsersRequest, Item, ItemWithUserAccessLevel, JobId, JobProcessingResultHandlerData, JobProcessingResultHandlerError, JobProcessingResultHandlerErrors, JobProcessingResultHandlerResponse, JobProcessingResultHandlerResponses, JobStatus, JoinChannelByCodeData, JoinChannelByCodeError, JoinChannelByCodeErrors, JoinChannelByCodeResponses, JoinChannelData, JoinChannelError, JoinChannelErrors, JoinChannelResponses, KeySegment, Lane, LaneKey, LatestMessage, LayoutProblem, LeaveCallResponse, LeaveChannelData, LeaveChannelError, LeaveChannelErrors, LeaveChannelResponses, LeaveOrEndCallData, LeaveOrEndCallError, LeaveOrEndCallErrors, LeaveOrEndCallResponse, LeaveOrEndCallResponses, LinkShare, ListAccessibleFormsData, ListAccessibleFormsError, ListAccessibleFormsErrors, ListAccessibleFormsResponse, ListAccessibleFormsResponses, ListAgentsData, ListAgentsError, ListAgentsErrors, ListAgentsResponse, ListAgentsResponses, ListBotChannelsData, ListBotChannelsError, ListBotChannelsErrors, ListBotChannelsResponse, ListBotChannelsResponses, ListChannelLabelsData, ListChannelLabelsError, ListChannelLabelsErrors, ListChannelLabelsResponse, ListChannelLabelsResponses, ListCompanyContactsData, ListCompanyContactsError, ListCompanyContactsErrors, ListCompanyContactsResponse, ListCompanyContactsResponses, ListCrmPipelinesData, ListCrmPipelinesResponse, ListCrmPipelinesResponses, ListDatabaseColumnCastsData, ListDatabaseColumnCastsError, ListDatabaseColumnCastsErrors, ListDatabaseColumnCastsResponse, ListDatabaseColumnCastsResponses, ListDatabasesData, ListDatabasesError, ListDatabasesErrors, ListDatabasesResponse, ListDatabasesResponses, ListedDatabase, ListedForm, ListEmailRemindersData, ListEmailRemindersError, ListEmailRemindersErrors, ListEmailRemindersResponse, ListEmailRemindersResponses, ListFavoritesData, ListFavoritesError, ListFavoritesErrors, ListFavoritesResponse, ListFavoritesResponses, ListFormsData, ListFormsError, ListFormsErrors, ListFormsResponse, ListFormsResponses, ListHarnessAgentsData, ListHarnessAgentsError, ListHarnessAgentsErrors, ListHarnessAgentsResponse, ListHarnessAgentsResponses, ListHarnessesData, ListHarnessesError, ListHarnessesErrors, ListHarnessesResponse, ListHarnessesResponses, ListHarnessSessionsData, ListHarnessSessionsError, ListHarnessSessionsErrors, ListHarnessSessionsResponse, ListHarnessSessionsResponses, ListInitiativesData, ListInitiativesError, ListInitiativesErrors, ListInitiativesResponse, ListInitiativesResponses, ListOccurrencesData, ListOccurrencesErrors, ListOccurrencesResponse, ListOccurrencesResponses, ListSlackImportsData, ListSlackImportsResponse, ListSlackImportsResponses, ListTeamOutOfOfficeData, ListTeamOutOfOfficeErrors, ListTeamOutOfOfficeResponse, ListTeamOutOfOfficeResponses, ListUserApiKeysData, ListUserApiKeysError, ListUserApiKeysErrors, ListUserApiKeysResponse, ListUserApiKeysResponses, ListWebhooksData, ListWebhooksError, ListWebhooksErrors, ListWebhooksResponse, ListWebhooksResponse2, ListWebhooksResponses, LocationResponseData, LocationResponseV3, MacroUserIdStr, Meeting, MeetingCancelData, MeetingCancelError, MeetingCancelErrors, MeetingCancelPreparationData, MeetingCancelPreparationError, MeetingCancelPreparationErrors, MeetingCancelPreparationResponse, MeetingCancelPreparationResponses, MeetingCancelResponse, MeetingCancelResponses, MeetingCreateData, MeetingCreateError, MeetingCreateErrors, MeetingCreateResponse, MeetingCreateResponses, MeetingGuestJoinData, MeetingGuestJoinError, MeetingGuestJoinErrors, MeetingGuestJoinResponse, MeetingGuestJoinResponses, MeetingGuestParticipantsData, MeetingGuestParticipantsError, MeetingGuestParticipantsErrors, MeetingGuestParticipantsResponse, MeetingGuestParticipantsResponses, MeetingInviteData, MeetingInviteError, MeetingInviteErrors, MeetingInvitePermissions, MeetingInvitePermissionsData, MeetingInvitePermissionsError, MeetingInvitePermissionsErrors, MeetingInvitePermissionsResponse, MeetingInvitePermissionsResponses, MeetingInviteResponse, MeetingInviteResponses, MeetingInviteUsersData, MeetingInviteUsersError, MeetingInviteUsersErrors, MeetingInviteUsersResponse, MeetingInviteUsersResponses, MeetingJoinData, MeetingJoinError, MeetingJoinErrors, MeetingJoinResponse, MeetingJoinResponses, MeetingLeaveData, MeetingLeaveError, MeetingLeaveErrors, MeetingLeaveResponse, MeetingLeaveResponses, MeetingListActiveData, MeetingListActiveError, MeetingListActiveErrors, MeetingListActiveResponse, MeetingListActiveResponses, MeetingListData, MeetingListError, MeetingListErrors, MeetingListResponse, MeetingListResponses, MeetingLookupData, MeetingLookupError, MeetingLookupErrors, MeetingLookupResponse, MeetingLookupResponses, MeetingParticipant, MeetingParticipants, MeetingParticipantsData, MeetingParticipantsError, MeetingParticipantsErrors, MeetingParticipantsResponse, MeetingParticipantsResponses, MeetingPreparation, MeetingPrepareData, MeetingPrepareError, MeetingPrepareErrors, MeetingPrepareResponse, MeetingPrepareResponses, MeetingShareData, MeetingShareError, MeetingShareErrors, MeetingShareResponse, MeetingShareResponses, MeetingsResponse, MeetingToken, MeetingUpdateData, MeetingUpdateError, MeetingUpdateErrors, MeetingUpdateResponse, MeetingUpdateResponses, MentionPreviewsData, MentionPreviewsErrors, MentionPreviewsResponse, MentionPreviewsResponses, Message, MessageAttachment, MessageAttachmentCreatedMetadata, MessageAttachmentRemovedMetadata, MessageChange, MessageCursor, MessageDeletedMetadata, MessageDirection, MessageEvent, MessageEventAttachment, MessageListItem, MessageMentionedMetadata, MessagePage, MessageParent, MessagePatch, MessagePatchedMetadata, MessagePostedMetadata, MessageThread, MessageThreadPreview, MessageTimelineData, MessageTimelineQuery, MessageTimelineResponse, MessageTimelineResponses, MessageTopicEvent, MyResponse, NewAttachment, NewColumn, NewOption, NewThreadAnchor, NewView, NotificationFilters, NotificationState, NumberOperator, OpBatch, OpRefusalResponse, OpResult, OptionRef, PairingDetails, Params, ParticipantRole, PatchBotRequest, PatchChannelData, PatchChannelError, PatchChannelErrors, PatchChannelRequest, PatchChannelResponse, PatchChannelResponses, PatchMessageNotificationPolicy, PatchProjectRequestV2, PatchThreadRequestV2, PatchViewHandlerData, PatchViewHandlerError, PatchViewHandlerErrors, PatchViewHandlerResponses, PatchWebhookData, PatchWebhookError, PatchWebhookErrors, PatchWebhookRequest, PatchWebhookResponse, PatchWebhookResponses, PdfAnchor, PdfAnchorId, PdfHighlightAnchor, PdfHighlightAnchorRequest, PdfHighlightRect, PdfHighlightRectAnchorRequest, PdfPlaceableCommentAnchor, PendingClaimResponse, PermanentlyDeleteDocumentData, PermanentlyDeleteDocumentError, PermanentlyDeleteDocumentErrors, PermanentlyDeleteDocumentResponse, PermanentlyDeleteDocumentResponses, PermanentlyDeleteProjectData, PermanentlyDeleteProjectError, PermanentlyDeleteProjectErrors, PermanentlyDeleteProjectResponse, PermanentlyDeleteProjectResponses, PinnedItem, PinRequest, Pipeline, PipelineRecordType, PipelineSharing, PostActivityData, PostActivityError, PostActivityErrors, PostActivityRequest, PostActivityResponse, PostActivityResponses, PostChannelBotWebhookData, PostChannelBotWebhookError, PostChannelBotWebhookErrors, PostChannelBotWebhookResponse, PostChannelBotWebhookResponses, PostGroupedSoupAstGroupPageRequest, PostGroupedSoupAstInitialRequest, PostGroupedSoupAstRequest, PostItemsSoupAstData, PostItemsSoupAstError, PostItemsSoupAstErrors, PostItemsSoupAstGroupedData, PostItemsSoupAstGroupedError, PostItemsSoupAstGroupedErrors, PostItemsSoupAstGroupedResponse, PostItemsSoupAstGroupedResponses, PostItemsSoupAstResponse, PostItemsSoupAstResponses, PostItemsSoupData, PostItemsSoupError, PostItemsSoupErrors, PostItemsSoupResponse, PostItemsSoupResponses, PostMessage, PostMessageNotificationPolicy, PostSoupAstRequest, PostSoupRequest, PresaveDocumentHandlerData, PresaveDocumentHandlerError, PresaveDocumentHandlerErrors, PresaveDocumentHandlerResponse, PresaveDocumentHandlerResponses, PreSaveDocumentRequest, PreSaveDocumentResponse, PreSaveDocumentResponseData, PresenceOperator, PresignedUrl, PreviewSmartTagData, PreviewSmartTagError, PreviewSmartTagErrors, PreviewSmartTagResponse, PreviewSmartTagResponses, Project, ProjectDeleteResponseData, ProjectDocumentStatus, ProjectFilters, ProjectPreview, ProjectPreviewData, PropertyDefinition, PropertyDefinitionWithOptions, PropertyFilter, PropertyInput, PropertyOption, PropertyOptionValue, PropertyOwner, PropertyValue, PutCrmTeamSettingsData, PutCrmTeamSettingsError, PutCrmTeamSettingsErrors, PutCrmTeamSettingsResponse, PutCrmTeamSettingsResponses, PutCrmTeamStagesData, PutCrmTeamStagesError, PutCrmTeamStagesErrors, PutCrmTeamStagesResponse, PutCrmTeamStagesResponses, PutFormLayoutData, PutFormLayoutError, PutFormLayoutErrors, PutFormLayoutResponse, PutFormLayoutResponses, QueryCrmPipelineRowsData, QueryCrmPipelineRowsResponse, QueryCrmPipelineRowsResponses, QueryDefinition, QuestionLayout, QuestionOption, QuestionTally, ReactionInput, RecentlyDeletedData, RecentlyDeletedError, RecentlyDeletedErrors, RecentlyDeletedResponse, RecentlyDeletedResponseData, RecentlyDeletedResponses, RegisterSlackImportUploadsData, RegisterSlackImportUploadsErrors, RegisterSlackImportUploadsResponse, RegisterSlackImportUploadsResponses, RegisterUploads, RemoveBotFromChannelByBotData, RemoveBotFromChannelByBotError, RemoveBotFromChannelByBotErrors, RemoveBotFromChannelByBotResponse, RemoveBotFromChannelByBotResponses, RemoveFavoriteByEntityData, RemoveFavoriteByEntityError, RemoveFavoriteByEntityErrors, RemoveFavoriteByEntityResponses, RemoveParticipantsData, RemoveParticipantsError, RemoveParticipantsErrors, RemoveParticipantsRequest, RemoveParticipantsResponses, RemovePinHandlerData, RemovePinHandlerError, RemovePinHandlerErrors, RemovePinHandlerResponse, RemovePinHandlerResponses, RenameChannelLabelData, RenameChannelLabelError, RenameChannelLabelErrors, RenameChannelLabelRequest, RenameChannelLabelResponse, RenameChannelLabelResponses, RenameCrmPipelineData, RenameCrmPipelineResponse, RenameCrmPipelineResponses, RenamePipeline, ReorderFavoritesData, ReorderFavoritesError, ReorderFavoritesErrors, ReorderFavoritesRequest, ReorderFavoritesResponses, ReorderPinRequest, ReorderPinsHandlerData, ReorderPinsHandlerError, ReorderPinsHandlerErrors, ReorderPinsHandlerResponse, ReorderPinsHandlerResponses, ReplaceCrmStagesRequest, RequestedHarnessScope, RequestedLayout, ResetCrmTeamStagesData, ResetCrmTeamStagesError, ResetCrmTeamStagesErrors, ResetCrmTeamStagesResponse, ResetCrmTeamStagesResponses, ResponseStatus, ResponseSummary, RevertDeleteDocumentData, RevertDeleteDocumentError, RevertDeleteDocumentErrors, RevertDeleteDocumentResponse, RevertDeleteDocumentResponses, RevertDeleteProjectData, RevertDeleteProjectError, RevertDeleteProjectErrors, RevertDeleteProjectResponse, RevertDeleteProjectResponses, RingStatus, RingStatusResponse, RowChange, RowChangeKind, RowChanges, RowHistoryEntry, RowHistoryResponse, RowId, RowsChange, RowsResult, S3ObjectInfo, SaveBomPart, SaveDatabaseQueryData, SaveDatabaseQueryError, SaveDatabaseQueryErrors, SaveDatabaseQueryResponse, SaveDatabaseQueryResponses, SaveDocumentHandlerData, SaveDocumentHandlerError, SaveDocumentHandlerErrors, SaveDocumentHandlerResponse, SaveDocumentHandlerResponses, SaveDocumentRequest, SaveDocumentResponse, SaveDocumentResponseData, SavedQuery, SaveQueryRequest, SearchContactsData, SearchContactsError, SearchContactsErrors, SearchContactsResponse, SearchContactsResponse2, SearchContactsResponses, SearchState, SectionCount, SessionDeletedMetadata, SessionIdentity, SessionMentionedMetadata, SessionOpenedMetadata, SessionRenamedMetadata, SessionSettledMetadata, SessionStoppedMetadata, SetChannelLabelData, SetChannelLabelError, SetChannelLabelErrors, SetChannelLabelRequest, SetChannelLabelResponse, SetChannelLabelResponses, SetChannelPictureData, SetChannelPictureError, SetChannelPictureErrors, SetChannelPictureRequest, SetChannelPictureResponse, SetChannelPictureResponses, 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, SetEmailFollowupData, SetEmailFollowupError, SetEmailFollowupErrors, SetEmailFollowupResponse, SetEmailFollowupResponses, SetEmailSyncData, SetEmailSyncError, SetEmailSyncErrors, SetEmailSyncRequest, SetEmailSyncResponse, SetEmailSyncResponses, SetOperator, SetPropertyValue, Sha256Digest, ShareCrmPipelineData, ShareCrmPipelineResponse, ShareCrmPipelineResponses, ShareDatabaseAwarenessData, ShareDatabaseAwarenessError, ShareDatabaseAwarenessErrors, ShareDatabaseAwarenessResponse, ShareDatabaseAwarenessResponses, SharedEmailFilter, SharePermissionV2, SharePipeline, ShortIdResponse, SimpleMention, SimpleSaveData, SimpleSaveError, SimpleSaveErrors, SimpleSaveResponse, SimpleSaveResponses, SkippedCell, SlackCompleteRequest, SlackCreateRequest, SlackRegisterRequest, SlackTimestamp, SlackUserId, SmartTagChannelMatch, SmartTagPreview, SortDirection, SortKey, SoupAgentSessionSoupPropertiesField, SoupApiItem, SoupApiSort, SoupApiSortDirection, SoupAttachment, SoupCalendarEventSoupPropertiesField, SoupCalendarEventTime, SoupCallRecordGuest, SoupCallRecordParticipant, SoupCallRecordSoupPropertiesField, SoupChannel, SoupChannelThread, SoupChatSoupPropertiesField, SoupContact, SoupCountedReaction, SoupCrmCompanySoupPropertiesField, SoupCrmContactSoupPropertiesField, SoupCrmDomain, SoupDatabaseRowSoupPropertiesField, SoupDocumentSoupPropertiesField, SoupDocumentSubType, SoupEmailThreadPreview, SoupEnrichedEmailThreadPreviewSoupPropertiesField, SoupForeignEntity, SoupInitiativeSoupPropertiesField, SoupItem, SoupLabel, SoupLabelListVisibility, SoupLabelType, SoupMessageAttachment, SoupMessageListVisibility, SoupMessageSender, SoupMessageSenderType, SoupPage, SoupProjectSoupPropertiesField, SoupPropertiesField, SoupProperty, SoupThreadInfo, SoupThreadReply, SourceBinding, SourceId, SourceIdentity, StarterDatabase, StarterDocumentsResponse, StorageRow, StorageRows, StorageRowsQuery, StoredGithubPullRequest, StreamEventsData, StreamEventsError, StreamEventsErrors, StreamEventsResponse, StreamEventsResponses, String, Submission, SubmissionOutcome, SubmitFormResponseData, SubmitFormResponseError, SubmitFormResponseErrors, SubmitFormResponseResponse, SubmitFormResponseResponses, SuccessResponse, SurfaceState, SyncServiceVersionId, SystemSkillSummary, Table, TableChange, TableChanged, TableChanges, TableDetail, TableResult, TableVersion, TagFilterMode, TakenId, TallyBucket, TallyValue, TaskFilters, TeamOutOfOfficeItem, TeamOutOfOfficeResponse, TeamRole, TextOperator, ThreadAnchor, ThreadOrigin, ThreadPatch, ThreadState, ToggleShareWithTeamData, ToggleShareWithTeamError, ToggleShareWithTeamErrors, ToggleShareWithTeamResponse, ToggleShareWithTeamResponses, TouchedColumn, TouchedRow, TranscribeDictationData, TranscribeDictationError, TranscribeDictationErrors, TranscribeDictationResponse, TranscribeDictationResponses, TranscribeResponse, TranscriptSegmentRequest, TrashCrmPipelineData, TrashCrmPipelineResponse, TrashCrmPipelineResponses, TrashPipeline, TurnEndedMetadata, TurnStartedMetadata, TurnSummary, TypedSuccessResponse, TypedSuccessResponseGetDocumentResponseData, TypingInput, UndoChangeResponse, UndoDatabaseChangeData, UndoDatabaseChangeError, UndoDatabaseChangeErrors, UndoDatabaseChangeResponse, UndoDatabaseChangeResponses, UndoOutcome, UndoRefusal, UnlockedBooking, UpdateAgentData, UpdateAgentError, UpdateAgentErrors, UpdateAgentRequest, UpdateAgentResponse, UpdateAgentResponses, UpdateChannelSharePermission, UpdateCrmTeamSettingsRequest, UpdateDatabasePermissionsData, UpdateDatabasePermissionsError, UpdateDatabasePermissionsErrors, UpdateDatabasePermissionsResponse, UpdateDatabasePermissionsResponses, UpdateForm, UpdateFormData, UpdateFormError, UpdateFormErrors, UpdateFormPermissionsData, UpdateFormPermissionsError, UpdateFormPermissionsErrors, UpdateFormPermissionsResponse, UpdateFormPermissionsResponses, UpdateFormResponse, UpdateFormResponses, UpdateInitiativeData, UpdateInitiativeError, UpdateInitiativeErrors, UpdateInitiativeRequest, UpdateInitiativeResponse, UpdateInitiativeResponses, UpdateMeetingRequest, UpdateOperation, UpdateSharePermissionRequestV2, UploadDescriptor, UploadDocumentStatus, UploadExtractFolderHandlerData, UploadExtractFolderHandlerError, UploadExtractFolderHandlerErrors, UploadExtractFolderHandlerResponse, UploadExtractFolderHandlerResponses, UploadExtractFolderRequest, UploadFolderHandlerData, UploadFolderHandlerError, UploadFolderHandlerErrors, UploadFolderHandlerResponse, UploadFolderHandlerResponses, UploadFolderRequest, UploadGrant, UploadId, 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, VersionedTable, View, ViewChange, ViewColumn, ViewLayout, ViewPatch, ViewPosition, ViewPositionsResponse, ViewQuery, ViewResult, ViewsResponse, WaitingForInputMetadata, Webhook, WebhookEvent, WebhookFilter, WebhookScope, WebhookStatus, WebhookValidationTestEvent, Widget, WithCallId, WithChannelId, WithDocumentId, WithProjectId } from './types.gen';
+export type { AccessiblePipeline, AccessLevel, ActiveCallsResponse, ActiveCallSummary, ActiveMeeting, ActiveMeetingsResponse, ActivityType, AddFavoriteData, AddFavoriteError, AddFavoriteErrors, AddFavoriteRequest, AddFavoriteResponse, AddFavoriteResponses, AddParticipantsData, AddParticipantsError, AddParticipantsErrors, AddParticipantsRequest, AddParticipantsResponses, AddPinHandlerData, AddPinHandlerError, AddPinHandlerErrors, AddPinHandlerResponse, AddPinHandlerResponses, AddPinRequest, Agent, AgentActionId, AgentChannelScope, AgentMcpServer, AgentMcpServers, AgentPullRequestState, AgentSessionFilters, AgentSessionLifecycleEvent, Anchor, AnchorId, AnchorResponse, AnnotationIncrementalUpdate, Answer, ApiActivity, ApiAttachmentChannelReference, ApiAttachmentEntityReference, ApiAttachmentGenericReference, ApiChannelAttachment, ApiChannelAttachmentsPage, ApiChannelDetail, ApiChannelListMessage, ApiChannelListPage, ApiChannelListParticipant, ApiChannelListType, ApiChannelParticipant, ApiChannelWithLatest, ApiEntityFilterAst, ApiGroupByField, ApiGroupMeta, ApiParticipantListRole, ApiParticipantRole, ApiPropertyEntityType, AppliedOps, ApplyCrmPipelineOpsData, ApplyCrmPipelineOpsResponse, ApplyCrmPipelineOpsResponses, ApplyDatabaseOpsData, ApplyDatabaseOpsError, ApplyDatabaseOpsErrors, ApplyDatabaseOpsResponse, ApplyDatabaseOpsResponses, ApplyOpsRequest, ApplyOpsResponse, ApproveHarnessPairingData, ApproveHarnessPairingError, ApproveHarnessPairingErrors, ApproveHarnessPairingResponse, ApproveHarnessPairingResponses, ApprovePairingRequest, AttachmentChange, AttendeeResponseStatus, Audience, Awareness, AwarenessRelay, BasicDocument, BasicDocumentSubType, BomPart, BookingTarget, Bot, BotChannel, BotChannelType, BotId, BotKind, BotOwner, BotOwnerProfile, BotSenderProfile, BotToken, BranchNameResponse, BTreeMap, BulkWakeupRequest, BulkWakeupResponse, BulkWakeupSyncServiceDocumentsData, BulkWakeupSyncServiceDocumentsErrors, BulkWakeupSyncServiceDocumentsResponse, BulkWakeupSyncServiceDocumentsResponses, CalendarAttendee, CalendarEvent, CalendarEventFilters, CalendarEventSourceContent, CalendarMentionEvent, CalendarMentionPreviewItem, CalendarMentionPreviewKind, CalendarMentionPreviewRequest, CalendarMentionPreviewRequestItem, CalendarMentionPreviewResponse, CalendarOccurrence, CalendarOccurrenceItem, CalendarOccurrenceResponse, CalendarSyncStatus, CallActiveResponse, CallFilters, CallRecord, CallRecordGuest, CallRecordParticipant, CallRecordPreview, CallRecordPreviewData, CallRecordTranscriptSegment, CallStatus, CallTokenResponse, CallWebhookData, CallWebhookError, CallWebhookErrors, CallWebhookResponses, CancelSlackImportData, CancelSlackImportErrors, CancelSlackImportResponse, CancelSlackImportResponses, CardPosition, CastVerdict, CellValue, CellWrite, ChangedFileDto, ChangesetDto, ChangesetSourceDto, Channel, ChannelCreatedMetadata, ChannelDeletedMetadata, ChannelFilters, ChannelJoinCodeResponse, ChannelLabel, ChannelLabelRule, ChannelLabelsList, ChannelMessage, 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, CollaborateFormData, CollaborateFormError, CollaborateFormErrors, CollaborateFormResponse, CollaborateFormResponses, CollabSurfaceResponse, CollabSurfaceTokenResponse, Column, ColumnCast, ColumnChange, ColumnChangeKind, ColumnConfig, ColumnConversion, ColumnConversionRequest, ColumnDetail, ColumnKind, ColumnProtection, ColumnResult, CommandFailure, CommandRejectedMetadata, CommittedChange, CompleteSlackImportUploadsData, CompleteSlackImportUploadsErrors, CompleteSlackImportUploadsResponse, CompleteSlackImportUploadsResponses, CompleteUploads, ConferenceProvider, Conjunction, ConversationId, ConversationKind, ConversationMetadata, ConversationProgress, ConversationSeal, ConversationStatus, ConvertDatabaseColumnData, ConvertDatabaseColumnError, ConvertDatabaseColumnErrors, ConvertDatabaseColumnResponse, ConvertDatabaseColumnResponses, ConvertedCell, CopyDocumentData, CopyDocumentError, CopyDocumentErrors, CopyDocumentQueryParams, CopyDocumentRequest, CopyDocumentResponse, CopyDocumentResponse2, CopyDocumentResponses, CountedReaction, CreateAgentData, CreateAgentError, CreateAgentErrors, CreateAgentRequest, CreateAgentResponse, CreateAgentResponses, CreateAnchorData, CreateAnchorError, CreateAnchorErrors, CreateAnchorResponse, CreateAnchorResponses, CreateBotRequest, CreateBulkDocumentResponse, CreateBulkDocumentResponseData, CreateChannelData, CreateChannelError, CreateChannelErrors, CreateChannelLabelData, CreateChannelLabelError, CreateChannelLabelErrors, CreateChannelLabelRequest, CreateChannelLabelResponse, CreateChannelLabelResponses, CreateChannelRequest, CreateChannelResponse, CreateChannelResponse2, CreateChannelResponses, CreateChannelScopedBotData, CreateChannelScopedBotError, CreateChannelScopedBotErrors, CreateChannelScopedBotRequest, CreateChannelScopedBotResponse, CreateChannelScopedBotResponse2, CreateChannelScopedBotResponses, CreateCollabSurfaceTokenData, CreateCollabSurfaceTokenError, CreateCollabSurfaceTokenErrors, CreateCollabSurfaceTokenResponse, CreateCollabSurfaceTokenResponses, CreateCrmCompanyData, CreateCrmCompanyError, CreateCrmCompanyErrors, CreateCrmCompanyRequest, CreateCrmCompanyResponse, CreateCrmCompanyResponses, CreateCrmContactData, CreateCrmContactError, CreateCrmContactErrors, CreateCrmContactRequest, CreateCrmContactResponse, CreateCrmContactResponses, CreateCrmPipelineData, CreateCrmPipelineResponse, CreateCrmPipelineResponses, CreateDatabaseData, CreateDatabaseError, CreateDatabaseErrors, CreateDatabaseRequest, CreateDatabaseResponse, CreateDatabaseResponses, CreateDocumentData, CreateDocumentError, CreateDocumentErrors, CreateDocumentRequest, CreateDocumentResponse, CreateDocumentResponseData, CreateDocumentResponses, CreatedPairing, CreatedUserApiKey, CreateEntityMentionData, CreateEntityMentionError, CreateEntityMentionErrors, CreateEntityMentionRequest, CreateEntityMentionResponse, CreateEntityMentionResponse2, CreateEntityMentionResponses, CreateForm, CreateFormData, CreateFormError, CreateFormErrors, CreateFormResponse, CreateFormResponses, CreateHarnessPairingData, CreateHarnessPairingError, CreateHarnessPairingErrors, CreateHarnessPairingResponse, CreateHarnessPairingResponses, CreateImport, CreateInitiativeData, CreateInitiativeError, CreateInitiativeErrors, CreateInitiativeRequest, CreateInitiativeResponse, CreateInitiativeResponses, CreateInstructionsDocumentResponse, CreateInstructionsHandlerData, CreateInstructionsHandlerError, CreateInstructionsHandlerErrors, CreateInstructionsHandlerResponse, CreateInstructionsHandlerResponses, CreateMarkdownDocumentRequest, CreateMarkdownDocumentResponse, CreateMarkdownHandlerData, CreateMarkdownHandlerError, CreateMarkdownHandlerErrors, CreateMarkdownHandlerResponse, CreateMarkdownHandlerResponses, CreateMeetingRequest, CreatePairingRequest, CreatePipeline, CreateProjectHandlerData, CreateProjectHandlerError, CreateProjectHandlerErrors, CreateProjectHandlerResponse, CreateProjectHandlerResponses, CreateProjectRequest, CreateProjectResponse, CreateSkillHandlerData, CreateSkillHandlerError, CreateSkillHandlerErrors, CreateSkillHandlerResponse, CreateSkillHandlerResponses, CreateSkillRequest, CreateSkillResponse, CreateSlackImportData, CreateSlackImportErrors, CreateSlackImportResponse, CreateSlackImportResponses, CreateSnippetHandlerData, CreateSnippetHandlerError, CreateSnippetHandlerErrors, CreateSnippetHandlerResponse, CreateSnippetHandlerResponses, CreateSnippetRequest, CreateSnippetResponse, CreateTaskHandlerData, CreateTaskHandlerError, CreateTaskHandlerErrors, CreateTaskHandlerResponse, CreateTaskHandlerResponses, CreateTaskRequest, CreateTaskResponse, CreateToken, CreateUnthreadedAnchorRequest, CreateUnthreadedAnchorResponse, CreateUnthreadedPdfAnchorRequest, CreateUserApiKeyData, CreateUserApiKeyError, CreateUserApiKeyErrors, CreateUserApiKeyRequest, CreateUserApiKeyResponse, CreateUserApiKeyResponses, CreateViewHandlerData, CreateViewHandlerError, CreateViewHandlerErrors, CreateViewHandlerResponse, CreateViewHandlerResponses, CreateViewRequest, CreateWebhookData, CreateWebhookError, CreateWebhookErrors, CreateWebhookRequest, CreateWebhookResponse, CreateWebhookResponse2, CreateWebhookResponses, CrmCompanyFilters, CrmCompanyResponse, CrmContactResponse, CrmDomainResponse, CrmPermissionRole, CrmStageInput, CrmStageResponse, CrmStagesResponse, CrmTeamSettingsResponse, CustomSpeakerAssignment, Database, DatabaseDetail, DatabaseOp, DatabaseView, DataType, DateOperator, DeleteAnchorData, DeleteAnchorError, DeleteAnchorErrors, DeleteAnchorResponse, DeleteAnchorResponses, DeleteCallRecordData, DeleteCallRecordError, DeleteCallRecordErrors, DeleteCallRecordResponse, DeleteCallRecordResponses, DeleteChannelData, DeleteChannelError, DeleteChannelErrors, DeleteChannelLabelData, DeleteChannelLabelError, DeleteChannelLabelErrors, DeleteChannelLabelResponse, DeleteChannelLabelResponses, DeleteChannelResponse, DeleteChannelResponses, DeleteCollabSurfaceData, DeleteCollabSurfaceError, DeleteCollabSurfaceErrors, DeleteCollabSurfaceResponse, DeleteCollabSurfaceResponses, DeleteDocumentData, DeleteDocumentError, DeleteDocumentErrors, DeleteDocumentResponse, DeleteDocumentResponses, DeleteEntityMentionData, DeleteEntityMentionError, DeleteEntityMentionErrors, DeleteEntityMentionResponse, DeleteEntityMentionResponse2, DeleteEntityMentionResponses, DeleteHarnessData, DeleteHarnessError, DeleteHarnessErrors, DeleteHarnessResponse, DeleteHarnessResponses, DeleteHistoryHandlerData, DeleteHistoryHandlerError, DeleteHistoryHandlerErrors, DeleteHistoryHandlerResponse, DeleteHistoryHandlerResponses, DeleteInitiativeData, DeleteInitiativeError, DeleteInitiativeErrors, DeleteInitiativeResponse, DeleteInitiativeResponses, DeleteProjectHandlerData, DeleteProjectHandlerError, DeleteProjectHandlerErrors, DeleteProjectHandlerResponse, DeleteProjectHandlerResponses, DeleteSelfHarnessData, DeleteSelfHarnessError, DeleteSelfHarnessErrors, DeleteSelfHarnessResponse, DeleteSelfHarnessResponses, 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, DocumentId, DocumentInteractionMetadata, DocumentMetadata, DocumentMetadataWithContent, DocumentPermissionsToken, DocumentPermissionsTokenRequest, DocumentPermissionsTokenResponse, DocumentPreview, DocumentPreviewData, DocumentPreviewDataSubType, DocumentPurgedMetadata, DocumentResponse, DocumentResponseMetadata, DocumentResponseMetadataWithContent, DocumentStorageServiceApiVersion, DocumentSubType, DocumentSyncContentUpdatedMetadata, DocumentSyncEditor, DocumentTeamShareResponse, DocumentTopicEvent, DocumentUpdatedMetadata, EditAnchorData, EditAnchorError, EditAnchorErrors, EditAnchorRequest, EditAnchorResponse, EditAnchorResponse2, EditAnchorResponses, EditCallRecordData, EditCallRecordError, EditCallRecordErrors, EditCallRecordRequest, EditCallRecordResponse, EditCallRecordResponses, EditCallTranscriptData, EditCallTranscriptError, EditCallTranscriptErrors, EditCallTranscriptRequest, EditCallTranscriptResponse, EditCallTranscriptResponses, EditDocumentData, EditDocumentError, EditDocumentErrors, EditDocumentResponse, EditDocumentResponse2, EditDocumentResponses, EditDocumentServiceArgs, EditMyFormResponseData, EditMyFormResponseError, EditMyFormResponseErrors, EditMyFormResponseResponse, EditMyFormResponseResponses, EditPdfAnchorRequest, EditPdfPlaceableCommentAnchorRequest, EditProjectV2Data, EditProjectV2Error, EditProjectV2Errors, EditProjectV2Response, EditProjectV2Responses, EditThreadV2Data, EditThreadV2Error, EditThreadV2Errors, EditThreadV2Response, EditThreadV2Responses, EmailFilters, EmailFollowup, EmailFollowupCommand, EmailFollowupResponse, EmailReminderCondition, EmailReminderPage, EmailReminderSummary, EmptyResponse, EnsureCollabSurfaceData, EnsureCollabSurfaceError, EnsureCollabSurfaceErrors, EnsureCollabSurfaceRequest, EnsureCollabSurfaceResponse, EnsureCollabSurfaceResponses, EnsureStarterHandlerData, EnsureStarterHandlerErrors, EnsureStarterHandlerResponse, EnsureStarterHandlerResponses, EntityFilters, EntityKind, EntityMessageCreateData, EntityMessageCreateResponse, EntityMessageCreateResponses, EntityMessageDeleteMessageData, EntityMessageDeleteMessageResponse, EntityMessageDeleteMessageResponses, EntityMessageDeleteThreadData, EntityMessageDeleteThreadResponse, EntityMessageDeleteThreadResponses, EntityMessageEditData, EntityMessageEditResponse, EntityMessageEditResponses, EntityMessageGetMessageData, EntityMessageGetMessageResponse, EntityMessageGetMessageResponses, EntityMessageGetThreadData, EntityMessageGetThreadResponse, EntityMessageGetThreadResponses, EntityMessageLegacyData, EntityMessageLegacyResponse, EntityMessageLegacyResponses, EntityMessagePatchThreadData, EntityMessagePatchThreadResponse, EntityMessagePatchThreadResponses, EntityMessageReactData, EntityMessageReactResponse, EntityMessageReactResponses, EntityMessageTypingData, EntityMessageTypingResponse, EntityMessageTypingResponses, EntityPermission, EntityPermissionResponse, EntityRef, 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, FileChangeKindDto, FileSystemNodeWithIds, FileType, FileTypeUpdate, FilterCondition, FilterGroup, FilterNode, FilterTest, FinalizeSlackImportData, FinalizeSlackImportErrors, FinalizeSlackImportResponse, FinalizeSlackImportResponses, FolderItem, FollowupState, ForeignEntity, ForeignEntityFilters, Form, FormAccess, FormCollaboration, FormDetail, FormErrorCode, FormErrorResponse, FormLayout, FormPublicationProblem, FormQuestionDetail, FormResponse, FormSection, FormSectionDetail, FormSource, FormStatus, FormTally, 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, GetBotOwnerProfilesData, GetBotOwnerProfilesError, GetBotOwnerProfilesErrors, GetBotOwnerProfilesResponse, GetBotOwnerProfilesResponses, GetCallRecordData, GetCallRecordError, GetCallRecordErrors, GetCallRecordResponse, GetCallRecordResponses, GetChannelAttachmentsData, GetChannelAttachmentsError, GetChannelAttachmentsErrors, GetChannelAttachmentsResponse, GetChannelAttachmentsResponses, GetChannelData, GetChannelError, GetChannelErrors, GetChannelJoinLinkData, GetChannelJoinLinkError, GetChannelJoinLinkErrors, GetChannelJoinLinkResponse, GetChannelJoinLinkResponses, 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, GetCrmPipelineData, GetCrmPipelineResponse, GetCrmPipelineResponses, GetCrmPipelineRowsData, GetCrmPipelineRowsResponse, GetCrmPipelineRowsResponses, GetCrmPipelineTableData, GetCrmPipelineTableResponse, GetCrmPipelineTableResponses, GetCrmTeamSettingsData, GetCrmTeamSettingsError, GetCrmTeamSettingsErrors, GetCrmTeamSettingsResponse, GetCrmTeamSettingsResponses, GetDatabaseData, GetDatabaseError, GetDatabaseErrors, GetDatabasePermissionsData, GetDatabasePermissionsError, GetDatabasePermissionsErrors, GetDatabasePermissionsResponse, GetDatabasePermissionsResponses, GetDatabaseQueryData, GetDatabaseQueryError, GetDatabaseQueryErrors, GetDatabaseQueryResponse, GetDatabaseQueryResponses, GetDatabaseResponse, GetDatabaseResponses, GetDatabaseRowHistoryData, GetDatabaseRowHistoryError, GetDatabaseRowHistoryErrors, GetDatabaseRowHistoryResponse, GetDatabaseRowHistoryResponses, GetDatabaseTableChangesData, GetDatabaseTableChangesError, GetDatabaseTableChangesErrors, GetDatabaseTableChangesResponse, GetDatabaseTableChangesResponses, GetDatabaseViewPositionsData, GetDatabaseViewPositionsError, GetDatabaseViewPositionsErrors, GetDatabaseViewPositionsResponse, GetDatabaseViewPositionsResponses, GetDocumentAnchorsData, GetDocumentAnchorsError, GetDocumentAnchorsErrors, GetDocumentAnchorsResponse, GetDocumentAnchorsResponses, GetDocumentBranchNameData, GetDocumentBranchNameError, GetDocumentBranchNameErrors, GetDocumentBranchNameResponse, GetDocumentBranchNameResponses, GetDocumentByTeamSlugData, GetDocumentByTeamSlugError, GetDocumentByTeamSlugErrors, GetDocumentByTeamSlugResponse, GetDocumentByTeamSlugResponses, 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, GetEmailFollowupData, GetEmailFollowupError, GetEmailFollowupErrors, GetEmailFollowupResponse, GetEmailFollowupResponses, GetEntityPermissionData, GetEntityPermissionErrors, GetEntityPermissionResponse, GetEntityPermissionResponses, GetForeignEntityBySourceData, GetForeignEntityBySourceError, GetForeignEntityBySourceErrors, GetForeignEntityBySourceResponse, GetForeignEntityBySourceResponses, GetForeignEntityData, GetForeignEntityError, GetForeignEntityErrors, GetForeignEntityResponse, GetForeignEntityResponses, GetFormData, GetFormError, GetFormErrors, GetFormPermissionsData, GetFormPermissionsError, GetFormPermissionsErrors, GetFormPermissionsResponse, GetFormPermissionsResponses, GetFormResponse, GetFormResponses, GetFormResponseSummaryData, GetFormResponseSummaryError, GetFormResponseSummaryErrors, GetFormResponseSummaryResponse, GetFormResponseSummaryResponses, GetFormTallyData, GetFormTallyError, GetFormTallyErrors, GetFormTallyResponse, GetFormTallyResponses, GetGithubPullRequestChangesData, GetGithubPullRequestChangesError, GetGithubPullRequestChangesErrors, GetGithubPullRequestChangesPatchData, GetGithubPullRequestChangesPatchError, GetGithubPullRequestChangesPatchErrors, GetGithubPullRequestChangesPatchResponse, GetGithubPullRequestChangesPatchResponses, GetGithubPullRequestChangesResponse, GetGithubPullRequestChangesResponses, GetGithubPullRequestData, GetGithubPullRequestError, GetGithubPullRequestErrors, GetGithubPullRequestFacetsData, GetGithubPullRequestFacetsError, GetGithubPullRequestFacetsErrors, GetGithubPullRequestFacetsResponse, GetGithubPullRequestFacetsResponses, GetGithubPullRequestResponse, GetGithubPullRequestResponses, GetGithubPullRequestTasksData, GetGithubPullRequestTasksError, GetGithubPullRequestTasksErrors, GetGithubPullRequestTasksResponse, GetGithubPullRequestTasksResponses, GetHarnessPairingData, GetHarnessPairingError, GetHarnessPairingErrors, GetHarnessPairingResponse, GetHarnessPairingResponses, GetHistoryHandlerData, GetHistoryHandlerError, GetHistoryHandlerErrors, GetHistoryHandlerResponse, GetHistoryHandlerResponses, GetInitiativeData, GetInitiativeError, GetInitiativeErrors, GetInitiativeResponse, GetInitiativeResponses, GetInstructionsDocumentResponse, GetInstructionsHandlerData, GetInstructionsHandlerError, GetInstructionsHandlerErrors, GetInstructionsHandlerResponse, GetInstructionsHandlerResponses, GetItemsSoupData, GetItemsSoupError, GetItemsSoupErrors, GetItemsSoupResponse, GetItemsSoupResponses, GetLocationHandlerData, GetLocationHandlerError, GetLocationHandlerErrors, GetLocationHandlerResponse, GetLocationHandlerResponses, GetMyFormResponseData, GetMyFormResponseError, GetMyFormResponseErrors, GetMyFormResponseResponse, GetMyFormResponseResponses, 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, GetRingStatusData, GetRingStatusError, GetRingStatusErrors, GetRingStatusResponse, GetRingStatusResponses, GetSelfBotData, GetSelfBotError, GetSelfBotErrors, GetSelfBotResponse, GetSelfBotResponses, GetSelfHarnessData, GetSelfHarnessError, GetSelfHarnessErrors, GetSelfHarnessResponse, GetSelfHarnessResponses, GetSlackImportData, GetSlackImportErrors, GetSlackImportResponse, GetSlackImportResponses, GetSystemSkillsHandlerData, GetSystemSkillsHandlerError, GetSystemSkillsHandlerErrors, GetSystemSkillsHandlerResponse, GetSystemSkillsHandlerResponses, GetUserDocumentsHandlerData, GetUserDocumentsHandlerError, GetUserDocumentsHandlerErrors, GetUserDocumentsHandlerResponse, GetUserDocumentsHandlerResponses, GetUserDocumentViewLocationData, GetUserDocumentViewLocationError, GetUserDocumentViewLocationErrors, GetUserDocumentViewLocationResponse, GetUserDocumentViewLocationResponses, GetUserHistoryResponse, GetViewsHandlerData, GetViewsHandlerError, GetViewsHandlerErrors, GetViewsHandlerResponse, GetViewsHandlerResponses, GetWebhookData, GetWebhookError, GetWebhookErrors, GetWebhookResponse, GetWebhookResponses, GithubLabelFacet, GithubPullRequest, GithubPullRequestChangesPatchResponse, GithubPullRequestChangesResponse, GithubPullRequestCheckRun, GithubPullRequestComment, GithubPullRequestFacets, GithubPullRequestLabel, GithubPullRequestReview, GithubPullRequestReviewDecision, GithubPullRequestReviewState, GithubPullRequestsResponse, GithubPullRequestTasks, GithubPullRequestTasksRequest, GithubPullRequestTasksResponse, GithubPullRequestUser, GithubRepositoryFacet, GithubUserFacet, GitRefDto, GroupedInitialParams, GroupedPageParams, GroupedSoupGroupPage, GroupedSoupInitialPage, GroupedSoupPage, GroupedSoupSort, GuestId, GuestJoinRequest, HandlerData, HandlerError, HandlerErrors, HandlerResponse, HandlerResponses, Harness, HarnessAgent, HarnessId, HarnessOwner, HarnessSession, HashMap, HealthHandlerData, HealthHandlerResponse, HealthHandlerResponses, HighlightType, ImportCounters, ImportDatabaseTableData, ImportDatabaseTableError, ImportDatabaseTableErrors, ImportDatabaseTableResponse, ImportDatabaseTableResponses, ImportedAuthor, ImportError, ImportLimits, ImportPage, ImportProgress, ImportTable, ImportWarning, InferColumnTypeOutcome, InferColumnTypeRequest, InferDatabaseColumnTypeData, InferDatabaseColumnTypeError, InferDatabaseColumnTypeErrors, InferDatabaseColumnTypeResponse, InferDatabaseColumnTypeResponses, InFlightTurnSummary, IngestTranscriptData, IngestTranscriptError, IngestTranscriptErrors, IngestTranscriptResponses, InitializeUserDocumentsData, InitializeUserDocumentsError, InitializeUserDocumentsErrors, InitializeUserDocumentsResponse, InitializeUserDocumentsResponses, InitialPropertyValue, InitiativeDetail, InitiativeFilters, InitiativeId, InitiativeList, InitiativeSummary, InputReceivedMetadata, InstallSyncData, InstallSyncErrors, InteractionReason, InviteMeetingRequest, InviteMeetingUsersRequest, Item, ItemWithUserAccessLevel, JobId, JobProcessingResultHandlerData, JobProcessingResultHandlerError, JobProcessingResultHandlerErrors, JobProcessingResultHandlerResponse, JobProcessingResultHandlerResponses, JobStatus, JoinChannelByCodeData, JoinChannelByCodeError, JoinChannelByCodeErrors, JoinChannelByCodeResponses, JoinChannelData, JoinChannelError, JoinChannelErrors, JoinChannelResponses, KeySegment, Lane, LaneKey, LatestMessage, LayoutProblem, LeaveCallResponse, LeaveChannelData, LeaveChannelError, LeaveChannelErrors, LeaveChannelResponses, LeaveOrEndCallData, LeaveOrEndCallError, LeaveOrEndCallErrors, LeaveOrEndCallResponse, LeaveOrEndCallResponses, LinkShare, ListAccessibleFormsData, ListAccessibleFormsError, ListAccessibleFormsErrors, ListAccessibleFormsResponse, ListAccessibleFormsResponses, ListAgentsData, ListAgentsError, ListAgentsErrors, ListAgentsResponse, ListAgentsResponses, ListBotChannelsData, ListBotChannelsError, ListBotChannelsErrors, ListBotChannelsResponse, ListBotChannelsResponses, ListChannelLabelsData, ListChannelLabelsError, ListChannelLabelsErrors, ListChannelLabelsResponse, ListChannelLabelsResponses, ListCompanyContactsData, ListCompanyContactsError, ListCompanyContactsErrors, ListCompanyContactsResponse, ListCompanyContactsResponses, ListCrmPipelinesData, ListCrmPipelinesResponse, ListCrmPipelinesResponses, ListDatabaseColumnCastsData, ListDatabaseColumnCastsError, ListDatabaseColumnCastsErrors, ListDatabaseColumnCastsResponse, ListDatabaseColumnCastsResponses, ListDatabasesData, ListDatabasesError, ListDatabasesErrors, ListDatabasesResponse, ListDatabasesResponses, ListedDatabase, ListedForm, ListEmailRemindersData, ListEmailRemindersError, ListEmailRemindersErrors, ListEmailRemindersResponse, ListEmailRemindersResponses, ListFavoritesData, ListFavoritesError, ListFavoritesErrors, ListFavoritesResponse, ListFavoritesResponses, ListFormsData, ListFormsError, ListFormsErrors, ListFormsResponse, ListFormsResponses, ListHarnessAgentsData, ListHarnessAgentsError, ListHarnessAgentsErrors, ListHarnessAgentsResponse, ListHarnessAgentsResponses, ListHarnessesData, ListHarnessesError, ListHarnessesErrors, ListHarnessesResponse, ListHarnessesResponses, ListHarnessSessionsData, ListHarnessSessionsError, ListHarnessSessionsErrors, ListHarnessSessionsResponse, ListHarnessSessionsResponses, ListInitiativesData, ListInitiativesError, ListInitiativesErrors, ListInitiativesResponse, ListInitiativesResponses, ListOccurrencesData, ListOccurrencesErrors, ListOccurrencesResponse, ListOccurrencesResponses, ListSlackImportsData, ListSlackImportsResponse, ListSlackImportsResponses, ListTeamOutOfOfficeData, ListTeamOutOfOfficeErrors, ListTeamOutOfOfficeResponse, ListTeamOutOfOfficeResponses, ListUserApiKeysData, ListUserApiKeysError, ListUserApiKeysErrors, ListUserApiKeysResponse, ListUserApiKeysResponses, ListWebhooksData, ListWebhooksError, ListWebhooksErrors, ListWebhooksResponse, ListWebhooksResponse2, ListWebhooksResponses, LocationResponseData, LocationResponseV3, MacroUserIdStr, Meeting, MeetingCancelData, MeetingCancelError, MeetingCancelErrors, MeetingCancelPreparationData, MeetingCancelPreparationError, MeetingCancelPreparationErrors, MeetingCancelPreparationResponse, MeetingCancelPreparationResponses, MeetingCancelResponse, MeetingCancelResponses, MeetingCreateData, MeetingCreateError, MeetingCreateErrors, MeetingCreateResponse, MeetingCreateResponses, MeetingGuestJoinData, MeetingGuestJoinError, MeetingGuestJoinErrors, MeetingGuestJoinResponse, MeetingGuestJoinResponses, MeetingGuestParticipantsData, MeetingGuestParticipantsError, MeetingGuestParticipantsErrors, MeetingGuestParticipantsResponse, MeetingGuestParticipantsResponses, MeetingInviteData, MeetingInviteError, MeetingInviteErrors, MeetingInvitePermissions, MeetingInvitePermissionsData, MeetingInvitePermissionsError, MeetingInvitePermissionsErrors, MeetingInvitePermissionsResponse, MeetingInvitePermissionsResponses, MeetingInviteResponse, MeetingInviteResponses, MeetingInviteUsersData, MeetingInviteUsersError, MeetingInviteUsersErrors, MeetingInviteUsersResponse, MeetingInviteUsersResponses, MeetingJoinData, MeetingJoinError, MeetingJoinErrors, MeetingJoinResponse, MeetingJoinResponses, MeetingLeaveData, MeetingLeaveError, MeetingLeaveErrors, MeetingLeaveResponse, MeetingLeaveResponses, MeetingListActiveData, MeetingListActiveError, MeetingListActiveErrors, MeetingListActiveResponse, MeetingListActiveResponses, MeetingListData, MeetingListError, MeetingListErrors, MeetingListResponse, MeetingListResponses, MeetingLookupData, MeetingLookupError, MeetingLookupErrors, MeetingLookupResponse, MeetingLookupResponses, MeetingParticipant, MeetingParticipants, MeetingParticipantsData, MeetingParticipantsError, MeetingParticipantsErrors, MeetingParticipantsResponse, MeetingParticipantsResponses, MeetingPreparation, MeetingPrepareData, MeetingPrepareError, MeetingPrepareErrors, MeetingPrepareResponse, MeetingPrepareResponses, MeetingShareData, MeetingShareError, MeetingShareErrors, MeetingShareResponse, MeetingShareResponses, MeetingsResponse, MeetingToken, MeetingUpdateData, MeetingUpdateError, MeetingUpdateErrors, MeetingUpdateResponse, MeetingUpdateResponses, MentionPreviewsData, MentionPreviewsErrors, MentionPreviewsResponse, MentionPreviewsResponses, Message, MessageAttachment, MessageAttachmentCreatedMetadata, MessageAttachmentRemovedMetadata, MessageChange, MessageCursor, MessageDeletedMetadata, MessageDirection, MessageEvent, MessageEventAttachment, MessageListItem, MessageMentionedMetadata, MessagePage, MessageParent, MessagePatch, MessagePatchedMetadata, MessagePostedMetadata, MessageThread, MessageThreadPreview, MessageTimelineData, MessageTimelineQuery, MessageTimelineResponse, MessageTimelineResponses, MessageTopicEvent, MyResponse, NewAttachment, NewColumn, NewOption, NewThreadAnchor, NewView, NotificationFilters, NotificationState, NumberOperator, OpBatch, OpRefusalResponse, OpResult, OptionRef, PairingDetails, Params, ParticipantRole, PatchBotRequest, PatchChannelData, PatchChannelError, PatchChannelErrors, PatchChannelRequest, PatchChannelResponse, PatchChannelResponses, PatchMessageNotificationPolicy, PatchProjectRequestV2, PatchThreadRequestV2, PatchViewHandlerData, PatchViewHandlerError, PatchViewHandlerErrors, PatchViewHandlerResponses, PatchWebhookData, PatchWebhookError, PatchWebhookErrors, PatchWebhookRequest, PatchWebhookResponse, PatchWebhookResponses, PdfAnchor, PdfAnchorId, PdfHighlightAnchor, PdfHighlightAnchorRequest, PdfHighlightRect, PdfHighlightRectAnchorRequest, PdfPlaceableCommentAnchor, PendingClaimResponse, PermanentlyDeleteDocumentData, PermanentlyDeleteDocumentError, PermanentlyDeleteDocumentErrors, PermanentlyDeleteDocumentResponse, PermanentlyDeleteDocumentResponses, PermanentlyDeleteProjectData, PermanentlyDeleteProjectError, PermanentlyDeleteProjectErrors, PermanentlyDeleteProjectResponse, PermanentlyDeleteProjectResponses, PinnedItem, PinRequest, Pipeline, PipelineRecordType, PipelineSharing, PostActivityData, PostActivityError, PostActivityErrors, PostActivityRequest, PostActivityResponse, PostActivityResponses, PostChannelBotWebhookData, PostChannelBotWebhookError, PostChannelBotWebhookErrors, PostChannelBotWebhookResponse, PostChannelBotWebhookResponses, PostGroupedSoupAstGroupPageRequest, PostGroupedSoupAstInitialRequest, PostGroupedSoupAstRequest, PostItemsSoupAstData, PostItemsSoupAstError, PostItemsSoupAstErrors, PostItemsSoupAstGroupedData, PostItemsSoupAstGroupedError, PostItemsSoupAstGroupedErrors, PostItemsSoupAstGroupedResponse, PostItemsSoupAstGroupedResponses, PostItemsSoupAstResponse, PostItemsSoupAstResponses, PostItemsSoupData, PostItemsSoupError, PostItemsSoupErrors, PostItemsSoupResponse, PostItemsSoupResponses, PostMessage, PostMessageNotificationPolicy, PostSoupAstRequest, PostSoupRequest, PresaveDocumentHandlerData, PresaveDocumentHandlerError, PresaveDocumentHandlerErrors, PresaveDocumentHandlerResponse, PresaveDocumentHandlerResponses, PreSaveDocumentRequest, PreSaveDocumentResponse, PreSaveDocumentResponseData, PresenceOperator, PresignedUrl, PreviewSmartTagData, PreviewSmartTagError, PreviewSmartTagErrors, PreviewSmartTagResponse, PreviewSmartTagResponses, Project, ProjectDeleteResponseData, ProjectDocumentStatus, ProjectFilters, ProjectPreview, ProjectPreviewData, PropertyDefinition, PropertyDefinitionWithOptions, PropertyFilter, PropertyInput, PropertyOption, PropertyOptionValue, PropertyOwner, PropertyValue, PutCrmTeamSettingsData, PutCrmTeamSettingsError, PutCrmTeamSettingsErrors, PutCrmTeamSettingsResponse, PutCrmTeamSettingsResponses, PutCrmTeamStagesData, PutCrmTeamStagesError, PutCrmTeamStagesErrors, PutCrmTeamStagesResponse, PutCrmTeamStagesResponses, PutFormLayoutData, PutFormLayoutError, PutFormLayoutErrors, PutFormLayoutResponse, PutFormLayoutResponses, QueryCrmPipelineRowsData, QueryCrmPipelineRowsResponse, QueryCrmPipelineRowsResponses, QueryDefinition, QuestionLayout, QuestionOption, QuestionTally, ReactionInput, RecentlyDeletedData, RecentlyDeletedError, RecentlyDeletedErrors, RecentlyDeletedResponse, RecentlyDeletedResponseData, RecentlyDeletedResponses, RegisterSlackImportUploadsData, RegisterSlackImportUploadsErrors, RegisterSlackImportUploadsResponse, RegisterSlackImportUploadsResponses, RegisterUploads, RemoveBotFromChannelByBotData, RemoveBotFromChannelByBotError, RemoveBotFromChannelByBotErrors, RemoveBotFromChannelByBotResponse, RemoveBotFromChannelByBotResponses, RemoveFavoriteByEntityData, RemoveFavoriteByEntityError, RemoveFavoriteByEntityErrors, RemoveFavoriteByEntityResponses, RemoveParticipantsData, RemoveParticipantsError, RemoveParticipantsErrors, RemoveParticipantsRequest, RemoveParticipantsResponses, RemovePinHandlerData, RemovePinHandlerError, RemovePinHandlerErrors, RemovePinHandlerResponse, RemovePinHandlerResponses, RenameChannelLabelData, RenameChannelLabelError, RenameChannelLabelErrors, RenameChannelLabelRequest, RenameChannelLabelResponse, RenameChannelLabelResponses, RenameCrmPipelineData, RenameCrmPipelineResponse, RenameCrmPipelineResponses, RenamePipeline, ReorderFavoritesData, ReorderFavoritesError, ReorderFavoritesErrors, ReorderFavoritesRequest, ReorderFavoritesResponses, ReorderPinRequest, ReorderPinsHandlerData, ReorderPinsHandlerError, ReorderPinsHandlerErrors, ReorderPinsHandlerResponse, ReorderPinsHandlerResponses, ReplaceCrmStagesRequest, RequestedHarnessScope, RequestedLayout, ResetCrmTeamStagesData, ResetCrmTeamStagesError, ResetCrmTeamStagesErrors, ResetCrmTeamStagesResponse, ResetCrmTeamStagesResponses, ResponseStatus, ResponseSummary, RevertDeleteDocumentData, RevertDeleteDocumentError, RevertDeleteDocumentErrors, RevertDeleteDocumentResponse, RevertDeleteDocumentResponses, RevertDeleteProjectData, RevertDeleteProjectError, RevertDeleteProjectErrors, RevertDeleteProjectResponse, RevertDeleteProjectResponses, RingStatus, RingStatusResponse, RowChange, RowChangeKind, RowChanges, RowHistoryEntry, RowHistoryResponse, RowId, RowsChange, RowsResult, S3ObjectInfo, SaveBomPart, SaveDatabaseQueryData, SaveDatabaseQueryError, SaveDatabaseQueryErrors, SaveDatabaseQueryResponse, SaveDatabaseQueryResponses, SaveDocumentHandlerData, SaveDocumentHandlerError, SaveDocumentHandlerErrors, SaveDocumentHandlerResponse, SaveDocumentHandlerResponses, SaveDocumentRequest, SaveDocumentResponse, SaveDocumentResponseData, SavedQuery, SaveQueryRequest, SearchContactsData, SearchContactsError, SearchContactsErrors, SearchContactsResponse, SearchContactsResponse2, SearchContactsResponses, SearchState, SectionCount, SessionDeletedMetadata, SessionIdentity, SessionMentionedMetadata, SessionOpenedMetadata, SessionRenamedMetadata, SessionSettledMetadata, SessionStoppedMetadata, SetChannelLabelData, SetChannelLabelError, SetChannelLabelErrors, SetChannelLabelRequest, SetChannelLabelResponse, SetChannelLabelResponses, SetChannelPictureData, SetChannelPictureError, SetChannelPictureErrors, SetChannelPictureRequest, SetChannelPictureResponse, SetChannelPictureResponses, 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, SetEmailFollowupData, SetEmailFollowupError, SetEmailFollowupErrors, SetEmailFollowupResponse, SetEmailFollowupResponses, SetEmailSyncData, SetEmailSyncError, SetEmailSyncErrors, SetEmailSyncRequest, SetEmailSyncResponse, SetEmailSyncResponses, SetOperator, SetPropertyValue, Sha256Digest, ShareCrmPipelineData, ShareCrmPipelineResponse, ShareCrmPipelineResponses, ShareDatabaseAwarenessData, ShareDatabaseAwarenessError, ShareDatabaseAwarenessErrors, ShareDatabaseAwarenessResponse, ShareDatabaseAwarenessResponses, SharedEmailFilter, SharePermissionV2, SharePipeline, ShortIdResponse, SimpleMention, SimpleSaveData, SimpleSaveError, SimpleSaveErrors, SimpleSaveResponse, SimpleSaveResponses, SkippedCell, SlackCompleteRequest, SlackCreateRequest, SlackRegisterRequest, SlackTimestamp, SlackUserId, SmartTagChannelMatch, SmartTagPreview, SortDirection, SortKey, SoupAgentSessionSoupPropertiesField, SoupApiItem, SoupApiSort, SoupApiSortDirection, SoupAttachment, SoupCalendarEventSoupPropertiesField, SoupCalendarEventTime, SoupCallRecordGuest, SoupCallRecordParticipant, SoupCallRecordSoupPropertiesField, SoupChannel, SoupChannelThread, SoupChatSoupPropertiesField, SoupContact, SoupCountedReaction, SoupCrmCompanySoupPropertiesField, SoupCrmContactSoupPropertiesField, SoupCrmDomain, SoupDatabaseRowSoupPropertiesField, SoupDocumentSoupPropertiesField, SoupDocumentSubType, SoupEmailThreadPreview, SoupEnrichedEmailThreadPreviewSoupPropertiesField, SoupForeignEntity, SoupInitiativeSoupPropertiesField, SoupItem, SoupLabel, SoupLabelListVisibility, SoupLabelType, SoupMessageAttachment, SoupMessageListVisibility, SoupMessageSender, SoupMessageSenderType, SoupPage, SoupProjectSoupPropertiesField, SoupPropertiesField, SoupProperty, SoupThreadInfo, SoupThreadReply, SourceBinding, SourceId, SourceIdentity, StarterDatabase, StarterDocumentsResponse, StorageRow, StorageRows, StorageRowsQuery, StoredGithubPullRequest, StreamEventsData, StreamEventsError, StreamEventsErrors, StreamEventsResponse, StreamEventsResponses, String, Submission, SubmissionOutcome, SubmitFormResponseData, SubmitFormResponseError, SubmitFormResponseErrors, SubmitFormResponseResponse, SubmitFormResponseResponses, SuccessResponse, SurfaceState, SyncServiceVersionId, SystemSkillSummary, Table, TableChange, TableChanged, TableChanges, TableDetail, TableResult, TableVersion, TagFilterMode, TakenId, TallyBucket, TallyValue, TaskFilters, TeamOutOfOfficeItem, TeamOutOfOfficeResponse, TeamRole, TextOperator, ThreadAnchor, ThreadOrigin, ThreadPatch, ThreadState, ToggleShareWithTeamData, ToggleShareWithTeamError, ToggleShareWithTeamErrors, ToggleShareWithTeamResponse, ToggleShareWithTeamResponses, TouchedColumn, TouchedRow, TranscribeDictationData, TranscribeDictationError, TranscribeDictationErrors, TranscribeDictationResponse, TranscribeDictationResponses, TranscribeResponse, TranscriptSegmentRequest, TrashCrmPipelineData, TrashCrmPipelineResponse, TrashCrmPipelineResponses, TrashPipeline, TurnEndedMetadata, TurnStartedMetadata, TurnSummary, TypedSuccessResponse, TypedSuccessResponseGetDocumentResponseData, TypingInput, UndoChangeResponse, UndoDatabaseChangeData, UndoDatabaseChangeError, UndoDatabaseChangeErrors, UndoDatabaseChangeResponse, UndoDatabaseChangeResponses, UndoOutcome, UndoRefusal, UnlockedBooking, UpdateAgentData, UpdateAgentError, UpdateAgentErrors, UpdateAgentRequest, UpdateAgentResponse, UpdateAgentResponses, UpdateChannelSharePermission, UpdateCrmTeamSettingsRequest, UpdateDatabasePermissionsData, UpdateDatabasePermissionsError, UpdateDatabasePermissionsErrors, UpdateDatabasePermissionsResponse, UpdateDatabasePermissionsResponses, UpdateForm, UpdateFormData, UpdateFormError, UpdateFormErrors, UpdateFormPermissionsData, UpdateFormPermissionsError, UpdateFormPermissionsErrors, UpdateFormPermissionsResponse, UpdateFormPermissionsResponses, UpdateFormResponse, UpdateFormResponses, UpdateInitiativeData, UpdateInitiativeError, UpdateInitiativeErrors, UpdateInitiativeRequest, UpdateInitiativeResponse, UpdateInitiativeResponses, UpdateMeetingRequest, UpdateOperation, UpdateSharePermissionRequestV2, UploadDescriptor, UploadDocumentStatus, UploadExtractFolderHandlerData, UploadExtractFolderHandlerError, UploadExtractFolderHandlerErrors, UploadExtractFolderHandlerResponse, UploadExtractFolderHandlerResponses, UploadExtractFolderRequest, UploadFolderHandlerData, UploadFolderHandlerError, UploadFolderHandlerErrors, UploadFolderHandlerResponse, UploadFolderHandlerResponses, UploadFolderRequest, UploadGrant, UploadId, 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, VersionedTable, View, ViewChange, ViewColumn, ViewLayout, ViewPatch, ViewPosition, ViewPositionsResponse, ViewQuery, ViewResult, ViewsResponse, WaitingForInputMetadata, Webhook, WebhookEvent, WebhookFilter, WebhookScope, WebhookStatus, WebhookValidationTestEvent, Widget, 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 8f2b702e4a..1d87015035 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, ApplyCrmPipelineOpsData, ApplyCrmPipelineOpsResponses, ApplyDatabaseOpsData, ApplyDatabaseOpsErrors, ApplyDatabaseOpsResponses, ApproveHarnessPairingData, ApproveHarnessPairingErrors, ApproveHarnessPairingResponses, BulkWakeupSyncServiceDocumentsData, BulkWakeupSyncServiceDocumentsErrors, BulkWakeupSyncServiceDocumentsResponses, CallWebhookData, CallWebhookErrors, CallWebhookResponses, CancelSlackImportData, CancelSlackImportErrors, CancelSlackImportResponses, CheckActiveCallData, CheckActiveCallErrors, CheckActiveCallResponses, ClaimHarnessPairingData, ClaimHarnessPairingErrors, ClaimHarnessPairingResponses, CollaborateFormData, CollaborateFormErrors, CollaborateFormResponses, CompleteSlackImportUploadsData, CompleteSlackImportUploadsErrors, CompleteSlackImportUploadsResponses, ConvertDatabaseColumnData, ConvertDatabaseColumnErrors, ConvertDatabaseColumnResponses, CopyDocumentData, CopyDocumentErrors, CopyDocumentResponses, CreateAgentData, CreateAgentErrors, CreateAgentResponses, CreateAnchorData, CreateAnchorErrors, CreateAnchorResponses, CreateChannelData, CreateChannelErrors, CreateChannelLabelData, CreateChannelLabelErrors, CreateChannelLabelResponses, CreateChannelResponses, CreateChannelScopedBotData, CreateChannelScopedBotErrors, CreateChannelScopedBotResponses, CreateCollabSurfaceTokenData, CreateCollabSurfaceTokenErrors, CreateCollabSurfaceTokenResponses, CreateCrmCompanyData, CreateCrmCompanyErrors, CreateCrmCompanyResponses, CreateCrmContactData, CreateCrmContactErrors, CreateCrmContactResponses, CreateCrmPipelineData, CreateCrmPipelineResponses, CreateDatabaseData, CreateDatabaseErrors, CreateDatabaseResponses, CreateDocumentData, CreateDocumentErrors, CreateDocumentResponses, CreateEntityMentionData, CreateEntityMentionErrors, CreateEntityMentionResponses, CreateFormData, CreateFormErrors, CreateFormResponses, CreateHarnessPairingData, CreateHarnessPairingErrors, CreateHarnessPairingResponses, CreateInitiativeData, CreateInitiativeErrors, CreateInitiativeResponses, CreateInstructionsHandlerData, CreateInstructionsHandlerErrors, CreateInstructionsHandlerResponses, CreateMarkdownHandlerData, CreateMarkdownHandlerErrors, CreateMarkdownHandlerResponses, CreateProjectHandlerData, CreateProjectHandlerErrors, CreateProjectHandlerResponses, CreateSkillHandlerData, CreateSkillHandlerErrors, CreateSkillHandlerResponses, CreateSlackImportData, CreateSlackImportErrors, CreateSlackImportResponses, CreateSnippetHandlerData, CreateSnippetHandlerErrors, CreateSnippetHandlerResponses, CreateTaskHandlerData, CreateTaskHandlerErrors, CreateTaskHandlerResponses, CreateUserApiKeyData, CreateUserApiKeyErrors, CreateUserApiKeyResponses, CreateViewHandlerData, CreateViewHandlerErrors, CreateViewHandlerResponses, CreateWebhookData, CreateWebhookErrors, CreateWebhookResponses, DeleteAnchorData, DeleteAnchorErrors, DeleteAnchorResponses, DeleteCallRecordData, DeleteCallRecordErrors, DeleteCallRecordResponses, DeleteChannelData, DeleteChannelErrors, DeleteChannelLabelData, DeleteChannelLabelErrors, DeleteChannelLabelResponses, DeleteChannelResponses, DeleteCollabSurfaceData, DeleteCollabSurfaceErrors, DeleteCollabSurfaceResponses, DeleteDocumentData, DeleteDocumentErrors, DeleteDocumentResponses, DeleteEntityMentionData, DeleteEntityMentionErrors, DeleteEntityMentionResponses, DeleteHarnessData, DeleteHarnessErrors, DeleteHarnessResponses, DeleteHistoryHandlerData, DeleteHistoryHandlerErrors, DeleteHistoryHandlerResponses, DeleteInitiativeData, DeleteInitiativeErrors, DeleteInitiativeResponses, DeleteProjectHandlerData, DeleteProjectHandlerErrors, DeleteProjectHandlerResponses, DeleteSelfHarnessData, DeleteSelfHarnessErrors, DeleteSelfHarnessResponses, DeleteUserApiKeyData, DeleteUserApiKeyErrors, DeleteUserApiKeyResponses, DeleteUserDocumentViewLocationData, DeleteUserDocumentViewLocationErrors, DeleteUserDocumentViewLocationResponses, DeleteViewHandlerData, DeleteViewHandlerErrors, DeleteViewHandlerResponses, DeleteWebhookData, DeleteWebhookErrors, DeleteWebhookResponses, EditAnchorData, EditAnchorErrors, EditAnchorResponses, EditCallRecordData, EditCallRecordErrors, EditCallRecordResponses, EditCallTranscriptData, EditCallTranscriptErrors, EditCallTranscriptResponses, EditDocumentData, EditDocumentErrors, EditDocumentResponses, EditMyFormResponseData, EditMyFormResponseErrors, EditMyFormResponseResponses, EditProjectV2Data, EditProjectV2Errors, EditProjectV2Responses, EditThreadV2Data, EditThreadV2Errors, EditThreadV2Responses, EnsureCollabSurfaceData, EnsureCollabSurfaceErrors, EnsureCollabSurfaceResponses, EnsureStarterHandlerData, EnsureStarterHandlerErrors, EnsureStarterHandlerResponses, EntityMessageCreateData, EntityMessageCreateResponses, EntityMessageDeleteMessageData, EntityMessageDeleteMessageResponses, EntityMessageDeleteThreadData, EntityMessageDeleteThreadResponses, EntityMessageEditData, EntityMessageEditResponses, EntityMessageGetMessageData, EntityMessageGetMessageResponses, EntityMessageGetThreadData, EntityMessageGetThreadResponses, EntityMessageLegacyData, EntityMessageLegacyResponses, EntityMessagePatchThreadData, EntityMessagePatchThreadResponses, EntityMessageReactData, EntityMessageReactResponses, EntityMessageTypingData, EntityMessageTypingResponses, ExcludeDefaultViewHandlerData, ExcludeDefaultViewHandlerErrors, ExcludeDefaultViewHandlerResponses, ExportDocumentData, ExportDocumentErrors, ExportDocumentResponses, FinalizeSlackImportData, FinalizeSlackImportErrors, FinalizeSlackImportResponses, GetActiveCallsData, GetActiveCallsErrors, GetActiveCallsResponses, GetActivityData, GetActivityErrors, GetActivityResponses, GetAttachmentReferencesData, GetAttachmentReferencesErrors, GetAttachmentReferencesResponses, GetBatchCallRecordPreviewData, GetBatchCallRecordPreviewErrors, GetBatchCallRecordPreviewResponses, GetBatchChannelPreviewData, GetBatchChannelPreviewErrors, GetBatchChannelPreviewResponses, GetBatchPreviewHandlerData, GetBatchPreviewHandlerErrors, GetBatchPreviewHandlerResponses, GetBatchProjectPreviewData, GetBatchProjectPreviewErrors, GetBatchProjectPreviewResponses, GetBotOwnerProfilesData, GetBotOwnerProfilesErrors, GetBotOwnerProfilesResponses, GetCallRecordData, GetCallRecordErrors, GetCallRecordResponses, GetChannelAttachmentsData, GetChannelAttachmentsErrors, GetChannelAttachmentsResponses, GetChannelData, GetChannelErrors, GetChannelJoinLinkData, GetChannelJoinLinkErrors, GetChannelJoinLinkResponses, GetChannelParticipantsData, GetChannelParticipantsErrors, GetChannelParticipantsResponses, GetChannelResponses, GetChannelsData, GetChannelsErrors, GetChannelsResponses, GetCollabSurfaceData, GetCollabSurfaceErrors, GetCollabSurfaceResponses, GetCompanyData, GetCompanyErrors, GetCompanyResponses, GetContactByEmailData, GetContactByEmailErrors, GetContactByEmailResponses, GetContactData, GetContactErrors, GetContactResponses, GetCrmPipelineData, GetCrmPipelineResponses, GetCrmPipelineRowsData, GetCrmPipelineRowsResponses, GetCrmPipelineTableData, GetCrmPipelineTableResponses, GetCrmTeamSettingsData, GetCrmTeamSettingsErrors, GetCrmTeamSettingsResponses, GetDatabaseData, GetDatabaseErrors, GetDatabasePermissionsData, GetDatabasePermissionsErrors, GetDatabasePermissionsResponses, GetDatabaseQueryData, GetDatabaseQueryErrors, GetDatabaseQueryResponses, GetDatabaseResponses, GetDatabaseRowHistoryData, GetDatabaseRowHistoryErrors, GetDatabaseRowHistoryResponses, GetDatabaseTableChangesData, GetDatabaseTableChangesErrors, GetDatabaseTableChangesResponses, GetDatabaseViewPositionsData, GetDatabaseViewPositionsErrors, GetDatabaseViewPositionsResponses, GetDocumentAnchorsData, GetDocumentAnchorsErrors, GetDocumentAnchorsResponses, GetDocumentBranchNameData, GetDocumentBranchNameErrors, GetDocumentBranchNameResponses, GetDocumentByTeamSlugData, GetDocumentByTeamSlugErrors, GetDocumentByTeamSlugResponses, 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, GetEmailFollowupData, GetEmailFollowupErrors, GetEmailFollowupResponses, GetEntityPermissionData, GetEntityPermissionErrors, GetEntityPermissionResponses, GetForeignEntityBySourceData, GetForeignEntityBySourceErrors, GetForeignEntityBySourceResponses, GetForeignEntityData, GetForeignEntityErrors, GetForeignEntityResponses, GetFormData, GetFormErrors, GetFormPermissionsData, GetFormPermissionsErrors, GetFormPermissionsResponses, GetFormResponses, GetFormResponseSummaryData, GetFormResponseSummaryErrors, GetFormResponseSummaryResponses, GetFormTallyData, GetFormTallyErrors, GetFormTallyResponses, GetGithubPullRequestChangesData, GetGithubPullRequestChangesErrors, GetGithubPullRequestChangesPatchData, GetGithubPullRequestChangesPatchErrors, GetGithubPullRequestChangesPatchResponses, GetGithubPullRequestChangesResponses, GetGithubPullRequestData, GetGithubPullRequestErrors, GetGithubPullRequestFacetsData, GetGithubPullRequestFacetsErrors, GetGithubPullRequestFacetsResponses, GetGithubPullRequestResponses, GetHarnessPairingData, GetHarnessPairingErrors, GetHarnessPairingResponses, GetHistoryHandlerData, GetHistoryHandlerErrors, GetHistoryHandlerResponses, GetInitiativeData, GetInitiativeErrors, GetInitiativeResponses, GetInstructionsHandlerData, GetInstructionsHandlerErrors, GetInstructionsHandlerResponses, GetItemsSoupData, GetItemsSoupErrors, GetItemsSoupResponses, GetLocationHandlerData, GetLocationHandlerErrors, GetLocationHandlerResponses, GetMyFormResponseData, GetMyFormResponseErrors, GetMyFormResponseResponses, 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, GetRingStatusData, GetRingStatusErrors, GetRingStatusResponses, GetSelfBotData, GetSelfBotErrors, GetSelfBotResponses, GetSelfHarnessData, GetSelfHarnessErrors, GetSelfHarnessResponses, GetSlackImportData, GetSlackImportErrors, GetSlackImportResponses, GetSystemSkillsHandlerData, GetSystemSkillsHandlerErrors, GetSystemSkillsHandlerResponses, GetUserDocumentsHandlerData, GetUserDocumentsHandlerErrors, GetUserDocumentsHandlerResponses, GetUserDocumentViewLocationData, GetUserDocumentViewLocationErrors, GetUserDocumentViewLocationResponses, GetViewsHandlerData, GetViewsHandlerErrors, GetViewsHandlerResponses, GetWebhookData, GetWebhookErrors, GetWebhookResponses, HandlerData, HandlerErrors, HandlerResponses, HealthHandlerData, HealthHandlerResponses, ImportDatabaseTableData, ImportDatabaseTableErrors, ImportDatabaseTableResponses, InferDatabaseColumnTypeData, InferDatabaseColumnTypeErrors, InferDatabaseColumnTypeResponses, IngestTranscriptData, IngestTranscriptErrors, IngestTranscriptResponses, InitializeUserDocumentsData, InitializeUserDocumentsErrors, InitializeUserDocumentsResponses, InstallSyncData, InstallSyncErrors, JobProcessingResultHandlerData, JobProcessingResultHandlerErrors, JobProcessingResultHandlerResponses, JoinChannelByCodeData, JoinChannelByCodeErrors, JoinChannelByCodeResponses, JoinChannelData, JoinChannelErrors, JoinChannelResponses, LeaveChannelData, LeaveChannelErrors, LeaveChannelResponses, LeaveOrEndCallData, LeaveOrEndCallErrors, LeaveOrEndCallResponses, ListAccessibleFormsData, ListAccessibleFormsErrors, ListAccessibleFormsResponses, ListAgentsData, ListAgentsErrors, ListAgentsResponses, ListBotChannelsData, ListBotChannelsErrors, ListBotChannelsResponses, ListChannelLabelsData, ListChannelLabelsErrors, ListChannelLabelsResponses, ListCompanyContactsData, ListCompanyContactsErrors, ListCompanyContactsResponses, ListCrmPipelinesData, ListCrmPipelinesResponses, ListDatabaseColumnCastsData, ListDatabaseColumnCastsErrors, ListDatabaseColumnCastsResponses, ListDatabasesData, ListDatabasesErrors, ListDatabasesResponses, ListEmailRemindersData, ListEmailRemindersErrors, ListEmailRemindersResponses, ListFavoritesData, ListFavoritesErrors, ListFavoritesResponses, ListFormsData, ListFormsErrors, ListFormsResponses, ListHarnessAgentsData, ListHarnessAgentsErrors, ListHarnessAgentsResponses, ListHarnessesData, ListHarnessesErrors, ListHarnessesResponses, ListHarnessSessionsData, ListHarnessSessionsErrors, ListHarnessSessionsResponses, ListInitiativesData, ListInitiativesErrors, ListInitiativesResponses, ListOccurrencesData, ListOccurrencesErrors, ListOccurrencesResponses, ListSlackImportsData, ListSlackImportsResponses, ListTeamOutOfOfficeData, ListTeamOutOfOfficeErrors, ListTeamOutOfOfficeResponses, ListUserApiKeysData, ListUserApiKeysErrors, ListUserApiKeysResponses, ListWebhooksData, ListWebhooksErrors, ListWebhooksResponses, MeetingCancelData, MeetingCancelErrors, MeetingCancelPreparationData, MeetingCancelPreparationErrors, MeetingCancelPreparationResponses, MeetingCancelResponses, MeetingCreateData, MeetingCreateErrors, MeetingCreateResponses, MeetingGuestJoinData, MeetingGuestJoinErrors, MeetingGuestJoinResponses, MeetingGuestParticipantsData, MeetingGuestParticipantsErrors, MeetingGuestParticipantsResponses, MeetingInviteData, MeetingInviteErrors, MeetingInvitePermissionsData, MeetingInvitePermissionsErrors, MeetingInvitePermissionsResponses, MeetingInviteResponses, MeetingInviteUsersData, MeetingInviteUsersErrors, MeetingInviteUsersResponses, MeetingJoinData, MeetingJoinErrors, MeetingJoinResponses, MeetingLeaveData, MeetingLeaveErrors, MeetingLeaveResponses, MeetingListActiveData, MeetingListActiveErrors, MeetingListActiveResponses, MeetingListData, MeetingListErrors, MeetingListResponses, MeetingLookupData, MeetingLookupErrors, MeetingLookupResponses, MeetingParticipantsData, MeetingParticipantsErrors, MeetingParticipantsResponses, MeetingPrepareData, MeetingPrepareErrors, MeetingPrepareResponses, MeetingShareData, MeetingShareErrors, MeetingShareResponses, MeetingUpdateData, MeetingUpdateErrors, MeetingUpdateResponses, MentionPreviewsData, MentionPreviewsErrors, MentionPreviewsResponses, MessageTimelineData, MessageTimelineResponses, PatchChannelData, PatchChannelErrors, PatchChannelResponses, PatchViewHandlerData, PatchViewHandlerErrors, PatchViewHandlerResponses, PatchWebhookData, PatchWebhookErrors, PatchWebhookResponses, PermanentlyDeleteDocumentData, PermanentlyDeleteDocumentErrors, PermanentlyDeleteDocumentResponses, PermanentlyDeleteProjectData, PermanentlyDeleteProjectErrors, PermanentlyDeleteProjectResponses, PostActivityData, PostActivityErrors, PostActivityResponses, PostChannelBotWebhookData, PostChannelBotWebhookErrors, PostChannelBotWebhookResponses, PostItemsSoupAstData, PostItemsSoupAstErrors, PostItemsSoupAstGroupedData, PostItemsSoupAstGroupedErrors, PostItemsSoupAstGroupedResponses, PostItemsSoupAstResponses, PostItemsSoupData, PostItemsSoupErrors, PostItemsSoupResponses, PresaveDocumentHandlerData, PresaveDocumentHandlerErrors, PresaveDocumentHandlerResponses, PreviewSmartTagData, PreviewSmartTagErrors, PreviewSmartTagResponses, PutCrmTeamSettingsData, PutCrmTeamSettingsErrors, PutCrmTeamSettingsResponses, PutCrmTeamStagesData, PutCrmTeamStagesErrors, PutCrmTeamStagesResponses, PutFormLayoutData, PutFormLayoutErrors, PutFormLayoutResponses, QueryCrmPipelineRowsData, QueryCrmPipelineRowsResponses, RecentlyDeletedData, RecentlyDeletedErrors, RecentlyDeletedResponses, RegisterSlackImportUploadsData, RegisterSlackImportUploadsErrors, RegisterSlackImportUploadsResponses, RemoveBotFromChannelByBotData, RemoveBotFromChannelByBotErrors, RemoveBotFromChannelByBotResponses, RemoveFavoriteByEntityData, RemoveFavoriteByEntityErrors, RemoveFavoriteByEntityResponses, RemoveParticipantsData, RemoveParticipantsErrors, RemoveParticipantsResponses, RemovePinHandlerData, RemovePinHandlerErrors, RemovePinHandlerResponses, RenameChannelLabelData, RenameChannelLabelErrors, RenameChannelLabelResponses, RenameCrmPipelineData, RenameCrmPipelineResponses, ReorderFavoritesData, ReorderFavoritesErrors, ReorderFavoritesResponses, ReorderPinsHandlerData, ReorderPinsHandlerErrors, ReorderPinsHandlerResponses, ResetCrmTeamStagesData, ResetCrmTeamStagesErrors, ResetCrmTeamStagesResponses, RevertDeleteDocumentData, RevertDeleteDocumentErrors, RevertDeleteDocumentResponses, RevertDeleteProjectData, RevertDeleteProjectErrors, RevertDeleteProjectResponses, SaveDatabaseQueryData, SaveDatabaseQueryErrors, SaveDatabaseQueryResponses, SaveDocumentHandlerData, SaveDocumentHandlerErrors, SaveDocumentHandlerResponses, SearchContactsData, SearchContactsErrors, SearchContactsResponses, SetChannelLabelData, SetChannelLabelErrors, SetChannelLabelResponses, SetChannelPictureData, SetChannelPictureErrors, SetChannelPictureResponses, SetCompanyHiddenData, SetCompanyHiddenErrors, SetCompanyHiddenResponses, SetContactHiddenData, SetContactHiddenErrors, SetContactHiddenResponses, SetCrmCompanyNameData, SetCrmCompanyNameErrors, SetCrmCompanyNameResponses, SetCrmContactNameData, SetCrmContactNameErrors, SetCrmContactNameResponses, SetDocumentTeamShareData, SetDocumentTeamShareErrors, SetDocumentTeamShareResponses, SetEmailFollowupData, SetEmailFollowupErrors, SetEmailFollowupResponses, SetEmailSyncData, SetEmailSyncErrors, SetEmailSyncResponses, ShareCrmPipelineData, ShareCrmPipelineResponses, ShareDatabaseAwarenessData, ShareDatabaseAwarenessErrors, ShareDatabaseAwarenessResponses, SimpleSaveData, SimpleSaveErrors, SimpleSaveResponses, StreamEventsData, StreamEventsErrors, StreamEventsResponse, StreamEventsResponses, SubmitFormResponseData, SubmitFormResponseErrors, SubmitFormResponseResponses, ToggleShareWithTeamData, ToggleShareWithTeamErrors, ToggleShareWithTeamResponses, TranscribeDictationData, TranscribeDictationErrors, TranscribeDictationResponses, TrashCrmPipelineData, TrashCrmPipelineResponses, UndoDatabaseChangeData, UndoDatabaseChangeErrors, UndoDatabaseChangeResponses, UpdateAgentData, UpdateAgentErrors, UpdateAgentResponses, UpdateDatabasePermissionsData, UpdateDatabasePermissionsErrors, UpdateDatabasePermissionsResponses, UpdateFormData, UpdateFormErrors, UpdateFormPermissionsData, UpdateFormPermissionsErrors, UpdateFormPermissionsResponses, UpdateFormResponses, UpdateInitiativeData, UpdateInitiativeErrors, UpdateInitiativeResponses, 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, ApplyCrmPipelineOpsData, ApplyCrmPipelineOpsResponses, ApplyDatabaseOpsData, ApplyDatabaseOpsErrors, ApplyDatabaseOpsResponses, ApproveHarnessPairingData, ApproveHarnessPairingErrors, ApproveHarnessPairingResponses, BulkWakeupSyncServiceDocumentsData, BulkWakeupSyncServiceDocumentsErrors, BulkWakeupSyncServiceDocumentsResponses, CallWebhookData, CallWebhookErrors, CallWebhookResponses, CancelSlackImportData, CancelSlackImportErrors, CancelSlackImportResponses, CheckActiveCallData, CheckActiveCallErrors, CheckActiveCallResponses, ClaimHarnessPairingData, ClaimHarnessPairingErrors, ClaimHarnessPairingResponses, CollaborateFormData, CollaborateFormErrors, CollaborateFormResponses, CompleteSlackImportUploadsData, CompleteSlackImportUploadsErrors, CompleteSlackImportUploadsResponses, ConvertDatabaseColumnData, ConvertDatabaseColumnErrors, ConvertDatabaseColumnResponses, CopyDocumentData, CopyDocumentErrors, CopyDocumentResponses, CreateAgentData, CreateAgentErrors, CreateAgentResponses, CreateAnchorData, CreateAnchorErrors, CreateAnchorResponses, CreateChannelData, CreateChannelErrors, CreateChannelLabelData, CreateChannelLabelErrors, CreateChannelLabelResponses, CreateChannelResponses, CreateChannelScopedBotData, CreateChannelScopedBotErrors, CreateChannelScopedBotResponses, CreateCollabSurfaceTokenData, CreateCollabSurfaceTokenErrors, CreateCollabSurfaceTokenResponses, CreateCrmCompanyData, CreateCrmCompanyErrors, CreateCrmCompanyResponses, CreateCrmContactData, CreateCrmContactErrors, CreateCrmContactResponses, CreateCrmPipelineData, CreateCrmPipelineResponses, CreateDatabaseData, CreateDatabaseErrors, CreateDatabaseResponses, CreateDocumentData, CreateDocumentErrors, CreateDocumentResponses, CreateEntityMentionData, CreateEntityMentionErrors, CreateEntityMentionResponses, CreateFormData, CreateFormErrors, CreateFormResponses, CreateHarnessPairingData, CreateHarnessPairingErrors, CreateHarnessPairingResponses, CreateInitiativeData, CreateInitiativeErrors, CreateInitiativeResponses, CreateInstructionsHandlerData, CreateInstructionsHandlerErrors, CreateInstructionsHandlerResponses, CreateMarkdownHandlerData, CreateMarkdownHandlerErrors, CreateMarkdownHandlerResponses, CreateProjectHandlerData, CreateProjectHandlerErrors, CreateProjectHandlerResponses, CreateSkillHandlerData, CreateSkillHandlerErrors, CreateSkillHandlerResponses, CreateSlackImportData, CreateSlackImportErrors, CreateSlackImportResponses, CreateSnippetHandlerData, CreateSnippetHandlerErrors, CreateSnippetHandlerResponses, CreateTaskHandlerData, CreateTaskHandlerErrors, CreateTaskHandlerResponses, CreateUserApiKeyData, CreateUserApiKeyErrors, CreateUserApiKeyResponses, CreateViewHandlerData, CreateViewHandlerErrors, CreateViewHandlerResponses, CreateWebhookData, CreateWebhookErrors, CreateWebhookResponses, DeleteAnchorData, DeleteAnchorErrors, DeleteAnchorResponses, DeleteCallRecordData, DeleteCallRecordErrors, DeleteCallRecordResponses, DeleteChannelData, DeleteChannelErrors, DeleteChannelLabelData, DeleteChannelLabelErrors, DeleteChannelLabelResponses, DeleteChannelResponses, DeleteCollabSurfaceData, DeleteCollabSurfaceErrors, DeleteCollabSurfaceResponses, DeleteDocumentData, DeleteDocumentErrors, DeleteDocumentResponses, DeleteEntityMentionData, DeleteEntityMentionErrors, DeleteEntityMentionResponses, DeleteHarnessData, DeleteHarnessErrors, DeleteHarnessResponses, DeleteHistoryHandlerData, DeleteHistoryHandlerErrors, DeleteHistoryHandlerResponses, DeleteInitiativeData, DeleteInitiativeErrors, DeleteInitiativeResponses, DeleteProjectHandlerData, DeleteProjectHandlerErrors, DeleteProjectHandlerResponses, DeleteSelfHarnessData, DeleteSelfHarnessErrors, DeleteSelfHarnessResponses, DeleteUserApiKeyData, DeleteUserApiKeyErrors, DeleteUserApiKeyResponses, DeleteUserDocumentViewLocationData, DeleteUserDocumentViewLocationErrors, DeleteUserDocumentViewLocationResponses, DeleteViewHandlerData, DeleteViewHandlerErrors, DeleteViewHandlerResponses, DeleteWebhookData, DeleteWebhookErrors, DeleteWebhookResponses, EditAnchorData, EditAnchorErrors, EditAnchorResponses, EditCallRecordData, EditCallRecordErrors, EditCallRecordResponses, EditCallTranscriptData, EditCallTranscriptErrors, EditCallTranscriptResponses, EditDocumentData, EditDocumentErrors, EditDocumentResponses, EditMyFormResponseData, EditMyFormResponseErrors, EditMyFormResponseResponses, EditProjectV2Data, EditProjectV2Errors, EditProjectV2Responses, EditThreadV2Data, EditThreadV2Errors, EditThreadV2Responses, EnsureCollabSurfaceData, EnsureCollabSurfaceErrors, EnsureCollabSurfaceResponses, EnsureStarterHandlerData, EnsureStarterHandlerErrors, EnsureStarterHandlerResponses, EntityMessageCreateData, EntityMessageCreateResponses, EntityMessageDeleteMessageData, EntityMessageDeleteMessageResponses, EntityMessageDeleteThreadData, EntityMessageDeleteThreadResponses, EntityMessageEditData, EntityMessageEditResponses, EntityMessageGetMessageData, EntityMessageGetMessageResponses, EntityMessageGetThreadData, EntityMessageGetThreadResponses, EntityMessageLegacyData, EntityMessageLegacyResponses, EntityMessagePatchThreadData, EntityMessagePatchThreadResponses, EntityMessageReactData, EntityMessageReactResponses, EntityMessageTypingData, EntityMessageTypingResponses, ExcludeDefaultViewHandlerData, ExcludeDefaultViewHandlerErrors, ExcludeDefaultViewHandlerResponses, ExportDocumentData, ExportDocumentErrors, ExportDocumentResponses, FinalizeSlackImportData, FinalizeSlackImportErrors, FinalizeSlackImportResponses, GetActiveCallsData, GetActiveCallsErrors, GetActiveCallsResponses, GetActivityData, GetActivityErrors, GetActivityResponses, GetAttachmentReferencesData, GetAttachmentReferencesErrors, GetAttachmentReferencesResponses, GetBatchCallRecordPreviewData, GetBatchCallRecordPreviewErrors, GetBatchCallRecordPreviewResponses, GetBatchChannelPreviewData, GetBatchChannelPreviewErrors, GetBatchChannelPreviewResponses, GetBatchPreviewHandlerData, GetBatchPreviewHandlerErrors, GetBatchPreviewHandlerResponses, GetBatchProjectPreviewData, GetBatchProjectPreviewErrors, GetBatchProjectPreviewResponses, GetBotOwnerProfilesData, GetBotOwnerProfilesErrors, GetBotOwnerProfilesResponses, GetCallRecordData, GetCallRecordErrors, GetCallRecordResponses, GetChannelAttachmentsData, GetChannelAttachmentsErrors, GetChannelAttachmentsResponses, GetChannelData, GetChannelErrors, GetChannelJoinLinkData, GetChannelJoinLinkErrors, GetChannelJoinLinkResponses, GetChannelParticipantsData, GetChannelParticipantsErrors, GetChannelParticipantsResponses, GetChannelResponses, GetChannelsData, GetChannelsErrors, GetChannelsResponses, GetCollabSurfaceData, GetCollabSurfaceErrors, GetCollabSurfaceResponses, GetCompanyData, GetCompanyErrors, GetCompanyResponses, GetContactByEmailData, GetContactByEmailErrors, GetContactByEmailResponses, GetContactData, GetContactErrors, GetContactResponses, GetCrmPipelineData, GetCrmPipelineResponses, GetCrmPipelineRowsData, GetCrmPipelineRowsResponses, GetCrmPipelineTableData, GetCrmPipelineTableResponses, GetCrmTeamSettingsData, GetCrmTeamSettingsErrors, GetCrmTeamSettingsResponses, GetDatabaseData, GetDatabaseErrors, GetDatabasePermissionsData, GetDatabasePermissionsErrors, GetDatabasePermissionsResponses, GetDatabaseQueryData, GetDatabaseQueryErrors, GetDatabaseQueryResponses, GetDatabaseResponses, GetDatabaseRowHistoryData, GetDatabaseRowHistoryErrors, GetDatabaseRowHistoryResponses, GetDatabaseTableChangesData, GetDatabaseTableChangesErrors, GetDatabaseTableChangesResponses, GetDatabaseViewPositionsData, GetDatabaseViewPositionsErrors, GetDatabaseViewPositionsResponses, GetDocumentAnchorsData, GetDocumentAnchorsErrors, GetDocumentAnchorsResponses, GetDocumentBranchNameData, GetDocumentBranchNameErrors, GetDocumentBranchNameResponses, GetDocumentByTeamSlugData, GetDocumentByTeamSlugErrors, GetDocumentByTeamSlugResponses, 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, GetEmailFollowupData, GetEmailFollowupErrors, GetEmailFollowupResponses, GetEntityPermissionData, GetEntityPermissionErrors, GetEntityPermissionResponses, GetForeignEntityBySourceData, GetForeignEntityBySourceErrors, GetForeignEntityBySourceResponses, GetForeignEntityData, GetForeignEntityErrors, GetForeignEntityResponses, GetFormData, GetFormErrors, GetFormPermissionsData, GetFormPermissionsErrors, GetFormPermissionsResponses, GetFormResponses, GetFormResponseSummaryData, GetFormResponseSummaryErrors, GetFormResponseSummaryResponses, GetFormTallyData, GetFormTallyErrors, GetFormTallyResponses, GetGithubPullRequestChangesData, GetGithubPullRequestChangesErrors, GetGithubPullRequestChangesPatchData, GetGithubPullRequestChangesPatchErrors, GetGithubPullRequestChangesPatchResponses, GetGithubPullRequestChangesResponses, GetGithubPullRequestData, GetGithubPullRequestErrors, GetGithubPullRequestFacetsData, GetGithubPullRequestFacetsErrors, GetGithubPullRequestFacetsResponses, GetGithubPullRequestResponses, GetGithubPullRequestTasksData, GetGithubPullRequestTasksErrors, GetGithubPullRequestTasksResponses, GetHarnessPairingData, GetHarnessPairingErrors, GetHarnessPairingResponses, GetHistoryHandlerData, GetHistoryHandlerErrors, GetHistoryHandlerResponses, GetInitiativeData, GetInitiativeErrors, GetInitiativeResponses, GetInstructionsHandlerData, GetInstructionsHandlerErrors, GetInstructionsHandlerResponses, GetItemsSoupData, GetItemsSoupErrors, GetItemsSoupResponses, GetLocationHandlerData, GetLocationHandlerErrors, GetLocationHandlerResponses, GetMyFormResponseData, GetMyFormResponseErrors, GetMyFormResponseResponses, 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, GetRingStatusData, GetRingStatusErrors, GetRingStatusResponses, GetSelfBotData, GetSelfBotErrors, GetSelfBotResponses, GetSelfHarnessData, GetSelfHarnessErrors, GetSelfHarnessResponses, GetSlackImportData, GetSlackImportErrors, GetSlackImportResponses, GetSystemSkillsHandlerData, GetSystemSkillsHandlerErrors, GetSystemSkillsHandlerResponses, GetUserDocumentsHandlerData, GetUserDocumentsHandlerErrors, GetUserDocumentsHandlerResponses, GetUserDocumentViewLocationData, GetUserDocumentViewLocationErrors, GetUserDocumentViewLocationResponses, GetViewsHandlerData, GetViewsHandlerErrors, GetViewsHandlerResponses, GetWebhookData, GetWebhookErrors, GetWebhookResponses, HandlerData, HandlerErrors, HandlerResponses, HealthHandlerData, HealthHandlerResponses, ImportDatabaseTableData, ImportDatabaseTableErrors, ImportDatabaseTableResponses, InferDatabaseColumnTypeData, InferDatabaseColumnTypeErrors, InferDatabaseColumnTypeResponses, IngestTranscriptData, IngestTranscriptErrors, IngestTranscriptResponses, InitializeUserDocumentsData, InitializeUserDocumentsErrors, InitializeUserDocumentsResponses, InstallSyncData, InstallSyncErrors, JobProcessingResultHandlerData, JobProcessingResultHandlerErrors, JobProcessingResultHandlerResponses, JoinChannelByCodeData, JoinChannelByCodeErrors, JoinChannelByCodeResponses, JoinChannelData, JoinChannelErrors, JoinChannelResponses, LeaveChannelData, LeaveChannelErrors, LeaveChannelResponses, LeaveOrEndCallData, LeaveOrEndCallErrors, LeaveOrEndCallResponses, ListAccessibleFormsData, ListAccessibleFormsErrors, ListAccessibleFormsResponses, ListAgentsData, ListAgentsErrors, ListAgentsResponses, ListBotChannelsData, ListBotChannelsErrors, ListBotChannelsResponses, ListChannelLabelsData, ListChannelLabelsErrors, ListChannelLabelsResponses, ListCompanyContactsData, ListCompanyContactsErrors, ListCompanyContactsResponses, ListCrmPipelinesData, ListCrmPipelinesResponses, ListDatabaseColumnCastsData, ListDatabaseColumnCastsErrors, ListDatabaseColumnCastsResponses, ListDatabasesData, ListDatabasesErrors, ListDatabasesResponses, ListEmailRemindersData, ListEmailRemindersErrors, ListEmailRemindersResponses, ListFavoritesData, ListFavoritesErrors, ListFavoritesResponses, ListFormsData, ListFormsErrors, ListFormsResponses, ListHarnessAgentsData, ListHarnessAgentsErrors, ListHarnessAgentsResponses, ListHarnessesData, ListHarnessesErrors, ListHarnessesResponses, ListHarnessSessionsData, ListHarnessSessionsErrors, ListHarnessSessionsResponses, ListInitiativesData, ListInitiativesErrors, ListInitiativesResponses, ListOccurrencesData, ListOccurrencesErrors, ListOccurrencesResponses, ListSlackImportsData, ListSlackImportsResponses, ListTeamOutOfOfficeData, ListTeamOutOfOfficeErrors, ListTeamOutOfOfficeResponses, ListUserApiKeysData, ListUserApiKeysErrors, ListUserApiKeysResponses, ListWebhooksData, ListWebhooksErrors, ListWebhooksResponses, MeetingCancelData, MeetingCancelErrors, MeetingCancelPreparationData, MeetingCancelPreparationErrors, MeetingCancelPreparationResponses, MeetingCancelResponses, MeetingCreateData, MeetingCreateErrors, MeetingCreateResponses, MeetingGuestJoinData, MeetingGuestJoinErrors, MeetingGuestJoinResponses, MeetingGuestParticipantsData, MeetingGuestParticipantsErrors, MeetingGuestParticipantsResponses, MeetingInviteData, MeetingInviteErrors, MeetingInvitePermissionsData, MeetingInvitePermissionsErrors, MeetingInvitePermissionsResponses, MeetingInviteResponses, MeetingInviteUsersData, MeetingInviteUsersErrors, MeetingInviteUsersResponses, MeetingJoinData, MeetingJoinErrors, MeetingJoinResponses, MeetingLeaveData, MeetingLeaveErrors, MeetingLeaveResponses, MeetingListActiveData, MeetingListActiveErrors, MeetingListActiveResponses, MeetingListData, MeetingListErrors, MeetingListResponses, MeetingLookupData, MeetingLookupErrors, MeetingLookupResponses, MeetingParticipantsData, MeetingParticipantsErrors, MeetingParticipantsResponses, MeetingPrepareData, MeetingPrepareErrors, MeetingPrepareResponses, MeetingShareData, MeetingShareErrors, MeetingShareResponses, MeetingUpdateData, MeetingUpdateErrors, MeetingUpdateResponses, MentionPreviewsData, MentionPreviewsErrors, MentionPreviewsResponses, MessageTimelineData, MessageTimelineResponses, PatchChannelData, PatchChannelErrors, PatchChannelResponses, PatchViewHandlerData, PatchViewHandlerErrors, PatchViewHandlerResponses, PatchWebhookData, PatchWebhookErrors, PatchWebhookResponses, PermanentlyDeleteDocumentData, PermanentlyDeleteDocumentErrors, PermanentlyDeleteDocumentResponses, PermanentlyDeleteProjectData, PermanentlyDeleteProjectErrors, PermanentlyDeleteProjectResponses, PostActivityData, PostActivityErrors, PostActivityResponses, PostChannelBotWebhookData, PostChannelBotWebhookErrors, PostChannelBotWebhookResponses, PostItemsSoupAstData, PostItemsSoupAstErrors, PostItemsSoupAstGroupedData, PostItemsSoupAstGroupedErrors, PostItemsSoupAstGroupedResponses, PostItemsSoupAstResponses, PostItemsSoupData, PostItemsSoupErrors, PostItemsSoupResponses, PresaveDocumentHandlerData, PresaveDocumentHandlerErrors, PresaveDocumentHandlerResponses, PreviewSmartTagData, PreviewSmartTagErrors, PreviewSmartTagResponses, PutCrmTeamSettingsData, PutCrmTeamSettingsErrors, PutCrmTeamSettingsResponses, PutCrmTeamStagesData, PutCrmTeamStagesErrors, PutCrmTeamStagesResponses, PutFormLayoutData, PutFormLayoutErrors, PutFormLayoutResponses, QueryCrmPipelineRowsData, QueryCrmPipelineRowsResponses, RecentlyDeletedData, RecentlyDeletedErrors, RecentlyDeletedResponses, RegisterSlackImportUploadsData, RegisterSlackImportUploadsErrors, RegisterSlackImportUploadsResponses, RemoveBotFromChannelByBotData, RemoveBotFromChannelByBotErrors, RemoveBotFromChannelByBotResponses, RemoveFavoriteByEntityData, RemoveFavoriteByEntityErrors, RemoveFavoriteByEntityResponses, RemoveParticipantsData, RemoveParticipantsErrors, RemoveParticipantsResponses, RemovePinHandlerData, RemovePinHandlerErrors, RemovePinHandlerResponses, RenameChannelLabelData, RenameChannelLabelErrors, RenameChannelLabelResponses, RenameCrmPipelineData, RenameCrmPipelineResponses, ReorderFavoritesData, ReorderFavoritesErrors, ReorderFavoritesResponses, ReorderPinsHandlerData, ReorderPinsHandlerErrors, ReorderPinsHandlerResponses, ResetCrmTeamStagesData, ResetCrmTeamStagesErrors, ResetCrmTeamStagesResponses, RevertDeleteDocumentData, RevertDeleteDocumentErrors, RevertDeleteDocumentResponses, RevertDeleteProjectData, RevertDeleteProjectErrors, RevertDeleteProjectResponses, SaveDatabaseQueryData, SaveDatabaseQueryErrors, SaveDatabaseQueryResponses, SaveDocumentHandlerData, SaveDocumentHandlerErrors, SaveDocumentHandlerResponses, SearchContactsData, SearchContactsErrors, SearchContactsResponses, SetChannelLabelData, SetChannelLabelErrors, SetChannelLabelResponses, SetChannelPictureData, SetChannelPictureErrors, SetChannelPictureResponses, SetCompanyHiddenData, SetCompanyHiddenErrors, SetCompanyHiddenResponses, SetContactHiddenData, SetContactHiddenErrors, SetContactHiddenResponses, SetCrmCompanyNameData, SetCrmCompanyNameErrors, SetCrmCompanyNameResponses, SetCrmContactNameData, SetCrmContactNameErrors, SetCrmContactNameResponses, SetDocumentTeamShareData, SetDocumentTeamShareErrors, SetDocumentTeamShareResponses, SetEmailFollowupData, SetEmailFollowupErrors, SetEmailFollowupResponses, SetEmailSyncData, SetEmailSyncErrors, SetEmailSyncResponses, ShareCrmPipelineData, ShareCrmPipelineResponses, ShareDatabaseAwarenessData, ShareDatabaseAwarenessErrors, ShareDatabaseAwarenessResponses, SimpleSaveData, SimpleSaveErrors, SimpleSaveResponses, StreamEventsData, StreamEventsErrors, StreamEventsResponse, StreamEventsResponses, SubmitFormResponseData, SubmitFormResponseErrors, SubmitFormResponseResponses, ToggleShareWithTeamData, ToggleShareWithTeamErrors, ToggleShareWithTeamResponses, TranscribeDictationData, TranscribeDictationErrors, TranscribeDictationResponses, TrashCrmPipelineData, TrashCrmPipelineResponses, UndoDatabaseChangeData, UndoDatabaseChangeErrors, UndoDatabaseChangeResponses, UpdateAgentData, UpdateAgentErrors, UpdateAgentResponses, UpdateDatabasePermissionsData, UpdateDatabasePermissionsErrors, UpdateDatabasePermissionsResponses, UpdateFormData, UpdateFormErrors, UpdateFormPermissionsData, UpdateFormPermissionsErrors, UpdateFormPermissionsResponses, UpdateFormResponses, UpdateInitiativeData, UpdateInitiativeErrors, UpdateInitiativeResponses, 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> & {
/**
@@ -1541,6 +1541,23 @@ export class Sdk extends HeyApiClient {
});
}
+ /**
+ * Handler for `POST /documents/github_prs/tasks`.
+ *
+ * Returns the task documents each of up to 100 GitHub pull requests references, for the pull
+ * requests the caller can see.
+ */
+ public getGithubPullRequestTasks<ThrowOnError extends boolean = false>(options: Options<GetGithubPullRequestTasksData, ThrowOnError>): RequestResult<GetGithubPullRequestTasksResponses, GetGithubPullRequestTasksErrors, ThrowOnError> {
+ return (options.client ?? this.client).post<GetGithubPullRequestTasksResponses, GetGithubPullRequestTasksErrors, ThrowOnError>({
+ url: '/documents/github_prs/tasks',
+ ...options,
+ headers: {
+ 'Content-Type': 'application/json',
+ ...options.headers
+ }
+ });
+ }
+
public initializeUserDocuments<ThrowOnError extends boolean = false>(options?: Options<InitializeUserDocumentsData, ThrowOnError>): RequestResult<InitializeUserDocumentsResponses, InitializeUserDocumentsErrors, ThrowOnError> {
return (options?.client ?? this.client).post<InitializeUserDocumentsResponses, InitializeUserDocumentsErrors, ThrowOnError>({ url: '/documents/initialize_user_documents', ...options });
}
diff --git a/packages/sdk/generated/storage/types.gen.ts b/packages/sdk/generated/storage/types.gen.ts
index 703301ac6b..78a2d8f9ec 100644
--- a/packages/sdk/generated/storage/types.gen.ts
+++ b/packages/sdk/generated/storage/types.gen.ts
@@ -7413,6 +7413,41 @@ export type GithubPullRequestReviewDecision = 'approved' | 'changes_requested' |
*/
export type GithubPullRequestReviewState = 'approved' | 'changes_requested' | 'commented' | 'dismissed';
+/**
+ * The tasks linked to one GitHub pull request.
+ */
+export type GithubPullRequestTasks = {
+ /**
+ * The pull request's `owner/repo/pull/number` key, as requested.
+ */
+ githubKey: string;
+ /**
+ * Ids of the task documents the pull request references, oldest link first. Empty when
+ * the caller cannot see the pull request. The caller may still lack access to a task.
+ */
+ taskIds: Array<string>;
+};
+
+/**
+ * Request body for looking up the tasks linked to GitHub pull requests.
+ */
+export type GithubPullRequestTasksRequest = {
+ /**
+ * Pull request `owner/repo/pull/number` keys, at most 100.
+ */
+ githubKeys: Array<string>;
+};
+
+/**
+ * The tasks linked to each requested GitHub pull request.
+ */
+export type GithubPullRequestTasksResponse = {
+ /**
+ * One entry per requested pull request, in request order.
+ */
+ pullRequests: Array<GithubPullRequestTasks>;
+};
+
/**
* A GitHub user named on a pull request, such as an assignee.
*/
@@ -17798,6 +17833,27 @@ export type CreateTaskHandlerResponses = {
export type CreateTaskHandlerResponse = CreateTaskHandlerResponses[keyof CreateTaskHandlerResponses];
+export type GetGithubPullRequestTasksData = {
+ body: GithubPullRequestTasksRequest;
+ path?: never;
+ query?: never;
+ url: '/documents/github_prs/tasks';
+};
+
+export type GetGithubPullRequestTasksErrors = {
+ 400: ErrorResponse;
+ 401: ErrorResponse;
+ 500: ErrorResponse;
+};
+
+export type GetGithubPullRequestTasksError = GetGithubPullRequestTasksErrors[keyof GetGithubPullRequestTasksErrors];
+
+export type GetGithubPullRequestTasksResponses = {
+ 200: GithubPullRequestTasksResponse;
+};
+
+export type GetGithubPullRequestTasksResponse = GetGithubPullRequestTasksResponses[keyof GetGithubPullRequestTasksResponses];
+
export type InitializeUserDocumentsData = {
body?: never;
path?: never;
diff --git a/packages/sdk/specs/agent-harness.json b/packages/sdk/specs/agent-harness.json
index 84f162abbd..44f6ce700b 100644
--- a/packages/sdk/specs/agent-harness.json
+++ b/packages/sdk/specs/agent-harness.json
@@ -436,6 +436,65 @@
}
}
},
+ "/agent-sessions/by-pull-requests": {
+ "post": {
+ "tags": ["agent-sessions"],
+ "summary": "List the sessions associated with each of up to 100 pull requests that the caller can view,\nwith the thread each session was started from.",
+ "operationId": "agent_sessions_for_pull_requests",
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/PullRequestUrls"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/PullRequestsSessionsResponse"
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "",
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "",
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "",
+ "content": {
+ "text/plain": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
"/agent-sessions/preview": {
"post": {
"tags": ["agent-sessions"],
@@ -3661,6 +3720,55 @@
"description": "Who associated a pull request with a session.",
"enum": ["agent", "user"]
},
+ "PullRequestLinkedSession": {
+ "type": "object",
+ "description": "A session linked to a pull request, as a viewer of that session sees it.",
+ "required": ["sessionId", "source"],
+ "properties": {
+ "sessionId": {
+ "type": "string",
+ "format": "uuid",
+ "description": "The session id."
+ },
+ "source": {
+ "$ref": "#/components/schemas/PullRequestLinkSource",
+ "description": "Who associated the pull request with the session."
+ },
+ "threadParent": {
+ "oneOf": [
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/components/schemas/MessageParent",
+ "description": "The channel, task, or CRM record whose thread the session was started from, if any."
+ }
+ ]
+ }
+ }
+ },
+ "PullRequestSessions": {
+ "type": "object",
+ "description": "The sessions linked to one pull request that the caller can view.",
+ "required": ["url", "githubKey", "sessions"],
+ "properties": {
+ "githubKey": {
+ "type": "string",
+ "description": "The pull request's `owner/repo/pull/number` key."
+ },
+ "sessions": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/PullRequestLinkedSession"
+ },
+ "description": "Linked sessions the caller can view, oldest link first."
+ },
+ "url": {
+ "type": "string",
+ "description": "The requested pull request URL, canonicalized."
+ }
+ }
+ },
"PullRequestSessionsResponse": {
"type": "object",
"description": "The sessions associated with a pull request.",
@@ -3687,6 +3795,34 @@
}
}
},
+ "PullRequestUrls": {
+ "type": "object",
+ "description": "GitHub pull requests, by URL.",
+ "required": ["urls"],
+ "properties": {
+ "urls": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Pull request GitHub URLs, at most 100."
+ }
+ }
+ },
+ "PullRequestsSessionsResponse": {
+ "type": "object",
+ "description": "The sessions associated with each requested pull request.",
+ "required": ["pullRequests"],
+ "properties": {
+ "pullRequests": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/PullRequestSessions"
+ },
+ "description": "One entry per requested pull request, in request order."
+ }
+ }
+ },
"QueuedActionDto": {
"type": "object",
"description": "One action waiting in a session's queue.\n\nClients deserialize this, so both derives are used.",
diff --git a/packages/sdk/specs/storage.json b/packages/sdk/specs/storage.json
index d2ddc4e017..904516377a 100644
--- a/packages/sdk/specs/storage.json
+++ b/packages/sdk/specs/storage.json
@@ -8586,6 +8586,66 @@
}
}
},
+ "/documents/github_prs/tasks": {
+ "post": {
+ "tags": ["document"],
+ "summary": "Handler for `POST /documents/github_prs/tasks`.",
+ "description": "Returns the task documents each of up to 100 GitHub pull requests references, for the pull\nrequests the caller can see.",
+ "operationId": "get_github_pull_request_tasks",
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GithubPullRequestTasksRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/GithubPullRequestTasksResponse"
+ }
+ }
+ }
+ },
+ "400": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ },
+ "401": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ },
+ "500": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
"/documents/initialize_user_documents": {
"post": {
"tags": ["document"],
@@ -28693,6 +28753,52 @@
"description": "What a reviewer's latest review on a pull request said.",
"enum": ["approved", "changes_requested", "commented", "dismissed"]
},
+ "GithubPullRequestTasks": {
+ "type": "object",
+ "description": "The tasks linked to one GitHub pull request.",
+ "required": ["githubKey", "taskIds"],
+ "properties": {
+ "githubKey": {
+ "type": "string",
+ "description": "The pull request's `owner/repo/pull/number` key, as requested."
+ },
+ "taskIds": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Ids of the task documents the pull request references, oldest link first. Empty when\nthe caller cannot see the pull request. The caller may still lack access to a task."
+ }
+ }
+ },
+ "GithubPullRequestTasksRequest": {
+ "type": "object",
+ "description": "Request body for looking up the tasks linked to GitHub pull requests.",
+ "required": ["githubKeys"],
+ "properties": {
+ "githubKeys": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Pull request `owner/repo/pull/number` keys, at most 100."
+ }
+ }
+ },
+ "GithubPullRequestTasksResponse": {
+ "type": "object",
+ "description": "The tasks linked to each requested GitHub pull request.",
+ "required": ["pullRequests"],
+ "properties": {
+ "pullRequests": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/GithubPullRequestTasks"
+ },
+ "description": "One entry per requested pull request, in request order."
+ }
+ }
+ },
"GithubPullRequestUser": {
"type": "object",
"description": "A GitHub user named on a pull request, such as an assignee.",
diff --git a/packages/sdk/src/coverage/skipped.ts b/packages/sdk/src/coverage/skipped.ts
index bf07991aa2..e1b3716d11 100644
--- a/packages/sdk/src/coverage/skipped.ts
+++ b/packages/sdk/src/coverage/skipped.ts
@@ -33,6 +33,8 @@ export const agentHarnessExcluded = [
'loadAgentModelsHandler',
'discoverAgentCapabilitiesHandler',
'previewAgentSessions',
+ // Batch form of agentSessionsForPullRequest that feeds the web Reviews list.
+ 'agentSessionsForPullRequests',
// Speculative page warm-up requires a signed-in user and is app-internal.
'warmAgentSessionHandler',
] as const satisfies readonly (keyof AgentHarnessSdk)[];
diff --git a/packages/sdk/src/entities/tasks/namespace.ts b/packages/sdk/src/entities/tasks/namespace.ts
index a41983c770..0a2a16f840 100644
--- a/packages/sdk/src/entities/tasks/namespace.ts
+++ b/packages/sdk/src/entities/tasks/namespace.ts
@@ -23,6 +23,13 @@ export class TaskNamespace {
return Task.create(this.client, opts);
}
+ /**
+ * The tasks the GitHub pull request at `url` references, oldest link first.
+ */
+ forPullRequest(url: string): Promise<Task[]> {
+ return Task.forPullRequest(this.client, url);
+ }
+
/** Search tasks by name and content, most relevant first, auto-paginated. */
search(query: string, opts?: SearchOpts): AsyncGenerator<Task> {
return Task.search(this.client, query, opts);
diff --git a/packages/sdk/src/entities/tasks/task.ts b/packages/sdk/src/entities/tasks/task.ts
index ece6009528..595cabcd02 100644
--- a/packages/sdk/src/entities/tasks/task.ts
+++ b/packages/sdk/src/entities/tasks/task.ts
@@ -13,6 +13,19 @@ import type { Team } from '../teams/team';
const STATUS_PROPERTY_ID = '00000001-0000-0000-0000-000000000002';
const COMPLETED_STATUS_OPTION_ID = '00000001-0000-0000-0002-000000000004';
+/** The `owner/repo/pull/number` key of a GitHub pull request URL. */
+function pullRequestKey(url: string): string {
+ const match = url.match(
+ /^https:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/([1-9][0-9]*)\/?(?:[?#].*)?$/i,
+ );
+ if (!match) {
+ throw new Error(
+ `Expected a GitHub pull request URL like https://github.com/owner/repo/pull/1, got ${url}`,
+ );
+ }
+ return `${match[1]}/${match[2]}/pull/${match[3]}`;
+}
+
/**
* A Macro task: a document with sub-type `task`. Inherits the full document
* surface ({@link Document.rename}, move, delete, restore, content, events)
@@ -53,6 +66,24 @@ export class Task extends Document {
return new Task(client, documentId);
}
+ /**
+ * The tasks the GitHub pull request at `url` references (as `MACRO-<id>` in
+ * its text, branch, or comments), oldest link first. Empty when the caller
+ * cannot see the pull request; tasks the caller cannot open still appear.
+ */
+ static async forPullRequest(
+ client: MacroClient,
+ url: string,
+ ): Promise<Task[]> {
+ const githubKey = pullRequestKey(url);
+ const { pullRequests } = unwrap(
+ await client.storage.getGithubPullRequestTasks({
+ body: { githubKeys: [githubKey] },
+ }),
+ );
+ return (pullRequests[0]?.taskIds ?? []).map((id) => new Task(client, id));
+ }
+
/**
* Whether the task is completed (its Status property is "Completed");
* `undefined` if the document is not a task.
diff --git a/packages/sdk/tests/tasks.test.ts b/packages/sdk/tests/tasks.test.ts
new file mode 100644
index 0000000000..1d995fd8e1
--- /dev/null
+++ b/packages/sdk/tests/tasks.test.ts
@@ -0,0 +1,59 @@
+import { afterEach, describe, expect, test } from 'bun:test';
+import { Macro } from '../src/macro';
+
+const originalFetch = globalThis.fetch;
+
+afterEach(() => {
+ globalThis.fetch = originalFetch;
+});
+
+describe('Task.forPullRequest', () => {
+ test('looks up the tasks a pull request references by its key', async () => {
+ const requests: Request[] = [];
+ globalThis.fetch = (async (input, init) => {
+ const request =
+ input instanceof Request ? input : new Request(input, init);
+ requests.push(request.clone());
+ return Response.json({
+ pullRequests: [
+ {
+ githubKey: 'macro-inc/macro/pull/12',
+ taskIds: [
+ '0198a4cc-e138-7670-a308-a6b766602710',
+ '0198a4cc-e138-7670-a308-a6b766602711',
+ ],
+ },
+ ],
+ });
+ }) as typeof fetch;
+ const macro = new Macro({
+ token: 'user-token',
+ hosts: { storage: 'https://storage.example.test' },
+ });
+
+ const tasks = await macro.tasks.forPullRequest(
+ 'https://github.com/macro-inc/macro/pull/12#discussion',
+ );
+
+ expect(tasks.map((task) => task.id)).toEqual([
+ '0198a4cc-e138-7670-a308-a6b766602710',
+ '0198a4cc-e138-7670-a308-a6b766602711',
+ ]);
+ expect(requests).toHaveLength(1);
+ expect(new URL(requests[0].url).pathname).toBe(
+ '/documents/github_prs/tasks',
+ );
+ expect(await requests[0].json()).toEqual({
+ githubKeys: ['macro-inc/macro/pull/12'],
+ });
+ });
+
+ test('rejects URLs that are not GitHub pull requests', async () => {
+ const macro = new Macro({ token: 'user-token' });
+ await expect(
+ macro.tasks.forPullRequest(
+ 'https://github.com/macro-inc/macro/issues/12',
+ ),
+ ).rejects.toThrow('Expected a GitHub pull request URL');
+ });
+});
diff --git a/services/agent_harness_service/src/api/swagger.rs b/services/agent_harness_service/src/api/swagger.rs
index 96e0af749a..f540c97623 100644
--- a/services/agent_harness_service/src/api/swagger.rs
+++ b/services/agent_harness_service/src/api/swagger.rs
@@ -19,9 +19,12 @@ use agent_harness::inbound::tool_approvals::{
};
use agent_runtime_protocol::domain::action::{AgentAction, AgentActionId, PromptAttachment};
use agent_session::domain::model::{SandboxSize, SessionBot};
-use agent_session::domain::pull_request_links::{PullRequestLinkSource, SessionPullRequestLink};
+use agent_session::domain::pull_request_links::{
+ PullRequestLinkSource, PullRequestLinkedSession, PullRequestSessions, SessionPullRequestLink,
+};
use agent_session::inbound::axum_router::pull_requests::{
- PullRequestSessionsResponse, PullRequestUrl, SessionPullRequestsResponse,
+ PullRequestSessionsResponse, PullRequestUrl, PullRequestUrls, PullRequestsSessionsResponse,
+ SessionPullRequestsResponse,
};
use agent_session::inbound::axum_router::{
self, AgentSessionLogEntryDto, AgentSessionLogResponse, AgentSessionPreviewData,
@@ -72,6 +75,7 @@ impl Modify for SecurityAddon {
axum_router::pull_requests::link_session_pull_request,
axum_router::pull_requests::unlink_session_pull_request,
axum_router::pull_requests::sessions_for_pull_request,
+ axum_router::pull_requests::sessions_for_pull_requests,
axum_router::get_agent_session_log_handler,
axum_router::control_agent_session_handler,
axum_router::get_agent_session_queue_handler,
@@ -119,6 +123,10 @@ impl Modify for SecurityAddon {
PullRequestUrl,
SessionPullRequestsResponse,
PullRequestSessionsResponse,
+ PullRequestUrls,
+ PullRequestsSessionsResponse,
+ PullRequestSessions,
+ PullRequestLinkedSession,
SessionPullRequestLink,
PullRequestLinkSource,
SessionStatusDto,
diff --git a/services/document_storage_service/src/api/swagger.rs b/services/document_storage_service/src/api/swagger.rs
index 3db0e35849..b0a8a3a170 100644
--- a/services/document_storage_service/src/api/swagger.rs
+++ b/services/document_storage_service/src/api/swagger.rs
@@ -246,6 +246,7 @@ use utoipa::OpenApi;
documents_hex::inbound::axum_router::get_location::get_location_v3_handler,
documents_hex::inbound::axum_router::get_branch_name::get_branch_name_handler,
documents_hex::inbound::axum_router::get_github_pull_requests::get_github_pull_requests_handler,
+ documents_hex::inbound::axum_router::get_github_pull_request_tasks::get_github_pull_request_tasks_handler,
documents_hex::inbound::axum_router::get_short_id::get_short_id_handler,
documents::simple_save::handler,
documents::initialize_user_documents::handler,
@@ -958,6 +959,9 @@ use utoipa::OpenApi;
documents_hex::domain::models::GithubPullRequestCheckRun,
documents_hex::domain::models::GithubPullRequestComment,
documents_hex::domain::models::GithubPullRequestsResponse,
+ documents_hex::domain::models::GithubPullRequestTasksRequest,
+ documents_hex::domain::models::GithubPullRequestTasks,
+ documents_hex::domain::models::GithubPullRequestTasksResponse,
// Sync service
sync_service_hex::domain::models::BulkWakeupRequest,