Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
feat(macrod): configure runtimes on the web and keep macrod.toml machine-local (#9156)
Wolf Mermelstein11fb46ce0bb5
diff --git a/.sqlx/query-19c6aed4e629ba1a98572498d7803e1027d17a7215beb36d0e3b3c54cb635396.json b/.sqlx/query-19c6aed4e629ba1a98572498d7803e1027d17a7215beb36d0e3b3c54cb635396.jsonnew file mode 100644index 0000000000..43158bb9c7--- /dev/null+++ b/.sqlx/query-19c6aed4e629ba1a98572498d7803e1027d17a7215beb36d0e3b3c54cb635396.json@@ -0,0 +1,84 @@+{+ "db_name": "PostgreSQL",+ "query": "\n UPDATE harnesses\n SET\n name = COALESCE($2, name),\n allow_permission_bypass = COALESCE($3, allow_permission_bypass),\n updated_at = now()\n WHERE id = $1 AND deleted_at IS NULL\n RETURNING\n id, kind, name, owner_user_id, team_id, created_by, allow_permission_bypass,\n created_at, updated_at, last_connected_at, last_disconnected_at\n ",+ "describe": {+ "columns": [+ {+ "ordinal": 0,+ "name": "id",+ "type_info": "Uuid"+ },+ {+ "ordinal": 1,+ "name": "kind",+ "type_info": "Text"+ },+ {+ "ordinal": 2,+ "name": "name",+ "type_info": "Text"+ },+ {+ "ordinal": 3,+ "name": "owner_user_id",+ "type_info": "Text"+ },+ {+ "ordinal": 4,+ "name": "team_id",+ "type_info": "Uuid"+ },+ {+ "ordinal": 5,+ "name": "created_by",+ "type_info": "Text"+ },+ {+ "ordinal": 6,+ "name": "allow_permission_bypass",+ "type_info": "Bool"+ },+ {+ "ordinal": 7,+ "name": "created_at",+ "type_info": "Timestamptz"+ },+ {+ "ordinal": 8,+ "name": "updated_at",+ "type_info": "Timestamptz"+ },+ {+ "ordinal": 9,+ "name": "last_connected_at",+ "type_info": "Timestamptz"+ },+ {+ "ordinal": 10,+ "name": "last_disconnected_at",+ "type_info": "Timestamptz"+ }+ ],+ "parameters": {+ "Left": [+ "Uuid",+ "Text",+ "Bool"+ ]+ },+ "nullable": [+ false,+ false,+ false,+ true,+ true,+ false,+ false,+ false,+ false,+ true,+ true+ ]+ },+ "hash": "19c6aed4e629ba1a98572498d7803e1027d17a7215beb36d0e3b3c54cb635396"+}diff --git a/.sqlx/query-80b0267d335359969f7b8cf44c87fceb9dbe4f8a0952895191d7d75780551c3d.json b/.sqlx/query-7d3a1c7dd9e9b4037d09990e21e147b8104c019296bdf64d3640ccb09f7334c4.jsonsimilarity index 63%rename from .sqlx/query-80b0267d335359969f7b8cf44c87fceb9dbe4f8a0952895191d7d75780551c3d.jsonrename to .sqlx/query-7d3a1c7dd9e9b4037d09990e21e147b8104c019296bdf64d3640ccb09f7334c4.jsonindex 64f331f069..3ef9696650 100644--- a/.sqlx/query-80b0267d335359969f7b8cf44c87fceb9dbe4f8a0952895191d7d75780551c3d.json+++ b/.sqlx/query-7d3a1c7dd9e9b4037d09990e21e147b8104c019296bdf64d3640ccb09f7334c4.json@@ -1,6 +1,6 @@{"db_name": "PostgreSQL",- "query": "\n SELECT code, requested_name, host_info, requested_scope,\n requested_allow_permission_bypass, status, created_at, expires_at\n FROM harness_pairing_requests\n WHERE code = $1\n ",+ "query": "\n SELECT code, requested_name, host_info, status, created_at, expires_at\n FROM harness_pairing_requests\n WHERE code = $1\n ","describe": {"columns": [{@@ -20,26 +20,16 @@},{"ordinal": 3,- "name": "requested_scope",- "type_info": "Text"- },- {- "ordinal": 4,- "name": "requested_allow_permission_bypass",- "type_info": "Bool"- },- {- "ordinal": 5,"name": "status","type_info": "Text"},{- "ordinal": 6,+ "ordinal": 4,"name": "created_at","type_info": "Timestamptz"},{- "ordinal": 7,+ "ordinal": 5,"name": "expires_at","type_info": "Timestamptz"}@@ -53,12 +43,10 @@false,false,true,- true,- true,false,false,false]},- "hash": "80b0267d335359969f7b8cf44c87fceb9dbe4f8a0952895191d7d75780551c3d"+ "hash": "7d3a1c7dd9e9b4037d09990e21e147b8104c019296bdf64d3640ccb09f7334c4"}diff --git a/.sqlx/query-9b68777f9537afb7bd85558a48098e7fa715b8ea350de181c3c3c092bdc82a3e.json b/.sqlx/query-ba7d9a8a07305b9283a9b9fed53a7c30fe8d29615eea8e5a4b31a502719c81c1.jsonsimilarity index 51%rename from .sqlx/query-9b68777f9537afb7bd85558a48098e7fa715b8ea350de181c3c3c092bdc82a3e.jsonrename to .sqlx/query-ba7d9a8a07305b9283a9b9fed53a7c30fe8d29615eea8e5a4b31a502719c81c1.jsonindex 80e8dac052..07ae09b337 100644--- a/.sqlx/query-9b68777f9537afb7bd85558a48098e7fa715b8ea350de181c3c3c092bdc82a3e.json+++ b/.sqlx/query-ba7d9a8a07305b9283a9b9fed53a7c30fe8d29615eea8e5a4b31a502719c81c1.json@@ -1,6 +1,6 @@{"db_name": "PostgreSQL",- "query": "\n INSERT INTO harness_pairing_requests\n (id, code, device_secret_hash, requested_name, host_info, requested_scope,\n expires_at, requested_allow_permission_bypass)\n VALUES ($1, $2, $3, $4, $5, $6, $7, $8)\n ON CONFLICT (code) DO NOTHING\n ",+ "query": "\n INSERT INTO harness_pairing_requests\n (id, code, device_secret_hash, requested_name, host_info, expires_at)\n VALUES ($1, $2, $3, $4, $5, $6)\n ON CONFLICT (code) DO NOTHING\n ","describe": {"columns": [],"parameters": {@@ -10,12 +10,10 @@"Bytea","Text","Text",- "Text",- "Timestamptz",- "Bool"+ "Timestamptz"]},"nullable": []},- "hash": "9b68777f9537afb7bd85558a48098e7fa715b8ea350de181c3c3c092bdc82a3e"+ "hash": "ba7d9a8a07305b9283a9b9fed53a7c30fe8d29615eea8e5a4b31a502719c81c1"}diff --git a/apps/docs/AI/bring-your-own.mdx b/apps/docs/AI/bring-your-own.mdxindex 6498a7b9d9..9acdc49645 100644--- a/apps/docs/AI/bring-your-own.mdx+++ b/apps/docs/AI/bring-your-own.mdx@@ -70,7 +70,7 @@ You need a macOS, Linux, or Windows computer that can stay online and an install</Step><Step title="Run macrod">- Open a terminal in the folder where `macrod` should keep its configuration and run:+ Open a terminal and run:```bashmacrod@@ -80,11 +80,7 @@ You need a macOS, Linux, or Windows computer that can stay online and an installOn first launch, **Quickstart** lists the agents available on your machine. Select one, or choose **Custom command** to enter an ACP launch command.- Set **Workspace** to the directory your agent should work in. Choose **Private** for your own runtime that only you can kick off, or **Team** to let teammates use your agent. If you run team mode, anyone can create agent sessions that run on your computer. By default, you'll be asked for permission requests based on the harness you run, such as for accessing files outside of your workspace; if you enable **Full Access** these prompts will automatically be approved.-- <Frame caption="Configure your agent, workspace, and access before generating a pairing code.">- - </Frame>+ Set **Workspace** to the directory your agent should work in. Everything else about the runtime is managed in Macro.Select **Create and pair** to generate your device code.@@ -102,9 +98,9 @@ You need a macOS, Linux, or Windows computer that can stay online and an install</Frame>- Check that the code and computer match your terminal. Review the runtime name, **Private** or **Team** access, and permissions, then click **Approve**.+ Check that the code and computer match your terminal, review the runtime's settings, then click **Approve**.- `macrod` connects automatically after approval. It saves your configuration and credential in `macrod.toml` in the directory where you started it. Keep this file private; do not commit it to a repository.+ `macrod` connects automatically after approval. It saves your agent, workspace, and credential in `~/.macrod/macrod.toml` (`%USERPROFILE%\.macrod\macrod.toml` on Windows). Keep this file private; do not commit it to a repository.</Step></Steps>@@ -118,7 +114,7 @@ Review sharing and channel access, then save the agent. @mention it in a channelLeave `macrod` running and your computer awake while you use the runtime. Its terminal shows your sessions, configuration, and logs. You can also check the runtime in **Settings → Runtimes**.-To reconnect later, run `macrod` from the same directory so it loads your saved configuration. If you revoke the runtime, pair it again before using it.+To reconnect later, run `macrod` again; it loads `~/.macrod/macrod.toml` from any directory. If you revoke the runtime, pair it again before using it. Only one `macrod` can run with a given configuration at a time.## Update macrod@@ -147,5 +143,7 @@ or start `macrod` with `MACROD_NO_UPDATE=1` set. `macrod` then only changes when- **Your agent is missing from Quickstart:** check that it is installed and its command is available in the terminal where you launch `macrod`. For a different ACP agent, use **Custom command**.- **Your code is invalid or expired:** start a new pairing from the terminal and enter the new code. The code in the screenshot is only an example.- **Your runtime is offline:** check that your computer is awake, `macrod` is running, and it can reach Macro. Check the terminal's **Logs** tab for errors.+- **`macrod` says your config sets `[identity]` or a `scope` in `[credentials]`:** delete those lines from `~/.macrod/macrod.toml`. The runtime's name, access, and permission bypass are set in **Settings → Runtimes**.+- **`macrod` asks you to pair again after an update:** it reads only `~/.macrod/macrod.toml`. If you started an older `macrod` from a project folder, move the `macrod.toml` from that folder to `~/.macrod/`.To learn more about using agents in your workspace, see [Agents](/product/agents).diff --git a/apps/docs/images/macrod-quickstart-example.png b/apps/docs/images/macrod-quickstart-example.pngdeleted file mode 100644index a813cd61dd..0000000000Binary files a/apps/docs/images/macrod-quickstart-example.png and /dev/null differdiff --git a/apps/web/src/features/local-runtime/browser-test/fixture.tsx b/apps/web/src/features/local-runtime/browser-test/fixture.tsxindex 38384ed115..c326262b4d 100644--- a/apps/web/src/features/local-runtime/browser-test/fixture.tsx+++ b/apps/web/src/features/local-runtime/browser-test/fixture.tsx@@ -74,6 +74,7 @@ const capabilities: SetupCapabilities = {}return RUNNING;},+ allowPermissionBypass: async () => {},listAgents: async () => [],loadModels: async () => ({status: 'available',diff --git a/apps/web/src/features/local-runtime/core/setup.ts b/apps/web/src/features/local-runtime/core/setup.tsindex f09a74d93d..526a886ce7 100644--- a/apps/web/src/features/local-runtime/core/setup.ts+++ b/apps/web/src/features/local-runtime/core/setup.ts@@ -70,6 +70,8 @@ export type SetupCapabilities = {waitForRunning: (onPhase: (phase: MacrodStatus['phase']) => void) => Promise<MacrodStatus>;+ /** Let agents on this runtime bypass permission requests (the web setting). */+ allowPermissionBypass: (harnessId: string) => Promise<void>;listAgents: () => Promise<BoundAgent[]>;loadModels: (harnessId: string) => Promise<LoadAgentModelsResponse>;createAgent: (agent: NewLocalAgent) => Promise<ReadyAgent>;diff --git a/apps/web/src/features/local-runtime/primitives/local-runtime-setup.test.ts b/apps/web/src/features/local-runtime/primitives/local-runtime-setup.test.tsindex 4bfc87e160..5b05af8629 100644--- a/apps/web/src/features/local-runtime/primitives/local-runtime-setup.test.ts+++ b/apps/web/src/features/local-runtime/primitives/local-runtime-setup.test.ts@@ -33,6 +33,7 @@ function fakeCapabilities(onPhase('pairing');return RUNNING;},+ allowPermissionBypass: async () => {},listAgents: async () => [],loadModels: async () => ({status: 'available',@@ -59,13 +60,14 @@ function withSetup(caps: SetupCapabilities) {describe('createLocalRuntimeSetup', () => {it('starts the preferred agent and creates a Macro agent on its runtime', async () => {const startDaemon = vi.fn(async () => RUNNING);+ const allowPermissionBypass = vi.fn(async () => {});const createAgent = vi.fn(async (agent: NewLocalAgent) => ({botId: 'bot-1',name: agent.name,handle: agent.handle,}));const { setup, dispose } = withSetup(- fakeCapabilities({ startDaemon, createAgent })+ fakeCapabilities({ startDaemon, allowPermissionBypass, createAgent }));await setup.run({ workspace: ' /tmp/work ', fullAccess: true });@@ -73,9 +75,8 @@ describe('createLocalRuntimeSetup', () => {expect(startDaemon).toHaveBeenCalledWith({agent: 'claude-code',workspace: '/tmp/work',- scope: 'private',- allowPermissionBypass: true,});+ expect(allowPermissionBypass).toHaveBeenCalledWith('harness-1');expect(createAgent).toHaveBeenCalledWith({name: 'Claude Code',handle: 'claude-code',diff --git a/apps/web/src/features/local-runtime/primitives/local-runtime-setup.ts b/apps/web/src/features/local-runtime/primitives/local-runtime-setup.tsindex 0d1fb0e2eb..1b64f8e869 100644--- a/apps/web/src/features/local-runtime/primitives/local-runtime-setup.ts+++ b/apps/web/src/features/local-runtime/primitives/local-runtime-setup.ts@@ -94,8 +94,6 @@ export function createLocalRuntimeSetup(caps: SetupCapabilities) {await caps.startDaemon({agent: agent.id,workspace: choices.workspace?.trim() || undefined,- scope: 'private',- allowPermissionBypass: choices.fullAccess,});return await span.run(() =>caps.waitForRunning((phase) =>@@ -134,6 +132,11 @@ export function createLocalRuntimeSetup(caps: SetupCapabilities) {): Promise<ReadyAgent> => {const harnessId = status.harnessId;if (!harnessId) throw new Error('This computer is not connected yet.');+ // Bypass is a setting on the runtime itself; an agent can only choose it+ // once the runtime allows it.+ if (choices.fullAccess) {+ await parent.run(() => caps.allowPermissionBypass(harnessId));+ }const existing = (await parent.run(() => caps.listAgents())).find((agent) => agent.harnessId === harnessId);diff --git a/apps/web/src/features/local-runtime/queries/setup-capabilities.ts b/apps/web/src/features/local-runtime/queries/setup-capabilities.tsindex 3aa8610cf7..a5c69e441a 100644--- a/apps/web/src/features/local-runtime/queries/setup-capabilities.ts+++ b/apps/web/src/features/local-runtime/queries/setup-capabilities.ts@@ -12,6 +12,7 @@ import {} from '@queries/agents/agents';import { agentModelsQueryOptions } from '@queries/agents/models';import { queryClient } from '@queries/client';+import { patchHarness } from '@queries/harnesses/harnesses';import type { SetupCapabilities } from '../core/setup';/**@@ -64,6 +65,9 @@ export function useSetupCapabilities(): SetupCapabilities {detectAgents: macrodDetectAgents,startDaemon: macrodStart,waitForRunning,+ allowPermissionBypass: async (harnessId) => {+ await patchHarness({ harnessId, allowPermissionBypass: true });+ },listAgents: async () =>(await fetchAgentsList()).map((agent) => ({botId: agent.bot.id,diff --git a/apps/web/src/features/local-runtime/views/local-runtime-setup-panel.test.tsx b/apps/web/src/features/local-runtime/views/local-runtime-setup-panel.test.tsxindex dc37bbf464..a8e5871db6 100644--- a/apps/web/src/features/local-runtime/views/local-runtime-setup-panel.test.tsx+++ b/apps/web/src/features/local-runtime/views/local-runtime-setup-panel.test.tsx@@ -33,6 +33,7 @@ function capabilities(],startDaemon: async () => RUNNING,waitForRunning: async () => RUNNING,+ allowPermissionBypass: async () => {},listAgents: async () => [],loadModels: async () => ({status: 'available',diff --git a/apps/web/src/features/settings/Agents.tsx b/apps/web/src/features/settings/Agents.tsxindex 8260fef412..5e35dd55f5 100644--- a/apps/web/src/features/settings/Agents.tsx+++ b/apps/web/src/features/settings/Agents.tsx@@ -1484,7 +1484,8 @@ function AgentEditorPage(props: {when={allowPermissionBypass()}fallback={<p class="text-xs text-ink-muted">- This runtime requires permission prompts.+ This runtime requires permission prompts. Allow+ bypass in its Runtimes settings.</p>}>diff --git a/apps/web/src/features/settings/Harness.test.tsx b/apps/web/src/features/settings/Harness.test.tsxindex 4750c16b21..d05c9d1d66 100644--- a/apps/web/src/features/settings/Harness.test.tsx+++ b/apps/web/src/features/settings/Harness.test.tsx@@ -72,12 +72,12 @@ const harnessMocks = vi.hoisted(() => ({isError: false,},deleteHarness: vi.fn(),+ patchHarness: vi.fn(),approve: vi.fn(),pairing: {data: {code: 'KX7M-4QHD',requested_name: 'Dev laptop',- requested_scope: null,host: 'erics-mbp.local',created_at: '2026-08-27T12:00:00Z',expires_at: new Date(Date.now() + 10 * 60_000).toISOString(),@@ -114,6 +114,10 @@ vi.mock('@queries/harnesses/harnesses', () => ({mutateAsync: harnessMocks.deleteHarness,isPending: false,}),+ usePatchHarnessMutation: () => ({+ mutateAsync: harnessMocks.patchHarness,+ isPending: false,+ }),useHarnessPairingQuery: (code: () => string | undefined) => ({get data() {return code() && !harnessMocks.pairing.isError@@ -157,6 +161,7 @@ vi.mock('@core/component/Toast/Toast', () => ({const REGISTERED_HARNESS = {id: '3f1c9d2e-8a4b-4c5d-9e6f-1a2b3c4d5e6f',+ allow_permission_bypass: false,kind: 'macrod',name: 'Dev box',owner: { type: 'team', team_id: 'team-1' },@@ -475,6 +480,68 @@ describe('Harness', () => {});});+ it('allows permission bypass on a paired runtime after confirming', async () => {+ harnessMocks.query.data = [REGISTERED_HARNESS];++ render(() => <Harness />);+ const toggle = screen.getByRole('switch', {+ name: 'Allow bypassing permission requests',+ });+ expect(toggle).toHaveProperty('checked', false);+ expect(+ screen.getByText('Every agent on this runtime must ask for permission.')+ ).toBeTruthy();+ fireEvent.click(toggle);++ await waitFor(() =>+ expect(harnessMocks.patchHarness).toHaveBeenCalledWith({+ harnessId: REGISTERED_HARNESS.id,+ allowPermissionBypass: true,+ })+ );+ });++ it('withdraws permission bypass without confirming', async () => {+ const { confirmDialog } = await import('@ui');+ harnessMocks.query.data = [+ { ...REGISTERED_HARNESS, allow_permission_bypass: true },+ ];++ render(() => <Harness />);+ fireEvent.click(+ screen.getByRole('switch', {+ name: 'Allow bypassing permission requests',+ })+ );++ await waitFor(() =>+ expect(harnessMocks.patchHarness).toHaveBeenCalledWith({+ harnessId: REGISTERED_HARNESS.id,+ allowPermissionBypass: false,+ })+ );+ expect(confirmDialog).not.toHaveBeenCalled();+ });++ it('renames a paired runtime', async () => {+ harnessMocks.query.data = [REGISTERED_HARNESS];++ render(() => <Harness />);+ fireEvent.click(screen.getByRole('button', { name: 'Rename' }));+ const dialog = screen.getByRole('dialog');+ const input = within(dialog).getByLabelText('Name');+ fireEvent.input(input, { target: { value: ' Studio ' } });+ fireEvent.click(within(dialog).getByRole('button', { name: 'Save' }));++ await waitFor(() => {+ expect(harnessMocks.patchHarness).toHaveBeenCalledWith({+ harnessId: REGISTERED_HARNESS.id,+ name: 'Studio',+ });+ expect(screen.queryByRole('dialog')).toBeNull();+ });+ });+it('opens the pairing dialog prefilled from the pair search param', async () => {harnessMocks.searchParams.pair = 'KX7M-4QHD';diff --git a/apps/web/src/features/settings/Harness.tsx b/apps/web/src/features/settings/Harness.tsxindex a52c335b41..5f90e5bfa8 100644--- a/apps/web/src/features/settings/Harness.tsx+++ b/apps/web/src/features/settings/Harness.tsx@@ -14,10 +14,11 @@ import {import {useDeleteHarnessMutation,useHarnessesQuery,+ usePatchHarnessMutation,} from '@queries/harnesses/harnesses';import type { Harness as RegisteredHarness } from '@service-storage/client';import { useSearchParams } from '@solidjs/router';-import { ApiKeyInput, Button, confirmDialog, Dialog, Panel } from '@ui';+import { ApiKeyInput, Button, confirmDialog, Dialog, Input, Panel } from '@ui';import { createSignal, onMount, Show } from 'solid-js';import { CodexHarness } from './codex/views/CodexHarness';import { ConnectedRuntimesSection } from './components/connected-runtimes-section';@@ -60,6 +61,8 @@ export function Harness(};const [removingHarness, setRemovingHarness] =createSignal<RegisteredHarness>();+ const [renamingHarness, setRenamingHarness] =+ createSignal<RegisteredHarness>();const [searchParams, setSearchParams] = useSearchParams();onMount(() => {@@ -141,6 +144,7 @@ export function Harness(<ConnectedRuntimesSectionharnesses={harnessesQuery.isSuccess ? harnessesQuery.data : []}error={harnessesQuery.isError}+ onRename={setRenamingHarness}onRemove={setRemovingHarness}/><LocalRuntimeCard />@@ -297,6 +301,14 @@ export function Harness(/>)}</Show>+ <Show when={renamingHarness()} keyed>+ {(harness) => (+ <HarnessRenameDialog+ harness={harness}+ onClose={() => setRenamingHarness(undefined)}+ />+ )}+ </Show><Show when={removingHarness()} keyed>{(harness) => (<HarnessRemoveDialog@@ -311,6 +323,90 @@ export function Harness();}+function HarnessRenameDialog(props: {+ harness: RegisteredHarness;+ onClose: () => void;+}) {+ const patchHarness = usePatchHarnessMutation();+ const [name, setName] = createSignal(props.harness.name);+ const canSave = () =>+ !patchHarness.isPending &&+ name().trim().length > 0 &&+ name().trim() !== props.harness.name;++ const save = async () => {+ if (!canSave()) return;+ try {+ await patchHarness.mutateAsync({+ harnessId: props.harness.id,+ name: name().trim(),+ });+ props.onClose();+ } catch (error) {+ toast.failure(failureMessage(error, 'Failed to rename runtime'));+ }+ };++ return (+ <Dialog+ open+ onOpenChange={(open) =>+ !open && !patchHarness.isPending && props.onClose()+ }+ position="center"+ visibleScrim+ class="w-[min(480px,calc(100vw-16px))]"+ >+ <Panel depth={2} class="rounded-xl text-ink">+ <Panel.Header class="px-5 py-3">+ <Dialog.Title class="text-sm font-semibold">+ Rename runtime+ </Dialog.Title>+ </Panel.Header>+ <form+ onSubmit={(event) => {+ event.preventDefault();+ fireAndForget(save(), 'harness-settings');+ }}+ >+ <Panel.Body class="flex flex-col gap-1.5 p-5">+ <label for="harness-rename" class="text-xs font-medium text-ink">+ Name+ </label>+ <Input+ id="harness-rename"+ size="sm"+ autofocus+ maxLength={100}+ value={name()}+ onInput={(event) => setName(event.currentTarget.value)}+ />+ </Panel.Body>+ <Panel.Footer class="justify-end gap-2 px-5 py-3">+ <Button+ type="button"+ variant="ghost"+ size="sm"+ disabled={patchHarness.isPending}+ onClick={props.onClose}+ >+ Cancel+ </Button>+ <Button+ type="submit"+ variant="secondary"+ size="sm"+ disabled={!canSave()}+ >+ {patchHarness.isPending ? 'Saving…' : 'Save'}+ </Button>+ </Panel.Footer>+ </form>+ </Panel>+ </Dialog>+ );+}+function HarnessRemoveDialog(props: {harnessName: string;pending: boolean;diff --git a/apps/web/src/features/settings/RuntimePairingPage.test.tsx b/apps/web/src/features/settings/RuntimePairingPage.test.tsxindex ab04a2b17e..6d925e3a43 100644--- a/apps/web/src/features/settings/RuntimePairingPage.test.tsx+++ b/apps/web/src/features/settings/RuntimePairingPage.test.tsx@@ -17,8 +17,6 @@ const mocks = vi.hoisted(() => ({data: {code: 'KX7M-4QHD',requested_name: 'Dev laptop',- requested_scope: null,- requested_allow_permission_bypass: null as boolean | null,host: 'erics-mbp.local',created_at: '2026-08-27T12:00:00Z',expires_at: new Date(Date.now() + 10 * 60_000).toISOString(),@@ -70,7 +68,6 @@ beforeAll(() => {beforeEach(() => {vi.clearAllMocks();mocks.pairing.isError = false;- mocks.pairing.data.requested_allow_permission_bypass = null;mocks.approve.mockResolvedValue({ id: 'harness-1' });mocks.currentTeam = { team: { id: 'team-1' } };});@@ -223,47 +220,3 @@ it('warns before opting a harness into permission bypass', async () => {));});--it('preselects daemon bypass consent and lets the approving user decline it', async () => {- mocks.pairing.data.requested_allow_permission_bypass = true;- render(() => (- <RuntimePairingPage initialCode="KX7M-4QHD" onClose={() => {}} />- ));- const checkbox = screen.getByRole('checkbox', {- name: 'Allow bypassing permission requests',- });- expect(checkbox).toHaveProperty('checked', true);- expect(screen.getByRole('alert').textContent).toContain('without approval');- fireEvent.click(checkbox);- fireEvent.click(screen.getByRole('button', { name: 'Approve' }));- await waitFor(() =>- expect(mocks.approve).toHaveBeenCalledWith(- expect.objectContaining({ allowPermissionBypass: false })- )- );-});--it('prevents approval from overriding the daemon prompt-only choice', async () => {- mocks.pairing.data.requested_allow_permission_bypass = false;- render(() => (- <RuntimePairingPage initialCode="KX7M-4QHD" onClose={() => {}} />- ));- const checkbox = screen.getByRole('checkbox', {- name: 'Allow bypassing permission requests',- });- expect(checkbox).toHaveProperty('checked', false);- expect(- checkbox.hasAttribute('disabled') ||- checkbox.getAttribute('aria-disabled') === 'true'- ).toBe(true);- expect(- screen.getByText(/This daemon requires permission prompts/)- ).toBeTruthy();- fireEvent.click(checkbox);- fireEvent.click(screen.getByRole('button', { name: 'Approve' }));- await waitFor(() =>- expect(mocks.approve).toHaveBeenCalledWith(- expect.objectContaining({ allowPermissionBypass: false })- )- );-});diff --git a/apps/web/src/features/settings/RuntimePairingPage.tsx b/apps/web/src/features/settings/RuntimePairingPage.tsxindex f21837fd5d..9edd86baed 100644--- a/apps/web/src/features/settings/RuntimePairingPage.tsx+++ b/apps/web/src/features/settings/RuntimePairingPage.tsx@@ -42,14 +42,11 @@ export function RuntimePairingPage(props: {props.initialCode || undefined);const [allowPermissionBypass, setAllowPermissionBypass] = createSignal(false);- const [permissionBypassEdited, setPermissionBypassEdited] =- createSignal(false);const [approved, setApproved] = createSignal(false);const [approveError, setApproveError] = createSignal<string>();const [name, setName] = createSignal('');const [nameEdited, setNameEdited] = createSignal(false);const [share, setShare] = createSignal<HarnessShare>('Private');- const [shareEdited, setShareEdited] = createSignal(false);const pairingQuery = useHarnessPairingQuery(committedCode);const approveMutation = useApproveHarnessPairingMutation();@@ -64,20 +61,6 @@ export function RuntimePairingPage(props: {const pairing = pairingData();if (!pairing) return;if (!nameEdited()) setName(pairing.requested_name);- if (!permissionBypassEdited()) {- setAllowPermissionBypass(- pairing.requested_allow_permission_bypass === true- );- }- // The daemon's config may ask for a scope; preselect it, but the person- // approving keeps the final say.- if (- !shareEdited() &&- pairing.requested_scope === 'team' &&- canShareWithTeam()- ) {- setShare('Team');- }});const lookupError = () =>@@ -99,9 +82,7 @@ export function RuntimePairingPage(props: {setNameEdited(false);setName('');setShare('Private');- setShareEdited(false);setAllowPermissionBypass(false);- setPermissionBypassEdited(false);};const canApprove = () =>@@ -117,9 +98,7 @@ export function RuntimePairingPage(props: {try {await approveMutation.mutateAsync({code: pairing.code,- allowPermissionBypass:- pairing.requested_allow_permission_bypass !== false &&- allowPermissionBypass(),+ allowPermissionBypass: allowPermissionBypass(),name: name().trim(),teamId: share() === 'Team' ? currentTeamId() : undefined,});@@ -224,10 +203,7 @@ export function RuntimePairingPage(props: {checked={share() === 'Private'}title="Private"description="Only you can run agents on this runtime."- onChange={() => {- setShareEdited(true);- setShare('Private');- }}+ onChange={() => setShare('Private')}/><ChoiceRowname="harness-share"@@ -240,23 +216,14 @@ export function RuntimePairingPage(props: {: 'Create or join a team before sharing runtimes.'}disabled={!canShareWithTeam()}- onChange={() => {- setShareEdited(true);- setShare('Team');- }}+ onChange={() => setShare('Team')}/></fieldset><div class="flex flex-col gap-2"><Checkboxclass="flex items-center gap-3 text-sm"checked={allowPermissionBypass()}- disabled={- pairing().requested_allow_permission_bypass === false- }- onChange={(allowed) => {- setPermissionBypassEdited(true);- setAllowPermissionBypass(allowed);- }}+ onChange={setAllowPermissionBypass}><Checkbox.Control /><Checkbox.Label>@@ -264,9 +231,8 @@ export function RuntimePairingPage(props: {</Checkbox.Label></Checkbox><p class="text-xs text-ink-muted">- {pairing().requested_allow_permission_bypass === false- ? 'This daemon requires permission prompts. Change its setting and pair again to allow bypass.'- : 'When off, every agent on this runtime must ask for permission.'}+ When off, every agent on this runtime must ask for+ permission. You can change this later in Runtimes.</p><Show when={allowPermissionBypass()}><p class="text-xs text-negative" role="alert">diff --git a/apps/web/src/features/settings/components/connected-runtimes-section.tsx b/apps/web/src/features/settings/components/connected-runtimes-section.tsxindex 8ce36bbeec..10d74c7ea0 100644--- a/apps/web/src/features/settings/components/connected-runtimes-section.tsx+++ b/apps/web/src/features/settings/components/connected-runtimes-section.tsx@@ -1,8 +1,17 @@+import { toast } from '@core/component/Toast/Toast';+import { fireAndForget } from '@core/util/fireAndForget';+import { ThrownResultError } from '@core/util/result';+import { usePatchHarnessMutation } from '@queries/harnesses/harnesses';import type { Harness as RegisteredHarness } from '@service-storage/client';+import { confirmDialog, ToggleSwitch } from '@ui';import { For, Show } from 'solid-js';import { ConnectAction, StatusDot } from '../integration-ui';import { SettingsCard } from '../primitives';+function failureMessage(error: unknown, fallback: string): string {+ return (error instanceof ThrownResultError && error.message) || fallback;+}+function lastConnectedText(harness: RegisteredHarness): string {return harness.last_connected_at? `Last connected ${new Date(harness.last_connected_at).toLocaleString()}`@@ -22,6 +31,7 @@ export function ConnectedRuntimesSection(props: {harnesses: readonly RegisteredHarness[];/** The runtimes could not be loaded; say so rather than show an empty page. */error: boolean;+ onRename: (harness: RegisteredHarness) => void;onRemove: (harness: RegisteredHarness) => void;}) {const connectedCount = () =>@@ -42,32 +52,11 @@ export function ConnectedRuntimesSection(props: {<SettingsCard><For each={ordered()}>{(harness) => (- <div class="flex items-center justify-between gap-4 px-4 py-3">- <div class="min-w-0 flex-1">- <div class="flex min-w-0 items-center gap-2">- <p class="min-w-0 flex-1 truncate text-sm text-ink">- {harness.name}- </p>- <span class="inline-flex h-5 shrink-0 items-center whitespace-nowrap rounded-md border border-edge-muted px-2 text-xxs/none font-medium uppercase text-ink-extra-muted">- {harness.owner.type === 'team' ? 'Team' : 'Private'}- </span>- <StatusDot- state={harness.connected ? 'connected' : 'disconnected'}- label={harness.connected ? 'Connected' : 'Offline'}- />- </div>- <p class="mt-0.5 truncate text-xs text-ink-extra-muted">- {lastConnectedText(harness)}- </p>- </div>- <div class="shrink-0">- <ConnectAction- label="Remove"- variant="danger"- onClick={() => props.onRemove(harness)}- />- </div>- </div>+ <PairedRuntimeRow+ harness={harness}+ onRename={() => props.onRename(harness)}+ onRemove={() => props.onRemove(harness)}+ />)}</For><Show when={props.error}>@@ -80,3 +69,90 @@ export function ConnectedRuntimesSection(props: {</Show>);}++/**+ * One paired macrod runtime. Its name, owner and permission bypass live here+ * on the web; macrod.toml on the machine holds only machine-local config.+ */+function PairedRuntimeRow(props: {+ harness: RegisteredHarness;+ onRename: () => void;+ onRemove: () => void;+}) {+ const patchHarness = usePatchHarnessMutation();++ const setBypass = async (allowed: boolean) => {+ if (allowed) {+ const confirmed = await confirmDialog({+ title: 'Allow bypassing permission requests?',+ body: 'Agents set to bypass can run commands and edit files on this machine without approval. Only enable this if you trust everyone who can create agents on this runtime.',+ confirmLabel: 'Allow',+ tone: 'danger',+ });+ if (!confirmed) return;+ }+ try {+ await patchHarness.mutateAsync({+ harnessId: props.harness.id,+ allowPermissionBypass: allowed,+ });+ } catch (error) {+ toast.failure(+ failureMessage(error, 'Failed to change permission requests')+ );+ }+ };++ return (+ <div class="flex flex-col gap-3 px-4 py-3">+ <div class="flex items-center justify-between gap-4">+ <div class="min-w-0 flex-1">+ <div class="flex min-w-0 items-center gap-2">+ <p class="min-w-0 flex-1 truncate text-sm text-ink">+ {props.harness.name}+ </p>+ <span class="inline-flex h-5 shrink-0 items-center whitespace-nowrap rounded-md border border-edge-muted px-2 text-xxs/none font-medium uppercase text-ink-extra-muted">+ {props.harness.owner.type === 'team' ? 'Team' : 'Private'}+ </span>+ <StatusDot+ state={props.harness.connected ? 'connected' : 'disconnected'}+ label={props.harness.connected ? 'Connected' : 'Offline'}+ />+ </div>+ <p class="mt-0.5 truncate text-xs text-ink-extra-muted">+ {lastConnectedText(props.harness)}+ </p>+ </div>+ <div class="flex shrink-0 items-center gap-1">+ <ConnectAction+ label="Rename"+ variant="neutral"+ onClick={props.onRename}+ />+ <ConnectAction+ label="Remove"+ variant="danger"+ onClick={props.onRemove}+ />+ </div>+ </div>+ <div class="flex flex-col gap-1">+ <ToggleSwitch+ size="md"+ label="Allow bypassing permission requests"+ labelClass="text-xs text-ink"+ checked={props.harness.allow_permission_bypass}+ disabled={patchHarness.isPending}+ onChange={(allowed) =>+ fireAndForget(setBypass(allowed), 'harness-settings')+ }+ />+ <p class="text-xs text-ink-extra-muted">+ {props.harness.allow_permission_bypass+ ? 'Agents set to Always bypass approve tool calls without asking, from their next turn.'+ : 'Every agent on this runtime must ask for permission.'}+ </p>+ </div>+ </div>+ );+}diff --git a/apps/web/src/lib/queries/harnesses/harnesses.ts b/apps/web/src/lib/queries/harnesses/harnesses.tsindex 213a1c60a9..1907a67965 100644--- a/apps/web/src/lib/queries/harnesses/harnesses.ts+++ b/apps/web/src/lib/queries/harnesses/harnesses.ts@@ -16,6 +16,12 @@ export type ApproveHarnessPairingParams = {teamId?: string;};+export type PatchHarnessParams = {+ harnessId: string;+ name?: string;+ allowPermissionBypass?: boolean;+};+export type DeleteHarnessParams = {harnessId: string;};@@ -98,24 +104,43 @@ export function useApproveHarnessPairingMutation() {export function useApproveOwnHarnessPairingMutation() {return useMutation(() => ({gcTime: 0,- mutationFn: async (code: string) => {- const pairing = await throwOnErr(() =>- storageServiceClient.getHarnessPairing({ code })- );- return await throwOnErr(() =>+ // Approved as a private runtime that prompts; setup turns bypass on+ // through the runtime's web setting when the user chose Full access in setup.+ mutationFn: async (code: string) =>+ await throwOnErr(() =>storageServiceClient.approveHarnessPairing({code,- allow_permission_bypass:- pairing.requested_allow_permission_bypass ?? false,+ allow_permission_bypass: false,})- );- },+ ),onSuccess: async () => await invalidateHarnesses(),onError: (error) =>console.error('failed to approve local harness pairing', error),}));}+export async function patchHarness(vars: PatchHarnessParams) {+ const updated = await throwOnErr(() =>+ storageServiceClient.patchHarness({+ harness_id: vars.harnessId,+ name: vars.name,+ allow_permission_bypass: vars.allowPermissionBypass,+ })+ );+ queryClient.setQueryData<Harness[]>(harnessKeys.list.queryKey, (current) =>+ current?.map((harness) => (harness.id === updated.id ? updated : harness))+ );+ return updated;+}++export function usePatchHarnessMutation() {+ return useMutation(() => ({+ gcTime: 0,+ mutationFn: patchHarness,+ onError: (error) => console.error('failed to change harness', error),+ }));+}+export function useDeleteHarnessMutation() {return useMutation(() => ({gcTime: 0,diff --git a/apps/web/src/lib/service-clients/service-storage/client.ts b/apps/web/src/lib/service-clients/service-storage/client.tsindex 33a4944cb8..dd0093f16a 100644--- a/apps/web/src/lib/service-clients/service-storage/client.ts+++ b/apps/web/src/lib/service-clients/service-storage/client.ts@@ -147,6 +147,7 @@ import type { ListTeamOutOfOfficeParams } from './generated/schemas/listTeamOutOimport type { LocationResponseV3 } from './generated/schemas/locationResponseV3';import type { PairingDetails } from './generated/schemas/pairingDetails';import type { PatchChannelRequest } from './generated/schemas/patchChannelRequest';+import type { PatchHarnessRequest } from './generated/schemas/patchHarnessRequest';import type { PinRequest } from './generated/schemas/pinRequest';import type { PostActivityRequest } from './generated/schemas/postActivityRequest';import type { PostGroupedSoupAstGroupPageRequest } from './generated/schemas/postGroupedSoupAstGroupPageRequest';@@ -878,6 +879,16 @@ export const storageServiceClient = {).map((result) => result);},+ async patchHarness(args: { harness_id: string } & PatchHarnessRequest) {+ const { harness_id, ...request } = args;+ return (+ await dssFetch<Harness>(`/harnesses/${harness_id}`, {+ method: 'PATCH',+ body: JSON.stringify(request),+ })+ ).map((result) => result);+ },+async deleteHarness(args: { harness_id: string }) {return await dssFetch(`/harnesses/${args.harness_id}`, {method: 'DELETE',diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/createPairingRequest.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/createPairingRequest.tsindex 558432c241..1caf6ddce5 100644--- a/apps/web/src/lib/service-clients/service-storage/generated/schemas/createPairingRequest.ts+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/createPairingRequest.ts@@ -4,9 +4,7 @@* document_storage_service* OpenAPI spec version: 0.1.0*/-import type { CreatePairingRequestAllowPermissionBypass } from './createPairingRequestAllowPermissionBypass';import type { CreatePairingRequestHost } from './createPairingRequestHost';-import type { CreatePairingRequestScope } from './createPairingRequestScope';/*** Request to open a pairing: the daemon asks for a code the user approves.@@ -14,11 +12,8 @@ import type { CreatePairingRequestScope } from './createPairingRequestScope';The daemon serializes this, so both derives are used.*/export interface CreatePairingRequest {- /** Daemon operator consent ceiling. Omitted by older clients; web approval decides. */- allow_permission_bypass?: CreatePairingRequestAllowPermissionBypass;/** Display-only description of the machine, e.g. `eric@macbook / darwin`. */host?: CreatePairingRequestHost;/** Requested harness display name (typically the machine's hostname). */name: string;- scope?: CreatePairingRequestScope;}diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/createPairingRequestAllowPermissionBypass.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/createPairingRequestAllowPermissionBypass.tsdeleted file mode 100644index ba7a7562d7..0000000000--- a/apps/web/src/lib/service-clients/service-storage/generated/schemas/createPairingRequestAllowPermissionBypass.ts+++ /dev/null@@ -1,11 +0,0 @@-/**- * Generated by orval v7.21.0 🍺- * Do not edit manually.- * document_storage_service- * OpenAPI spec version: 0.1.0- */--/**- * Daemon operator consent ceiling. Omitted by older clients; web approval decides.- */-export type CreatePairingRequestAllowPermissionBypass = boolean | null;diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/createPairingRequestScope.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/createPairingRequestScope.tsdeleted file mode 100644index 5b22e095a5..0000000000--- a/apps/web/src/lib/service-clients/service-storage/generated/schemas/createPairingRequestScope.ts+++ /dev/null@@ -1,9 +0,0 @@-/**- * Generated by orval v7.21.0 🍺- * Do not edit manually.- * document_storage_service- * OpenAPI spec version: 0.1.0- */-import type { RequestedHarnessScope } from './requestedHarnessScope';--export type CreatePairingRequestScope = null | RequestedHarnessScope;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.tsindex a2ff300f47..d77daf39cb 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@@ -605,9 +605,7 @@ export * from './createMeetingRequestScheduledEnd';export * from './createMeetingRequestScheduledStart';export * from './createMeetingRequestTitle';export * from './createPairingRequest';-export * from './createPairingRequestAllowPermissionBypass';export * from './createPairingRequestHost';-export * from './createPairingRequestScope';export * from './createPipeline';export * from './createProjectRequest';export * from './createProjectRequestProjectParentId';@@ -1529,8 +1527,6 @@ export * from './optionRefOneOf';export * from './optionRefOneOfTwo';export * from './pairingDetails';export * from './pairingDetailsHost';-export * from './pairingDetailsRequestedAllowPermissionBypass';-export * from './pairingDetailsRequestedScope';export * from './params';export * from './paramsExpand';export * from './paramsLimit';@@ -1548,6 +1544,9 @@ export * from './patchChannelRequest';export * from './patchChannelRequestAutoJoinTeam';export * from './patchChannelRequestChannelName';export * from './patchChannelRequestConvertToTeamChannel';+export * from './patchHarnessRequest';+export * from './patchHarnessRequestAllowPermissionBypass';+export * from './patchHarnessRequestName';export * from './patchMessageNotificationPolicy';export * from './patchProjectRequestV2';export * from './patchProjectRequestV2Name';@@ -1717,7 +1716,6 @@ export * from './reorderPinRequest';export * from './replaceCrmStagesRequest';export * from './requestAccess';export * from './requestAccessRevision';-export * from './requestedHarnessScope';export * from './requestedLayout';export * from './requestedLayoutOneOf';export * from './requestedLayoutOneOfFive';diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/pairingDetails.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/pairingDetails.tsindex bb8276589d..48d7715a94 100644--- a/apps/web/src/lib/service-clients/service-storage/generated/schemas/pairingDetails.ts+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/pairingDetails.ts@@ -5,8 +5,6 @@* OpenAPI spec version: 0.1.0*/import type { PairingDetailsHost } from './pairingDetailsHost';-import type { PairingDetailsRequestedAllowPermissionBypass } from './pairingDetailsRequestedAllowPermissionBypass';-import type { PairingDetailsRequestedScope } from './pairingDetailsRequestedScope';/*** A pending pairing, as shown to the approving user.@@ -20,9 +18,6 @@ export interface PairingDetails {expires_at: string;/** Display-only description of the machine. */host?: PairingDetailsHost;- /** Daemon operator consent ceiling; false forbids bypass at approval. */- requested_allow_permission_bypass?: PairingDetailsRequestedAllowPermissionBypass;/** Harness display name the daemon asked for. */requested_name: string;- requested_scope?: PairingDetailsRequestedScope;}diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/pairingDetailsRequestedAllowPermissionBypass.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/pairingDetailsRequestedAllowPermissionBypass.tsdeleted file mode 100644index 3d61aeb7fb..0000000000--- a/apps/web/src/lib/service-clients/service-storage/generated/schemas/pairingDetailsRequestedAllowPermissionBypass.ts+++ /dev/null@@ -1,11 +0,0 @@-/**- * Generated by orval v7.21.0 🍺- * Do not edit manually.- * document_storage_service- * OpenAPI spec version: 0.1.0- */--/**- * Daemon operator consent ceiling; false forbids bypass at approval.- */-export type PairingDetailsRequestedAllowPermissionBypass = boolean | null;diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/pairingDetailsRequestedScope.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/pairingDetailsRequestedScope.tsdeleted file mode 100644index 559f9df11e..0000000000--- a/apps/web/src/lib/service-clients/service-storage/generated/schemas/pairingDetailsRequestedScope.ts+++ /dev/null@@ -1,9 +0,0 @@-/**- * Generated by orval v7.21.0 🍺- * Do not edit manually.- * document_storage_service- * OpenAPI spec version: 0.1.0- */-import type { RequestedHarnessScope } from './requestedHarnessScope';--export type PairingDetailsRequestedScope = null | RequestedHarnessScope;diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/patchHarnessRequest.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/patchHarnessRequest.tsnew file mode 100644index 0000000000..5eaa9f13a4--- /dev/null+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/patchHarnessRequest.ts@@ -0,0 +1,19 @@+/**+ * Generated by orval v7.21.0 🍺+ * Do not edit manually.+ * document_storage_service+ * OpenAPI spec version: 0.1.0+ */+import type { PatchHarnessRequestAllowPermissionBypass } from './patchHarnessRequestAllowPermissionBypass';+import type { PatchHarnessRequestName } from './patchHarnessRequestName';++/**+ * Request to change a registered harness. Omitted fields stay as they are.+ */+export interface PatchHarnessRequest {+ /** Whether agents may bypass ACP permission requests on this harness.+Live sessions pick the change up at their next turn. */+ allow_permission_bypass?: PatchHarnessRequestAllowPermissionBypass;+ /** New display name. */+ name?: PatchHarnessRequestName;+}diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/patchHarnessRequestAllowPermissionBypass.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/patchHarnessRequestAllowPermissionBypass.tsnew file mode 100644index 0000000000..59fe4c18f6--- /dev/null+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/patchHarnessRequestAllowPermissionBypass.ts@@ -0,0 +1,12 @@+/**+ * Generated by orval v7.21.0 🍺+ * Do not edit manually.+ * document_storage_service+ * OpenAPI spec version: 0.1.0+ */++/**+ * Whether agents may bypass ACP permission requests on this harness.+Live sessions pick the change up at their next turn.+ */+export type PatchHarnessRequestAllowPermissionBypass = boolean | null;diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/patchHarnessRequestName.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/patchHarnessRequestName.tsnew file mode 100644index 0000000000..14f07c0727--- /dev/null+++ b/apps/web/src/lib/service-clients/service-storage/generated/schemas/patchHarnessRequestName.ts@@ -0,0 +1,11 @@+/**+ * Generated by orval v7.21.0 🍺+ * Do not edit manually.+ * document_storage_service+ * OpenAPI spec version: 0.1.0+ */++/**+ * New display name.+ */+export type PatchHarnessRequestName = string | null;diff --git a/apps/web/src/lib/service-clients/service-storage/generated/schemas/requestedHarnessScope.ts b/apps/web/src/lib/service-clients/service-storage/generated/schemas/requestedHarnessScope.tsdeleted file mode 100644index 7d11b4f79a..0000000000--- a/apps/web/src/lib/service-clients/service-storage/generated/schemas/requestedHarnessScope.ts+++ /dev/null@@ -1,21 +0,0 @@-/**- * Generated by orval v7.21.0 🍺- * Do not edit manually.- * document_storage_service- * OpenAPI spec version: 0.1.0- */--/**- * The ownership scope a daemon's config asks for.--Advisory, not binding: the approving user confirms it in the dialog, which-arrives preselected to this. Approval is what actually sets ownership.- */-export type RequestedHarnessScope =- (typeof RequestedHarnessScope)[keyof typeof RequestedHarnessScope];--// eslint-disable-next-line @typescript-eslint/no-redeclare-export const RequestedHarnessScope = {- private: 'private',- team: 'team',-} as const;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.tsindex be8eb1168d..cd976083e9 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@@ -28081,12 +28081,6 @@ it, and creation is throttled in the domain service.*/export const createHarnessPairingBody = zod.object({- allow_permission_bypass: zod- .boolean()- .nullish()- .describe(- 'Daemon operator consent ceiling. Omitted by older clients; web approval decides.'- ),host: zod.string().nullish()@@ -28098,16 +28092,6 @@ export const createHarnessPairingBody = zod.describe("Requested harness display name (typically the machine's hostname)."),- scope: zod- .union([- zod.null(),- zod- .enum(['private', 'team'])- .describe(- "The ownership scope a daemon's config asks for.\n\nAdvisory, not binding: the approving user confirms it in the dialog, which\narrives preselected to this. Approval is what actually sets ownership."- ),- ])- .optional(),}).describe('Request to open a pairing: the daemon asks for a code the user approves.\n\nThe daemon serializes this, so both derives are used.'@@ -28129,25 +28113,9 @@ export const getHarnessPairingResponse = zod.string().nullish().describe('Display-only description of the machine.'),- requested_allow_permission_bypass: zod- .boolean()- .nullish()- .describe(- 'Daemon operator consent ceiling; false forbids bypass at approval.'- ),requested_name: zod.string().describe('Harness display name the daemon asked for.'),- requested_scope: zod- .union([- zod.null(),- zod- .enum(['private', 'team'])- .describe(- "The ownership scope a daemon's config asks for.\n\nAdvisory, not binding: the approving user confirms it in the dialog, which\narrives preselected to this. Approval is what actually sets ownership."- ),- ])- .optional(),}).describe('A pending pairing, as shown to the approving user.');@@ -28437,6 +28405,71 @@ export const deleteHarnessParams = zod.object({harness_id: zod.string().describe('Harness ID'),});+/**+ * @summary Handler for `PATCH /harnesses/{harness_id}`.+ */+export const patchHarnessParams = zod.object({+ harness_id: zod.string().describe('Harness ID'),+});++export const patchHarnessBody = zod+ .object({+ allow_permission_bypass: zod+ .boolean()+ .nullish()+ .describe(+ 'Whether agents may bypass ACP permission requests on this harness.\nLive sessions pick the change up at their next turn.'+ ),+ name: zod.string().nullish().describe('New display name.'),+ })+ .describe(+ 'Request to change a registered harness. Omitted fields stay as they are.'+ );++export const patchHarnessResponse = zod+ .object({+ allow_permission_bypass: zod+ .boolean()+ .optional()+ .describe(+ 'Whether agents may bypass ACP permission requests on this harness.'+ ),+ connected: zod+ .boolean()+ .describe('Whether the daemon currently holds a runtime connection.'),+ created_at: zod.iso.datetime({}).describe('Creation timestamp.'),+ created_by: zod.string().describe('User that registered this harness.'),+ id: zod.string(),+ kind: zod.string().describe('Runtime kind. Currently always `macrod`.'),+ last_connected_at: zod.iso+ .datetime({})+ .nullish()+ .describe('When the daemon last attached a runtime connection.'),+ name: zod.string().describe('Display name.'),+ owner: zod+ .union([+ zod+ .object({+ type: zod.enum(['user']),+ user_id: zod.string().describe('Owner user id.'),+ })+ .describe('User-owned (private) harness.'),+ zod+ .object({+ team_id: zod.uuid().describe('Owner team id.'),+ type: zod.enum(['team']),+ })+ .describe('Team-owned harness, usable by every team member.'),+ ])+ .describe(+ 'Harness owner.\n\nExactly one of a user or a team, mirroring the bots owner pattern. There\nare no system harnesses.'+ ),+ updated_at: zod.iso.datetime({}).describe('Update timestamp.'),+ })+ .describe(+ 'A registered user-run harness.\n\nClients deserialize this, so both derives are used.'+ );+/*** @summary Gets the users history*/diff --git a/apps/web/src/lib/service-clients/service-storage/openapi.json b/apps/web/src/lib/service-clients/service-storage/openapi.jsonindex 3eaf34a04b..001340baf0 100644--- a/apps/web/src/lib/service-clients/service-storage/openapi.json+++ b/apps/web/src/lib/service-clients/service-storage/openapi.json@@ -16157,6 +16157,84 @@}}}+ },+ "patch": {+ "tags": ["harnesses"],+ "summary": "Handler for `PATCH /harnesses/{harness_id}`.",+ "operationId": "patch_harness",+ "parameters": [+ {+ "name": "harness_id",+ "in": "path",+ "description": "Harness ID",+ "required": true,+ "schema": {+ "$ref": "#/components/schemas/HarnessId"+ }+ }+ ],+ "requestBody": {+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/PatchHarnessRequest"+ }+ }+ },+ "required": true+ },+ "responses": {+ "200": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/Harness"+ }+ }+ }+ },+ "400": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/ErrorResponse"+ }+ }+ }+ },+ "401": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/ErrorResponse"+ }+ }+ }+ },+ "404": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/ErrorResponse"+ }+ }+ }+ },+ "500": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/ErrorResponse"+ }+ }+ }+ }+ }}},"/health": {@@ -27396,10 +27474,6 @@"description": "Request to open a pairing: the daemon asks for a code the user approves.\n\nThe daemon serializes this, so both derives are used.","required": ["name"],"properties": {- "allow_permission_bypass": {- "type": ["boolean", "null"],- "description": "Daemon operator consent ceiling. Omitted by older clients; web approval decides."- },"host": {"type": ["string", "null"],"description": "Display-only description of the machine, e.g. `eric@macbook / darwin`."@@ -27407,17 +27481,6 @@"name": {"type": "string","description": "Requested harness display name (typically the machine's hostname)."- },- "scope": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/RequestedHarnessScope",- "description": "The scope the daemon's config asks for; the approval dialog arrives\npreselected to it."- }- ]}}},@@ -38263,24 +38326,9 @@"type": ["string", "null"],"description": "Display-only description of the machine."},- "requested_allow_permission_bypass": {- "type": ["boolean", "null"],- "description": "Daemon operator consent ceiling; false forbids bypass at approval."- },"requested_name": {"type": "string","description": "Harness display name the daemon asked for."- },- "requested_scope": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/RequestedHarnessScope",- "description": "The scope the daemon's config asked for, when it named one."- }- ]}}},@@ -38376,6 +38424,20 @@}}},+ "PatchHarnessRequest": {+ "type": "object",+ "description": "Request to change a registered harness. Omitted fields stay as they are.",+ "properties": {+ "allow_permission_bypass": {+ "type": ["boolean", "null"],+ "description": "Whether agents may bypass ACP permission requests on this harness.\nLive sessions pick the change up at their next turn."+ },+ "name": {+ "type": ["string", "null"],+ "description": "New display name."+ }+ }+ },"PatchMessageNotificationPolicy": {"type": "string","description": "Internal notification behavior for a patched channel message.",@@ -40119,11 +40181,6 @@"description": "Durable outcome; reading a notification never changes it.","enum": ["pending", "granted", "denied", "cancelled"]},- "RequestedHarnessScope": {- "type": "string",- "description": "The ownership scope a daemon's config asks for.\n\nAdvisory, not binding: the approving user confirms it in the dialog, which\narrives preselected to this. Approval is what actually sets ownership.",- "enum": ["private", "team"]- },"RequestedLayout": {"oneOf": [{diff --git a/apps/web/src/lib/tauri/macrod.ts b/apps/web/src/lib/tauri/macrod.tsindex d27b2d40e4..4e10cde0a1 100644--- a/apps/web/src/lib/tauri/macrod.ts+++ b/apps/web/src/lib/tauri/macrod.ts@@ -61,8 +61,6 @@ export type MacrodInspection = {export type MacrodStartOptions = {agent?: string;workspace?: string;- scope?: 'private' | 'team';- allowPermissionBypass?: boolean;};export function macrodSupport(): Promise<MacrodSupport> {diff --git a/apps/web/tauri/src-tauri/src/desktop/macrod.rs b/apps/web/tauri/src-tauri/src/desktop/macrod.rsindex ac0b803487..84c91b65b8 100644--- a/apps/web/tauri/src-tauri/src/desktop/macrod.rs+++ b/apps/web/tauri/src-tauri/src/desktop/macrod.rs@@ -418,14 +418,14 @@ pub(crate) async fn macrod_inspect(app: AppHandle) -> Result<serde_json::Value,}/// Setup choices for a first-time (or re-) configuration. All optional: a-/// plain restart of an already configured daemon passes none of them.+/// plain restart of an already configured daemon passes none of them. The+/// runtime's name, ownership, and permission bypass are set on the web, not+/// here; fields an older web bundle still sends are ignored.#[derive(Debug, Clone, Default, Deserialize)]#[serde(rename_all = "camelCase")]pub(crate) struct MacrodStartOptions {agent: Option<String>,workspace: Option<String>,- scope: Option<String>,- allow_permission_bypass: Option<bool>,}/// Start (or restart) the supervised daemon and remember to auto-start it on@@ -466,15 +466,6 @@ fn launch(if let Some(workspace) = &options.workspace {command.args(["--workspace", workspace]);}- if let Some(scope) = &options.scope {- command.args(["--scope", scope]);- }- if let Some(allowed) = options.allow_permission_bypass {- command.args([- "--allow-permission-bypass",- if allowed { "true" } else { "false" },- ]);- }command.stdin(Stdio::piped()).stdout(Stdio::piped())diff --git a/crates/agent_harness/src/domain/ports.rs b/crates/agent_harness/src/domain/ports.rsindex 3d63816836..48cdad2230 100644--- a/crates/agent_harness/src/domain/ports.rs+++ b/crates/agent_harness/src/domain/ports.rs@@ -117,8 +117,9 @@ pub trait HarnessBindings: Send + Sync + 'static {/// Loads facts for the domain to resolve a bot's permission policy.///-/// Resolved at attach time like [`HarnessBindings`], so changing the agent's-/// setting takes effect on its existing sessions the next time they attach.+/// Resolved at attach time and again before every turn, so changing the+/// agent's setting or its harness's bypass consent takes effect on its live+/// sessions from their next prompt.pub trait PermissionPolicySource: Send + Sync + 'static {/// The persona choice and harness limit for `bot` right now.fn permission_policy(@@ -130,8 +131,8 @@ pub trait PermissionPolicySource: Send + Sync + 'static {/// Loads a persona's choice of whether it is a coding agent.////// Read when a turn is announced or its reply resolved, like-/// [`PermissionPolicySource`] is read on attach, so changing the agent's-/// setting takes effect on its next turn. The domain applies the choice+/// [`PermissionPolicySource`] is read before each turn, so changing the+/// agent's setting takes effect on its next turn. The domain applies the choice/// with [`crate::domain::model::is_coding_agent`].pub trait CodingAgentSource: Send + Sync + 'static {/// The persona's setting for `bot`; `None` only for a fixed system bot,diff --git a/crates/agent_harness/src/domain/service/deliver.rs b/crates/agent_harness/src/domain/service/deliver.rsindex 2d4bbb1617..abad4256a4 100644--- a/crates/agent_harness/src/domain/service/deliver.rs+++ b/crates/agent_harness/src/domain/service/deliver.rs@@ -332,6 +332,7 @@ whereif action.occupies_turn() {self.admit_session_id(session_id).await?;self.refresh_mcp_servers(session_id).await;+ self.refresh_permission_policy(session_id).await;}match selfdiff --git a/crates/agent_harness/src/domain/service/lifecycle.rs b/crates/agent_harness/src/domain/service/lifecycle.rsindex ff7bc00af7..3b64505923 100644--- a/crates/agent_harness/src/domain/service/lifecycle.rs+++ b/crates/agent_harness/src/domain/service/lifecycle.rs@@ -430,6 +430,29 @@ whereOk(self.permission_policy_for(bot).await)}+ /// Hand a live session its current permission policy before a turn, so a+ /// withdrawn bypass applies from the next prompt rather than the next+ /// attach. A session attached nowhere here takes it when it attaches.+ pub(super) async fn refresh_permission_policy(&self, session_id: AgentSessionId) {+ let refreshed = async {+ let session = self.sessions.get_session(session_id).await?;+ let policy = self+ .permission_policy_for_session(session_id, session.bot_id)+ .await?;+ self.sessions+ .set_permission_policy(session_id, policy)+ .await+ }+ .await;+ if let Err(error) = refreshed {+ tracing::warn!(+ error = ?error,+ %session_id,+ "could not refresh a session's permission policy; it keeps the one it has"+ );+ }+ }+/// The MCP servers to advertise when reattaching to an existing container.////// The raw session token exists in exactly one place after spawn - thediff --git a/crates/agent_harness/src/domain/service/test.rs b/crates/agent_harness/src/domain/service/test.rsindex 8482c49dec..39b7788ae8 100644--- a/crates/agent_harness/src/domain/service/test.rs+++ b/crates/agent_harness/src/domain/service/test.rs@@ -9,6 +9,7 @@ mod external_replies;mod followers;mod notifications;mod owned_purge;+mod permission_refresh;mod presentation;mod quota;mod user_cleanup;diff --git a/crates/agent_harness/src/domain/service/test/permission_refresh.rs b/crates/agent_harness/src/domain/service/test/permission_refresh.rsnew file mode 100644index 0000000000..426c7516fd--- /dev/null+++ b/crates/agent_harness/src/domain/service/test/permission_refresh.rs@@ -0,0 +1,75 @@+//! A changed permission policy reaches a live session before its next prompt,+//! so withdrawing bypass does not wait for the session to reattach.++use std::sync::Mutex;++use super::*;+use crate::domain::model::PermissionPolicyConfig;++#[derive(Clone)]+struct ChangeablePolicy(Arc<Mutex<PermissionPolicyConfig>>);++impl crate::domain::ports::PermissionPolicySource for ChangeablePolicy {+ async fn permission_policy(&self, _: BotId) -> anyhow::Result<PermissionPolicyConfig> {+ Ok(self.0.lock().unwrap().clone())+ }+}++fn persona_on_harness(harness_allows_bypass: bool) -> PermissionPolicyConfig {+ PermissionPolicyConfig::Persona {+ kind: AgentKind::External,+ harness_allows_bypass: Some(harness_allows_bypass),+ auto_accept_permissions: Some(true),+ }+}++#[tokio::test]+async fn a_withdrawn_bypass_reaches_a_live_session_before_its_next_prompt() {+ let policy = ChangeablePolicy(Arc::new(Mutex::new(persona_on_harness(true))));+ let ((service, _repo, containers, _announcer, _runtimes), mut turns) = harness_with_policy(+ PromptContextMock::default(),+ PromptComposerMock::default(),+ policy.clone(),+ );+ let id = AgentSessionId::new();+ let container = live_sandboxed_coder_session(&service, &containers, id).await;+ turns.settled(id).await;+ let agent = container.agent();+ agent.sends_raw(permission_request("before"));+ agent.wait_for_responses(1).await;+ assert_eq!(+ permission_outcome(&agent, "before"),+ Some(RequestPermissionOutcome::Selected(+ SelectedPermissionOutcome::new("always")+ ))+ );++ *policy.0.lock().unwrap() = persona_on_harness(false);+ let prompted = service.execute(id, HarnessCommand::Deliver(forward_message("keep going")));+ let answered = async {+ agent.wait_for_requests(4).await;+ agent.completes_prompt().await;+ };+ let (prompted, ()) = tokio::join!(prompted, answered);+ prompted.expect("the prompt reaches the session");++ agent.sends_raw(permission_request("after"));+ service+ .control_event(+ id,+ ControlEvent {+ action_id: None,+ action: permission_answer("after", "once"),+ actor: Some(staff_sender()),+ context: None,+ },+ )+ .await+ .expect("the request waits for a user's answer");+ assert_eq!(+ permission_outcome(&agent, "after"),+ Some(RequestPermissionOutcome::Selected(+ SelectedPermissionOutcome::new("once")+ ))+ );+}diff --git a/crates/agent_session/src/domain/service.rs b/crates/agent_session/src/domain/service.rsindex ade0c9dfa7..e9f59ccb59 100644--- a/crates/agent_session/src/domain/service.rs+++ b/crates/agent_session/src/domain/service.rs@@ -78,7 +78,7 @@ use super::ports::{};use super::retitle::ConversationDigest;use super::session::actors::{ActorInput, SessionActor, SessionCommand, SessionMessage, Stepped};-use super::session::{CloseReason, Input, StopReason as SessionStopReason};+use super::session::{CloseReason, Input, PermissionPolicy, StopReason as SessionStopReason};use crate::domain::events::{AgentSessionLifecycleEvent, SessionRenamedMetadata};/// Buffered not-yet-accepted commands per session actor.@@ -347,6 +347,15 @@ pub trait AgentSessionService: Send + Sync + 'static {servers: Vec<McpServer>,) -> impl Future<Output = Result<()>> + Send;+ /// Answer the agent's permission requests under `policy` from now on, on+ /// the session's live connection on this instance. A session attached+ /// nowhere here needs nothing: its next attach takes a fresh policy.+ fn set_permission_policy(+ &self,+ id: AgentSessionId,+ policy: PermissionPolicy,+ ) -> impl Future<Output = Result<()>> + Send;+/// The session an incoming channel context routes to, if any.fn find_for_thread(&self,@@ -1246,6 +1255,24 @@ where.map_err(|_| AgentSessionError::Disconnected(id))}+ async fn set_permission_policy(+ &self,+ id: AgentSessionId,+ policy: PermissionPolicy,+ ) -> Result<()> {+ let Some(commands) = self+ .active+ .get(&id)+ .and_then(|active| active.commands.clone())+ else {+ return Ok(());+ };+ commands+ .send(SessionMessage::SetPermissionPolicy(policy))+ .await+ .map_err(|_| AgentSessionError::Disconnected(id))+ }+async fn session_bot(&self, id: BotId) -> Result<SessionBot> {self.repo.session_bot(id).await}diff --git a/crates/agent_session/src/domain/session/actors.rs b/crates/agent_session/src/domain/session/actors.rsindex 99beab4933..7bab658ff3 100644--- a/crates/agent_session/src/domain/session/actors.rs+++ b/crates/agent_session/src/domain/session/actors.rs@@ -71,6 +71,8 @@ pub(crate) enum SessionMessage {Action(SessionCommand),/// Hand the agent these MCP servers from now on.ReplaceMcpServers(Vec<McpServer>),+ /// Answer the agent's permission requests this way from now on.+ SetPermissionPolicy(PermissionPolicy),}/// An actor-owned operation or an input to the runtime protocol machine.@@ -265,6 +267,7 @@ wherereturn ActorInput::PresentTool { presentation, completed };},Some(SessionMessage::ReplaceMcpServers(servers)) => Input::ReplaceMcpServers(servers),+ Some(SessionMessage::SetPermissionPolicy(policy)) => Input::SetPermissionPolicy(policy),Some(SessionMessage::Action(SessionCommand { user_id, action, action_id, completed, span, enqueued_at })) => {span.record("agent.command.queue_wait_ms",diff --git a/crates/agent_session/src/domain/session/session.rs b/crates/agent_session/src/domain/session/session.rsindex 6a989aab51..c45aaf9738 100644--- a/crates/agent_session/src/domain/session/session.rs+++ b/crates/agent_session/src/domain/session/session.rs@@ -213,6 +213,10 @@ impl<Token> SessionMachine<Token> {effects}Input::ReplaceMcpServers(servers) => self.on_mcp_servers_replaced(servers),+ Input::SetPermissionPolicy(policy) => {+ self.permission_policy = policy;+ vec![]+ }Input::Closed(reason) => self.on_closed(reason),}}diff --git a/crates/agent_session/src/domain/session/tests.rs b/crates/agent_session/src/domain/session/tests.rsindex d187bb6948..6c5a10613b 100644--- a/crates/agent_session/src/domain/session/tests.rs+++ b/crates/agent_session/src/domain/session/tests.rs@@ -676,6 +676,33 @@ fn auto_accept_cancels_a_request_without_an_allow_option() {);}+#[test]+fn a_withdrawn_bypass_holds_the_next_request_open() {+ let mut machine = live_machine_under(PermissionPolicy::AutoAccept);++ assert!(+ machine+ .handle(Input::SetPermissionPolicy(PermissionPolicy::Prompt))+ .is_empty()+ );+ let effects = machine.handle(permission_request(permission_id(0), allow_or_reject()));++ assert!(matches!(effects[..], [Effect::Log { .. }]));+}++#[test]+fn a_granted_bypass_answers_the_next_request() {+ let mut machine = live_machine_under(PermissionPolicy::Prompt);++ machine.handle(Input::SetPermissionPolicy(PermissionPolicy::AutoAccept));+ let effects = machine.handle(permission_request(permission_id(0), allow_or_reject()));++ assert!(matches!(+ permission_outcome(&effects[1], &permission_id(0)),+ RequestPermissionOutcome::Selected(_)+ ));+}+#[test]fn prompting_holds_the_request_open_and_only_logs_it() {let mut machine = live_machine_under(PermissionPolicy::Prompt);diff --git a/crates/agent_session/src/domain/session/types.rs b/crates/agent_session/src/domain/session/types.rsindex 44da700ecc..23f81eb6db 100644--- a/crates/agent_session/src/domain/session/types.rs+++ b/crates/agent_session/src/domain/session/types.rs@@ -244,6 +244,9 @@ pub enum Input<Token> {/// re-resumed with them between turns; one still opening takes them on/// the request it has yet to send, or re-resumes once live.ReplaceMcpServers(Vec<McpServer>),+ /// How permission requests the agent sends from now on are answered.+ /// Requests already held open for a user stay open.+ SetPermissionPolicy(PermissionPolicy),/// The connection is over. Idempotent: a dead machine ignores it.Closed(CloseReason),}diff --git a/crates/coding_agent_worker/AGENTS.md b/crates/coding_agent_worker/AGENTS.mdindex 91c248fbe4..ec8526a1b4 100644--- a/crates/coding_agent_worker/AGENTS.md+++ b/crates/coding_agent_worker/AGENTS.md@@ -10,8 +10,14 @@ the local ACP process (Claude Code, Codex, ...), and drives native## Start here- `src/main.rs`: module list and the composition root's CLI entrypoint.-- `src/config.rs`: `macrod.toml` — the daemon's one input (see- `config.example.toml`, `default.macrod.toml`).+- `src/config.rs`: `macrod.toml` — the daemon's one input, machine-local only+ (see `config.example.toml`, `default.macrod.toml`). The TUI and+ `macrod service` share `~/.macrod/macrod.toml` (`--config` overrides it),+ locked by `<config>.lock` while running. Name, ownership, and permission+ bypass live only on the web (Settings → Agents → Runtimes); a file that still+ has `[identity]` or a `scope` in `[credentials]` fails to load with an error+ naming that page. The event stream reads the owner from `GET /harnesses/me`+ on each connect. `[macro]` is a dev override that defaults to production.- `src/daemon.rs` + `src/runtime.rs`: the serving core — persistent harnessservice connection, ACP process bridge, start/stop/restart on re-pair.- `src/self_knowledge.rs`: the `<macrod-runtime>` section the bridge@@ -74,8 +80,11 @@ the local ACP process (Claude Code, Codex, ...), and drives native## Recipes-- Add a config field: `src/config.rs` → `config.example.toml` →- `default.macrod.toml` → the TUI config form (`src/tui/config_form/`).+- Add a config field (machine-local only: commands, paths, local launch+ defaults; runtime behaviour a Macro user controls belongs on the web harness+ row, and never put a launch command on the web): `src/config.rs` →+ `config.example.toml` → `default.macrod.toml` → the TUI config form+ (`src/tui/config_form/`).- Handle a new trigger kind: `src/trigger.rs` → `src/dispatch.rs` → its tests.- Add/change a native herdr control (command, model picker): `src/herdr/controls/`→ `README.md` (native controls section) → `src/herdr/acp_agent/`.@@ -88,8 +97,8 @@ external chat replies depend on it. Direct session controls still mint IDs.## Checks- `cargo test -p coding_agent_worker` (`SQLX_OFFLINE` unset).-- `just run` (from this directory) to run the daemon against `macrod.toml` at- the repo root.+- `just run` (from this directory) to run the daemon with+ `--config <repo root>/macrod.toml`, keeping dev off `~/.macrod/macrod.toml`.- Self-update end to end (Linux/macOS): `e2e/build_releases.sh /tmp/relv2000.1.1.1 v2000.1.1.2`, then `python3 e2e/update_e2e.py --releases /tmp/rel--v1 v2000.1.1.1 --v2 v2000.1.1.2`, and `e2e/installer_test.sh /tmp/reldiff --git a/crates/coding_agent_worker/README.md b/crates/coding_agent_worker/README.mdindex 64b77d3672..be21e977c5 100644--- a/crates/coding_agent_worker/README.md+++ b/crates/coding_agent_worker/README.md@@ -143,8 +143,13 @@ Start macrod inside Herdr and choose **Claude Code in herdr** or **Codex inherdr** in Quickstart. Select a workspace directory containing your existingclones and pair with Macro. Native CLI authentication and Git credentials arereused. Each instance has one configuration, with no profiles to choose per run.+The TUI and `macrod service` share `~/.macrod/macrod.toml`+(`%USERPROFILE%\.macrod\macrod.toml` on Windows; `--config` overrides it), and+only one macrod can serve a config at a time. The runtime's name, access, and+permission bypass are set on the web at Settings → Agents → Runtimes.-The Config tab adds **Model** (empty uses the native default), **Extra args**+The Config tab adds **Model** (empty uses the native default, and is only the+launch fallback: Macro picks each agent's model), **Extra args**(shell-style quoting), **Storage** (empty uses automatic instance storage), and**Open sessions** (foreground or background). Switching agents clears theprevious agent's model and extra arguments. Storage and focus preferences remain.diff --git a/crates/coding_agent_worker/config.example.toml b/crates/coding_agent_worker/config.example.tomlindex 9ccbda3179..1a55e9dc28 100644--- a/crates/coding_agent_worker/config.example.toml+++ b/crates/coding_agent_worker/config.example.toml@@ -1,30 +1,22 @@-# Everything an agent harness daemon needs to serve one harness's sessions.+# This machine's macrod config. The TUI and `macrod service` both read+# ~/.macrod/macrod.toml unless given `--config <path>`.## This example omits credentials, so `macrod` starts in Quickstart. Pairing# shows a code for approval in the web app, then adds a `[credentials]` table# containing a bearer token to this file. Keep the resulting config private.+#+# The runtime's name, ownership (private or team), and permission bypass are+# not set here: change them on the web at Settings → Agents → Runtimes.-[macro]-# Base URL of the agent-harness service. Its ws(s) twin hosts the runtime-# gateway the daemon connects to on startup.-api_url = "http://localhost:50009/agent-harness"-# Base URL of the storage service (harness pairing + live event stream).-storage_url = "http://localhost:50009/dss"-# Optional: base URL of the Macro web app, used only to print the pairing-# link. Defaults to https://macro.com/app.-web_url = "http://localhost:3000/app"--[identity]-# Optional: the harness name pairing requests; the approving user may rename-# it. Defaults to this machine's hostname.-name = "erics-macbook"-# Optional: "private" (default) or "team". Team harnesses can run agents any-# of your teammates create. The approval dialog arrives preselected to this.-scope = "private"-# Allow agents to bypass tool permissions, subject to web confirmation.-# When enabled, agents can run commands and edit files without approval.-# Changes apply at the next pairing.-allow_permission_bypass = false+# Optional development overrides. Every key defaults to production.+# [macro]+# # Base URL of the agent-harness service. Its ws(s) twin hosts the runtime+# # gateway the daemon connects to on startup.+# api_url = "http://localhost:50009/agent-harness"+# # Base URL of the storage service (harness pairing + live event stream).+# storage_url = "http://localhost:50009/dss"+# # Base URL of the Macro web app, used for the pairing and settings links.+# web_url = "http://localhost:3000/app"[harness]command = "hermes"@@ -42,7 +34,7 @@ repo_url = "https://github.com/macro-inc/macro"# Optional defaults for the one native Herdr configuration (also editable in the TUI).# [herdr]-# model = "sonnet" # Omit to use the installed agent's default.+# model = "sonnet" # Launch fallback; Macro picks each agent's model.# arguments = [] # Native CLI arguments, one word per element.# storage_path = "/path/to/agents" # Omit for ~/.macrod/herdr/<harness-id>.# focus = true # false opens new sessions in the background.diff --git a/crates/coding_agent_worker/default.macrod.toml b/crates/coding_agent_worker/default.macrod.tomlindex 575022c58b..7ed872b9f5 100644--- a/crates/coding_agent_worker/default.macrod.toml+++ b/crates/coding_agent_worker/default.macrod.toml@@ -1,16 +1,12 @@# macrod configuration. Pairing adds a bearer token here; keep this file private.+# Name, ownership, and permission bypass are set on the web at+# Settings → Agents → Runtimes.-[macro]-api_url = "https://gateway.macro.com/agent-harness"-storage_url = "https://gateway.macro.com/dss"-web_url = "https://macro.com/app"--[identity]-scope = "private"-# Allow agents to bypass tool permissions, subject to web confirmation.-# When enabled, agents can run commands and edit files without approval.-# Changes apply at the next pairing.-allow_permission_bypass = false+# Development overrides; every key defaults to production.+# [macro]+# api_url = "https://gateway.macro.com/agent-harness"+# storage_url = "https://gateway.macro.com/dss"+# web_url = "https://macro.com/app"[harness]command = "hermes"diff --git a/crates/coding_agent_worker/e2e/stand_in_agent.py b/crates/coding_agent_worker/e2e/stand_in_agent.pyindex a07ee95ffd..bf5fdbb403 100644--- a/crates/coding_agent_worker/e2e/stand_in_agent.py+++ b/crates/coding_agent_worker/e2e/stand_in_agent.py@@ -1,6 +1,6 @@"""ACP stand-in for the self-update end-to-end test.-Streams a numbered `tick` notification every 20 ms, carrying its own pid,+Streams a numbered `tick` notification every 2 ms, carrying its own pid,the pid of a background child it started, and the wall-clock time it waswritten, and answers every request."""@@ -31,7 +31,10 @@ def tick():"params": {"n": n, "pid": os.getpid(), "child": child.pid, "t": time.time()},})n += 1- time.sleep(0.02)+ # Well under the shortest update handoff, so `output-in-gap` always+ # sees frames written while nothing was reading; at 20 ms a fast+ # handoff could fall between two ticks and fail the test.+ time.sleep(0.002)threading.Thread(target=tick, daemon=True).start()diff --git a/crates/coding_agent_worker/e2e/update_e2e.py b/crates/coding_agent_worker/e2e/update_e2e.pyindex 69f5278526..a9409e048d 100755--- a/crates/coding_agent_worker/e2e/update_e2e.py+++ b/crates/coding_agent_worker/e2e/update_e2e.py@@ -311,7 +311,8 @@ def run_case(case, releases, v1, v2):base = f"http://127.0.0.1:{gateway.port}"workspace = os.path.join(work, "workspace")os.makedirs(workspace)- with open(os.path.join(workspace, "macrod.toml"), "w") as config:+ os.makedirs(os.path.join(home, ".macrod"))+ with open(os.path.join(home, ".macrod", "macrod.toml"), "w") as config:config.write(f"""[macro]api_url = "{base}"@@ -321,7 +322,6 @@ web_url = "{base}"[credentials]harness_id = "00000000-0000-0000-0000-0000004a125a"token = "mhns_e2e"-scope = "user"[harness]command = "{sys.executable}"diff --git a/crates/coding_agent_worker/e2e/windows_update_test.ps1 b/crates/coding_agent_worker/e2e/windows_update_test.ps1index 5536b76e91..67d1fdf500 100644--- a/crates/coding_agent_worker/e2e/windows_update_test.ps1+++ b/crates/coding_agent_worker/e2e/windows_update_test.ps1@@ -102,6 +102,11 @@ try {$launcher = Join-Path $installDir 'macrod.exe'Check ((& $launcher --version) -eq "macrod $V1") "install.ps1 installed $V1 from the HTTP mirror"+ # macrod keeps ~/.macrod (its config and update log) under HOME when it+ # is set.+ $env:HOME = Join-Path $work 'home'+ $config = Join-Path $env:HOME '.macrod\macrod.toml'+ New-Item -ItemType Directory -Force (Split-Path $config) | Out-Null# A paired-looking config against an unreachable deployment: the panel# serves nothing, but it runs, and its update check runs.@"@@ -110,9 +115,6 @@ api_url = "http://127.0.0.1:9"storage_url = "http://127.0.0.1:9"web_url = "http://127.0.0.1:9"-[identity]-scope = "private"-[harness]command = "cmd"@@ -122,11 +124,8 @@ path = "."[credentials]harness_id = "00000000-0000-0000-0000-0000004a125a"token = "mhns_windows_update_test"-scope = "user"-"@ | Set-Content (Join-Path $runDir 'macrod.toml')+"@ | Set-Content $config$env:MACROD_UPDATE_CHECK_SECONDS = '2'- # macrod keeps ~/.macrod (and its update log) under HOME when it is set.- $env:HOME = Join-Path $work 'home'# Its own console, as a user starts it from a terminal. (PowerShell# names are case-insensitive: $v1 would overwrite the $V1 tag.)diff --git a/crates/coding_agent_worker/justfile b/crates/coding_agent_worker/justfileindex 384822b9ef..2f7087c7d3 100644--- a/crates/coding_agent_worker/justfile+++ b/crates/coding_agent_worker/justfile@@ -3,7 +3,7 @@# just run# RUST_LOG=coding_agent_worker=trace just run # tap the ACP wire (Logs tab)#-# Reads macrod.toml from the repository root.+# Reads macrod.toml from the repository root (not ~/.macrod/macrod.toml).ROOT := justfile_directory() + "/../.."SCRIPTS := ROOT + "/tooling/xtask/crates/xtask_workflows/src/workflows/scripts"@@ -11,7 +11,7 @@ SCRIPTS := ROOT + "/tooling/xtask/crates/xtask_workflows/src/workflows/scripts"# Serve this harness's agent sessions inside the control panel: registration,# bound agents, live sessions, config, pairing, and logs - one process.run:- cd {{ ROOT }} && SQLX_OFFLINE=true cargo run -p coding_agent_worker+ cd {{ ROOT }} && SQLX_OFFLINE=true cargo run -p coding_agent_worker -- --config {{ ROOT }}/macrod.toml# Build the release `macrod` the way the tag workflow does, and prove it is as# self-contained as it claims. Runs the workflow's own scripts rather than adiff --git a/crates/coding_agent_worker/src/config.rs b/crates/coding_agent_worker/src/config.rsindex ff36540b70..a6fb654a9e 100644--- a/crates/coding_agent_worker/src/config.rs+++ b/crates/coding_agent_worker/src/config.rs@@ -1,9 +1,13 @@-//! The daemon's one input: a TOML file describing the Macro deployment it-//! streams from and the harness it runs. See+//! The daemon's one input: `macrod.toml`, this machine's local config - the+//! harness it runs, its workspace, native Herdr defaults, and the pairing+//! credential. The TUI and `macrod service` share one file,+//! `~/.macrod/macrod.toml` ([`default_config_path`]). See//! `config.example.toml` at the crate root.//!-//! Pairing (press `p` in the control panel) adds the harness credential to-//! this file. Treat it as sensitive because that credential is a bearer token.+//! Runtime settings - the name, ownership, and permission bypass - live on the+//! web at Settings → Agents → Runtimes, not here. Pairing (press `p` in the+//! control panel) adds the harness credential to this file. Treat it as+//! sensitive because that credential is a bearer token.use harness_id::HarnessId;use serde::{Deserialize, Serialize};@@ -13,24 +17,27 @@ use std::path::{Path, PathBuf};#[cfg(test)]mod test;+mod environment {+ macro_env_var::maybe_env_var! {+ pub struct Home;+ }+ // Windows usually sets no `HOME`; this is its home directory.+ macro_env_var::maybe_env_var! {+ pub struct Userprofile;+ }+}+/// Everything the daemon needs, parsed from one TOML file.#[derive(Debug, Clone, Deserialize)]#[serde(deny_unknown_fields)]pub struct Config {- /// The Macro deployment this harness's sessions live in.- #[serde(rename = "macro")]+ /// The Macro deployment this harness's sessions live in: production+ /// unless the file overrides it for development.+ #[serde(rename = "macro", default)]pub macro_api: MacroApi,- /// How this daemon introduces itself when pairing.- #[serde(default)]- pub identity: Identity,/// The approved harness credential, absent until pairing completes.#[serde(default)]pub credentials: Option<HarnessCredentials>,- /// Unused: kept so existing configs that still declare a webhook listener- /// continue to parse. The daemon listens over SSE and no longer serves HTTP.- #[serde(default)]- #[expect(dead_code, reason = "accepted only so existing configs still parse")]- server: Option<LegacyServer>,/// The harness process shared by every session.pub harness: Harness,/// The workspace every session runs against.@@ -61,7 +68,8 @@ impl Default for UpdateSettings {#[derive(Debug, Clone, Deserialize)]#[serde(default, deny_unknown_fields)]pub struct HerdrSettings {- /// Native model ID; absent uses the CLI's configured default.+ /// Native model ID; absent uses the CLI's configured default. Only the+ /// native CLI's launch fallback: Macro picks each agent's model.pub model: Option<String>,/// Extra native CLI arguments, already split into words.pub arguments: Vec<String>,@@ -82,19 +90,6 @@ impl Default for HerdrSettings {}}-/// Whether the approved harness is private to its owner or shared with a team.-///-/// This can differ from [`Identity::scope`], which remains the requested scope-/// for the next pairing.-#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]-#[serde(rename_all = "snake_case")]-pub enum HarnessScope {- /// Owned by one user.- User,- /// Owned by a team.- Team,-}-/// The credential pairing minted for this daemon.#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]#[serde(deny_unknown_fields)]@@ -103,8 +98,6 @@ pub struct HarnessCredentials {pub harness_id: HarnessId,/// The bearer token (`mhns_...`).pub token: String,- /// The approved harness ownership scope.- pub scope: HarnessScope,}impl HarnessCredentials {@@ -116,9 +109,10 @@ impl HarnessCredentials {}}-/// The Macro deployment this harness's sessions live in.+/// The Macro deployment this harness's sessions live in. Every field defaults+/// to production; values in the file are development overrides.#[derive(Debug, Clone, Deserialize)]-#[serde(deny_unknown_fields)]+#[serde(default, deny_unknown_fields)]pub struct MacroApi {/// Base URL of the agent-harness service, e.g./// `http://localhost:50009/agent-harness`. Sessions are created and@@ -127,11 +121,20 @@ pub struct MacroApi {/// Base URL of the storage service, e.g. `http://localhost:50009/dss`./// Hosts harness pairing and `GET /webhook/events/stream`.pub storage_url: String,- /// Base URL of the Macro web app, used only to print the pairing link.- #[serde(default = "default_web_url")]+ /// Base URL of the Macro web app, used for the pairing and settings links.pub web_url: String,}+impl Default for MacroApi {+ fn default() -> Self {+ Self {+ api_url: "https://gateway.macro.com/agent-harness".to_owned(),+ storage_url: "https://gateway.macro.com/dss".to_owned(),+ web_url: "https://macro.com/app".to_owned(),+ }+ }+}+impl MacroApi {/// The dial-in URL for this deployment's runtime gateway:/// the API base with a websocket scheme.@@ -145,53 +148,15 @@ impl MacroApi {/// The settings-page URL where a pairing code is approved.pub fn pairing_approval_url(&self, code: &str) -> String {- let base = self.web_url.trim_end_matches('/');- format!("{base}/settings/harness?pair={code}")+ format!("{}?pair={code}", self.settings_url())}-}--/// How this daemon introduces itself when pairing.-#[derive(Debug, Clone, Default, Deserialize)]-#[serde(deny_unknown_fields)]-pub struct Identity {- /// Whether the next pairing may enable permission bypass. Requires web approval.- #[serde(default)]- pub allow_permission_bypass: bool,- /// Requested harness display name; the approving user may rename it.- /// Defaults to this machine's hostname.- #[serde(default)]- pub name: Option<String>,- /// Whether the harness should be private to the approving user or shared- /// with their team. Advisory: the approval dialog arrives preselected to- /// this, and the approving user has the final say.- #[serde(default)]- pub scope: IdentityScope,-}-/// The ownership scope this daemon's pairing asks for.-#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Deserialize)]-#[serde(rename_all = "snake_case")]-pub enum IdentityScope {- /// Only the approving user can run agents on this harness.- #[default]- Private,- /// Any of the approving user's teammates can bind agents to it.- Team,-}--/// Historical `[server]` table from when the daemon received signed webhooks.-#[derive(Debug, Clone, Deserialize)]-#[serde(deny_unknown_fields)]-struct LegacyServer {- #[serde(default)]- #[expect(dead_code, reason = "accepted only so existing configs still parse")]- port: Option<u16>,- #[serde(default)]- #[expect(dead_code, reason = "accepted only so existing configs still parse")]- public_url: Option<String>,- #[serde(default)]- #[expect(dead_code, reason = "accepted only so existing configs still parse")]- signing_secret: Option<String>,+ /// The settings page where runtimes are renamed, shared, and granted+ /// permission bypass.+ pub fn settings_url(&self) -> String {+ let base = self.web_url.trim_end_matches('/');+ format!("{base}/settings/harness")+ }}/// The harness process shared by every session. Generic on purpose: any binary@@ -230,10 +195,6 @@ pub struct Workspace {pub repo_url: Option<String>,}-fn default_web_url() -> String {- "https://macro.com/app".to_owned()-}-/// Why a config failed to load.#[derive(Debug, thiserror::Error)]pub enum ConfigError {@@ -246,6 +207,18 @@ pub enum ConfigError {#[source]source: std::io::Error,},+ /// The file sets something that is configured on the web now.+ #[error(+ "{path} sets {key}, which macrod no longer reads: a runtime's name, access, and \+ permission bypass are set in Macro at Settings → Agents → Runtimes. Delete {key} \+ from the file."+ )]+ WebSetting {+ /// The path that failed.+ path: PathBuf,+ /// The key to delete, e.g. `[identity]`.+ key: &'static str,+ },/// The file is not a valid daemon config.#[error("invalid config at {path}")]Parse {@@ -264,9 +237,109 @@ impl Config {path: path.to_owned(),source,})?;- toml::from_str(&raw).map_err(|source| ConfigError::Parse {+ let parse = |source| ConfigError::Parse {path: path.to_owned(),source,- })+ };+ let table: toml::Table = toml::from_str(&raw).map_err(parse)?;+ if let Some(key) = web_setting_in(&table) {+ return Err(ConfigError::WebSetting {+ path: path.to_owned(),+ key,+ });+ }+ table.try_into().map_err(parse)+ }+}++/// A key older releases wrote for what is now set on the web, if the file has+/// one. Named in the error so the operator knows exactly what to delete.+fn web_setting_in(table: &toml::Table) -> Option<&'static str> {+ if table.contains_key("identity") {+ return Some("[identity]");+ }+ table+ .get("credentials")+ .and_then(toml::Value::as_table)+ .is_some_and(|credentials| credentials.contains_key("scope"))+ .then_some("`scope` in [credentials]")+}++/// The one config location shared by the TUI and `macrod service`:+/// `~/.macrod/macrod.toml` (`%USERPROFILE%\.macrod\macrod.toml` on Windows),+/// next to adapter installs and Herdr storage.+pub fn default_config_path() -> Option<PathBuf> {+ let home = environment::Home::new();+ let user_profile = environment::Userprofile::new();+ config_path_in_home(+ home.as_ref().and_then(|home| home.value()),+ user_profile.as_ref().and_then(|profile| profile.value()),+ )+}++/// `HOME` wins; `USERPROFILE` is the fallback Windows needs.+fn config_path_in_home(home: Option<&str>, user_profile: Option<&str>) -> Option<PathBuf> {+ [home, user_profile]+ .into_iter()+ .flatten()+ .find(|directory| !directory.is_empty())+ .map(|home| PathBuf::from(home).join(".macrod").join("macrod.toml"))+}++/// An exclusive hold on one config: one macrod serves one harness.+/// Released when dropped or when the process exits.+#[derive(Debug)]+pub struct ConfigLock {+ _file: std::fs::File,+}++/// Why a config could not be locked.+#[derive(Debug, thiserror::Error)]+pub enum LockError {+ /// Another process holds the lock.+ #[error("another macrod is already running with {}", path.display())]+ Held {+ /// The config being served.+ path: PathBuf,+ },+ /// The lock file could not be opened or locked.+ #[error("could not lock {}", path.display())]+ Io {+ /// The lock file.+ path: PathBuf,+ /// What opening or locking it returned.+ #[source]+ source: std::io::Error,+ },+}++/// Take the advisory lock `<config>.lock` beside `config`, failing fast when+/// another macrod already holds it.+pub fn lock(config: &Path) -> Result<ConfigLock, LockError> {+ let mut name = config.as_os_str().to_owned();+ name.push(".lock");+ let lock_path = PathBuf::from(name);+ let io_error = |source| LockError::Io {+ path: lock_path.clone(),+ source,+ };+ if let Some(parent) = lock_path+ .parent()+ .filter(|parent| !parent.as_os_str().is_empty())+ {+ std::fs::create_dir_all(parent).map_err(io_error)?;+ }+ let file = std::fs::OpenOptions::new()+ .create(true)+ .truncate(false)+ .write(true)+ .open(&lock_path)+ .map_err(io_error)?;+ match file.try_lock() {+ Ok(()) => Ok(ConfigLock { _file: file }),+ Err(std::fs::TryLockError::WouldBlock) => Err(LockError::Held {+ path: config.to_owned(),+ }),+ Err(std::fs::TryLockError::Error(source)) => Err(io_error(source)),}}diff --git a/crates/coding_agent_worker/src/config/test.rs b/crates/coding_agent_worker/src/config/test.rsindex a034faf552..595a384fab 100644--- a/crates/coding_agent_worker/src/config/test.rs+++ b/crates/coding_agent_worker/src/config/test.rs@@ -1,32 +1,55 @@use super::*;const EXAMPLE: &str = include_str!("../../config.example.toml");+const DEFAULT: &str = include_str!("../../default.macrod.toml");#[test]fn the_example_config_parses() {let config: Config = toml::from_str(EXAMPLE).expect("example config parses");assert_eq!(config.harness.command, "hermes");assert_eq!(config.harness.args, vec!["acp"]);- assert_eq!(config.identity.name.as_deref(), Some("erics-macbook"));- assert_eq!(config.identity.scope, IdentityScope::Private);- assert!(!config.identity.allow_permission_bypass);assert_eq!(config.credentials, None);}#[test]-fn embedded_credentials_parse_with_their_approved_scope() {+fn macro_defaults_to_production() {+ let config: Config = toml::from_str(DEFAULT).expect("default config parses");+ assert_eq!(+ config.macro_api.api_url,+ "https://gateway.macro.com/agent-harness"+ );+ assert_eq!(+ config.macro_api.storage_url,+ "https://gateway.macro.com/dss"+ );+ assert_eq!(config.macro_api.web_url, "https://macro.com/app");+ assert!(config.harness.args.contains(&"acp".to_owned()));+}++#[test]+fn a_partial_macro_table_overrides_only_its_keys() {+ let config: Config = toml::from_str(&format!(+ "{DEFAULT}\n[macro]\nweb_url = \"http://localhost:3000/app\"\n"+ ))+ .expect("partial macro table parses");+ assert_eq!(+ config.macro_api.api_url,+ "https://gateway.macro.com/agent-harness"+ );+ assert_eq!(config.macro_api.web_url, "http://localhost:3000/app");+}++#[test]+fn embedded_credentials_parse() {let with_credentials = format!(- "{EXAMPLE}\n[credentials]\nharness_id = \"{}\"\ntoken = \"mhns_secret\"\nscope = \"team\"\n",+ "{EXAMPLE}\n[credentials]\nharness_id = \"{}\"\ntoken = \"mhns_secret\"\n",harness_id::HarnessId::TEST_A);let config: Config = toml::from_str(&with_credentials).expect("embedded credentials parse");let credentials = config.credentials.expect("credentials");assert_eq!(credentials.harness_id, harness_id::HarnessId::TEST_A);- assert_eq!(credentials.scope, HarnessScope::Team);assert!(credentials.is_valid());- assert_eq!(config.identity.scope, IdentityScope::Private);- assert!(!config.identity.allow_permission_bypass);}#[test]@@ -34,23 +57,66 @@ fn malformed_bearer_token_is_not_valid() {let credentials = HarnessCredentials {harness_id: harness_id::HarnessId::TEST_A,token: "not-a-harness-token".to_owned(),- scope: HarnessScope::User,};assert!(!credentials.is_valid());}+/// Load `contents` from a real file, as macrod does.+fn load(contents: &str) -> Result<Config, ConfigError> {+ let directory = tempfile::tempdir().expect("temp dir");+ let path = directory.path().join("macrod.toml");+ std::fs::write(&path, contents).expect("write config");+ Config::load(&path)+}++#[test]+fn web_settings_in_the_file_fail_naming_where_they_live_now() {+ let identity = load(&format!(+ "{EXAMPLE}\n[identity]\nname = \"erics-macbook\"\nscope = \"team\"\nallow_permission_bypass = true\n"+ ))+ .expect_err("[identity] is refused");+ assert!(matches!(+ identity,+ ConfigError::WebSetting {+ key: "[identity]",+ ..+ }+ ));+ assert!(+ identity+ .to_string()+ .contains("Settings → Agents → Runtimes")+ );++ let scope = load(&format!(+ "{EXAMPLE}\n[credentials]\nharness_id = \"{}\"\ntoken = \"mhns_secret\"\nscope = \"team\"\n",+ harness_id::HarnessId::TEST_A+ ))+ .expect_err("a cached scope is refused");+ assert!(matches!(+ scope,+ ConfigError::WebSetting {+ key: "`scope` in [credentials]",+ ..+ }+ ));+}+#[test]-fn leftover_server_section_is_ignored() {- let with_server =- format!("{EXAMPLE}\n[server]\nport = 8790\npublic_url = \"http://example/macro-events\"\n");- toml::from_str::<Config>(&with_server).expect("legacy server section still parses");+fn the_retired_server_table_is_an_unknown_field() {+ let error =+ load(&format!("{EXAMPLE}\n[server]\nport = 8790\n")).expect_err("[server] is refused");+ assert!(matches!(error, ConfigError::Parse { .. }));}#[test]fn unknown_fields_are_rejected() {let with_typo = EXAMPLE.replace("repo_url", "repo_uri");assert!(toml::from_str::<Config>(&with_typo).is_err());++ let macro_typo = format!("{DEFAULT}\n[macro]\napi_uri = \"http://localhost\"\n");+ assert!(toml::from_str::<Config>(¯o_typo).is_err());}#[test]@@ -58,30 +124,12 @@ fn removed_credential_fields_fail_loudly() {// Pre-pairing configs carried bot credentials; a stale one should fail// with a parse error pointing at the removed key rather than serve with// half an identity.- let stale = EXAMPLE.replace(- "storage_url = \"http://localhost:50009/dss\"",- "storage_url = \"http://localhost:50009/dss\"\nbot_token = \"mbot_x\"",+ let stale = format!(+ "{DEFAULT}\n[macro]\nstorage_url = \"http://localhost:50009/dss\"\nbot_token = \"mbot_x\"\n");assert!(toml::from_str::<Config>(&stale).is_err());}-#[test]-fn identity_args_and_web_url_default() {- let trimmed = EXAMPLE- .replace("args = [\"acp\"]\n", "")- .replace("[identity]\n", "")- .replace("allow_permission_bypass = false\n", "")- .replace("name = \"erics-macbook\"\n", "")- .replace("scope = \"private\"\n", "")- .replace("web_url = \"http://localhost:3000/app\"\n", "");- let config: Config = toml::from_str(&trimmed).expect("identity, args, web_url are optional");- assert!(config.harness.args.is_empty());- assert_eq!(config.identity.name, None);- assert_eq!(config.identity.scope, IdentityScope::Private);- assert!(!config.identity.allow_permission_bypass);- assert_eq!(config.macro_api.web_url, "https://macro.com/app");-}-#[test]fn harness_env_is_optional() {// The example carries no `env`, as every config written before it existed.@@ -105,21 +153,15 @@ fn harness_env_is_optional() {);}-#[test]-fn identity_scope_accepts_team() {- let team = EXAMPLE.replace("scope = \"private\"", "scope = \"team\"");- let config: Config = toml::from_str(&team).expect("team scope parses");- assert_eq!(config.identity.scope, IdentityScope::Team);-- let bogus = EXAMPLE.replace("scope = \"private\"", "scope = \"public\"");- assert!(toml::from_str::<Config>(&bogus).is_err());-}-#[test]fn the_gateway_url_is_the_api_base_with_a_websocket_scheme() {- let config: Config = toml::from_str(EXAMPLE).expect("example config parses");+ let local = MacroApi {+ api_url: "http://localhost:50009/agent-harness".to_owned(),+ storage_url: "http://localhost:50009/dss".to_owned(),+ web_url: "http://localhost:3000/app".to_owned(),+ };assert_eq!(- config.macro_api.gateway_url(),+ local.gateway_url(),"ws://localhost:50009/agent-harness/runtime/ws",);@@ -136,6 +178,57 @@ fn the_gateway_url_is_the_api_base_with_a_websocket_scheme() {secure.pairing_approval_url("KX7M-4QHD"),"https://macro.com/app/settings/harness?pair=KX7M-4QHD",);+ assert_eq!(+ secure.settings_url(),+ "https://macro.com/app/settings/harness"+ );+}++#[test]+fn the_default_config_lives_in_home_or_the_windows_user_profile() {+ assert_eq!(+ config_path_in_home(Some("/home/eric"), Some("C:\\Users\\eric")),+ Some(+ PathBuf::from("/home/eric")+ .join(".macrod")+ .join("macrod.toml")+ )+ );+ assert_eq!(+ config_path_in_home(None, Some("C:\\Users\\eric")),+ Some(+ PathBuf::from("C:\\Users\\eric")+ .join(".macrod")+ .join("macrod.toml")+ )+ );+ assert_eq!(+ config_path_in_home(Some(""), Some("C:\\Users\\eric")),+ Some(+ PathBuf::from("C:\\Users\\eric")+ .join(".macrod")+ .join("macrod.toml")+ )+ );+ assert_eq!(config_path_in_home(None, None), None);+}++#[test]+fn a_second_lock_on_one_config_is_refused_until_the_first_is_released() {+ let directory = tempfile::tempdir().expect("temp dir");+ let path = directory.path().join("macrod.toml");++ let held = lock(&path).expect("first lock");+ let error = lock(&path).expect_err("second lock is refused");+ assert!(matches!(error, LockError::Held { .. }));+ assert!(+ error+ .to_string()+ .contains("another macrod is already running")+ );++ drop(held);+ lock(&path).expect("lock after release");}#[test]diff --git a/crates/coding_agent_worker/src/daemon/test.rs b/crates/coding_agent_worker/src/daemon/test.rsindex beeb72f496..2da8815a4d 100644--- a/crates/coding_agent_worker/src/daemon/test.rs+++ b/crates/coding_agent_worker/src/daemon/test.rs@@ -39,7 +39,6 @@ async fn startup_without_agents_serves_model_probes_and_stop_closes_the_runtime(let credentials = HarnessCredentials {harness_id: harness_id::HarnessId::TEST_A,token: "mhns_test".to_owned(),- scope: crate::config::HarnessScope::User,};let storage_task = tokio::spawn(async move {let (mut socket, _) = storage.accept().await.unwrap();@@ -154,7 +153,6 @@ async fn a_handed_off_agent_keeps_running_and_streaming_under_the_next_daemon()let credentials = HarnessCredentials {harness_id: harness_id::HarnessId::TEST_A,token: "mhns_test".to_owned(),- scope: crate::config::HarnessScope::User,};tokio::spawn(serve_storage(storage));diff --git a/crates/coding_agent_worker/src/main.rs b/crates/coding_agent_worker/src/main.rsindex c411bbcb83..a2b21ed753 100644--- a/crates/coding_agent_worker/src/main.rs+++ b/crates/coding_agent_worker/src/main.rs@@ -9,7 +9,7 @@//!//! A first run starts unpaired: the panel offers pairing (press `p`), the//! user approves the printed code in the web app, and the minted harness-//! credential is embedded in the sensitive `macrod.toml`. Once paired, the+//! credential is embedded in the sensitive `~/.macrod/macrod.toml`. Once paired, the//! daemon connects to the runtime gateway and bridges the configured ACP//! harness, making model discovery available before any agents exist. Each//! `agent_trigger.new` delivery opens a session and forwards the first prompt;@@ -46,6 +46,10 @@ struct Args {/// Internal browser helper, isolated so terminal browsers cannot claim the TUI's stdin.#[arg(long, hide = true)]open_url: Option<String>,+ /// Config file for the control panel; defaults to `~/.macrod/macrod.toml`,+ /// the one `macrod service` also uses.+ #[arg(long)]+ config: Option<std::path::PathBuf>,#[command(subcommand)]command: Option<Command>,}@@ -106,15 +110,6 @@ enum Command {/// Absolute directory sessions run in; created when missing.#[arg(long)]workspace: Option<std::path::PathBuf>,- /// Requested display name for the next pairing.- #[arg(long)]- name: Option<String>,- /// Requested ownership for the next pairing.- #[arg(long, value_enum)]- scope: Option<service::ServiceScope>,- /// Whether the next pairing may enable permission bypass.- #[arg(long)]- allow_permission_bypass: Option<bool>,},/// List the ACP agents installed on this machine as JSON.DetectAgents,@@ -126,6 +121,13 @@ enum Command {},}+/// The one config location, `~/.macrod/macrod.toml`.+fn default_tui_config() -> rootcause::Result<std::path::PathBuf> {+ config::default_config_path().ok_or_else(|| {+ rootcause::report!("no config path: pass --config or set HOME (USERPROFILE on Windows)")+ })+}+#[tokio::main]async fn main() -> ExitCode {// Dialing a `wss` gateway needs a process-wide provider, and rustls@@ -154,9 +156,6 @@ async fn main() -> ExitCode {config,agent,workspace,- name,- scope,- allow_permission_bypass,}) => {// stdout is the event protocol: logs go to stderr, like herdr-acp.tracing_subscriber::fmt()@@ -166,9 +165,6 @@ async fn main() -> ExitCode {config,agent,workspace,- name,- scope,- allow_permission_bypass,}).await{@@ -240,10 +236,28 @@ async fn main() -> ExitCode {}None => {}}- let config_path = std::path::Path::new("macrod.toml");-// The TUI owns the terminal, so its logs go to a ring buffer it renders.+ // Installed first so the config move and load below log into it.let logs = tui::LogBuffer::install();+ let config_path = match args.config {+ Some(path) => path,+ None => match default_tui_config() {+ Ok(path) => path,+ Err(error) => {+ eprintln!("macrod: {error:?}");+ return ExitCode::FAILURE;+ }+ },+ };+ // Released by the exec of an update handoff (the descriptor is+ // close-on-exec); the replacement process takes it again right here.+ let _lock = match config::lock(&config_path) {+ Ok(lock) => lock,+ Err(error) => {+ eprintln!("macrod: {error}");+ return ExitCode::FAILURE;+ }+ };// The agent the macrod this process replaced was relaying, if any.#[cfg(unix)]let mut inherited = handoff::take_inherited();@@ -254,7 +268,7 @@ async fn main() -> ExitCode {from_handoff: inherited.is_some(),});loop {- match tui::run(config_path, logs.clone(), inherited.take()).await {+ match tui::run(&config_path, logs.clone(), inherited.take()).await {Ok(None) => return ExitCode::SUCCESS,#[cfg(unix)]Ok(Some(restart)) => {diff --git a/crates/coding_agent_worker/src/outbound/pairing.rs b/crates/coding_agent_worker/src/outbound/pairing.rsindex 27042ebea2..9d90e92f41 100644--- a/crates/coding_agent_worker/src/outbound/pairing.rs+++ b/crates/coding_agent_worker/src/outbound/pairing.rs@@ -5,14 +5,13 @@//! control panel drives it frame by frame.use harnesses::domain::models::{- ClaimPairingRequest, ClaimedPairing, CreatePairingRequest, CreatedPairing, HarnessOwner,- RequestedHarnessScope,+ ClaimPairingRequest, ClaimedPairing, CreatePairingRequest, CreatedPairing,};use reqwest::StatusCode;use rootcause::prelude::ResultExt as _;use uuid::Uuid;-use crate::config::{Config, HarnessCredentials, HarnessScope};+use crate::config::{Config, HarnessCredentials};/// One claim poll's answer.#[derive(Debug)]@@ -44,27 +43,15 @@ impl PairingClient {}}- /// Open a pairing using the config's identity.- pub async fn start(&self, config: &Config) -> rootcause::Result<CreatedPairing> {- let name = config- .identity- .name- .clone()- .or_else(local_hostname)- .unwrap_or_else(|| "macrod".to_owned());- let scope = match config.identity.scope {- crate::config::IdentityScope::Private => RequestedHarnessScope::Private,- crate::config::IdentityScope::Team => RequestedHarnessScope::Team,- };-+ /// Open a pairing named after this machine. Ownership, permission bypass,+ /// and the final name are the approving user's choice on the web.+ pub async fn start(&self) -> rootcause::Result<CreatedPairing> {let response = self.http.post(format!("{}/harness-pairings", self.base)).json(&CreatePairingRequest {- allow_permission_bypass: Some(config.identity.allow_permission_bypass),- name,+ name: machine_name(),host: Some(host_info()),- scope: Some(scope),}).send().await@@ -116,17 +103,18 @@ impl PairingClient {}fn credentials_from(claimed: ClaimedPairing) -> HarnessCredentials {- let scope = match claimed.harness.owner {- HarnessOwner::User { .. } => HarnessScope::User,- HarnessOwner::Team { .. } => HarnessScope::Team,- };HarnessCredentials {harness_id: claimed.harness.id,token: claimed.token,- scope,}}+/// This machine's hostname, or `macrod` when it has none: the name a pairing+/// requests and the panel shows before the server's name is known.+pub fn machine_name() -> String {+ local_hostname().unwrap_or_else(|| "macrod".to_owned())+}+fn local_hostname() -> Option<String> {std::process::Command::new("hostname").output()diff --git a/crates/coding_agent_worker/src/outbound/stream.rs b/crates/coding_agent_worker/src/outbound/stream.rsindex 02b5f5c209..f3027a8bc2 100644--- a/crates/coding_agent_worker/src/outbound/stream.rs+++ b/crates/coding_agent_worker/src/outbound/stream.rs@@ -13,12 +13,12 @@ use std::pin::Pin;use eventsource_stream::{Event, EventStreamError, Eventsource as _};use futures::{Stream, StreamExt as _};-use harnesses::domain::models::HarnessAgent;+use harnesses::domain::models::{Harness, HarnessAgent, HarnessOwner};use rootcause::prelude::ResultExt as _;use serde::de::DeserializeOwned;use webhook::domain::models::{WebhookFilter, WebhookScope};-use crate::config::{HarnessCredentials, HarnessScope, MacroApi};+use crate::config::{HarnessCredentials, MacroApi};#[cfg(test)]mod test;@@ -26,10 +26,10 @@ mod test;const HARNESS_TOKEN_HEADER: &str = "x-macro-harness-token";/// Map the harness's ownership onto the stream query's workspace scope.-pub fn stream_scope(scope: HarnessScope) -> WebhookScope {- match scope {- HarnessScope::User => WebhookScope::User,- HarnessScope::Team => WebhookScope::Team,+pub fn stream_scope(owner: &HarnessOwner) -> WebhookScope {+ match owner {+ HarnessOwner::User { .. } => WebhookScope::User,+ HarnessOwner::Team { .. } => WebhookScope::Team,}}@@ -38,7 +38,6 @@ pub struct EventStreamClient {http: reqwest::Client,base: String,token: String,- scope: WebhookScope,}impl EventStreamClient {@@ -48,7 +47,6 @@ impl EventStreamClient {http: reqwest::Client::new(),base: config.storage_url.trim_end_matches('/').to_owned(),token: credentials.token.clone(),- scope: stream_scope(credentials.scope),}}@@ -83,6 +81,19 @@ impl EventStreamClient {.context(format!("could not read the service's answer to {what}"))?)}+ /// The workspace scope of this harness's owner, read from the server on+ /// every connect so an ownership change on the web applies without+ /// re-pairing.+ async fn scope(&self) -> rootcause::Result<WebhookScope> {+ let harness: Harness = self+ .read(+ "read this harness's owner",+ self.http.get(format!("{}/harnesses/me", self.base)),+ )+ .await?;+ Ok(stream_scope(&harness.owner))+ }+/// The agents currently bound to this harness, as sorted bot-id strings —/// the shape the stream filter carries.pub async fn bound_bot_ids(&self) -> rootcause::Result<Vec<String>> {@@ -108,13 +119,14 @@ impl EventStreamClient {) -> rootcause::Result<EventStream<E>> {let filters =serde_json::to_string(filters).context("could not encode the stream filters")?;+ let scope = self.scope().await?;let response = self.credentialed(self.http.get(format!("{}/webhook/events/stream", self.base)).header(reqwest::header::ACCEPT, "text/event-stream").query(&[- ("scope", self.scope.to_string().as_str()),+ ("scope", scope.to_string().as_str()),("filters", filters.as_str()),]),)diff --git a/crates/coding_agent_worker/src/outbound/stream/test.rs b/crates/coding_agent_worker/src/outbound/stream/test.rsindex ef505108a7..f35bff745e 100644--- a/crates/coding_agent_worker/src/outbound/stream/test.rs+++ b/crates/coding_agent_worker/src/outbound/stream/test.rs@@ -1,5 +1,5 @@use super::*;-use crate::config::{HarnessCredentials, HarnessScope, MacroApi};+use crate::config::{HarnessCredentials, MacroApi};use harness_id::HarnessId;use webhook::domain::models::WebhookFilter;@@ -13,16 +13,16 @@ fn test_client(storage_url: &str) -> EventStreamClient {&HarnessCredentials {harness_id: HarnessId::TEST_A,token: "mhns_test".to_owned(),- scope: HarnessScope::User,},)}-#[test]-fn stream_scope_maps_harness_ownership() {- assert_eq!(stream_scope(HarnessScope::User), WebhookScope::User);- assert_eq!(stream_scope(HarnessScope::Team), WebhookScope::Team);-}+const TEAM_HARNESS: &str = "HTTP/1.1 200 OK\r\nContent-Type: application/json\r\nConnection: close\r\n\r\n\+ {\"allow_permission_bypass\":false,\"id\":\"00000000-0000-0000-0000-00000000000a\",\+ \"kind\":\"macrod\",\"name\":\"desk\",\+ \"owner\":{\"type\":\"team\",\"team_id\":\"00000000-0000-0000-0000-000000000007\"},\+ \"created_by\":\"macro|[email protected]\",\"created_at\":\"2026-11-01T00:00:00Z\",\+ \"updated_at\":\"2026-11-01T00:00:00Z\",\"connected\":true,\"last_connected_at\":null}";#[derive(Debug, PartialEq, Eq, serde::Deserialize)]struct Envelope {@@ -31,7 +31,8 @@ struct Envelope {#[tokio::test]async fn connect_yields_typed_envelopes_and_skips_keep_alives_and_junk() {- let url = serve_once(+ let (url, requests) = serve(vec![+ TEAM_HARNESS,"HTTP/1.1 200 OK\r\nContent-Type: text/event-stream\r\nConnection: close\r\n\r\n\: keep-alive\n\n\id: evt-1\n\@@ -40,7 +41,7 @@ async fn connect_yields_typed_envelopes_and_skips_keep_alives_and_junk() {data: not json\n\n\data: {\"other\":true}\n\n\data: {\"n\":\r\ndata: 2}\r\n\r\n",- )+ ]).await;let client = test_client(&url);let mut stream = client@@ -56,13 +57,25 @@ async fn connect_yields_typed_envelopes_and_skips_keep_alives_and_junk() {let second = stream.next_event().await.expect("read").expect("second");assert_eq!(second, Envelope { n: 2 });assert!(stream.next_event().await.expect("closed").is_none());++ // The owner comes from the server, so the stream is scoped to the team.+ let requests = requests.lock().unwrap();+ assert!(+ requests[0].starts_with("GET /harnesses/me "),+ "{requests:?}"+ );+ assert!(+ requests[1].starts_with("GET /webhook/events/stream?scope=team&"),+ "{requests:?}"+ );}#[tokio::test]async fn connect_refuses_a_non_2xx_answer() {- let url = serve_once(+ let (url, _) = serve(vec![+ TEAM_HARNESS,"HTTP/1.1 403 Forbidden\r\nContent-Type: application/json\r\nConnection: close\r\n\r\n{\"message\":\"nope\"}",- )+ ]).await;let client = test_client(&url);@@ -76,12 +89,12 @@ async fn connect_refuses_a_non_2xx_answer() {#[tokio::test]async fn bound_bot_ids_are_sorted_and_unique() {- let url = serve_once(+ let (url, _) = serve(vec!["HTTP/1.1 200 OK\r\nContent-Type: application/json\r\nConnection: close\r\n\r\n\[{\"bot_id\":\"00000000-0000-0000-0000-000000000002\",\"name\":\"b\",\"handle\":\"b\"},\{\"bot_id\":\"00000000-0000-0000-0000-000000000001\",\"name\":\"a\",\"handle\":\"a\"},\{\"bot_id\":\"00000000-0000-0000-0000-000000000002\",\"name\":\"b2\",\"handle\":\"b2\"}]",- )+ ]).await;let client = test_client(&url);let ids = client.bound_bot_ids().await.expect("list agents");@@ -94,19 +107,31 @@ async fn bound_bot_ids_are_sorted_and_unique() {);}-async fn serve_once(response: &'static str) -> String {+/// Answer one connection per response, in order, recording each request line.+async fn serve(+ responses: Vec<&'static str>,+) -> (String, std::sync::Arc<std::sync::Mutex<Vec<String>>>) {use tokio::io::{AsyncReadExt as _, AsyncWriteExt as _};let listener = tokio::net::TcpListener::bind("127.0.0.1:0").await.expect("bind test listener");let addr = listener.local_addr().expect("listener address");+ let requests = std::sync::Arc::new(std::sync::Mutex::new(Vec::new()));+ let recorded = requests.clone();tokio::spawn(async move {- let (mut socket, _) = listener.accept().await.expect("accept");- let mut buf = vec![0u8; 4096];- let _ = socket.read(&mut buf).await;- let _ = socket.write_all(response.as_bytes()).await;- let _ = socket.shutdown().await;+ for response in responses {+ let (mut socket, _) = listener.accept().await.expect("accept");+ let mut buf = vec![0u8; 4096];+ let read = socket.read(&mut buf).await.unwrap_or(0);+ let request = String::from_utf8_lossy(&buf[..read]);+ recorded+ .lock()+ .unwrap()+ .push(request.lines().next().unwrap_or_default().to_owned());+ let _ = socket.write_all(response.as_bytes()).await;+ let _ = socket.shutdown().await;+ }});- format!("http://{addr}")+ (format!("http://{addr}"), requests)}diff --git a/crates/coding_agent_worker/src/runtime/test.rs b/crates/coding_agent_worker/src/runtime/test.rsindex 4558d98791..3e85ac3080 100644--- a/crates/coding_agent_worker/src/runtime/test.rs+++ b/crates/coding_agent_worker/src/runtime/test.rs@@ -1,5 +1,4 @@use super::*;-use crate::config::HarnessScope;use futures::StreamExt as _;use harness_id::HarnessId;use tokio::net::TcpListener;@@ -15,7 +14,6 @@ fn start_runtime(listener: &TcpListener) -> Runtime {&HarnessCredentials {harness_id: HarnessId::TEST_A,token: "mhns_test".to_owned(),- scope: HarnessScope::User,},Harness {command: "cat".to_owned(),diff --git a/crates/coding_agent_worker/src/service.rs b/crates/coding_agent_worker/src/service.rsindex 40f02125d0..f0d7719b5e 100644--- a/crates/coding_agent_worker/src/service.rs+++ b/crates/coding_agent_worker/src/service.rs@@ -2,7 +2,8 @@//!//! The Macro desktop app bundles macrod and manages it as a child process.//! `macrod service` is the contract between them: setup flags configure-//! `macrod.toml` without a TUI, state changes stream to stdout as one JSON+//! `macrod.toml` (the same `~/.macrod/macrod.toml` the TUI uses, locked while+//! serving) without a TUI, state changes stream to stdout as one JSON//! object per line, and the process shuts down on SIGTERM, Ctrl-C, or stdin//! closing (the embedder exited). `macrod detect-agents` and `macrod inspect`//! are the matching one-shot queries.@@ -14,79 +15,37 @@ use rootcause::prelude::ResultExt as _;use serde::Serialize;use tokio::io::AsyncReadExt as _;-use crate::config::{Config, HarnessCredentials, IdentityScope};+use crate::config::{self, Config, ConfigLock, HarnessCredentials, default_config_path};use crate::daemon::Daemon;use crate::outbound::pairing::{ClaimStatus, PairingClient};use crate::tui::agent_catalog::{self, DetectedAgent, PathCommands};use crate::tui::config_form::{ConfigForm, Setting};-mod environment {- macro_env_var::maybe_env_var! {- pub struct Home;- }-}-#[cfg(test)]mod test;/// How often the serving core's liveness is re-checked once running.const DAEMON_WATCH: Duration = Duration::from_secs(5);-/// The ownership scope a service setup asks for.-#[derive(Debug, Clone, Copy, clap::ValueEnum)]-pub enum ServiceScope {- /// Only the approving user can run agents on this harness.- Private,- /// Any of the approving user's teammates can bind agents to it.- Team,-}--impl From<ServiceScope> for IdentityScope {- fn from(scope: ServiceScope) -> Self {- match scope {- ServiceScope::Private => IdentityScope::Private,- ServiceScope::Team => IdentityScope::Team,- }- }-}--/// Everything `macrod service` accepts.+/// Everything `macrod service` accepts. Runtime settings (name, ownership,+/// permission bypass) are set on the web, never here.pub struct ServiceOptions {- /// Config file; absent uses [`default_config_path`].+ /// Config file; absent uses [`default_config_path`], the one the TUI+ /// also uses.pub config: Option<PathBuf>,/// Agent preset id from `detect-agents` to configure.pub agent: Option<String>,/// Workspace directory sessions run in; created when missing.pub workspace: Option<PathBuf>,- /// Requested display name for the next pairing.- pub name: Option<String>,- /// Requested ownership for the next pairing.- pub scope: Option<ServiceScope>,- /// Whether the next pairing may enable permission bypass.- pub allow_permission_bypass: Option<bool>,}impl ServiceOptions {/// Whether any setup flag was passed, i.e. the config should be (re)written.fn wants_setup(&self) -> bool {- self.agent.is_some()- || self.workspace.is_some()- || self.name.is_some()- || self.scope.is_some()- || self.allow_permission_bypass.is_some()+ self.agent.is_some() || self.workspace.is_some()}}-/// Where the service keeps its config when the embedder names none: the same-/// `~/.macrod` directory that holds adapter installs. Deliberately not the-/// TUI's `./macrod.toml`, so a desktop-managed daemon and a manually run one-/// stay separate harnesses.-pub fn default_config_path() -> Option<PathBuf> {- environment::Home::new()- .and_then(|home| home.value().map(PathBuf::from))- .map(|home| home.join(".macrod").join("macrod.toml"))-}-/// One state change, written to stdout as a single JSON line.#[derive(Debug, Serialize)]#[serde(tag = "event", rename_all = "snake_case")]@@ -147,11 +106,15 @@ fn fatal_root_message(message: &str) -> String {/// Run headless until SIGTERM, Ctrl-C, or stdin closes.pub async fn run(options: ServiceOptions) -> rootcause::Result<()> {+ let path = config_path(&options)?;+ // Held until exit: the TUI shares this config, and one harness must not+ // be served twice.+ let _lock: ConfigLock = config::lock(&path)?;let shutdown = shutdown_requested();tokio::pin!(shutdown);let daemon = tokio::select! {- daemon = start(&options) => daemon?,+ daemon = start(&path, &options) => daemon?,() = &mut shutdown => return Ok(()),};@@ -171,8 +134,7 @@ pub async fn run(options: ServiceOptions) -> rootcause::Result<()> {}/// Configure, install, pair, and start the serving core.-async fn start(options: &ServiceOptions) -> rootcause::Result<Daemon> {- let path = config_path(options)?;+async fn start(path: &Path, options: &ServiceOptions) -> rootcause::Result<Daemon> {if !path.exists() && !options.wants_setup() {rootcause::bail!("no config at {}; pass --agent and --workspace to create one",@@ -181,10 +143,10 @@ async fn start(options: &ServiceOptions) -> rootcause::Result<Daemon> {}if options.wants_setup() {let agent = options.agent.as_deref().map(installed_agent).transpose()?;- configure(&path, options, agent)?;+ configure(path, options, agent)?;}- let config = Config::load(&path)?;+ let config = Config::load(path)?;let commands = PathCommands::discover();let agent = agent_catalog::detected_for(&config.harness, &commands);emit(&Event::Config {@@ -218,12 +180,12 @@ async fn start(options: &ServiceOptions) -> rootcause::Result<Daemon> {.filter(HarnessCredentials::is_valid){Some(credentials) => credentials,- None => pair(&path, &config).await?,+ None => pair(path, &config).await?,};// Pairing persisted into the file; serve what is actually on disk.- let config = Config::load(&path)?;+ let config = Config::load(path)?;let harness_id = credentials.harness_id.to_string();- let daemon = Daemon::start(config, credentials, &path, None).await?;+ let daemon = Daemon::start(config, credentials, path, None).await?;emit(&Event::Running { harness_id });Ok(daemon)}@@ -234,7 +196,7 @@ async fn start(options: &ServiceOptions) -> rootcause::Result<Daemon> {/// process, and the embedder decides whether to start over.async fn pair(path: &Path, config: &Config) -> rootcause::Result<HarnessCredentials> {let client = PairingClient::new(config);- let created = client.start(config).await?;+ let created = client.start().await?;emit(&Event::Pairing {code: created.code.clone(),url: config.macro_api.pairing_approval_url(&created.code),@@ -268,7 +230,9 @@ fn config_path(options: &ServiceOptions) -> rootcause::Result<PathBuf> {.config.clone().or_else(default_config_path)- .ok_or_else(|| rootcause::report!("no config path: pass --config or set HOME"))+ .ok_or_else(|| {+ rootcause::report!("no config path: pass --config or set HOME (USERPROFILE on Windows)")+ })}/// Create or edit the config from setup flags, comment-preservingly.@@ -291,17 +255,7 @@ fn configure())?;}- let mut form = if path.exists() {- let mut form = ConfigForm::load(path)?;- if let Some(agent) = &agent {- form.apply_agent(agent);- }- if let Some(workspace) = &options.workspace {- form.apply_text(Setting::Workspace, &workspace.to_string_lossy())- .map_err(|message| rootcause::report!("{message}"))?;- }- form- } else {+ if !path.exists() {let agent = agent.as_ref().ok_or_else(|| rootcause::report!("creating a config needs --agent"))?;@@ -309,19 +263,15 @@ fn configure(.workspace.as_deref().ok_or_else(|| rootcause::report!("creating a config needs --workspace"))?;- ConfigForm::create(path, agent, workspace)?;- ConfigForm::load(path)?- };-- if let Some(name) = &options.name {- form.apply_text(Setting::Name, name)- .map_err(|message| rootcause::report!("{message}"))?;+ return ConfigForm::create(path, agent, workspace);}- if let Some(scope) = options.scope {- form.set_scope(scope.into());+ let mut form = ConfigForm::load(path)?;+ if let Some(agent) = &agent {+ form.apply_agent(agent);}- if let Some(allowed) = options.allow_permission_bypass {- form.set_permission_bypass(allowed);+ if let Some(workspace) = &options.workspace {+ form.apply_text(Setting::Workspace, &workspace.to_string_lossy())+ .map_err(|message| rootcause::report!("{message}"))?;}form.save()}@@ -429,9 +379,6 @@ pub fn inspect_json(config: Option<PathBuf>) -> rootcause::Result<String> {config,agent: None,workspace: None,- name: None,- scope: None,- allow_permission_bypass: None,})?;let mut inspection = Inspection {config_path: path.display().to_string(),diff --git a/crates/coding_agent_worker/src/service/test.rs b/crates/coding_agent_worker/src/service/test.rsindex 02bd63a8e9..c9dc2a34fe 100644--- a/crates/coding_agent_worker/src/service/test.rs+++ b/crates/coding_agent_worker/src/service/test.rs@@ -1,18 +1,6 @@use super::*;-use crate::config::HarnessScope;use harness_id::HarnessId;-fn setup_options(workspace: &Path) -> ServiceOptions {- ServiceOptions {- config: None,- agent: Some("custom".to_owned()),- workspace: Some(workspace.to_owned()),- name: Some("Desk".to_owned()),- scope: Some(ServiceScope::Team),- allow_permission_bypass: Some(true),- }-}-#[test]fn creates_a_config_from_setup_flags() {let directory = tempfile::tempdir().expect("temp dir");@@ -22,16 +10,22 @@ fn creates_a_config_from_setup_flags() {let workspace = directory.path().join("workspace");let agent = agent_catalog::custom("hermes acp").expect("custom agent");- configure(&path, &setup_options(&workspace), Some(agent)).expect("configure");+ configure(+ &path,+ &ServiceOptions {+ config: None,+ agent: Some("custom".to_owned()),+ workspace: Some(workspace.clone()),+ },+ Some(agent),+ )+ .expect("configure");let config = Config::load(&path).expect("load created config");assert_eq!(config.harness.command, "hermes");assert_eq!(config.harness.args, ["acp"]);assert_eq!(config.workspace.path, workspace);assert!(workspace.is_dir());- assert_eq!(config.identity.name.as_deref(), Some("Desk"));- assert_eq!(config.identity.scope, IdentityScope::Team);- assert!(config.identity.allow_permission_bypass);assert!(config.credentials.is_none());}@@ -41,12 +35,20 @@ fn reconfigures_without_dropping_credentials() {let path = directory.path().join("macrod.toml");let workspace = directory.path().join("workspace");let agent = agent_catalog::custom("hermes acp").expect("custom agent");- configure(&path, &setup_options(&workspace), Some(agent)).expect("configure");+ configure(+ &path,+ &ServiceOptions {+ config: None,+ agent: Some("custom".to_owned()),+ workspace: Some(workspace),+ },+ Some(agent),+ )+ .expect("configure");let credentials = HarnessCredentials {harness_id: HarnessId::TEST_A,token: "mhns_test_secret".to_owned(),- scope: HarnessScope::User,};ConfigForm::load(&path).expect("load form")@@ -60,9 +62,6 @@ fn reconfigures_without_dropping_credentials() {config: None,agent: None,workspace: Some(moved.clone()),- name: None,- scope: Some(ServiceScope::Private),- allow_permission_bypass: None,},None,)@@ -71,10 +70,8 @@ fn reconfigures_without_dropping_credentials() {let config = Config::load(&path).expect("load edited config");assert_eq!(config.credentials, Some(credentials));assert_eq!(config.workspace.path, moved);- assert_eq!(config.identity.scope, IdentityScope::Private);// Untouched settings survive the edit.- assert_eq!(config.identity.name.as_deref(), Some("Desk"));- assert!(config.identity.allow_permission_bypass);+ assert_eq!(config.harness.command, "hermes");}#[test]@@ -87,9 +84,6 @@ fn creating_a_config_requires_an_agent() {config: None,agent: None,workspace: Some(directory.path().to_owned()),- name: None,- scope: None,- allow_permission_bypass: None,},None,)diff --git a/crates/coding_agent_worker/src/tui.rs b/crates/coding_agent_worker/src/tui.rsindex 8c8a317e4d..c68cf525e1 100644--- a/crates/coding_agent_worker/src/tui.rs+++ b/crates/coding_agent_worker/src/tui.rs@@ -3,7 +3,8 @@//! `macrod` runs the serving core (SSE listener, harness bridge) inside a//! terminal UI that shows what the server knows about this harness - its//! registration, the agents bound to it, their sessions, and the daemon's-//! own logs - and drives its lifecycle: edit `macrod.toml`, pair (or re-pair,+//! own logs - and drives its lifecycle: edit this machine's `macrod.toml`+//! (runtime settings live on the web), pair (or re-pair,//! restarting the core on the new credential), and retire the harness.// `service` reuses agent discovery and the comment-preserving config editor;diff --git a/crates/coding_agent_worker/src/tui/app.rs b/crates/coding_agent_worker/src/tui/app.rsindex 472e25523e..2001573b96 100644--- a/crates/coding_agent_worker/src/tui/app.rs+++ b/crates/coding_agent_worker/src/tui/app.rs@@ -17,7 +17,7 @@ use super::platform::{BrowserTarget, copy_to_clipboard};use super::process;use crate::config::{Config, HarnessCredentials};use crate::daemon::{Daemon, InheritedAgent};-use crate::outbound::pairing::{ClaimStatus, PairingClient};+use crate::outbound::pairing::{ClaimStatus, PairingClient, machine_name};/// How often the dashboard re-reads the server.pub(crate) const REFRESH_EVERY: Duration = Duration::from_secs(3);@@ -96,16 +96,13 @@ pub(crate) enum Mode {},}-#[derive(Debug, Clone, Copy, PartialEq, Eq)]-pub(crate) enum ApplyConfig {- Now,- NextPairing,-}-/// Everything the UI renders from.pub(crate) struct App {pub(crate) config_path: PathBuf,pub(crate) config: Config,+ /// This machine's hostname: the name pairing requests, shown until the+ /// server's name is known.+ pub(crate) machine_name: String,pub(crate) credentials: Option<HarnessCredentials>,pub(crate) snapshot: Snapshot,/// This process's pid - the TUI and the daemon are this one process.@@ -148,6 +145,7 @@ impl App {Ok(Self {config_path: config_path.to_owned(),config,+ machine_name: machine_name(),credentials,snapshot: Snapshot::default(),pid: std::process::id(),@@ -267,14 +265,14 @@ impl App {}pub(crate) async fn start_pairing(&mut self) {- // Re-read the config so an edit saved a moment ago (a new name or- // scope) is what this pairing asks for.+ // Re-read the config so a deployment edited a moment ago is the one+ // this pairing targets.match Config::load(&self.config_path) {Ok(config) => self.config = config,Err(error) => return self.fail(format!("config reload failed: {error}")),}let client = PairingClient::new(&self.config);- match client.start(&self.config).await {+ match client.start().await {Ok(created) => {// The approval page pre-fills the code, so opening the// browser is usually the whole remaining gesture.@@ -446,7 +444,7 @@ impl App {async fn apply_agent(&mut self, agent: &DetectedAgent) {self.form.apply_agent(agent);- self.save_config(ApplyConfig::Now).await;+ self.save_config().await;}pub(crate) async fn poll_install(&mut self) {@@ -495,17 +493,7 @@ impl App {if let Err(message) = self.form.apply_text(setting, &input) {return self.fail(message);}- let apply = match setting {- Setting::Workspace- | Setting::HerdrModel- | Setting::HerdrArguments- | Setting::HerdrStorage => ApplyConfig::Now,- Setting::Name => ApplyConfig::NextPairing,- Setting::Agent | Setting::Scope | Setting::PermissionBypass | Setting::HerdrFocus => {- unreachable!("not edited as text")- }- };- self.save_config(apply).await;+ self.save_config().await;}async fn on_agent_picker_key(&mut self, key: KeyEvent) {@@ -561,7 +549,7 @@ impl App {}}- async fn save_config(&mut self, apply: ApplyConfig) {+ async fn save_config(&mut self) {match self.form.save() {Ok(()) => match Config::load(&self.config_path) {Ok(config) => {@@ -570,14 +558,10 @@ impl App {// means a restart to apply it.self.selected_setting =self.selected_setting.min(settings(&self.config).len() - 1);- if apply == ApplyConfig::Now && self.paired() {- if self.restart_daemon().await {- self.ok("saved and applied");- }- } else if apply == ApplyConfig::NextPairing && self.paired() {- self.ok("saved; applies at next pairing");- } else {+ if !self.paired() {self.ok("saved");+ } else if self.restart_daemon().await {+ self.ok("saved and applied");}}Err(error) => self.fail(format!("saved, but reload failed: {error}")),@@ -609,6 +593,11 @@ impl App {}KeyCode::Char('p') => self.start_pairing().await,KeyCode::Char('d') if self.paired() => self.mode = Mode::ConfirmDelete,+ KeyCode::Char('o') if self.tab == Tab::Config => {+ self.pending_browser = Some(BrowserTarget::Settings(+ self.config.macro_api.settings_url(),+ ));+ }KeyCode::Up | KeyCode::Char('k') if self.tab == Tab::Config => {self.selected_setting = self.selected_setting.saturating_sub(1);}@@ -629,21 +618,11 @@ impl App {.unwrap_or(self.agents.len());self.mode = Mode::AgentPicker { selected };}- Setting::Scope => {- self.form.toggle_scope(&self.config);- self.save_config(ApplyConfig::NextPairing).await;- }- Setting::PermissionBypass => {- self.form- .set_permission_bypass(!self.config.identity.allow_permission_bypass);- self.save_config(ApplyConfig::NextPairing).await;- }Setting::HerdrFocus => {self.form.toggle_herdr_focus(&self.config);- self.save_config(ApplyConfig::Now).await;+ self.save_config().await;}setting @ (Setting::Workspace- | Setting::Name| Setting::HerdrModel| Setting::HerdrArguments| Setting::HerdrStorage) => {diff --git a/crates/coding_agent_worker/src/tui/config_form.rs b/crates/coding_agent_worker/src/tui/config_form.rsindex 3abb5b0308..cf96dd7623 100644--- a/crates/coding_agent_worker/src/tui/config_form.rs+++ b/crates/coding_agent_worker/src/tui/config_form.rs@@ -6,7 +6,7 @@ use rootcause::prelude::ResultExt as _;use toml_edit::{DocumentMut, Item, value};use super::agent_catalog::{DetectedAgent, name_for};-use crate::config::{Config, HarnessCredentials, IdentityScope};+use crate::config::{Config, HarnessCredentials};#[cfg(test)]mod test;@@ -35,12 +35,6 @@ pub enum Setting {Agent,/// Directory sessions run in.Workspace,- /// Display name requested during pairing.- Name,- /// Private or team ownership requested during pairing.- Scope,- /// Whether the next pairing may enable permission bypass.- PermissionBypass,/// Native model override; empty uses the installed agent's default.HerdrModel,/// Optional arguments passed to the native agent.@@ -57,9 +51,6 @@ impl Setting {match self {Self::Agent => "Agent",Self::Workspace => "Workspace",- Self::Name => "Name",- Self::Scope => "Access",- Self::PermissionBypass => "Full Access",Self::HerdrModel => "Model",Self::HerdrArguments => "Extra args",Self::HerdrStorage => "Storage",@@ -76,14 +67,9 @@ impl Setting {}}-/// Settings in keyboard navigation order.-pub const SETTINGS: &[Setting] = &[- Setting::Agent,- Setting::Workspace,- Setting::Name,- Setting::Scope,- Setting::PermissionBypass,-];+/// Settings in keyboard navigation order. Machine-local only: the runtime's+/// name, ownership, and permission bypass are set on the web.+pub const SETTINGS: &[Setting] = &[Setting::Agent, Setting::Workspace];/// Settings relevant to the currently selected agent.pub fn settings(config: &Config) -> &'static [Setting] {@@ -96,9 +82,6 @@ pub fn settings(config: &Config) -> &'static [Setting] {&[Setting::Agent,Setting::Workspace,- Setting::Name,- Setting::Scope,- Setting::PermissionBypass,Setting::HerdrModel,Setting::HerdrArguments,Setting::HerdrStorage,@@ -190,22 +173,6 @@ impl ConfigForm {"Background"}.to_owned(),- Setting::Name => config- .identity- .name- .clone()- .unwrap_or_else(|| "Hostname default".to_owned()),- Setting::PermissionBypass => {- if config.identity.allow_permission_bypass {- "Allowed at next pairing".to_owned()- } else {- "Always prompt at next pairing".to_owned()- }- }- Setting::Scope => match config.identity.scope {- crate::config::IdentityScope::Private => "Private".to_owned(),- crate::config::IdentityScope::Team => "Team".to_owned(),- },}}@@ -213,7 +180,6 @@ impl ConfigForm {pub fn edit_value(&self, setting: Setting) -> String {match setting {Setting::Workspace => self.string("workspace", "path").unwrap_or_default(),- Setting::Name => self.string("identity", "name").unwrap_or_default(),Setting::HerdrModel => self.string("herdr", "model").unwrap_or_default(),Setting::HerdrStorage => self.string("herdr", "storage_path").unwrap_or_default(),Setting::HerdrArguments => shell_words::join(@@ -225,9 +191,7 @@ impl ConfigForm {.flatten().filter_map(toml_edit::Value::as_str),),- Setting::Agent | Setting::Scope | Setting::PermissionBypass | Setting::HerdrFocus => {- String::new()- }+ Setting::Agent | Setting::HerdrFocus => String::new(),}}@@ -247,13 +211,6 @@ impl ConfigForm {}self.set_string("workspace", "path", input);}- Setting::Name => {- if input.is_empty() {- self.remove("identity", "name");- } else {- self.set_string("identity", "name", input);- }- }Setting::HerdrModel | Setting::HerdrStorage => {let key = if setting == Setting::HerdrModel {"model"@@ -279,7 +236,7 @@ impl ConfigForm {}self.doc["herdr"].or_insert(toml_edit::table())["arguments"] = value(args);}- Setting::Agent | Setting::Scope | Setting::PermissionBypass | Setting::HerdrFocus => {+ Setting::Agent | Setting::HerdrFocus => {return Err(format!("{} is selected rather than typed", setting.label()));}}@@ -335,24 +292,9 @@ impl ConfigForm {}/// Apply Quickstart values to this document without replacing other settings.- pub fn apply_quickstart(- &mut self,- agent: &DetectedAgent,- workspace: &Path,- scope: IdentityScope,- ) {+ pub fn apply_quickstart(&mut self, agent: &DetectedAgent, workspace: &Path) {self.apply_agent(agent);self.set_string("workspace", "path", &workspace.to_string_lossy());- self.set_scope(scope);- }-- /// Toggle between private and team pairing scope.- pub fn toggle_scope(&mut self, config: &Config) {- let next = match config.identity.scope {- crate::config::IdentityScope::Private => "team",- crate::config::IdentityScope::Team => "private",- };- self.set_string("identity", "scope", next);}/// Toggle whether a new native session takes focus.@@ -360,21 +302,6 @@ impl ConfigForm {self.doc["herdr"].or_insert(toml_edit::table())["focus"] = value(!config.herdr.focus);}- /// Set the requested scope without changing any approved credential scope.- pub fn set_scope(&mut self, scope: IdentityScope) {- let scope = match scope {- IdentityScope::Private => "private",- IdentityScope::Team => "team",- };- self.set_string("identity", "scope", scope);- }-- /// Set the permission bypass ceiling for the next pairing.- pub fn set_permission_bypass(&mut self, allowed: bool) {- let identity = self.doc["identity"].or_insert(toml_edit::table());- identity["allow_permission_bypass"] = value(allowed);- }-/// Persist the credential minted by pairing in this config document.pub fn persist_credentials(&mut self,@@ -386,11 +313,6 @@ impl ConfigForm {&credentials.harness_id.to_string(),);self.set_string("credentials", "token", &credentials.token);- let scope = match credentials.scope {- crate::config::HarnessScope::User => "user",- crate::config::HarnessScope::Team => "team",- };- self.set_string("credentials", "scope", scope);self.save()}diff --git a/crates/coding_agent_worker/src/tui/config_form/test.rs b/crates/coding_agent_worker/src/tui/config_form/test.rsindex deccddd605..c0ad7f7b91 100644--- a/crates/coding_agent_worker/src/tui/config_form/test.rs+++ b/crates/coding_agent_worker/src/tui/config_form/test.rs@@ -2,7 +2,7 @@ use std::collections::BTreeMap;use std::fs;use super::*;-use crate::config::{HarnessCredentials, HarnessScope};+use crate::config::HarnessCredentials;use crate::tui::agent_catalog::{CommandLookup, discover, name_for};use harness_id::HarnessId;@@ -118,7 +118,6 @@ fn persists_and_clears_embedded_credentials_without_losing_comments() {let credentials = HarnessCredentials {harness_id: HarnessId::TEST_A,token: "mhns_abc_secret".to_owned(),- scope: HarnessScope::Team,};let mut form = ConfigForm::load(&path).expect("load form");@@ -153,7 +152,7 @@ fn quickstart_edits_preserve_existing_deployment_and_comments() {fs::write(&path,format!(- "# keep me\n[macro]\napi_url = \"https://custom-api\"\nstorage_url = \"https://custom-storage\"\nweb_url = \"https://custom-web\"\n\n[identity]\nscope = \"private\"\n\n[harness]\ncommand = \"old\"\nargs = []\n\n[workspace]\npath = {:?}\n",+ "# keep me\n[macro]\napi_url = \"https://custom-api\"\nstorage_url = \"https://custom-storage\"\nweb_url = \"https://custom-web\"\n\n[harness]\ncommand = \"old\"\nargs = []\n\n[workspace]\npath = {:?}\n",directory.path().to_string_lossy()),)@@ -161,7 +160,7 @@ fn quickstart_edits_preserve_existing_deployment_and_comments() {let agent = discover(&HermesOnly).remove(0);let mut form = ConfigForm::load(&path).expect("load existing config");- form.apply_quickstart(&agent, &workspace, IdentityScope::Team);+ form.apply_quickstart(&agent, &workspace);form.save().expect("save Quickstart changes");let config = Config::load(&path).expect("load edited config");@@ -170,7 +169,6 @@ fn quickstart_edits_preserve_existing_deployment_and_comments() {assert_eq!(config.macro_api.web_url, "https://custom-web");assert_eq!(config.harness.command, "hermes");assert_eq!(config.workspace.path, workspace);- assert_eq!(config.identity.scope, IdentityScope::Team);assert!(fs::read_to_string(&path).expect("read config")@@ -257,40 +255,6 @@ fn assert_private_mode(path: &Path) {#[cfg(not(unix))]fn assert_private_mode(_path: &Path) {}-#[test]-fn permission_bypass_edits_preserve_credentials_and_comments() {- let directory = tempfile::tempdir().unwrap();- let path = directory.path().join("macrod.toml");- let agent = discover(&HermesOnly).remove(0);- ConfigForm::create_for_deployment(&path, &agent, directory.path(), Deployment::Production)- .unwrap();- let credentials = HarnessCredentials {- harness_id: HarnessId::TEST_A,- token: "mhns_secret".to_owned(),- scope: HarnessScope::User,- };- let mut form = ConfigForm::load(&path).unwrap();- form.persist_credentials(&credentials).unwrap();- assert!(- !Config::load(&path)- .unwrap()- .identity- .allow_permission_bypass- );- for allowed in [true, false] {- form.set_permission_bypass(allowed);- form.save().unwrap();- let config = Config::load(&path).unwrap();- assert_eq!(config.identity.allow_permission_bypass, allowed);- assert_eq!(config.credentials.as_ref(), Some(&credentials));- assert!(- fs::read_to_string(&path)- .unwrap()- .contains("# macrod configuration")- );- }-}-#[test]fn native_settings_round_trip_and_agent_switch_resets_provider_defaults() {let directory = tempfile::tempdir().unwrap();diff --git a/crates/coding_agent_worker/src/tui/platform.rs b/crates/coding_agent_worker/src/tui/platform.rsindex 1c3a0e3ed6..4073fc19be 100644--- a/crates/coding_agent_worker/src/tui/platform.rs+++ b/crates/coding_agent_worker/src/tui/platform.rs@@ -2,6 +2,8 @@ pub(crate) const BYO_AGENT_URL: &str = "https://docs.macro.com/AI/bring-your-ownpub(crate) enum BrowserTarget {Pairing(String),+ /// The web settings page that owns the runtime's name, access, and permissions.+ Settings(String),BringYourOwn,}@@ -13,6 +15,11 @@ pub(crate) fn open_pending_browser(pending: &mut Option<BrowserTarget>) -> Optio"sent the approval page to your browser","could not launch a browser; use the pairing link",),+ BrowserTarget::Settings(url) => (+ url,+ "opened the runtime settings in your browser",+ "could not launch a browser; open the settings link shown in Config",+ ),BrowserTarget::BringYourOwn => (BYO_AGENT_URL.to_owned(),"opened the bring your own agent guide",diff --git a/crates/coding_agent_worker/src/tui/quickstart.rs b/crates/coding_agent_worker/src/tui/quickstart.rsindex 1433a9cc0d..faf9a27ab7 100644--- a/crates/coding_agent_worker/src/tui/quickstart.rs+++ b/crates/coding_agent_worker/src/tui/quickstart.rs@@ -8,7 +8,7 @@ use tui_input::Input;use super::agent_catalog::{self, AgentKind, DetectedAgent, PathCommands};use super::input::handle_text_input;use super::platform::{BYO_AGENT_URL, browser_status, launch_browser_helper};-use crate::config::{Config, IdentityScope};+use crate::config::Config;/// Editable state shown until `macrod.toml` has a working credential.pub(crate) struct Quickstart {@@ -16,8 +16,6 @@ pub(crate) struct Quickstart {pub(crate) selected_agent: Option<DetectedAgent>,pub(crate) focus: QuickstartFocus,pub(crate) workspace: String,- pub(crate) scope: IdentityScope,- pub(crate) allow_permission_bypass: bool,pub(crate) mode: QuickstartMode,pub(crate) status: Option<(String, bool)>,}@@ -34,8 +32,6 @@ pub(crate) enum QuickstartMode {pub(crate) enum QuickstartFocus {Agent(usize),Workspace,- Scope,- PermissionBypass,Submit,}@@ -56,8 +52,6 @@ impl Quickstart {selected_agent: None,focus: QuickstartFocus::Agent(0),workspace,- scope: IdentityScope::Private,- allow_permission_bypass: false,mode: QuickstartMode::Normal,status: None,})@@ -97,8 +91,6 @@ impl Quickstart {selected_agent,focus,workspace: config.workspace.path.display().to_string(),- scope: config.identity.scope,- allow_permission_bypass: config.identity.allow_permission_bypass,mode: QuickstartMode::Normal,status: None,}@@ -120,9 +112,7 @@ impl Quickstart {QuickstartFocus::Agent(index.saturating_sub(1))}QuickstartFocus::Workspace => QuickstartFocus::Agent(self.agents.len()),- QuickstartFocus::Scope => QuickstartFocus::Workspace,- QuickstartFocus::PermissionBypass => QuickstartFocus::Scope,- QuickstartFocus::Submit => QuickstartFocus::PermissionBypass,+ QuickstartFocus::Submit => QuickstartFocus::Workspace,};QuickstartAction::Continue}@@ -132,9 +122,7 @@ impl Quickstart {QuickstartFocus::Agent(index + 1)}QuickstartFocus::Agent(_) => QuickstartFocus::Workspace,- QuickstartFocus::Workspace => QuickstartFocus::Scope,- QuickstartFocus::Scope => QuickstartFocus::PermissionBypass,- QuickstartFocus::PermissionBypass | QuickstartFocus::Submit => {+ QuickstartFocus::Workspace | QuickstartFocus::Submit => {QuickstartFocus::Submit}};@@ -173,17 +161,6 @@ impl Quickstart {};QuickstartAction::Continue}- QuickstartFocus::Scope => {- self.scope = match self.scope {- IdentityScope::Private => IdentityScope::Team,- IdentityScope::Team => IdentityScope::Private,- };- QuickstartAction::Continue- }- QuickstartFocus::PermissionBypass => {- self.allow_permission_bypass = !self.allow_permission_bypass;- QuickstartAction::Continue- }QuickstartFocus::Submit if self.selected_agent.is_none() => {self.status =Some(("Choose an agent harness before continuing".to_owned(), true));diff --git a/crates/coding_agent_worker/src/tui/quickstart/test.rs b/crates/coding_agent_worker/src/tui/quickstart/test.rsindex d6e9b78dca..1467180392 100644--- a/crates/coding_agent_worker/src/tui/quickstart/test.rs+++ b/crates/coding_agent_worker/src/tui/quickstart/test.rs@@ -14,8 +14,6 @@ fn quickstart_uses_one_flat_focus_order_without_preselecting_an_agent() {selected_agent: None,focus: QuickstartFocus::Agent(0),workspace: "/tmp".to_owned(),- scope: IdentityScope::Private,- allow_permission_bypass: false,mode: QuickstartMode::Normal,status: None,};@@ -23,13 +21,11 @@ fn quickstart_uses_one_flat_focus_order_without_preselecting_an_agent() {quickstart.on_key(key(KeyCode::Down));assert_eq!(quickstart.focus, QuickstartFocus::Workspace);quickstart.on_key(key(KeyCode::Down));- assert_eq!(quickstart.focus, QuickstartFocus::Scope);- quickstart.on_key(key(KeyCode::Down));- assert_eq!(quickstart.focus, QuickstartFocus::PermissionBypass);+ assert_eq!(quickstart.focus, QuickstartFocus::Submit);quickstart.on_key(key(KeyCode::Down));assert_eq!(quickstart.focus, QuickstartFocus::Submit);quickstart.on_key(key(KeyCode::Up));- assert_eq!(quickstart.focus, QuickstartFocus::PermissionBypass);+ assert_eq!(quickstart.focus, QuickstartFocus::Workspace);assert!(quickstart.selected_agent.is_none());}@@ -40,21 +36,17 @@ fn tab_and_shift_tab_reach_and_leave_the_submit_button() {selected_agent: None,focus: QuickstartFocus::Agent(0),workspace: "/tmp".to_owned(),- scope: IdentityScope::Private,- allow_permission_bypass: false,mode: QuickstartMode::Normal,status: None,};quickstart.on_key(key(KeyCode::Tab));- quickstart.on_key(key(KeyCode::Tab));- quickstart.on_key(key(KeyCode::Tab));- assert_eq!(quickstart.focus, QuickstartFocus::PermissionBypass);+ assert_eq!(quickstart.focus, QuickstartFocus::Workspace);quickstart.on_key(key(KeyCode::Tab));assert_eq!(quickstart.focus, QuickstartFocus::Submit);quickstart.on_key(key(KeyCode::BackTab));- assert_eq!(quickstart.focus, QuickstartFocus::PermissionBypass);+ assert_eq!(quickstart.focus, QuickstartFocus::Workspace);}#[test]@@ -64,8 +56,6 @@ fn custom_agent_reedit_preserves_arguments() {selected_agent: Some(agent_catalog::custom("agent --mode 'acp bridge'").unwrap()),focus: QuickstartFocus::Agent(0),workspace: "/tmp".to_owned(),- scope: IdentityScope::Private,- allow_permission_bypass: false,mode: QuickstartMode::Normal,status: None,};@@ -79,7 +69,7 @@ fn custom_agent_reedit_preserves_arguments() {}#[test]-fn unpaired_config_prefills_recognized_agent_workspace_and_scope() {+fn unpaired_config_prefills_recognized_agent_and_workspace() {let config = config(Harness {command: "hermes".to_owned(),args: vec!["acp".to_owned()],@@ -101,7 +91,6 @@ fn unpaired_config_prefills_recognized_agent_workspace_and_scope() {assert_eq!(quickstart.selected_agent.unwrap().kind, AgentKind::Hermes);assert_eq!(quickstart.workspace, "/existing/workspace");- assert_eq!(quickstart.scope, IdentityScope::Team);assert_eq!(quickstart.focus, QuickstartFocus::Agent(0));}@@ -130,7 +119,6 @@ fn config(harness: Harness) -> Config {storage_url: "https://storage.example.com".to_owned(),web_url: "https://example.com/app".to_owned(),};- config.identity.scope = IdentityScope::Team;config.harness = harness;config.workspace = Workspace {path: "/existing/workspace".into(),@@ -140,37 +128,7 @@ fn config(harness: Harness) -> Config {}#[test]-fn permission_bypass_defaults_off_and_can_be_toggled() {- let mut setup = Quickstart::from_config_with_agents(- &config(Harness {- command: "hermes".to_owned(),- args: vec!["acp".to_owned()],- env: Default::default(),- }),- Vec::new(),- );- assert!(!setup.allow_permission_bypass);- setup.focus = QuickstartFocus::PermissionBypass;- setup.on_key(key(KeyCode::Enter));- assert!(setup.allow_permission_bypass);- setup.on_key(key(KeyCode::Enter));- assert!(!setup.allow_permission_bypass);-}--#[test]-fn unpaired_config_prefills_permission_bypass_consent() {- let mut config = config(Harness {- command: "hermes".to_owned(),- args: vec!["acp".to_owned()],- env: Default::default(),- });- config.identity.allow_permission_bypass = true;- let setup = Quickstart::from_config_with_agents(&config, Vec::new());- assert!(setup.allow_permission_bypass);-}--#[test]-fn quickstart_renders_permission_consent_and_warning() {+fn quickstart_renders_the_form_at_small_sizes() {use ratatui::{Terminal, backend::TestBackend};let mut setup = Quickstart::from_config_with_agents(&config(Harness {@@ -180,19 +138,13 @@ fn quickstart_renders_permission_consent_and_warning() {}),Vec::new(),);- for (width, height, allowed, status) in [- (100, 40, false, false),- (100, 40, true, false),- (80, 26, false, false),- (80, 26, true, false),- (80, 26, false, true),- (80, 26, true, true),- (80, 24, false, false),- (80, 24, true, false),- (80, 24, false, true),- (80, 24, true, true),+ for (width, height, status) in [+ (100, 40, false),+ (80, 26, false),+ (80, 26, true),+ (80, 24, false),+ (80, 24, true),] {- setup.allow_permission_bypass = allowed;setup.status = status.then(|| ("Pairing failed".to_owned(), true));let mut terminal = Terminal::new(TestBackend::new(width, height)).unwrap();terminal@@ -211,37 +163,9 @@ fn quickstart_renders_permission_consent_and_warning() {.iter().map(|cell| cell.symbol()).collect::<String>();- assert!(screen.contains("Full Access"));- assert!(screen.contains(if allowed {- "[x] On"- } else {- "[ ] Off (always prompt)"- }));- assert_eq!(screen.contains("without approval"), allowed);+ assert!(screen.contains("Workspace"));+ assert!(screen.contains("set on the web"));assert!(screen.contains("Create and pair"));- let rows = terminal- .backend()- .buffer()- .content()- .chunks(usize::from(width))- .map(|row| row.iter().map(|cell| cell.symbol()).collect::<String>())- .collect::<Vec<_>>();- let workspace = rows.iter().find(|row| row.contains("Workspace")).unwrap();- let scope = rows- .iter()- .find(|row| row.contains("Access") && !row.contains("Full Access"))- .unwrap();- let full_access = rows.iter().find(|row| row.contains("Full Access")).unwrap();- // Borders use multibyte glyphs; compare columns rather than UTF-8 offsets.- let workspace_column = workspace.chars().position(|character| character == '/');- assert_eq!(- workspace_column,- scope.chars().position(|character| character == 'T')- );- assert_eq!(- workspace_column,- full_access.chars().position(|character| character == '[')- );}}@@ -269,8 +193,6 @@ fn quickstart_groups_herdr_agents_apart_from_headless_ones() {selected_agent: None,focus: QuickstartFocus::Agent(1),workspace: "/tmp".to_owned(),- scope: IdentityScope::Private,- allow_permission_bypass: false,mode: QuickstartMode::Normal,status: None,};diff --git a/crates/coding_agent_worker/src/tui/runner.rs b/crates/coding_agent_worker/src/tui/runner.rsindex 70265b1b1e..aced760539 100644--- a/crates/coding_agent_worker/src/tui/runner.rs+++ b/crates/coding_agent_worker/src/tui/runner.rs@@ -164,17 +164,11 @@ async fn run_quickstart(}let saved = if existing_config.is_some() {ConfigForm::load(config_path).and_then(|mut form| {- form.apply_quickstart(&agent, &workspace, quickstart.scope);- form.set_permission_bypass(quickstart.allow_permission_bypass);+ form.apply_quickstart(&agent, &workspace);form.save()})} else {- ConfigForm::create(config_path, &agent, &workspace).and_then(|()| {- let mut form = ConfigForm::load(config_path)?;- form.set_scope(quickstart.scope);- form.set_permission_bypass(quickstart.allow_permission_bypass);- form.save()- })+ ConfigForm::create(config_path, &agent, &workspace)};match saved {Ok(()) => {diff --git a/crates/coding_agent_worker/src/tui/runner/test.rs b/crates/coding_agent_worker/src/tui/runner/test.rsindex cf9f49ca01..9b5d48b93e 100644--- a/crates/coding_agent_worker/src/tui/runner/test.rs+++ b/crates/coding_agent_worker/src/tui/runner/test.rs@@ -1,7 +1,7 @@use harness_id::HarnessId;use super::*;-use crate::config::{HarnessCredentials, HarnessScope};+use crate::config::HarnessCredentials;#[test]fn working_state_requires_valid_embedded_credentials() {@@ -12,7 +12,6 @@ fn working_state_requires_valid_embedded_credentials() {config.credentials = Some(HarnessCredentials {harness_id: HarnessId::TEST_A,token: "invalid".to_owned(),- scope: HarnessScope::User,});assert!(!config_is_working(&config));diff --git a/crates/coding_agent_worker/src/tui/ui/pages/config.rs b/crates/coding_agent_worker/src/tui/ui/pages/config.rsindex 51930555a6..af99d6279b 100644--- a/crates/coding_agent_worker/src/tui/ui/pages/config.rs+++ b/crates/coding_agent_worker/src/tui/ui/pages/config.rs@@ -1,65 +1,55 @@#[cfg(test)]mod test;+use harnesses::domain::models::HarnessOwner;use ratatui::Frame;use ratatui::layout::{Constraint, Layout, Rect};use ratatui::style::{Style, Stylize as _};-use ratatui::widgets::{Block, BorderType, Borders, Padding, Paragraph};+use ratatui::text::{Line, Span};+use ratatui::widgets::Paragraph;use super::super::layout::render_input;use super::super::theme::{ACCENT, DIM, WARN, card, focus_marker, focus_style, section};-use crate::config::IdentityScope;use crate::tui::app::{App, Mode};-use crate::tui::config_form::{Setting, settings};+use crate::tui::config_form::settings;pub(super) fn render(frame: &mut Frame, app: &App, area: Rect) {let block = card(format!("macrod.toml · {}", app.config_path.display()));let inner = block.inner(area);frame.render_widget(block, area);+ let runtime = runtime_lines(app, inner.width);+ let [content, _spacer, runtime_area] = Layout::vertical([+ Constraint::Min(0),+ Constraint::Length(1),+ Constraint::Length(runtime.len() as u16),+ ])+ .areas(inner);+ frame.render_widget(Paragraph::new(runtime), runtime_area);+let settings = settings(&app.config);let herdr_start = settings.iter().position(|setting| setting.is_herdr());- let permission_index = settings- .iter()- .position(|setting| *setting == Setting::PermissionBypass);- // Full Access gets a bordered row; a blank line and header precede Herdr.+ // A blank line and header precede Herdr.let row_of = |index: usize| -> u16 {index as u16- + if permission_index.is_some_and(|permission| index > permission) {- 2- } else {- 0- }+ if herdr_start.is_some_and(|start| index >= start) {2} else {0}};- let team_warning = app.config.identity.scope == IdentityScope::Team;- let bypass_warning = app.config.identity.allow_permission_bypass;- let [content, warnings] = Layout::vertical([- Constraint::Min(0),- Constraint::Length(u16::from(team_warning) + if bypass_warning { 2 } else { 0 }),- ])- .areas(inner);- let selected_height = if settings[app.selected_setting] == Setting::PermissionBypass {- 3- } else {- 1- };- let scroll = (row_of(app.selected_setting) + selected_height).saturating_sub(content.height);- let visible_row = |offset: u16, height: u16| {+ let scroll = (row_of(app.selected_setting) + 1).saturating_sub(content.height);+ let visible_row = |offset: u16| {let offset = offset.checked_sub(scroll)?;let row = Rect {y: content.y + offset,- height,+ height: 1,..content}.intersection(content);if row.is_empty() { None } else { Some(row) }};if let Some(start) = herdr_start- && let Some(row) = visible_row(row_of(start) - 1, 1)+ && let Some(row) = visible_row(row_of(start) - 1){frame.render_widget(Paragraph::new(section("Herdr", "each session in its own tab", inner.width)),@@ -68,33 +58,9 @@ pub(super) fn render(frame: &mut Frame, app: &App, area: Rect) {}for (index, setting) in settings.iter().enumerate() {let selected = index == app.selected_setting;- let height = if *setting == Setting::PermissionBypass {- 3- } else {- 1- };- let Some(row) = visible_row(row_of(index), height) else {+ let Some(row) = visible_row(row_of(index)) else {continue;};- if *setting == Setting::PermissionBypass {- frame.render_widget(- Paragraph::new(app.form.display(*setting, &app.config))- .style(focus_style(selected).bold())- .block(- Block::default()- .title(format!(- "{}{} · Suggested ",- focus_marker(selected),- setting.label()- ))- .borders(Borders::ALL)- .border_type(BorderType::Rounded)- .padding(Padding::horizontal(1)),- ),- row,- );- continue;- }frame.render_widget(Paragraph::new(format!("{}{:<14}", focus_marker(selected), setting.label())).style(focus_style(selected)),@@ -130,25 +96,50 @@ pub(super) fn render(frame: &mut Frame, app: &App, area: Rect) {}}}- let [team_warning_area, bypass_warning_area] = Layout::vertical([- Constraint::Length(u16::from(team_warning)),- Constraint::Length(if bypass_warning { 2 } else { 0 }),- ])- .areas(warnings);- if bypass_warning {- frame.render_widget(- Paragraph::new("Warning: agents can run commands and edit files without approval.\nApplies at next pairing.")- .style(Style::new().fg(WARN)),- bypass_warning_area,- );- }- if team_warning {- frame.render_widget(- Paragraph::new(- "Warning: teammates can command agents on this machine. Trust your team.",- )- .style(Style::new().fg(WARN)),- team_warning_area,- );+}++/// The runtime settings the web owns, read-only from the server's snapshot.+fn runtime_lines(app: &App, width: u16) -> Vec<Line<'static>> {+ let mut lines = vec![section("Runtime", "set on the web", width)];+ let row = |label: &str, value: Span<'static>| {+ Line::from(vec![+ Span::styled(format!(" {label:<14}"), Style::new().fg(DIM)),+ value,+ ])+ };+ match &app.snapshot.harness {+ Some(harness) => {+ lines.push(row("Name", Span::raw(harness.name.clone())));+ lines.push(row(+ "Access",+ match harness.owner {+ HarnessOwner::User { .. } => Span::raw("Private"),+ HarnessOwner::Team { .. } => Span::styled(+ "Team · teammates can command agents on this machine",+ Style::new().fg(WARN),+ ),+ },+ ));+ lines.push(row(+ "Permission bypass",+ if harness.allow_permission_bypass {+ Span::styled(+ "On · agents run commands and edit files without approval",+ Style::new().fg(WARN),+ )+ } else {+ Span::raw("Off (always prompt)")+ },+ ));+ }+ None => lines.push(Line::styled(+ " Shown once this harness is paired and reachable.",+ Style::new().fg(DIM),+ )),}+ lines.push(Line::from(vec![+ Span::styled(" Change these on the web: ", Style::new().fg(DIM)),+ Span::styled(app.config.macro_api.settings_url(), Style::new().fg(ACCENT)),+ ]));+ lines}diff --git a/crates/coding_agent_worker/src/tui/ui/pages/config/test.rs b/crates/coding_agent_worker/src/tui/ui/pages/config/test.rsindex ab2b849e5d..168789fa18 100644--- a/crates/coding_agent_worker/src/tui/ui/pages/config/test.rs+++ b/crates/coding_agent_worker/src/tui/ui/pages/config/test.rs@@ -1,44 +1,73 @@+use harness_id::HarnessId;+use harnesses::domain::models::{Harness, HarnessOwner};use ratatui::{Terminal, backend::TestBackend};-use crate::config::IdentityScope;use crate::tui::app::{App, Tab};use crate::tui::config_form::settings;use crate::tui::logging::LogBuffer;+fn screen(app: &App, width: u16, height: u16) -> String {+ let mut terminal = Terminal::new(TestBackend::new(width, height)).unwrap();+ terminal+ .draw(|frame| crate::tui::ui::render(frame, app))+ .unwrap();+ terminal+ .backend()+ .buffer()+ .content()+ .iter()+ .map(|cell| cell.symbol())+ .collect::<String>()+}+#[test]-fn short_config_keeps_selected_settings_and_consent_warnings_visible() {+fn short_config_keeps_selected_settings_and_web_owned_values_visible() {let directory = tempfile::tempdir().unwrap();let path = directory.path().join("macrod.toml");std::fs::write(&path, include_str!("../../../../../default.macrod.toml")).unwrap();let mut app = App::load(&path, LogBuffer::default(), None).unwrap();app.tab = Tab::Config;app.config.harness.args = vec!["herdr-acp".to_owned()];- app.config.identity.scope = IdentityScope::Team;- app.config.identity.allow_permission_bypass = true;- for height in [20, 24] {+ app.snapshot.harness = Some(Harness {+ allow_permission_bypass: true,+ id: HarnessId::TEST_A,+ kind: "macrod".to_owned(),+ name: "Desk".to_owned(),+ owner: HarnessOwner::Team {+ team_id: uuid::Uuid::nil(),+ },+ created_by: "macro|user".to_owned(),+ created_at: chrono::Utc::now(),+ updated_at: chrono::Utc::now(),+ connected: true,+ last_connected_at: None,+ });+ for height in [22, 24] {for (index, setting) in settings(&app.config).iter().enumerate() {app.selected_setting = index;- let mut terminal = Terminal::new(TestBackend::new(80, height)).unwrap();- terminal- .draw(|frame| crate::tui::ui::render(frame, &app))- .unwrap();- let screen = terminal- .backend()- .buffer()- .content()- .iter()- .map(|cell| cell.symbol())- .collect::<String>();+ let screen = screen(&app, 100, height);assert!(screen.contains(setting.label()),"selected setting is visible");assert!(screen.contains("without approval"));- assert!(screen.contains("Trust your team"));+ assert!(screen.contains("teammates can command agents"));+ assert!(screen.contains("https://macro.com/app/settings/harness"));}}- let mut terminal = Terminal::new(TestBackend::new(20, 10)).unwrap();- terminal- .draw(|frame| crate::tui::ui::render(frame, &app))- .unwrap();+ screen(&app, 20, 10);+}++#[test]+fn unpaired_config_points_at_the_web_settings() {+ let directory = tempfile::tempdir().unwrap();+ let path = directory.path().join("macrod.toml");+ std::fs::write(&path, include_str!("../../../../../default.macrod.toml")).unwrap();+ let mut app = App::load(&path, LogBuffer::default(), None).unwrap();+ app.tab = Tab::Config;++ let screen = screen(&app, 100, 24);+ assert!(screen.contains("paired and reachable"));+ assert!(screen.contains("https://macro.com/app/settings/harness"));+ assert!(!screen.contains("without approval"));}diff --git a/crates/coding_agent_worker/src/tui/ui/quickstart.rs b/crates/coding_agent_worker/src/tui/ui/quickstart.rsindex e5ed8c9688..0b1d1ec09f 100644--- a/crates/coding_agent_worker/src/tui/ui/quickstart.rs+++ b/crates/coding_agent_worker/src/tui/ui/quickstart.rs@@ -7,7 +7,6 @@ use ratatui::widgets::{Block, BorderType, Borders, Clear, Padding, Paragraph};use super::layout::{centered, render_input};use super::modals::agent_groups;use super::theme::{ACCENT, DIM, ERR, OK, THEME, WARN, focus_marker, focus_style, modal};-use crate::config::IdentityScope;use crate::tui::agent_catalog::AgentKind;use crate::tui::quickstart::{Quickstart, QuickstartFocus, QuickstartMode};@@ -30,23 +29,17 @@ pub(crate) fn render_quickstart(let inner = block.inner(area);frame.render_widget(block, area);let intro_height = if setup.status.is_some() { 3 } else { 2 };- let permission_warning_height = if setup.allow_permission_bypass { 2 } else { 0 };- let scope_warning_height = u16::from(setup.scope == IdentityScope::Team);- // Custom, workspace, access, Full Access and submit occupy eleven fixed rows.- let form_height =- intro_height + discovered_height + 11 + permission_warning_height + scope_warning_height;+ // Custom, workspace, the web note, and submit occupy eight fixed rows.+ let form_height = intro_height + discovered_height + 8;let [intro,discovered_area,custom_area,_form_spacer,workspace_area,- scope_area,- permissions_area,- permission_warning_area,+ web_note_area,_button_spacer,submit_area,- warning_area,_details_spacer,details_area,] = Layout::vertical([@@ -56,11 +49,8 @@ pub(crate) fn render_quickstart(Constraint::Fill(1),Constraint::Length(1),Constraint::Length(1),- Constraint::Length(3),- Constraint::Length(permission_warning_height),Constraint::Fill(1),Constraint::Length(3),- Constraint::Length(scope_warning_height),Constraint::Fill(1),Constraint::Length(u16::from(inner.height > form_height)),])@@ -110,68 +100,15 @@ pub(crate) fn render_quickstart(),}- let scope_focused = setup.focus == QuickstartFocus::Scope;- let scope = match setup.scope {- IdentityScope::Private => "Private",- IdentityScope::Team => "Team",- };frame.render_widget(- Paragraph::new(Line::from(vec![- Span::styled(- format!("{}{:<14}", focus_marker(scope_focused), "Access"),- Style::new().fg(DIM),- ),- Span::styled(scope, focus_style(scope_focused)),- ])),- scope_area,+ Paragraph::new("Name, access, and permissions are set on the web.")+ .style(Style::new().fg(DIM)),+ Rect {+ x: web_note_area.x + 16,+ width: web_note_area.width.saturating_sub(16),+ ..web_note_area+ },);- if setup.scope == IdentityScope::Team {- frame.render_widget(- Paragraph::new(- "Warning: teammates can command agents on this machine. Trust your team.",- )- .style(Style::new().fg(WARN))- .alignment(Alignment::Center),- warning_area,- );- }-- let permissions_focused = setup.focus == QuickstartFocus::PermissionBypass;- frame.render_widget(- Paragraph::new(Line::from(vec![- Span::styled(- format!("{}{:<12}", focus_marker(permissions_focused), "Full Access"),- Style::new().bold(),- ),- Span::styled(- if setup.allow_permission_bypass {- "[x] On"- } else {- "[ ] Off (always prompt)"- },- focus_style(permissions_focused),- ),- ]))- .block(- Block::default()- .title(" Suggested ")- .title_style(Style::new().bold())- .borders(Borders::ALL)- .border_type(BorderType::Rounded)- .border_style(Style::new().fg(THEME.border))- .padding(Padding::horizontal(1)),- ),- permissions_area,- );- if setup.allow_permission_bypass {- frame.render_widget(- Paragraph::new(- "Warning: agents can run commands and edit files without approval.\nOnly enable this if you trust everyone who can create agents here.",- )- .style(Style::new().fg(WARN)),- permission_warning_area,- );- }let submit_focused = setup.focus == QuickstartFocus::Submit;let button_style = if submit_focused {diff --git a/crates/coding_agent_worker/src/tui/ui/shell.rs b/crates/coding_agent_worker/src/tui/ui/shell.rsindex afe798fa25..0288f3676c 100644--- a/crates/coding_agent_worker/src/tui/ui/shell.rs+++ b/crates/coding_agent_worker/src/tui/ui/shell.rs@@ -18,9 +18,7 @@ pub(super) fn render_header(frame: &mut Frame, app: &App, area: Rect) {.snapshot.harness.as_ref()- .map(|harness| harness.name.clone())- .or_else(|| app.config.identity.name.clone())- .unwrap_or_else(|| "macrod".to_owned());+ .map_or_else(|| app.machine_name.clone(), |harness| harness.name.clone());let serving: Vec<Span> = if app.serving() {vec![Span::styled(" ⏵ serving SSE", Style::new().fg(OK))]@@ -92,6 +90,7 @@ pub(super) fn render_footer(frame: &mut Frame, app: &App, area: Rect) {(_, Tab::Config) => &[("↑↓", "select"),("enter", "edit/toggle"),+ ("o", "web settings"),("←→/hl", "tabs"),("q", "quit"),],diff --git a/crates/harnesses/src/domain/models.rs b/crates/harnesses/src/domain/models.rsindex 73622aa131..1f6553697f 100644--- a/crates/harnesses/src/domain/models.rs+++ b/crates/harnesses/src/domain/models.rs@@ -55,59 +55,16 @@ pub struct Harness {pub last_connected_at: Option<DateTime<Utc>>,}-/// The ownership scope a daemon's config asks for.-///-/// Advisory, not binding: the approving user confirms it in the dialog, which-/// arrives preselected to this. Approval is what actually sets ownership.-#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]-#[cfg_attr(feature = "inbound", derive(utoipa::ToSchema))]-#[serde(rename_all = "snake_case")]-pub enum RequestedHarnessScope {- /// Owned by the approving user alone.- Private,- /// Shared with the approving user's team.- Team,-}--impl RequestedHarnessScope {- /// Storage representation.- pub const fn as_str(self) -> &'static str {- match self {- Self::Private => "private",- Self::Team => "team",- }- }-}--impl std::str::FromStr for RequestedHarnessScope {- type Err = String;-- fn from_str(value: &str) -> Result<Self, Self::Err> {- match value {- "private" => Ok(Self::Private),- "team" => Ok(Self::Team),- other => Err(format!("unknown requested harness scope: {other}")),- }- }-}-/// Request to open a pairing: the daemon asks for a code the user approves.////// The daemon serializes this, so both derives are used.#[derive(Debug, Clone, Serialize, Deserialize)]#[cfg_attr(feature = "inbound", derive(utoipa::ToSchema))]pub struct CreatePairingRequest {- /// Daemon operator consent ceiling. Omitted by older clients; web approval decides.- #[serde(default)]- pub allow_permission_bypass: Option<bool>,/// Requested harness display name (typically the machine's hostname).pub name: String,/// Display-only description of the machine, e.g. `eric@macbook / darwin`.pub host: Option<String>,- /// The scope the daemon's config asks for; the approval dialog arrives- /// preselected to it.- #[serde(default)]- pub scope: Option<RequestedHarnessScope>,}/// A pairing the daemon created, including its claim credential.@@ -133,17 +90,12 @@ pub struct CreatedPairing {#[derive(Debug, Clone, Serialize, Deserialize)]#[cfg_attr(feature = "inbound", derive(utoipa::ToSchema))]pub struct PairingDetails {- /// Daemon operator consent ceiling; false forbids bypass at approval.- #[serde(default)]- pub requested_allow_permission_bypass: Option<bool>,/// The pairing code, normalized to `XXXX-XXXX`.pub code: String,/// Harness display name the daemon asked for.pub requested_name: String,/// Display-only description of the machine.pub host: Option<String>,- /// The scope the daemon's config asked for, when it named one.- pub requested_scope: Option<RequestedHarnessScope>,/// When the pairing was created.pub created_at: DateTime<Utc>,/// When the pairing expires.@@ -163,6 +115,19 @@ pub struct ApprovePairingRequest {pub team_id: Option<Uuid>,}+/// Request to change a registered harness. Omitted fields stay as they are.+#[derive(Debug, Clone, Default, Serialize, Deserialize)]+#[cfg_attr(feature = "inbound", derive(utoipa::ToSchema))]+pub struct PatchHarnessRequest {+ /// New display name.+ #[serde(default)]+ pub name: Option<String>,+ /// Whether agents may bypass ACP permission requests on this harness.+ /// Live sessions pick the change up at their next turn.+ #[serde(default)]+ pub allow_permission_bypass: Option<bool>,+}+/// Request to claim an approved pairing's credential.////// The daemon serializes this, so both derives are used.diff --git a/crates/harnesses/src/domain/ports.rs b/crates/harnesses/src/domain/ports.rsindex ac4aca41f9..b5fda9ece4 100644--- a/crates/harnesses/src/domain/ports.rs+++ b/crates/harnesses/src/domain/ports.rs@@ -11,14 +11,12 @@ use uuid::Uuid;use super::models::{ApprovePairingRequest, ClaimOutcome, ClaimPairingRequest, CreatePairingRequest, CreatedPairing,Harness, HarnessAgent, HarnessOwner, HarnessSession, PairingClaimFacts, PairingDetails,- PairingStatus, RequestedHarnessScope,+ PairingStatus, PatchHarnessRequest,};/// A pairing row to persist.#[derive(Debug, Clone)]pub struct NewPairing {- /// Daemon operator consent ceiling for permission bypass.- pub requested_allow_permission_bypass: Option<bool>,/// Pairing id.pub id: Uuid,/// Normalized pairing code, `XXXX-XXXX`.@@ -29,12 +27,19 @@ pub struct NewPairing {pub requested_name: String,/// Display-only machine description.pub host: Option<String>,- /// The scope the daemon's config asked for.- pub requested_scope: Option<RequestedHarnessScope>,/// When the pairing expires.pub expires_at: DateTime<Utc>,}+/// Validated changes to a harness row; `None` leaves a column as it is.+#[derive(Debug, Clone, Default, PartialEq, Eq)]+pub struct HarnessChanges {+ /// New display name, already trimmed and length-checked.+ pub name: Option<String>,+ /// New permission-bypass setting.+ pub allow_permission_bypass: Option<bool>,+}+/// A harness row to create at approval.#[derive(Debug, Clone)]pub struct NewHarness {@@ -135,6 +140,13 @@ pub trait HarnessRepo: Send + Sync + 'static {harness_id: HarnessId,) -> impl Future<Output = Result<Option<Harness>, Self::Err>> + Send;+ /// Apply a validated change to an active harness.+ fn update_harness(+ &self,+ harness_id: HarnessId,+ changes: HarnessChanges,+ ) -> impl Future<Output = Result<Option<Harness>, Self::Err>> + Send;+/// Soft-delete a harness and revoke its tokens.fn delete_harness(&self,@@ -204,6 +216,14 @@ pub trait HarnessService: Send + Sync + 'static {caller: MacroUserIdStr<'static>,) -> impl Future<Output = Result<Vec<Harness>, HarnessError>> + Send;+ /// Change a harness the caller may manage.+ fn patch_harness(+ &self,+ caller: MacroUserIdStr<'static>,+ harness_id: HarnessId,+ req: PatchHarnessRequest,+ ) -> impl Future<Output = Result<Harness, HarnessError>> + Send;+/// Revoke a harness the caller may manage.fn delete_harness(&self,diff --git a/crates/harnesses/src/domain/service.rs b/crates/harnesses/src/domain/service.rsindex 99ae39f1ed..a4c80a0e75 100644--- a/crates/harnesses/src/domain/service.rs+++ b/crates/harnesses/src/domain/service.rs@@ -14,9 +14,9 @@ use super::{models::{ApprovePairingRequest, ClaimOutcome, ClaimPairingRequest, ClaimedPairing,CreatePairingRequest, CreatedPairing, Harness, HarnessAgent, HarnessOwner, HarnessSession,- PairingDetails, PairingStatus,+ PairingDetails, PairingStatus, PatchHarnessRequest,},- ports::{HarnessError, HarnessRepo, HarnessService, NewHarness, NewPairing},+ ports::{HarnessChanges, HarnessError, HarnessRepo, HarnessService, NewHarness, NewPairing},tokens,};@@ -33,6 +33,17 @@ const CODE_ATTEMPTS: usize = 5;const MAX_NAME_CHARS: usize = 100;const MAX_HOST_CHARS: usize = 200;+/// A trimmed display name within the length limit.+fn validated_name(name: &str) -> Result<String, HarnessError> {+ let name = name.trim();+ if name.is_empty() || name.chars().count() > MAX_NAME_CHARS {+ return Err(HarnessError::BadRequest(format!(+ "name must be 1..={MAX_NAME_CHARS} characters"+ )));+ }+ Ok(name.to_owned())+}+/// Harness service backed by a repository.#[derive(Debug, Clone)]pub struct HarnessServiceImpl<R> {@@ -83,12 +94,8 @@ where&self,req: CreatePairingRequest,) -> Result<CreatedPairing, HarnessError> {- let name = req.name.trim();- if name.is_empty() || name.chars().count() > MAX_NAME_CHARS {- return Err(HarnessError::BadRequest(format!(- "name must be 1..={MAX_NAME_CHARS} characters"- )));- }+ let name = validated_name(&req.name)?;+ let name = name.as_str();let host = req.host.as_deref()@@ -125,8 +132,6 @@ wheredevice_secret_hash,requested_name: name.to_owned(),host: host.clone(),- requested_scope: req.scope,- requested_allow_permission_bypass: req.allow_permission_bypass,expires_at,}).await@@ -183,23 +188,10 @@ where// Reuses the pending/expired policy so approval failures report the// same way the lookup does.let details = self.get_pairing(code).await?;- if req.allow_permission_bypass && details.requested_allow_permission_bypass == Some(false) {- return Err(HarnessError::BadRequest(- "this daemon requires permission prompts".to_owned(),- ));- }let code = tokens::normalize_pairing_code(code).expect("get_pairing validated the code");let name = match &req.name {- Some(name) => {- let name = name.trim();- if name.is_empty() || name.chars().count() > MAX_NAME_CHARS {- return Err(HarnessError::BadRequest(format!(- "name must be 1..={MAX_NAME_CHARS} characters"- )));- }- name.to_owned()- }+ Some(name) => validated_name(name)?,None => details.requested_name,};@@ -301,6 +293,35 @@ where.map_err(Into::into)?)}+ #[tracing::instrument(skip(self, req), fields(caller = %caller), err)]+ async fn patch_harness(+ &self,+ caller: MacroUserIdStr<'static>,+ harness_id: HarnessId,+ req: PatchHarnessRequest,+ ) -> Result<Harness, HarnessError> {+ let harness = self+ .repo+ .get_harness(harness_id)+ .await+ .map_err(Into::into)?+ .ok_or_else(|| HarnessError::NotFound("unknown harness".to_owned()))?;+ self.ensure_may_manage(&caller, &harness).await?;++ let changes = HarnessChanges {+ name: req.name.as_deref().map(validated_name).transpose()?,+ allow_permission_bypass: req.allow_permission_bypass,+ };+ if changes == HarnessChanges::default() {+ return Ok(harness);+ }+ self.repo+ .update_harness(harness_id, changes)+ .await+ .map_err(Into::into)?+ .ok_or_else(|| HarnessError::NotFound("unknown harness".to_owned()))+ }+#[tracing::instrument(skip(self), fields(caller = %caller), err)]async fn delete_harness(&self,diff --git a/crates/harnesses/src/domain/service/test.rs b/crates/harnesses/src/domain/service/test.rsindex c46729b4e3..83f9e8b810 100644--- a/crates/harnesses/src/domain/service/test.rs+++ b/crates/harnesses/src/domain/service/test.rs@@ -5,7 +5,7 @@ use macro_user_id::user_id::MacroUserIdStr;use super::*;use crate::domain::{- models::{PairingClaimFacts, RequestedHarnessScope},+ models::PairingClaimFacts,ports::{OpenPairingCounts, PairingRow},};@@ -36,11 +36,9 @@ fn harness(owner: HarnessOwner) -> Harness {fn pending_pairing() -> PairingRow {PairingRow {details: PairingDetails {- requested_allow_permission_bypass: None,code: CODE.to_owned(),requested_name: "erics-macbook".to_owned(),host: Some("eric@macbook / darwin".to_owned()),- requested_scope: Some(RequestedHarnessScope::Team),created_at: Utc::now(),expires_at: Utc::now() + Duration::minutes(10),},@@ -54,6 +52,7 @@ struct Calls {approved: Vec<(String, NewHarness)>,claimed: Vec<Uuid>,deleted: Vec<HarnessId>,+ updated: Vec<(HarnessId, HarnessChanges)>,team_lookups: Vec<(String, Uuid)>,}@@ -143,6 +142,25 @@ impl HarnessRepo for FakeRepo {Ok(self.harness.clone())}+ async fn update_harness(+ &self,+ harness_id: HarnessId,+ changes: HarnessChanges,+ ) -> Result<Option<Harness>, Self::Err> {+ self.calls+ .lock()+ .unwrap()+ .updated+ .push((harness_id, changes.clone()));+ Ok(self.harness.clone().map(|harness| Harness {+ name: changes.name.unwrap_or(harness.name),+ allow_permission_bypass: changes+ .allow_permission_bypass+ .unwrap_or(harness.allow_permission_bypass),+ ..harness+ }))+ }+async fn delete_harness(&self, harness_id: HarnessId) -> Result<bool, Self::Err> {self.calls.lock().unwrap().deleted.push(harness_id);Ok(self.delete_result)@@ -193,10 +211,8 @@ async fn creating_a_pairing_returns_code_and_secret_and_persists_only_hashes() {let repo = FakeRepo::default();let created = service(repo.clone()).create_pairing(CreatePairingRequest {- allow_permission_bypass: None,name: " erics-macbook ".to_owned(),host: Some("eric@macbook".to_owned()),- scope: Some(RequestedHarnessScope::Team),}).await.unwrap();@@ -208,7 +224,6 @@ async fn creating_a_pairing_returns_code_and_secret_and_persists_only_hashes() {let calls = repo.calls.lock().unwrap();let inserted = &calls.inserted_pairings[0];assert_eq!(inserted.requested_name, "erics-macbook");- assert_eq!(inserted.requested_scope, Some(RequestedHarnessScope::Team));assert_eq!(inserted.code, created.code);assert_eq!(inserted.device_secret_hash,@@ -224,10 +239,8 @@ async fn pairing_creation_retries_code_collisions() {};let created = service(repo.clone()).create_pairing(CreatePairingRequest {- allow_permission_bypass: None,name: "erics-macbook".to_owned(),host: None,- scope: None,}).await.unwrap();@@ -248,20 +261,16 @@ async fn pairing_creation_is_throttled_and_validates_the_name() {};let result = service(throttled).create_pairing(CreatePairingRequest {- allow_permission_bypass: None,name: "erics-macbook".to_owned(),host: None,- scope: None,}).await;assert!(matches!(result, Err(HarnessError::Throttled)));let result = service(FakeRepo::default()).create_pairing(CreatePairingRequest {- allow_permission_bypass: None,name: " ".to_owned(),host: None,- scope: None,}).await;assert!(matches!(result, Err(HarnessError::BadRequest(_))));@@ -622,57 +631,131 @@ async fn approval_records_explicit_permission_bypass_consent() {}#[tokio::test]-async fn pairing_creation_preserves_the_daemons_permission_ceiling() {- for allowed in [None, Some(false), Some(true)] {- let repo = FakeRepo::default();- service(repo.clone())- .create_pairing(CreatePairingRequest {- allow_permission_bypass: allowed,- name: "laptop".to_owned(),- host: None,- scope: None,- })- .await- .unwrap();- assert_eq!(- repo.calls.lock().unwrap().inserted_pairings[0].requested_allow_permission_bypass,- allowed- );- }+async fn a_manager_changes_bypass_and_name_on_the_web() {+ let repo = FakeRepo {+ harness: Some(harness(HarnessOwner::User {+ user_id: OWNER_ID.to_owned(),+ })),+ ..FakeRepo::default()+ };+ let updated = service(repo.clone())+ .patch_harness(+ caller(OWNER_ID),+ HarnessId::TEST_A,+ PatchHarnessRequest {+ name: Some(" studio ".to_owned()),+ allow_permission_bypass: Some(true),+ },+ )+ .await+ .unwrap();++ assert!(updated.allow_permission_bypass);+ assert_eq!(updated.name, "studio");+ assert_eq!(+ repo.calls.lock().unwrap().updated,+ [(+ HarnessId::TEST_A,+ HarnessChanges {+ name: Some("studio".to_owned()),+ allow_permission_bypass: Some(true),+ }+ )]+ );}#[tokio::test]-async fn approval_requires_daemon_consent_when_the_daemon_names_a_ceiling() {- for requested in [None, Some(false), Some(true)] {- for approved in [false, true] {- let mut pairing = pending_pairing();- pairing.details.requested_allow_permission_bypass = requested;- let repo = FakeRepo {- pairing: Some(pairing),- approve_result: Some(harness(HarnessOwner::User {- user_id: OWNER_ID.to_owned(),- })),- ..FakeRepo::default()- };- let result = service(repo.clone())- .approve_pairing(- caller(OWNER_ID),- CODE,- ApprovePairingRequest {- allow_permission_bypass: approved,- name: None,- team_id: None,- },- )- .await;- let calls = repo.calls.lock().unwrap();- if requested == Some(false) && approved {- assert!(matches!(result, Err(HarnessError::BadRequest(_))));- assert!(calls.approved.is_empty());- } else {- result.unwrap();- assert_eq!(calls.approved[0].1.allow_permission_bypass, approved);- }+async fn an_empty_patch_writes_nothing() {+ let repo = FakeRepo {+ harness: Some(harness(HarnessOwner::User {+ user_id: OWNER_ID.to_owned(),+ })),+ ..FakeRepo::default()+ };+ let unchanged = service(repo.clone())+ .patch_harness(+ caller(OWNER_ID),+ HarnessId::TEST_A,+ PatchHarnessRequest::default(),+ )+ .await+ .unwrap();++ assert_eq!(unchanged.name, "erics-macbook");+ assert!(repo.calls.lock().unwrap().updated.is_empty());+}++#[tokio::test]+async fn a_patch_rejects_a_blank_name() {+ let repo = FakeRepo {+ harness: Some(harness(HarnessOwner::User {+ user_id: OWNER_ID.to_owned(),+ })),+ ..FakeRepo::default()+ };+ let result = service(repo.clone())+ .patch_harness(+ caller(OWNER_ID),+ HarnessId::TEST_A,+ PatchHarnessRequest {+ name: Some(" ".to_owned()),+ allow_permission_bypass: None,+ },+ )+ .await;++ assert!(matches!(result, Err(HarnessError::BadRequest(_))));+ assert!(repo.calls.lock().unwrap().updated.is_empty());+}++#[tokio::test]+async fn only_a_harness_manager_may_patch() {+ for (owner, caller_id, allowed) in [+ (+ HarnessOwner::User {+ user_id: OWNER_ID.to_owned(),+ },+ MEMBER_ID,+ false,+ ),+ (HarnessOwner::Team { team_id: TEAM_ID }, MEMBER_ID, false),+ (HarnessOwner::Team { team_id: TEAM_ID }, OWNER_ID, true),+ ] {+ let repo = FakeRepo {+ harness: Some(harness(owner.clone())),+ ..FakeRepo::default()+ };+ let result = service(repo.clone())+ .patch_harness(+ caller(caller_id),+ HarnessId::TEST_A,+ PatchHarnessRequest {+ name: None,+ allow_permission_bypass: Some(true),+ },+ )+ .await;++ if allowed {+ assert!(result.unwrap().allow_permission_bypass, "{owner:?}");+ } else {+ assert!(+ matches!(result, Err(HarnessError::Unauthorized)),+ "{owner:?} by {caller_id}"+ );+ assert!(repo.calls.lock().unwrap().updated.is_empty());}}++ let result = service(FakeRepo::default())+ .patch_harness(+ caller(OWNER_ID),+ HarnessId::TEST_A,+ PatchHarnessRequest {+ name: None,+ allow_permission_bypass: Some(false),+ },+ )+ .await;+ assert!(matches!(result, Err(HarnessError::NotFound(_))));}diff --git a/crates/harnesses/src/inbound/axum_router.rs b/crates/harnesses/src/inbound/axum_router.rsindex 87b8175c14..f88456f3ec 100644--- a/crates/harnesses/src/inbound/axum_router.rs+++ b/crates/harnesses/src/inbound/axum_router.rs@@ -7,7 +7,7 @@ use axum::{extract::{FromRef, Path, State},http::StatusCode,response::{IntoResponse, Response},- routing::{delete, get, post},+ routing::{delete, get, patch, post},};use harness_id::HarnessId;use macro_authorization::{@@ -22,7 +22,7 @@ use crate::domain::{models::{ApprovePairingRequest, ClaimOutcome, ClaimPairingRequest, ClaimedPairing,CreatePairingRequest, CreatedPairing, Harness, HarnessAgent, HarnessSession,- PairingDetails,+ PairingDetails, PatchHarnessRequest,},ports::{HarnessError, HarnessService},};@@ -116,7 +116,8 @@ where).route("/harnesses/{harness_id}",- delete(delete_harness_handler::<S, Auth>),+ delete(delete_harness_handler::<S, Auth>)+ .merge(patch(patch_harness_handler::<S, Auth>)),).with_state(state)}@@ -272,6 +273,40 @@ pub async fn list_harnesses_handler<S: HarnessService, Auth: MacroAuthorizationS))}+/// Handler for `PATCH /harnesses/{harness_id}`.+#[utoipa::path(+ patch,+ tag = "harnesses",+ operation_id = "patch_harness",+ path = "/harnesses/{harness_id}",+ params(("harness_id" = HarnessId, Path, description = "Harness ID")),+ request_body = PatchHarnessRequest,+ responses(+ (status = 200, body = Harness),+ (status = 400, body = ErrorResponse),+ (status = 401, body = ErrorResponse),+ (status = 404, body = ErrorResponse),+ (status = 500, body = ErrorResponse),+ )+)]+pub async fn patch_harness_handler<S: HarnessService, Auth: MacroAuthorizationService>(+ State(state): State<HarnessesRouterState<S, Auth>>,+ authorization: MacroAuthorizationExtractor<Auth, UserOrInternal>,+ Path(path): Path<HarnessPath>,+ Json(req): Json<PatchHarnessRequest>,+) -> Result<Json<Harness>, HarnessesHandlerErr> {+ Ok(Json(+ state+ .service+ .patch_harness(+ authorization.authorization.user.macro_user_id,+ path.harness_id,+ req,+ )+ .await?,+ ))+}+/// Handler for `DELETE /harnesses/{harness_id}`.#[utoipa::path(delete,diff --git a/crates/harnesses/src/outbound/pg_harness_repo.rs b/crates/harnesses/src/outbound/pg_harness_repo.rsindex 04894bd621..daa9eccbc1 100644--- a/crates/harnesses/src/outbound/pg_harness_repo.rs+++ b/crates/harnesses/src/outbound/pg_harness_repo.rs@@ -14,9 +14,9 @@ use uuid::Uuid;use crate::domain::{models::{Harness, HarnessAgent, HarnessOwner, HarnessSession, PairingClaimFacts, PairingDetails,- PairingStatus, RequestedHarnessScope,+ PairingStatus,},- ports::{HarnessRepo, NewHarness, NewPairing, OpenPairingCounts, PairingRow},+ ports::{HarnessChanges, HarnessRepo, NewHarness, NewPairing, OpenPairingCounts, PairingRow},};/// Postgres-backed harness repository.@@ -114,9 +114,8 @@ impl HarnessRepo for PgHarnessRepo {let inserted = sqlx::query!(r#"INSERT INTO harness_pairing_requests- (id, code, device_secret_hash, requested_name, host_info, requested_scope,- expires_at, requested_allow_permission_bypass)- VALUES ($1, $2, $3, $4, $5, $6, $7, $8)+ (id, code, device_secret_hash, requested_name, host_info, expires_at)+ VALUES ($1, $2, $3, $4, $5, $6)ON CONFLICT (code) DO NOTHING"#,pairing.id,@@ -124,9 +123,7 @@ impl HarnessRepo for PgHarnessRepo {&pairing.device_secret_hash[..],pairing.requested_name,pairing.host,- pairing.requested_scope.map(RequestedHarnessScope::as_str),pairing.expires_at,- pairing.requested_allow_permission_bypass,).execute(&self.pool).await@@ -175,8 +172,7 @@ impl HarnessRepo for PgHarnessRepo {async fn get_pairing(&self, code: &str) -> Result<Option<PairingRow>, Self::Err> {let row = sqlx::query!(r#"- SELECT code, requested_name, host_info, requested_scope,- requested_allow_permission_bypass, status, created_at, expires_at+ SELECT code, requested_name, host_info, status, created_at, expires_atFROM harness_pairing_requestsWHERE code = $1"#,@@ -187,19 +183,11 @@ impl HarnessRepo for PgHarnessRepo {.context("failed to fetch pairing")?;row.map(|row| {- let requested_scope = row- .requested_scope- .as_deref()- .map(str::parse::<RequestedHarnessScope>)- .transpose()- .map_err(anyhow::Error::msg)?;Ok(PairingRow {details: PairingDetails {code: row.code,requested_name: row.requested_name,host: row.host_info,- requested_scope,- requested_allow_permission_bypass: row.requested_allow_permission_bypass,created_at: row.created_at,expires_at: row.expires_at,},@@ -372,6 +360,35 @@ impl HarnessRepo for PgHarnessRepo {fetch_harness(&self.pool, harness_id.as_uuid()).await}+ async fn update_harness(+ &self,+ harness_id: HarnessId,+ changes: HarnessChanges,+ ) -> Result<Option<Harness>, Self::Err> {+ let row = sqlx::query_as!(+ HarnessRow,+ r#"+ UPDATE harnesses+ SET+ name = COALESCE($2, name),+ allow_permission_bypass = COALESCE($3, allow_permission_bypass),+ updated_at = now()+ WHERE id = $1 AND deleted_at IS NULL+ RETURNING+ id, kind, name, owner_user_id, team_id, created_by, allow_permission_bypass,+ created_at, updated_at, last_connected_at, last_disconnected_at+ "#,+ harness_id.as_uuid(),+ changes.name,+ changes.allow_permission_bypass,+ )+ .fetch_optional(&self.pool)+ .await+ .context("failed to update harness")?;++ row.map(Harness::try_from).transpose()+ }+async fn delete_harness(&self, harness_id: HarnessId) -> Result<bool, Self::Err> {let mut tx = self.pool.begin().await.context("failed to begin tx")?;diff --git a/crates/harnesses/src/outbound/pg_harness_repo/tests.rs b/crates/harnesses/src/outbound/pg_harness_repo/tests.rsindex def13e1cc8..14238e0805 100644--- a/crates/harnesses/src/outbound/pg_harness_repo/tests.rs+++ b/crates/harnesses/src/outbound/pg_harness_repo/tests.rs@@ -43,13 +43,11 @@ async fn insert_user(pool: &PgPool, user_id: &str) {fn new_pairing(code: &str, secret: &str) -> NewPairing {NewPairing {- requested_allow_permission_bypass: None,id: Uuid::new_v4(),code: code.to_owned(),device_secret_hash: harness_token::hash_token(secret),requested_name: "erics-macbook".to_owned(),host: Some("eric@macbook / darwin".to_owned()),- requested_scope: Some(RequestedHarnessScope::Team),expires_at: Utc::now() + Duration::minutes(15),}}@@ -77,10 +75,6 @@ async fn pairing_walks_create_approve_claim_exactly_once(pool: PgPool) {let row = repo.get_pairing("KX7M-4QHD").await.unwrap().unwrap();assert_eq!(row.status, PairingStatus::Pending);assert_eq!(row.details.requested_name, "erics-macbook");- assert_eq!(- row.details.requested_scope,- Some(RequestedHarnessScope::Team)- );let harness = repo.approve_pairing("KX7M-4QHD", new_harness()).await@@ -541,17 +535,55 @@ async fn permission_bypass_survives_registration_and_listing(pool: PgPool) {}#[sqlx::test(migrator = "MACRO_DB_MIGRATIONS")]-async fn pairing_permission_ceiling_roundtrips(pool: PgPool) {- let repo = PgHarnessRepo::new(pool);- for (code, allowed) in [- ("AAAA-AAAA", None),- ("BBBB-BBBB", Some(false)),- ("CCCC-CCCC", Some(true)),- ] {- let mut pairing = new_pairing(code, "device-secret");- pairing.requested_allow_permission_bypass = allowed;- assert!(repo.insert_pairing(pairing).await.unwrap());- let stored = repo.get_pairing(code).await.unwrap().unwrap();- assert_eq!(stored.details.requested_allow_permission_bypass, allowed);- }+async fn update_harness_changes_only_the_named_columns(pool: PgPool) {+ let repo = PgHarnessRepo::new(pool.clone());+ insert_user(&pool, OWNER_ID).await;+ repo.insert_pairing(new_pairing("AAAA-BBBB", "secret"))+ .await+ .unwrap();+ let harness = repo+ .approve_pairing("AAAA-BBBB", new_harness())+ .await+ .unwrap()+ .unwrap();++ let bypassed = repo+ .update_harness(+ harness.id,+ HarnessChanges {+ name: None,+ allow_permission_bypass: Some(true),+ },+ )+ .await+ .unwrap()+ .unwrap();+ assert!(bypassed.allow_permission_bypass);+ assert_eq!(bypassed.name, harness.name);++ let renamed = repo+ .update_harness(+ harness.id,+ HarnessChanges {+ name: Some("studio".to_owned()),+ allow_permission_bypass: None,+ },+ )+ .await+ .unwrap()+ .unwrap();+ assert_eq!(renamed.name, "studio");+ assert!(renamed.allow_permission_bypass);+ assert_eq!(+ repo.get_harness(harness.id).await.unwrap().unwrap().name,+ "studio"+ );++ assert!(repo.delete_harness(harness.id).await.unwrap());+ assert!(+ repo.update_harness(harness.id, HarnessChanges::default())+ .await+ .unwrap()+ .is_none()+ );}diff --git a/docs/agent-guide/ai-chat.md b/docs/agent-guide/ai-chat.mdindex 31bc74eab7..18a54fa4d5 100644--- a/docs/agent-guide/ai-chat.md+++ b/docs/agent-guide/ai-chat.md@@ -2090,20 +2090,19 @@ must stay hidden; subsequent live messages must still appear.Several permissions may be pending alongside one question; answering one leavesthe others available. Controls disappear when their turn ends, is stopped, ordisconnects, and old transcript requests cannot answer a later turn's request.-- **Runtime bypass consent.** Settings → Agents → Runtimes → New runtime offers- `Allow bypassing permission requests`, off by default. Enabling it warns that- agents may run commands and edit files on the machine without approval.- Macrod Quickstart and Config also offer `Full Access`, off by- default. Quickstart and Config give Full Access a bordered, three-line control- labeled `Suggested`, without enabling it. On short terminals, Config scrolls to- the selected setting and keeps consent warnings below it; Quickstart keeps its- submit button visible. The choice applies at the next pairing:- off disables bypass in the pairing page; on preselects bypass with a warning,- and the approving user can turn it off. Older daemons leave this choice to the pairing page.+- **Runtime bypass setting.** Bypass is a setting on the runtime, decided only+ on the web. Settings → Agents → Runtimes → New runtime offers+ `Allow bypassing permission requests`, off by default; enabling it warns that+ agents may run commands and edit files on the machine without approval. Each+ paired runtime then shows the same switch (enabling asks for confirmation) and+ a `Rename` action; a change reaches live sessions from their next turn, with+ no re-pairing. macrod has no Full Access or scope setting; its Config tab shows+ these values read-only and links to Runtimes.- **Agent permission policy.** Settings → Agents → Runtime shows `Always prompt`and `Always bypass` only for local macrod harnesses. The larger `Always bypass`choice is labeled `Suggested`; the label does not select it. Macrod defaults to- prompts; bypass requires both harness consent and the agent's explicit choice.+ prompts; bypass requires both the runtime's setting and the agent's explicit+ choice; otherwise the form says to allow bypass in the runtime's settings.Built-in Macro, in-memory, Cursor, and Codex runtimes always bypass and have nopermission policy selector. The backend enforces these policies.diff --git a/docs/agent-guide/settings.md b/docs/agent-guide/settings.mdindex 96ab2580d6..c8a20246fd 100644--- a/docs/agent-guide/settings.md+++ b/docs/agent-guide/settings.md@@ -741,7 +741,7 @@ New macrod sessions use the agent's saved model before sending the first prompt.Changing that default applies to new sessions; existing sessions keep their selected model.If the runtime rejects the saved model, the prompt fails instead of using a different model.-The `Runtimes` section shows built-in Macro, Cursor, and Codex configuration, followed by paired macrod runtimes. Codex's card appears only within the agents and Codex rollouts. On the desktop app only, a “This computer” card appears above the built-in runtimes: the bundled macrod daemon is set up from here with one click. `Set up` scans the machine for installed agents and names the one it will use (Claude Code first, then Codex, OpenCode, OpenClaw, Hermes); `Options` changes the agent, workspace folder, and a larger Full access choice labeled Suggested (unchecked until explicitly selected). `Set up <agent>` then walks a three-step checklist — Find an agent, Connect this computer (start, install the connector, link to the account; the pairing is approved automatically, no code is typed), Create your agent (a private `@<agent>` coding agent bound to this runtime) — and ends on `@<agent> is ready` with `Start a session`, which opens the Agents composer in Auto with that agent as the usual coding agent. A failed step shows its error and `Try again`, which resumes at the failed step. A desktop app that was never set up also shows a one-time “Run agents on this computer” prompt whose `Set up` runs the same flow in a dialog; closing the prompt sticks. Before this computer is paired, a dismissible “Run agents on this computer” invitation also appears above the Home input and the Agents new-conversation and active-session inputs; its `Set up` runs the same flow in a dialog in place, and dismissal applies only to this user on this computer. The Runtimes settings tab stays available in the desktop app even if the newer Agents view is disabled. A running runtime with no agent bound to it offers `Create agent`. The daemon runs with the user's interactive login-shell environment (variables exported from `.zshrc` and the like), so agents authenticate as they do in a terminal. The app then keeps the daemon up: it restarts after any unexpected exit (with backoff) and on every launch until the user presses `Stop`, and any re-pairing is approved from wherever the user is in the app, not only on this card. While running the card shows the bound agent and workspace with a `Stop` action; a stopped runtime offers `Start`. The web app never shows this card. The “Bring your own agent” card sits above the Agents / Runtimes navigation and is visible on both sections. It rotates Claude Code, OpenCode, OpenClaw, and Hermes; reduced motion keeps a static name. Its `New runtime` action opens the full-page pairing flow from either section: enter the code, look up the request, review the machine, name, sharing and permission consent, then Approve and Done. Back/Cancel returns to the runtime list. Destructive removal still requires confirmation. `/settings/runtimes` opens this section; legacy `/settings/harness?pair=…` links remain supported.+The `Runtimes` section shows built-in Macro, Cursor, and Codex configuration, followed by paired macrod runtimes. Codex's card appears only within the agents and Codex rollouts. On the desktop app only, a “This computer” card appears above the built-in runtimes: the bundled macrod daemon is set up from here with one click. `Set up` scans the machine for installed agents and names the one it will use (Claude Code first, then Codex, OpenCode, OpenClaw, Hermes); `Options` changes the agent, workspace folder, and a larger Full access choice labeled Suggested (unchecked until explicitly selected). `Set up <agent>` then walks a three-step checklist — Find an agent, Connect this computer (start, install the connector, link to the account; the pairing is approved automatically, no code is typed), Create your agent (a private `@<agent>` coding agent bound to this runtime) — and ends on `@<agent> is ready` with `Start a session`, which opens the Agents composer in Auto with that agent as the usual coding agent. A failed step shows its error and `Try again`, which resumes at the failed step. A desktop app that was never set up also shows a one-time “Run agents on this computer” prompt whose `Set up` runs the same flow in a dialog; closing the prompt sticks. Before this computer is paired, a dismissible “Run agents on this computer” invitation also appears above the Home input and the Agents new-conversation and active-session inputs; its `Set up` runs the same flow in a dialog in place, and dismissal applies only to this user on this computer. The Runtimes settings tab stays available in the desktop app even if the newer Agents view is disabled. A running runtime with no agent bound to it offers `Create agent`. The daemon runs with the user's interactive login-shell environment (variables exported from `.zshrc` and the like), so agents authenticate as they do in a terminal. The app then keeps the daemon up: it restarts after any unexpected exit (with backoff) and on every launch until the user presses `Stop`, and any re-pairing is approved from wherever the user is in the app, not only on this card. While running the card shows the bound agent and workspace with a `Stop` action; a stopped runtime offers `Start`. The web app never shows this card. The “Bring your own agent” card sits above the Agents / Runtimes navigation and is visible on both sections. It rotates Claude Code, OpenCode, OpenClaw, and Hermes; reduced motion keeps a static name. Its `New runtime` action opens the full-page pairing flow from either section: enter the code, look up the request, review the machine, name, sharing and permission bypass, then Approve and Done. Each row under Connected runtimes shows its name, Private/Team, connection, an `Allow bypassing permission requests` switch (confirmation on enable; applies from each session's next turn) and `Rename` / `Remove` actions. A runtime's name and bypass are set only here, and its Private/Team access only at approval; macrod.toml holds only machine-local config, and macrod refuses a file that still sets `[identity]` or a credentials `scope`. Desktop setup's Full access choice turns on that switch for the new runtime. Back/Cancel returns to the runtime list. Destructive removal still requires confirmation. `/settings/runtimes` opens this section; legacy `/settings/harness?pair=…` links remain supported.Connection chips in agent replies open this page, including before any account is connected. Cursor's default-model picker usesthe same live model discovery and retains its existing save action.diff --git a/packages/sdk/generated/storage/index.ts b/packages/sdk/generated/storage/index.tsindex 49f911fdbb..81c643c48a 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-tsexport { type Options, Sdk } from './sdk.gen';-export type { AccentColor, AccessiblePipeline, AccessLevel, AccessRequest, AccessRequestsCancelData, AccessRequestsCancelErrors, AccessRequestsCancelResponses, AccessRequestsDirectData, AccessRequestsDirectErrors, AccessRequestsDirectResponse, AccessRequestsDirectResponses, AccessRequestsRemoveDirectData, AccessRequestsRemoveDirectErrors, AccessRequestsRemoveDirectResponses, AccessRequestsResolveData, AccessRequestsResolveErrors, AccessRequestsResolveResponse, AccessRequestsResolveResponses, AccessRequestsSetDirectData, AccessRequestsSetDirectErrors, AccessRequestsSetDirectResponses, AccessRequestsStateData, AccessRequestsStateErrors, AccessRequestsStateResponse, AccessRequestsStateResponses, AccessRequestsSubmitData, AccessRequestsSubmitErrors, AccessRequestsSubmitResponse, AccessRequestsSubmitResponses, AccessRequestState, 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, AgentDmProfile, AgentMcpServer, AgentMcpServers, AgentPullRequestState, AgentSessionArchiveCause, AgentSessionFilters, AgentSessionLifecycleEvent, AgentSessionSource, AgentSessionVisibility, AgentTyping, AgentTypingPhase, AiAdmissionErrorBody, Anchor, AnchorId, AnchorResponse, AnnotationIncrementalUpdate, Answer, ApiActivity, ApiAttachmentChannelReference, ApiAttachmentCommentReference, 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, BlockCrmDomainData, BlockCrmDomainError, BlockCrmDomainErrors, BlockCrmDomainResponse, BlockCrmDomainResponses, BomPart, BookingTarget, Bot, BotChannel, BotChannelType, BotId, BotKind, BotOwner, BotOwnerProfile, BotSenderProfile, BotToken, BranchNameResponse, BTreeMap, BulkWakeupRequest, BulkWakeupResponse, BulkWakeupSyncServiceDocumentsData, BulkWakeupSyncServiceDocumentsErrors, BulkWakeupSyncServiceDocumentsResponse, BulkWakeupSyncServiceDocumentsResponses, CalendarAttendee, CalendarEvent, CalendarEventFilters, CalendarEventSourceContent, CalendarJoinRequest, CalendarJoinRequestApiError, CalendarJoinRequestErrorCode, CalendarJoinRequestsResponse, CalendarJoinRequestStatus, CalendarMentionEvent, CalendarMentionPreviewItem, CalendarMentionPreviewKind, CalendarMentionPreviewRequest, CalendarMentionPreviewRequestItem, CalendarMentionPreviewResponse, CalendarMentionViewerCopy, CalendarOccurrence, CalendarOccurrenceItem, CalendarOccurrenceResponse, CalendarSyncStatus, CallActiveResponse, CallFilters, CallProvider, CallRecord, CallRecordGuest, CallRecordParticipant, CallRecordPreview, CallRecordPreviewData, CallRecordSource, CallRecordTranscriptSegment, CallStatus, CallTokenResponse, CallWebhookData, CallWebhookError, CallWebhookErrors, CallWebhookResponses, CancelChannelAccessRequestData, CancelChannelAccessRequestError, CancelChannelAccessRequestErrors, CancelChannelAccessRequestResponses, CancelSlackImportData, CancelSlackImportErrors, CancelSlackImportResponse, CancelSlackImportResponses, CardPosition, CastVerdict, CellValue, CellWrite, ChangedFileDto, ChangesetDto, ChangesetSourceDto, Channel, ChannelAccessDecision, ChannelAccessRequest, ChannelAccessRequestedMetadata, ChannelAccessRequestState, ChannelAccessRequestStatus, ChannelCreatedMetadata, ChannelDeletedMetadata, ChannelFilters, ChannelJoinCodeResponse, ChannelLabel, ChannelLabelRule, ChannelLabelScopeSelection, ChannelLabelsList, ChannelMessage, ChannelParticipant, ChannelParticipantAddedMetadata, ChannelParticipantRemovedMetadata, ChannelPictureChangedMetadata, 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, ColumnId, 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, CreateCanvasDocumentRequest, CreateCanvasDocumentResponse, CreateCanvasHandlerData, CreateCanvasHandlerError, CreateCanvasHandlerErrors, CreateCanvasHandlerResponse, CreateCanvasHandlerResponses, 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, CreateCrmTeamContactData, CreateCrmTeamContactError, CreateCrmTeamContactErrors, CreateCrmTeamContactRequest, CreateCrmTeamContactResponse, CreateCrmTeamContactResponses, CreateDatabaseData, CreateDatabaseError, CreateDatabaseErrors, CreateDatabaseRequest, CreateDatabaseResponse, CreateDatabaseResponses, CreateDatabaseWebhookData, CreateDatabaseWebhookError, CreateDatabaseWebhookErrors, CreateDatabaseWebhookRequest, CreateDatabaseWebhookResponse, CreateDatabaseWebhookResponses, CreatedDatabaseWebhookResponse, 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, CrmAssociation, CrmBlockedDomainResponse, CrmCompanyFilters, CrmCompanyResponse, CrmContactResponse, CrmDomainResponse, CrmPermissionRole, CrmStageInput, CrmStageResponse, CrmStagesResponse, CrmTeamSettingsResponse, CustomSpeakerAssignment, Database, DatabaseDetail, DatabaseId, DatabaseOp, DatabaseQueryRequest, DatabaseView, DatabaseWebhookDeliveryResponse, DatabaseWebhookPayloadProblem, DatabaseWebhookResponse, DataType, DateOperator, DateRange, DateRangeOperator, DeclineCallData, DeclineCallError, DeclineCallErrors, DeclineCallResponse, DeclineCallResponses, DeclineRingData, DeclineRingError, DeclineRingErrors, DeclineRingResponse, DeclineRingResponses, 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, DeleteDatabaseWebhookData, DeleteDatabaseWebhookError, DeleteDatabaseWebhookErrors, DeleteDatabaseWebhookResponse, DeleteDatabaseWebhookResponses, 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, DeliverDatabaseWebhookData, DeliverDatabaseWebhookError, DeliverDatabaseWebhookErrors, DeliverDatabaseWebhookResponse, DeliverDatabaseWebhookResponses, DirectAccess, DocumentAiEdited, DocumentAiEditFailed, DocumentAiEditFailedCode, DocumentAiEditRefused, DocumentAiEditRefusedCode, DocumentAiEditRequest, 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, DocumentTextContent, DocumentTopicEvent, DocumentUpdatedMetadata, DuplicateDatabaseData, DuplicateDatabaseError, DuplicateDatabaseErrors, DuplicateDatabaseRequest, DuplicateDatabaseResponse, DuplicateDatabaseResponses, 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, EditDocumentWithAiData, EditDocumentWithAiError, EditDocumentWithAiErrors, EditDocumentWithAiResponse, EditDocumentWithAiResponses, 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, EventIcsData, EventIcsErrors, EventIcsResponse, EventIcsResponses, EventReminderOverride, EventReminders, EventStatus, EventTime, EventTransparency, EventType, EventVisibility, ExcludedDefaultView, ExcludeDefaultViewHandlerData, ExcludeDefaultViewHandlerError, ExcludeDefaultViewHandlerErrors, ExcludeDefaultViewHandlerResponses, ExcludeDefaultViewRequest, ExportDocumentData, ExportDocumentError, ExportDocumentErrors, ExportDocumentResponse, ExportDocumentResponse2, ExportDocumentResponses, ExternalChatAdd, ExternalChatAddData, ExternalChatAdded, ExternalChatAddResponse, ExternalChatAddResponses, ExternalChatAttachment, ExternalChatAttachmentState, ExternalChatBackfill, ExternalChatBackfillState, ExternalChatCall, ExternalChatCallOutcome, ExternalChatCapabilities, ExternalChatCommunity, ExternalChatContactCard, ExternalChatContacts, ExternalChatData, ExternalChatDeliveryData, ExternalChatDeliveryResponse, ExternalChatDeliveryResponses, ExternalChatDeliveryState, ExternalChatDetail, ExternalChatEvent, ExternalChatKind, ExternalChatLocation, ExternalChatMediaKind, ExternalChatMediaPresentation, ExternalChatMembers, ExternalChatMention, ExternalChatMessage, ExternalChatMessageAttachments, ExternalChatMessageAttachmentsData, ExternalChatMessageAttachmentsResponse, ExternalChatMessageAttachmentsResponses, ExternalChatMessageData, ExternalChatMessageKind, ExternalChatMessageResponse, ExternalChatMessageResponses, ExternalChatMessages, ExternalChatMessagesData, ExternalChatMessagesResponse, ExternalChatMessagesResponses, ExternalChatMutation, ExternalChatParticipant, ExternalChatPermissionsData, ExternalChatPermissionsResponse, ExternalChatPermissionsResponses, ExternalChatPersonRef, ExternalChatPoll, ExternalChatPollOption, ExternalChatProvider, ExternalChatReaction, ExternalChatReadData, ExternalChatReadResponse, ExternalChatReadResponses, ExternalChatReference, ExternalChatRemoveData, ExternalChatRemoveResponse, ExternalChatRemoveResponses, ExternalChatReplyBlock, ExternalChatReplyContent, ExternalChatResponse, ExternalChatResponses, ExternalChatRichContent, ExternalChatsData, ExternalChatSendData, ExternalChatSender, ExternalChatSendErrors, ExternalChatSendProgress, ExternalChatSendReply, ExternalChatSendResponse, ExternalChatSendResponses, ExternalChatSendsData, ExternalChatSendsResponse, ExternalChatSendsResponses, ExternalChatsResponse, ExternalChatsResponses, ExternalChatSummary, ExternalChatSystemAction, ExternalChatSystemLine, ExternalChatUpdatePermissionsData, ExternalChatUpdatePermissionsResponse, ExternalChatUpdatePermissionsResponses, ExternalChatUploadData, ExternalChatUploadedAttachment, ExternalChatUploadRequest, ExternalChatUploadResponse, ExternalChatUploadResponses, Favorite, FavoriteEntityRef, FavoritesList, FileChangeKindDto, FileSystemNodeWithIds, FileType, FileTypeUpdate, FilterCondition, FilterGroup, FilterNode, FilterTest, FinalizeSlackImportData, FinalizeSlackImportErrors, FinalizeSlackImportResponse, FinalizeSlackImportResponses, FolderItem, FollowupState, ForeignEntity, ForeignEntityFilters, Form, FormAccess, FormBranding, FormCollaboration, FormDetail, FormErrorCode, FormErrorResponse, FormLayout, FormPublicationProblem, FormQuestionDetail, FormResponse, FormSection, FormSectionDetail, FormSource, FormStatus, FormTally, Formula, 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, GetChannelAccessRequestData, GetChannelAccessRequestError, GetChannelAccessRequestErrors, GetChannelAccessRequestResponse, GetChannelAccessRequestResponses, 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, GetCrmPipelinePermissionsData, GetCrmPipelinePermissionsResponse, GetCrmPipelinePermissionsResponses, GetCrmPipelineResponse, GetCrmPipelineResponses, GetCrmPipelineRowsData, GetCrmPipelineRowsResponse, GetCrmPipelineRowsResponses, GetCrmPipelineStageRequirementsData, GetCrmPipelineStageRequirementsResponse, GetCrmPipelineStageRequirementsResponses, GetCrmPipelineTableData, GetCrmPipelineTableResponse, GetCrmPipelineTableResponses, GetCrmPipelineViewPositionsData, GetCrmPipelineViewPositionsResponse, GetCrmPipelineViewPositionsResponses, 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, GetDocumentTextContentData, GetDocumentTextContentErrors, GetDocumentTextContentResponse, GetDocumentTextContentResponses, 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, GetMyChannelAccessRequestData, GetMyChannelAccessRequestError, GetMyChannelAccessRequestErrors, GetMyChannelAccessRequestResponse, GetMyChannelAccessRequestResponses, 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, GetSkillDescriptionData, GetSkillDescriptionError, GetSkillDescriptionErrors, GetSkillDescriptionResponse, GetSkillDescriptionResponses, 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, GuestCallChatPostData, GuestCallChatPostErrors, GuestCallChatPostResponse, GuestCallChatPostResponses, GuestCallChatReadData, GuestCallChatReadErrors, GuestCallChatReadResponse, GuestCallChatReadResponses, GuestChatMessage, GuestChatPage, GuestChatPost, GuestId, GuestJoinRequest, GuestPolicy, 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, InvalidDatabaseWebhookPayloadResponse, 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, ListCrmBlockedDomainsData, ListCrmBlockedDomainsError, ListCrmBlockedDomainsErrors, ListCrmBlockedDomainsResponse, ListCrmBlockedDomainsResponses, ListCrmPipelinesData, ListCrmPipelinesResponse, ListCrmPipelinesResponses, ListDatabaseColumnCastsData, ListDatabaseColumnCastsError, ListDatabaseColumnCastsErrors, ListDatabaseColumnCastsResponse, ListDatabaseColumnCastsResponses, ListDatabasesData, ListDatabasesError, ListDatabasesErrors, ListDatabasesResponse, ListDatabasesResponses, ListDatabaseWebhooksData, ListDatabaseWebhooksError, ListDatabaseWebhooksErrors, ListDatabaseWebhooksResponse, ListDatabaseWebhooksResponse2, ListDatabaseWebhooksResponses, 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, ListJoinRequestsData, ListJoinRequestsError, ListJoinRequestsErrors, ListJoinRequestsResponse, ListJoinRequestsResponses, ListOccurrencesData, ListOccurrencesErrors, ListOccurrencesResponse, ListOccurrencesResponses, ListSlackImportsData, ListSlackImportsResponse, ListSlackImportsResponses, ListTeamCalendarData, ListTeamCalendarResponse, ListTeamCalendarResponses, ListTeamOutOfOfficeData, ListTeamOutOfOfficeErrors, ListTeamOutOfOfficeResponse, ListTeamOutOfOfficeResponses, ListUserApiKeysData, ListUserApiKeysError, ListUserApiKeysErrors, ListUserApiKeysResponse, ListUserApiKeysResponses, ListWebhooksData, ListWebhooksError, ListWebhooksErrors, ListWebhooksResponse, ListWebhooksResponse2, ListWebhooksResponses, LocationResponseData, LocationResponseV3, MacroUserIdStr, MarkRead, 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, MessageTimelineEntriesData, MessageTimelineEntriesResponse, MessageTimelineEntriesResponses, MessageTimelineEntry, MessageTimelinePage, MessageTimelineQuery, MessageTimelineResponse, MessageTimelineResponses, MessageTopicEvent, MyResponse, NewAttachment, NewColumn, NewOption, NewThreadAnchor, NewView, NotificationFilters, NotificationState, NumberOperator, OpBatch, Operator, OpRefusalResponse, OpResult, OptionId, 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, PropertyBucketing, PropertyDateFilterRange, PropertyDateRange, PropertyDateRanges, 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, QueryDatabasesData, QueryDatabasesError, QueryDatabasesErrors, QueryDatabasesResponse, QueryDatabasesResponses, 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, RequestAccess, RequestChannelAccessData, RequestChannelAccessError, RequestChannelAccessErrors, RequestChannelAccessResponse, RequestChannelAccessResponses, RequestedHarnessScope, RequestedLayout, RequestStatus, RequestToJoinData, RequestToJoinError, RequestToJoinErrors, RequestToJoinResponse, RequestToJoinResponses, ResetCrmTeamStagesData, ResetCrmTeamStagesError, ResetCrmTeamStagesErrors, ResetCrmTeamStagesResponse, ResetCrmTeamStagesResponses, ResolveChannelAccessRequest, ResolveChannelAccessRequestData, ResolveChannelAccessRequestError, ResolveChannelAccessRequestErrors, ResolveChannelAccessRequestResponse, ResolveChannelAccessRequestResponses, ResolveRequest, ResponseStatus, ResponseSummary, ResultColumn, ResultSet, 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, SessionSource, 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, SetCrmPipelineStageRequirementData, SetCrmPipelineStageRequirementResponse, SetCrmPipelineStageRequirementResponses, SetDirectAccess, SetDocumentTeamShareData, SetDocumentTeamShareError, SetDocumentTeamShareErrors, SetDocumentTeamShareRequest, SetDocumentTeamShareResponse, SetDocumentTeamShareResponses, SetEmailFollowupData, SetEmailFollowupError, SetEmailFollowupErrors, SetEmailFollowupResponse, SetEmailFollowupResponses, SetEmailSyncData, SetEmailSyncError, SetEmailSyncErrors, SetEmailSyncRequest, SetEmailSyncResponse, SetEmailSyncResponses, SetOperator, SetPropertyValue, SetSkillDescriptionData, SetSkillDescriptionError, SetSkillDescriptionErrors, SetSkillDescriptionRequest, SetSkillDescriptionResponse, SetSkillDescriptionResponses, Sha256Digest, ShareCrmPipelineData, ShareCrmPipelineResponse, ShareCrmPipelineResponses, ShareDatabaseAwarenessData, ShareDatabaseAwarenessError, ShareDatabaseAwarenessErrors, ShareDatabaseAwarenessResponse, ShareDatabaseAwarenessResponses, SharedEmailFilter, SharedExternalChatReference, ShareEntity, ShareEntityType, SharePermissionV2, SharePipeline, ShortIdResponse, SimpleMention, SimpleSaveData, SimpleSaveError, SimpleSaveErrors, SimpleSaveResponse, SimpleSaveResponses, SkillDescriptionBody, 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, SqlCell, SqlEntityKind, SqlOutcome, SqlOutcomeKind, SqlSelectOption, SqlStatement, StageRequirement, 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, TableId, TableResult, TableVersion, TagFilterMode, TakenId, TallyBucket, TallyValue, TaskFilters, TaskSimilarityResult, TaskSimilaritySearchHandlerData, TaskSimilaritySearchHandlerError, TaskSimilaritySearchHandlerErrors, TaskSimilaritySearchHandlerResponse, TaskSimilaritySearchHandlerResponses, TaskSimilaritySearchRequest, TaskSimilaritySearchResponse, TeamCalendarContent, TeamCalendarCoverage, TeamCalendarDetails, TeamCalendarItem, TeamCalendarMember, TeamCalendarPage, TeamCalendarSharing, TeamOutOfOfficeItem, TeamOutOfOfficeResponse, TeamRole, TextOperator, ThreadAnchor, ThreadOrigin, ThreadPatch, ThreadState, TimelineActivity, ToggleShareWithTeamData, ToggleShareWithTeamError, ToggleShareWithTeamErrors, ToggleShareWithTeamResponse, ToggleShareWithTeamResponses, TouchedColumn, TouchedRow, TranscribeDictationData, TranscribeDictationError, TranscribeDictationErrors, TranscribeDictationResponse, TranscribeDictationResponses, TranscribeResponse, TranscriptSegmentRequest, TrashCrmPipelineData, TrashCrmPipelineResponse, TrashCrmPipelineResponses, TrashPipeline, TurnEndedMetadata, TurnStartedMetadata, TurnSummary, TypedSuccessResponse, TypedSuccessResponseGetDocumentResponseData, TypingInput, UnblockCrmDomainData, UnblockCrmDomainError, UnblockCrmDomainErrors, UnblockCrmDomainResponse, UnblockCrmDomainResponses, UndoChangeResponse, UndoDatabaseChangeData, UndoDatabaseChangeError, UndoDatabaseChangeErrors, UndoDatabaseChangeResponse, UndoDatabaseChangeResponses, UndoOutcome, UndoRefusal, UnlockedBooking, UpdateAgentData, UpdateAgentError, UpdateAgentErrors, UpdateAgentRequest, UpdateAgentResponse, UpdateAgentResponses, UpdateChannelSharePermission, UpdateCrmPipelinePermissionsData, UpdateCrmPipelinePermissionsResponse, UpdateCrmPipelinePermissionsResponses, 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, ViewerCapabilities, ViewLayout, ViewPatch, ViewPosition, ViewPositionsResponse, ViewQuery, ViewResult, ViewsResponse, WaitingForInputMetadata, Webhook, WebhookEvent, WebhookFilter, WebhookScope, WebhookStatus, WebhookValidationTestEvent, WhatsAppAccount, WhatsappAccountData, WhatsappAccountResponse, WhatsappAccountResponses, WhatsAppAccountState, WhatsAppAccountView, WhatsappCancelPairingData, WhatsappCancelPairingResponse, WhatsappCancelPairingResponses, WhatsAppCannotAdd, WhatsAppChat, WhatsAppChats, WhatsappChatsData, WhatsappChatsResponse, WhatsappChatsResponses, WhatsAppConnect, WhatsappConnectData, WhatsappConnectResponse, WhatsappConnectResponses, WhatsAppDisconnect, WhatsappDisconnectData, WhatsAppDisconnectRequest, WhatsappDisconnectResponse, WhatsappDisconnectResponses, WhatsAppHistoryImport, WhatsappImportHistoryData, WhatsappImportHistoryResponse, WhatsappImportHistoryResponses, WhatsAppLookup, WhatsappLookupData, WhatsAppLookupRequest, WhatsappLookupResponse, WhatsappLookupResponses, WhatsAppLookupState, WhatsAppPairing, WhatsappPairingData, WhatsappPairingResponse, WhatsappPairingResponses, WhatsAppPairingState, WhatsAppPairState, WhatsappPasskeyData, WhatsappPasskeyResponse, WhatsappPasskeyResponses, WhatsappStartLookupData, WhatsappStartLookupResponse, WhatsappStartLookupResponses, Widget, WithCallId, WithChannelId, WithDocumentId, WithProjectId } from './types.gen';+export type { AccentColor, AccessiblePipeline, AccessLevel, AccessRequest, AccessRequestsCancelData, AccessRequestsCancelErrors, AccessRequestsCancelResponses, AccessRequestsDirectData, AccessRequestsDirectErrors, AccessRequestsDirectResponse, AccessRequestsDirectResponses, AccessRequestsRemoveDirectData, AccessRequestsRemoveDirectErrors, AccessRequestsRemoveDirectResponses, AccessRequestsResolveData, AccessRequestsResolveErrors, AccessRequestsResolveResponse, AccessRequestsResolveResponses, AccessRequestsSetDirectData, AccessRequestsSetDirectErrors, AccessRequestsSetDirectResponses, AccessRequestsStateData, AccessRequestsStateErrors, AccessRequestsStateResponse, AccessRequestsStateResponses, AccessRequestsSubmitData, AccessRequestsSubmitErrors, AccessRequestsSubmitResponse, AccessRequestsSubmitResponses, AccessRequestState, 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, AgentDmProfile, AgentMcpServer, AgentMcpServers, AgentPullRequestState, AgentSessionArchiveCause, AgentSessionFilters, AgentSessionLifecycleEvent, AgentSessionSource, AgentSessionVisibility, AgentTyping, AgentTypingPhase, AiAdmissionErrorBody, Anchor, AnchorId, AnchorResponse, AnnotationIncrementalUpdate, Answer, ApiActivity, ApiAttachmentChannelReference, ApiAttachmentCommentReference, 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, BlockCrmDomainData, BlockCrmDomainError, BlockCrmDomainErrors, BlockCrmDomainResponse, BlockCrmDomainResponses, BomPart, BookingTarget, Bot, BotChannel, BotChannelType, BotId, BotKind, BotOwner, BotOwnerProfile, BotSenderProfile, BotToken, BranchNameResponse, BTreeMap, BulkWakeupRequest, BulkWakeupResponse, BulkWakeupSyncServiceDocumentsData, BulkWakeupSyncServiceDocumentsErrors, BulkWakeupSyncServiceDocumentsResponse, BulkWakeupSyncServiceDocumentsResponses, CalendarAttendee, CalendarEvent, CalendarEventFilters, CalendarEventSourceContent, CalendarJoinRequest, CalendarJoinRequestApiError, CalendarJoinRequestErrorCode, CalendarJoinRequestsResponse, CalendarJoinRequestStatus, CalendarMentionEvent, CalendarMentionPreviewItem, CalendarMentionPreviewKind, CalendarMentionPreviewRequest, CalendarMentionPreviewRequestItem, CalendarMentionPreviewResponse, CalendarMentionViewerCopy, CalendarOccurrence, CalendarOccurrenceItem, CalendarOccurrenceResponse, CalendarSyncStatus, CallActiveResponse, CallFilters, CallProvider, CallRecord, CallRecordGuest, CallRecordParticipant, CallRecordPreview, CallRecordPreviewData, CallRecordSource, CallRecordTranscriptSegment, CallStatus, CallTokenResponse, CallWebhookData, CallWebhookError, CallWebhookErrors, CallWebhookResponses, CancelChannelAccessRequestData, CancelChannelAccessRequestError, CancelChannelAccessRequestErrors, CancelChannelAccessRequestResponses, CancelSlackImportData, CancelSlackImportErrors, CancelSlackImportResponse, CancelSlackImportResponses, CardPosition, CastVerdict, CellValue, CellWrite, ChangedFileDto, ChangesetDto, ChangesetSourceDto, Channel, ChannelAccessDecision, ChannelAccessRequest, ChannelAccessRequestedMetadata, ChannelAccessRequestState, ChannelAccessRequestStatus, ChannelCreatedMetadata, ChannelDeletedMetadata, ChannelFilters, ChannelJoinCodeResponse, ChannelLabel, ChannelLabelRule, ChannelLabelScopeSelection, ChannelLabelsList, ChannelMessage, ChannelParticipant, ChannelParticipantAddedMetadata, ChannelParticipantRemovedMetadata, ChannelPictureChangedMetadata, 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, ColumnId, 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, CreateCanvasDocumentRequest, CreateCanvasDocumentResponse, CreateCanvasHandlerData, CreateCanvasHandlerError, CreateCanvasHandlerErrors, CreateCanvasHandlerResponse, CreateCanvasHandlerResponses, 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, CreateCrmTeamContactData, CreateCrmTeamContactError, CreateCrmTeamContactErrors, CreateCrmTeamContactRequest, CreateCrmTeamContactResponse, CreateCrmTeamContactResponses, CreateDatabaseData, CreateDatabaseError, CreateDatabaseErrors, CreateDatabaseRequest, CreateDatabaseResponse, CreateDatabaseResponses, CreateDatabaseWebhookData, CreateDatabaseWebhookError, CreateDatabaseWebhookErrors, CreateDatabaseWebhookRequest, CreateDatabaseWebhookResponse, CreateDatabaseWebhookResponses, CreatedDatabaseWebhookResponse, 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, CrmAssociation, CrmBlockedDomainResponse, CrmCompanyFilters, CrmCompanyResponse, CrmContactResponse, CrmDomainResponse, CrmPermissionRole, CrmStageInput, CrmStageResponse, CrmStagesResponse, CrmTeamSettingsResponse, CustomSpeakerAssignment, Database, DatabaseDetail, DatabaseId, DatabaseOp, DatabaseQueryRequest, DatabaseView, DatabaseWebhookDeliveryResponse, DatabaseWebhookPayloadProblem, DatabaseWebhookResponse, DataType, DateOperator, DateRange, DateRangeOperator, DeclineCallData, DeclineCallError, DeclineCallErrors, DeclineCallResponse, DeclineCallResponses, DeclineRingData, DeclineRingError, DeclineRingErrors, DeclineRingResponse, DeclineRingResponses, 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, DeleteDatabaseWebhookData, DeleteDatabaseWebhookError, DeleteDatabaseWebhookErrors, DeleteDatabaseWebhookResponse, DeleteDatabaseWebhookResponses, 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, DeliverDatabaseWebhookData, DeliverDatabaseWebhookError, DeliverDatabaseWebhookErrors, DeliverDatabaseWebhookResponse, DeliverDatabaseWebhookResponses, DirectAccess, DocumentAiEdited, DocumentAiEditFailed, DocumentAiEditFailedCode, DocumentAiEditRefused, DocumentAiEditRefusedCode, DocumentAiEditRequest, 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, DocumentTextContent, DocumentTopicEvent, DocumentUpdatedMetadata, DuplicateDatabaseData, DuplicateDatabaseError, DuplicateDatabaseErrors, DuplicateDatabaseRequest, DuplicateDatabaseResponse, DuplicateDatabaseResponses, 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, EditDocumentWithAiData, EditDocumentWithAiError, EditDocumentWithAiErrors, EditDocumentWithAiResponse, EditDocumentWithAiResponses, 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, EventIcsData, EventIcsErrors, EventIcsResponse, EventIcsResponses, EventReminderOverride, EventReminders, EventStatus, EventTime, EventTransparency, EventType, EventVisibility, ExcludedDefaultView, ExcludeDefaultViewHandlerData, ExcludeDefaultViewHandlerError, ExcludeDefaultViewHandlerErrors, ExcludeDefaultViewHandlerResponses, ExcludeDefaultViewRequest, ExportDocumentData, ExportDocumentError, ExportDocumentErrors, ExportDocumentResponse, ExportDocumentResponse2, ExportDocumentResponses, ExternalChatAdd, ExternalChatAddData, ExternalChatAdded, ExternalChatAddResponse, ExternalChatAddResponses, ExternalChatAttachment, ExternalChatAttachmentState, ExternalChatBackfill, ExternalChatBackfillState, ExternalChatCall, ExternalChatCallOutcome, ExternalChatCapabilities, ExternalChatCommunity, ExternalChatContactCard, ExternalChatContacts, ExternalChatData, ExternalChatDeliveryData, ExternalChatDeliveryResponse, ExternalChatDeliveryResponses, ExternalChatDeliveryState, ExternalChatDetail, ExternalChatEvent, ExternalChatKind, ExternalChatLocation, ExternalChatMediaKind, ExternalChatMediaPresentation, ExternalChatMembers, ExternalChatMention, ExternalChatMessage, ExternalChatMessageAttachments, ExternalChatMessageAttachmentsData, ExternalChatMessageAttachmentsResponse, ExternalChatMessageAttachmentsResponses, ExternalChatMessageData, ExternalChatMessageKind, ExternalChatMessageResponse, ExternalChatMessageResponses, ExternalChatMessages, ExternalChatMessagesData, ExternalChatMessagesResponse, ExternalChatMessagesResponses, ExternalChatMutation, ExternalChatParticipant, ExternalChatPermissionsData, ExternalChatPermissionsResponse, ExternalChatPermissionsResponses, ExternalChatPersonRef, ExternalChatPoll, ExternalChatPollOption, ExternalChatProvider, ExternalChatReaction, ExternalChatReadData, ExternalChatReadResponse, ExternalChatReadResponses, ExternalChatReference, ExternalChatRemoveData, ExternalChatRemoveResponse, ExternalChatRemoveResponses, ExternalChatReplyBlock, ExternalChatReplyContent, ExternalChatResponse, ExternalChatResponses, ExternalChatRichContent, ExternalChatsData, ExternalChatSendData, ExternalChatSender, ExternalChatSendErrors, ExternalChatSendProgress, ExternalChatSendReply, ExternalChatSendResponse, ExternalChatSendResponses, ExternalChatSendsData, ExternalChatSendsResponse, ExternalChatSendsResponses, ExternalChatsResponse, ExternalChatsResponses, ExternalChatSummary, ExternalChatSystemAction, ExternalChatSystemLine, ExternalChatUpdatePermissionsData, ExternalChatUpdatePermissionsResponse, ExternalChatUpdatePermissionsResponses, ExternalChatUploadData, ExternalChatUploadedAttachment, ExternalChatUploadRequest, ExternalChatUploadResponse, ExternalChatUploadResponses, Favorite, FavoriteEntityRef, FavoritesList, FileChangeKindDto, FileSystemNodeWithIds, FileType, FileTypeUpdate, FilterCondition, FilterGroup, FilterNode, FilterTest, FinalizeSlackImportData, FinalizeSlackImportErrors, FinalizeSlackImportResponse, FinalizeSlackImportResponses, FolderItem, FollowupState, ForeignEntity, ForeignEntityFilters, Form, FormAccess, FormBranding, FormCollaboration, FormDetail, FormErrorCode, FormErrorResponse, FormLayout, FormPublicationProblem, FormQuestionDetail, FormResponse, FormSection, FormSectionDetail, FormSource, FormStatus, FormTally, Formula, 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, GetChannelAccessRequestData, GetChannelAccessRequestError, GetChannelAccessRequestErrors, GetChannelAccessRequestResponse, GetChannelAccessRequestResponses, 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, GetCrmPipelinePermissionsData, GetCrmPipelinePermissionsResponse, GetCrmPipelinePermissionsResponses, GetCrmPipelineResponse, GetCrmPipelineResponses, GetCrmPipelineRowsData, GetCrmPipelineRowsResponse, GetCrmPipelineRowsResponses, GetCrmPipelineStageRequirementsData, GetCrmPipelineStageRequirementsResponse, GetCrmPipelineStageRequirementsResponses, GetCrmPipelineTableData, GetCrmPipelineTableResponse, GetCrmPipelineTableResponses, GetCrmPipelineViewPositionsData, GetCrmPipelineViewPositionsResponse, GetCrmPipelineViewPositionsResponses, 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, GetDocumentTextContentData, GetDocumentTextContentErrors, GetDocumentTextContentResponse, GetDocumentTextContentResponses, 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, GetMyChannelAccessRequestData, GetMyChannelAccessRequestError, GetMyChannelAccessRequestErrors, GetMyChannelAccessRequestResponse, GetMyChannelAccessRequestResponses, 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, GetSkillDescriptionData, GetSkillDescriptionError, GetSkillDescriptionErrors, GetSkillDescriptionResponse, GetSkillDescriptionResponses, 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, GuestCallChatPostData, GuestCallChatPostErrors, GuestCallChatPostResponse, GuestCallChatPostResponses, GuestCallChatReadData, GuestCallChatReadErrors, GuestCallChatReadResponse, GuestCallChatReadResponses, GuestChatMessage, GuestChatPage, GuestChatPost, GuestId, GuestJoinRequest, GuestPolicy, 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, InvalidDatabaseWebhookPayloadResponse, 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, ListCrmBlockedDomainsData, ListCrmBlockedDomainsError, ListCrmBlockedDomainsErrors, ListCrmBlockedDomainsResponse, ListCrmBlockedDomainsResponses, ListCrmPipelinesData, ListCrmPipelinesResponse, ListCrmPipelinesResponses, ListDatabaseColumnCastsData, ListDatabaseColumnCastsError, ListDatabaseColumnCastsErrors, ListDatabaseColumnCastsResponse, ListDatabaseColumnCastsResponses, ListDatabasesData, ListDatabasesError, ListDatabasesErrors, ListDatabasesResponse, ListDatabasesResponses, ListDatabaseWebhooksData, ListDatabaseWebhooksError, ListDatabaseWebhooksErrors, ListDatabaseWebhooksResponse, ListDatabaseWebhooksResponse2, ListDatabaseWebhooksResponses, 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, ListJoinRequestsData, ListJoinRequestsError, ListJoinRequestsErrors, ListJoinRequestsResponse, ListJoinRequestsResponses, ListOccurrencesData, ListOccurrencesErrors, ListOccurrencesResponse, ListOccurrencesResponses, ListSlackImportsData, ListSlackImportsResponse, ListSlackImportsResponses, ListTeamCalendarData, ListTeamCalendarResponse, ListTeamCalendarResponses, ListTeamOutOfOfficeData, ListTeamOutOfOfficeErrors, ListTeamOutOfOfficeResponse, ListTeamOutOfOfficeResponses, ListUserApiKeysData, ListUserApiKeysError, ListUserApiKeysErrors, ListUserApiKeysResponse, ListUserApiKeysResponses, ListWebhooksData, ListWebhooksError, ListWebhooksErrors, ListWebhooksResponse, ListWebhooksResponse2, ListWebhooksResponses, LocationResponseData, LocationResponseV3, MacroUserIdStr, MarkRead, 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, MessageTimelineEntriesData, MessageTimelineEntriesResponse, MessageTimelineEntriesResponses, MessageTimelineEntry, MessageTimelinePage, MessageTimelineQuery, MessageTimelineResponse, MessageTimelineResponses, MessageTopicEvent, MyResponse, NewAttachment, NewColumn, NewOption, NewThreadAnchor, NewView, NotificationFilters, NotificationState, NumberOperator, OpBatch, Operator, OpRefusalResponse, OpResult, OptionId, OptionRef, PairingDetails, Params, ParticipantRole, PatchBotRequest, PatchChannelData, PatchChannelError, PatchChannelErrors, PatchChannelRequest, PatchChannelResponse, PatchChannelResponses, PatchHarnessData, PatchHarnessError, PatchHarnessErrors, PatchHarnessRequest, PatchHarnessResponse, PatchHarnessResponses, 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, PropertyBucketing, PropertyDateFilterRange, PropertyDateRange, PropertyDateRanges, 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, QueryDatabasesData, QueryDatabasesError, QueryDatabasesErrors, QueryDatabasesResponse, QueryDatabasesResponses, 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, RequestAccess, RequestChannelAccessData, RequestChannelAccessError, RequestChannelAccessErrors, RequestChannelAccessResponse, RequestChannelAccessResponses, RequestedLayout, RequestStatus, RequestToJoinData, RequestToJoinError, RequestToJoinErrors, RequestToJoinResponse, RequestToJoinResponses, ResetCrmTeamStagesData, ResetCrmTeamStagesError, ResetCrmTeamStagesErrors, ResetCrmTeamStagesResponse, ResetCrmTeamStagesResponses, ResolveChannelAccessRequest, ResolveChannelAccessRequestData, ResolveChannelAccessRequestError, ResolveChannelAccessRequestErrors, ResolveChannelAccessRequestResponse, ResolveChannelAccessRequestResponses, ResolveRequest, ResponseStatus, ResponseSummary, ResultColumn, ResultSet, 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, SessionSource, 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, SetCrmPipelineStageRequirementData, SetCrmPipelineStageRequirementResponse, SetCrmPipelineStageRequirementResponses, SetDirectAccess, SetDocumentTeamShareData, SetDocumentTeamShareError, SetDocumentTeamShareErrors, SetDocumentTeamShareRequest, SetDocumentTeamShareResponse, SetDocumentTeamShareResponses, SetEmailFollowupData, SetEmailFollowupError, SetEmailFollowupErrors, SetEmailFollowupResponse, SetEmailFollowupResponses, SetEmailSyncData, SetEmailSyncError, SetEmailSyncErrors, SetEmailSyncRequest, SetEmailSyncResponse, SetEmailSyncResponses, SetOperator, SetPropertyValue, SetSkillDescriptionData, SetSkillDescriptionError, SetSkillDescriptionErrors, SetSkillDescriptionRequest, SetSkillDescriptionResponse, SetSkillDescriptionResponses, Sha256Digest, ShareCrmPipelineData, ShareCrmPipelineResponse, ShareCrmPipelineResponses, ShareDatabaseAwarenessData, ShareDatabaseAwarenessError, ShareDatabaseAwarenessErrors, ShareDatabaseAwarenessResponse, ShareDatabaseAwarenessResponses, SharedEmailFilter, SharedExternalChatReference, ShareEntity, ShareEntityType, SharePermissionV2, SharePipeline, ShortIdResponse, SimpleMention, SimpleSaveData, SimpleSaveError, SimpleSaveErrors, SimpleSaveResponse, SimpleSaveResponses, SkillDescriptionBody, 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, SqlCell, SqlEntityKind, SqlOutcome, SqlOutcomeKind, SqlSelectOption, SqlStatement, StageRequirement, 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, TableId, TableResult, TableVersion, TagFilterMode, TakenId, TallyBucket, TallyValue, TaskFilters, TaskSimilarityResult, TaskSimilaritySearchHandlerData, TaskSimilaritySearchHandlerError, TaskSimilaritySearchHandlerErrors, TaskSimilaritySearchHandlerResponse, TaskSimilaritySearchHandlerResponses, TaskSimilaritySearchRequest, TaskSimilaritySearchResponse, TeamCalendarContent, TeamCalendarCoverage, TeamCalendarDetails, TeamCalendarItem, TeamCalendarMember, TeamCalendarPage, TeamCalendarSharing, TeamOutOfOfficeItem, TeamOutOfOfficeResponse, TeamRole, TextOperator, ThreadAnchor, ThreadOrigin, ThreadPatch, ThreadState, TimelineActivity, ToggleShareWithTeamData, ToggleShareWithTeamError, ToggleShareWithTeamErrors, ToggleShareWithTeamResponse, ToggleShareWithTeamResponses, TouchedColumn, TouchedRow, TranscribeDictationData, TranscribeDictationError, TranscribeDictationErrors, TranscribeDictationResponse, TranscribeDictationResponses, TranscribeResponse, TranscriptSegmentRequest, TrashCrmPipelineData, TrashCrmPipelineResponse, TrashCrmPipelineResponses, TrashPipeline, TurnEndedMetadata, TurnStartedMetadata, TurnSummary, TypedSuccessResponse, TypedSuccessResponseGetDocumentResponseData, TypingInput, UnblockCrmDomainData, UnblockCrmDomainError, UnblockCrmDomainErrors, UnblockCrmDomainResponse, UnblockCrmDomainResponses, UndoChangeResponse, UndoDatabaseChangeData, UndoDatabaseChangeError, UndoDatabaseChangeErrors, UndoDatabaseChangeResponse, UndoDatabaseChangeResponses, UndoOutcome, UndoRefusal, UnlockedBooking, UpdateAgentData, UpdateAgentError, UpdateAgentErrors, UpdateAgentRequest, UpdateAgentResponse, UpdateAgentResponses, UpdateChannelSharePermission, UpdateCrmPipelinePermissionsData, UpdateCrmPipelinePermissionsResponse, UpdateCrmPipelinePermissionsResponses, 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, ViewerCapabilities, ViewLayout, ViewPatch, ViewPosition, ViewPositionsResponse, ViewQuery, ViewResult, ViewsResponse, WaitingForInputMetadata, Webhook, WebhookEvent, WebhookFilter, WebhookScope, WebhookStatus, WebhookValidationTestEvent, WhatsAppAccount, WhatsappAccountData, WhatsappAccountResponse, WhatsappAccountResponses, WhatsAppAccountState, WhatsAppAccountView, WhatsappCancelPairingData, WhatsappCancelPairingResponse, WhatsappCancelPairingResponses, WhatsAppCannotAdd, WhatsAppChat, WhatsAppChats, WhatsappChatsData, WhatsappChatsResponse, WhatsappChatsResponses, WhatsAppConnect, WhatsappConnectData, WhatsappConnectResponse, WhatsappConnectResponses, WhatsAppDisconnect, WhatsappDisconnectData, WhatsAppDisconnectRequest, WhatsappDisconnectResponse, WhatsappDisconnectResponses, WhatsAppHistoryImport, WhatsappImportHistoryData, WhatsappImportHistoryResponse, WhatsappImportHistoryResponses, WhatsAppLookup, WhatsappLookupData, WhatsAppLookupRequest, WhatsappLookupResponse, WhatsappLookupResponses, WhatsAppLookupState, WhatsAppPairing, WhatsappPairingData, WhatsappPairingResponse, WhatsappPairingResponses, WhatsAppPairingState, WhatsAppPairState, WhatsappPasskeyData, WhatsappPasskeyResponse, WhatsappPasskeyResponses, WhatsappStartLookupData, WhatsappStartLookupResponse, WhatsappStartLookupResponses, 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.tsindex 45beb9621c..1a8c32ec06 100644--- a/packages/sdk/generated/storage/sdk.gen.ts+++ b/packages/sdk/generated/storage/sdk.gen.ts@@ -2,7 +2,7 @@import { type Client, type ClientMeta, formDataBodySerializer, type Options as Options2, type RequestResult, type ServerSentEventsResult, type TDataShape } from './client';import { client } from './client.gen';-import type { AccessRequestsCancelData, AccessRequestsCancelErrors, AccessRequestsCancelResponses, AccessRequestsDirectData, AccessRequestsDirectErrors, AccessRequestsDirectResponses, AccessRequestsRemoveDirectData, AccessRequestsRemoveDirectErrors, AccessRequestsRemoveDirectResponses, AccessRequestsResolveData, AccessRequestsResolveErrors, AccessRequestsResolveResponses, AccessRequestsSetDirectData, AccessRequestsSetDirectErrors, AccessRequestsSetDirectResponses, AccessRequestsStateData, AccessRequestsStateErrors, AccessRequestsStateResponses, AccessRequestsSubmitData, AccessRequestsSubmitErrors, AccessRequestsSubmitResponses, AddFavoriteData, AddFavoriteErrors, AddFavoriteResponses, AddParticipantsData, AddParticipantsErrors, AddParticipantsResponses, AddPinHandlerData, AddPinHandlerErrors, AddPinHandlerResponses, ApplyCrmPipelineOpsData, ApplyCrmPipelineOpsResponses, ApplyDatabaseOpsData, ApplyDatabaseOpsErrors, ApplyDatabaseOpsResponses, ApproveHarnessPairingData, ApproveHarnessPairingErrors, ApproveHarnessPairingResponses, BlockCrmDomainData, BlockCrmDomainErrors, BlockCrmDomainResponses, BulkWakeupSyncServiceDocumentsData, BulkWakeupSyncServiceDocumentsErrors, BulkWakeupSyncServiceDocumentsResponses, CallWebhookData, CallWebhookErrors, CallWebhookResponses, CancelChannelAccessRequestData, CancelChannelAccessRequestErrors, CancelChannelAccessRequestResponses, 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, CreateCanvasHandlerData, CreateCanvasHandlerErrors, CreateCanvasHandlerResponses, CreateChannelData, CreateChannelErrors, CreateChannelLabelData, CreateChannelLabelErrors, CreateChannelLabelResponses, CreateChannelResponses, CreateChannelScopedBotData, CreateChannelScopedBotErrors, CreateChannelScopedBotResponses, CreateCollabSurfaceTokenData, CreateCollabSurfaceTokenErrors, CreateCollabSurfaceTokenResponses, CreateCrmCompanyData, CreateCrmCompanyErrors, CreateCrmCompanyResponses, CreateCrmContactData, CreateCrmContactErrors, CreateCrmContactResponses, CreateCrmPipelineData, CreateCrmPipelineResponses, CreateCrmTeamContactData, CreateCrmTeamContactErrors, CreateCrmTeamContactResponses, CreateDatabaseData, CreateDatabaseErrors, CreateDatabaseResponses, CreateDatabaseWebhookData, CreateDatabaseWebhookErrors, CreateDatabaseWebhookResponses, 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, DeclineCallData, DeclineCallErrors, DeclineCallResponses, DeclineRingData, DeclineRingErrors, DeclineRingResponses, DeleteAnchorData, DeleteAnchorErrors, DeleteAnchorResponses, DeleteCallRecordData, DeleteCallRecordErrors, DeleteCallRecordResponses, DeleteChannelData, DeleteChannelErrors, DeleteChannelLabelData, DeleteChannelLabelErrors, DeleteChannelLabelResponses, DeleteChannelResponses, DeleteCollabSurfaceData, DeleteCollabSurfaceErrors, DeleteCollabSurfaceResponses, DeleteDatabaseWebhookData, DeleteDatabaseWebhookErrors, DeleteDatabaseWebhookResponses, 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, DeliverDatabaseWebhookData, DeliverDatabaseWebhookErrors, DeliverDatabaseWebhookResponses, DuplicateDatabaseData, DuplicateDatabaseErrors, DuplicateDatabaseResponses, EditAnchorData, EditAnchorErrors, EditAnchorResponses, EditCallRecordData, EditCallRecordErrors, EditCallRecordResponses, EditCallTranscriptData, EditCallTranscriptErrors, EditCallTranscriptResponses, EditDocumentData, EditDocumentErrors, EditDocumentResponses, EditDocumentWithAiData, EditDocumentWithAiErrors, EditDocumentWithAiResponses, 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, EventIcsData, EventIcsErrors, EventIcsResponses, ExcludeDefaultViewHandlerData, ExcludeDefaultViewHandlerErrors, ExcludeDefaultViewHandlerResponses, ExportDocumentData, ExportDocumentErrors, ExportDocumentResponses, ExternalChatAddData, ExternalChatAddResponses, ExternalChatData, ExternalChatDeliveryData, ExternalChatDeliveryResponses, ExternalChatMessageAttachmentsData, ExternalChatMessageAttachmentsResponses, ExternalChatMessageData, ExternalChatMessageResponses, ExternalChatMessagesData, ExternalChatMessagesResponses, ExternalChatPermissionsData, ExternalChatPermissionsResponses, ExternalChatReadData, ExternalChatReadResponses, ExternalChatRemoveData, ExternalChatRemoveResponses, ExternalChatResponses, ExternalChatsData, ExternalChatSendData, ExternalChatSendErrors, ExternalChatSendResponses, ExternalChatSendsData, ExternalChatSendsResponses, ExternalChatsResponses, ExternalChatUpdatePermissionsData, ExternalChatUpdatePermissionsResponses, ExternalChatUploadData, ExternalChatUploadResponses, 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, GetChannelAccessRequestData, GetChannelAccessRequestErrors, GetChannelAccessRequestResponses, 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, GetCrmPipelinePermissionsData, GetCrmPipelinePermissionsResponses, GetCrmPipelineResponses, GetCrmPipelineRowsData, GetCrmPipelineRowsResponses, GetCrmPipelineStageRequirementsData, GetCrmPipelineStageRequirementsResponses, GetCrmPipelineTableData, GetCrmPipelineTableResponses, GetCrmPipelineViewPositionsData, GetCrmPipelineViewPositionsResponses, 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, GetDocumentTextContentData, GetDocumentTextContentErrors, GetDocumentTextContentResponses, 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, GetMyChannelAccessRequestData, GetMyChannelAccessRequestErrors, GetMyChannelAccessRequestResponses, 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, GetSkillDescriptionData, GetSkillDescriptionErrors, GetSkillDescriptionResponses, GetSlackImportData, GetSlackImportErrors, GetSlackImportResponses, GetSystemSkillsHandlerData, GetSystemSkillsHandlerErrors, GetSystemSkillsHandlerResponses, GetUserDocumentsHandlerData, GetUserDocumentsHandlerErrors, GetUserDocumentsHandlerResponses, GetUserDocumentViewLocationData, GetUserDocumentViewLocationErrors, GetUserDocumentViewLocationResponses, GetViewsHandlerData, GetViewsHandlerErrors, GetViewsHandlerResponses, GetWebhookData, GetWebhookErrors, GetWebhookResponses, GuestCallChatPostData, GuestCallChatPostErrors, GuestCallChatPostResponses, GuestCallChatReadData, GuestCallChatReadErrors, GuestCallChatReadResponses, 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, ListCrmBlockedDomainsData, ListCrmBlockedDomainsErrors, ListCrmBlockedDomainsResponses, ListCrmPipelinesData, ListCrmPipelinesResponses, ListDatabaseColumnCastsData, ListDatabaseColumnCastsErrors, ListDatabaseColumnCastsResponses, ListDatabasesData, ListDatabasesErrors, ListDatabasesResponses, ListDatabaseWebhooksData, ListDatabaseWebhooksErrors, ListDatabaseWebhooksResponses, ListEmailRemindersData, ListEmailRemindersErrors, ListEmailRemindersResponses, ListFavoritesData, ListFavoritesErrors, ListFavoritesResponses, ListFormsData, ListFormsErrors, ListFormsResponses, ListHarnessAgentsData, ListHarnessAgentsErrors, ListHarnessAgentsResponses, ListHarnessesData, ListHarnessesErrors, ListHarnessesResponses, ListHarnessSessionsData, ListHarnessSessionsErrors, ListHarnessSessionsResponses, ListInitiativesData, ListInitiativesErrors, ListInitiativesResponses, ListJoinRequestsData, ListJoinRequestsErrors, ListJoinRequestsResponses, ListOccurrencesData, ListOccurrencesErrors, ListOccurrencesResponses, ListSlackImportsData, ListSlackImportsResponses, ListTeamCalendarData, ListTeamCalendarResponses, 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, MessageTimelineEntriesData, MessageTimelineEntriesResponses, 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, QueryDatabasesData, QueryDatabasesErrors, QueryDatabasesResponses, 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, RequestChannelAccessData, RequestChannelAccessErrors, RequestChannelAccessResponses, RequestToJoinData, RequestToJoinErrors, RequestToJoinResponses, ResetCrmTeamStagesData, ResetCrmTeamStagesErrors, ResetCrmTeamStagesResponses, ResolveChannelAccessRequestData, ResolveChannelAccessRequestErrors, ResolveChannelAccessRequestResponses, 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, SetCrmPipelineStageRequirementData, SetCrmPipelineStageRequirementResponses, SetDocumentTeamShareData, SetDocumentTeamShareErrors, SetDocumentTeamShareResponses, SetEmailFollowupData, SetEmailFollowupErrors, SetEmailFollowupResponses, SetEmailSyncData, SetEmailSyncErrors, SetEmailSyncResponses, SetSkillDescriptionData, SetSkillDescriptionErrors, SetSkillDescriptionResponses, ShareCrmPipelineData, ShareCrmPipelineResponses, ShareDatabaseAwarenessData, ShareDatabaseAwarenessErrors, ShareDatabaseAwarenessResponses, SimpleSaveData, SimpleSaveErrors, SimpleSaveResponses, StreamEventsData, StreamEventsErrors, StreamEventsResponse, StreamEventsResponses, SubmitFormResponseData, SubmitFormResponseErrors, SubmitFormResponseResponses, TaskSimilaritySearchHandlerData, TaskSimilaritySearchHandlerErrors, TaskSimilaritySearchHandlerResponses, ToggleShareWithTeamData, ToggleShareWithTeamErrors, ToggleShareWithTeamResponses, TranscribeDictationData, TranscribeDictationErrors, TranscribeDictationResponses, TrashCrmPipelineData, TrashCrmPipelineResponses, UnblockCrmDomainData, UnblockCrmDomainErrors, UnblockCrmDomainResponses, UndoDatabaseChangeData, UndoDatabaseChangeErrors, UndoDatabaseChangeResponses, UpdateAgentData, UpdateAgentErrors, UpdateAgentResponses, UpdateCrmPipelinePermissionsData, UpdateCrmPipelinePermissionsResponses, 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, WhatsappAccountData, WhatsappAccountResponses, WhatsappCancelPairingData, WhatsappCancelPairingResponses, WhatsappChatsData, WhatsappChatsResponses, WhatsappConnectData, WhatsappConnectResponses, WhatsappDisconnectData, WhatsappDisconnectResponses, WhatsappImportHistoryData, WhatsappImportHistoryResponses, WhatsappLookupData, WhatsappLookupResponses, WhatsappPairingData, WhatsappPairingResponses, WhatsappPasskeyData, WhatsappPasskeyResponses, WhatsappStartLookupData, WhatsappStartLookupResponses } from './types.gen';+import type { AccessRequestsCancelData, AccessRequestsCancelErrors, AccessRequestsCancelResponses, AccessRequestsDirectData, AccessRequestsDirectErrors, AccessRequestsDirectResponses, AccessRequestsRemoveDirectData, AccessRequestsRemoveDirectErrors, AccessRequestsRemoveDirectResponses, AccessRequestsResolveData, AccessRequestsResolveErrors, AccessRequestsResolveResponses, AccessRequestsSetDirectData, AccessRequestsSetDirectErrors, AccessRequestsSetDirectResponses, AccessRequestsStateData, AccessRequestsStateErrors, AccessRequestsStateResponses, AccessRequestsSubmitData, AccessRequestsSubmitErrors, AccessRequestsSubmitResponses, AddFavoriteData, AddFavoriteErrors, AddFavoriteResponses, AddParticipantsData, AddParticipantsErrors, AddParticipantsResponses, AddPinHandlerData, AddPinHandlerErrors, AddPinHandlerResponses, ApplyCrmPipelineOpsData, ApplyCrmPipelineOpsResponses, ApplyDatabaseOpsData, ApplyDatabaseOpsErrors, ApplyDatabaseOpsResponses, ApproveHarnessPairingData, ApproveHarnessPairingErrors, ApproveHarnessPairingResponses, BlockCrmDomainData, BlockCrmDomainErrors, BlockCrmDomainResponses, BulkWakeupSyncServiceDocumentsData, BulkWakeupSyncServiceDocumentsErrors, BulkWakeupSyncServiceDocumentsResponses, CallWebhookData, CallWebhookErrors, CallWebhookResponses, CancelChannelAccessRequestData, CancelChannelAccessRequestErrors, CancelChannelAccessRequestResponses, 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, CreateCanvasHandlerData, CreateCanvasHandlerErrors, CreateCanvasHandlerResponses, CreateChannelData, CreateChannelErrors, CreateChannelLabelData, CreateChannelLabelErrors, CreateChannelLabelResponses, CreateChannelResponses, CreateChannelScopedBotData, CreateChannelScopedBotErrors, CreateChannelScopedBotResponses, CreateCollabSurfaceTokenData, CreateCollabSurfaceTokenErrors, CreateCollabSurfaceTokenResponses, CreateCrmCompanyData, CreateCrmCompanyErrors, CreateCrmCompanyResponses, CreateCrmContactData, CreateCrmContactErrors, CreateCrmContactResponses, CreateCrmPipelineData, CreateCrmPipelineResponses, CreateCrmTeamContactData, CreateCrmTeamContactErrors, CreateCrmTeamContactResponses, CreateDatabaseData, CreateDatabaseErrors, CreateDatabaseResponses, CreateDatabaseWebhookData, CreateDatabaseWebhookErrors, CreateDatabaseWebhookResponses, 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, DeclineCallData, DeclineCallErrors, DeclineCallResponses, DeclineRingData, DeclineRingErrors, DeclineRingResponses, DeleteAnchorData, DeleteAnchorErrors, DeleteAnchorResponses, DeleteCallRecordData, DeleteCallRecordErrors, DeleteCallRecordResponses, DeleteChannelData, DeleteChannelErrors, DeleteChannelLabelData, DeleteChannelLabelErrors, DeleteChannelLabelResponses, DeleteChannelResponses, DeleteCollabSurfaceData, DeleteCollabSurfaceErrors, DeleteCollabSurfaceResponses, DeleteDatabaseWebhookData, DeleteDatabaseWebhookErrors, DeleteDatabaseWebhookResponses, 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, DeliverDatabaseWebhookData, DeliverDatabaseWebhookErrors, DeliverDatabaseWebhookResponses, DuplicateDatabaseData, DuplicateDatabaseErrors, DuplicateDatabaseResponses, EditAnchorData, EditAnchorErrors, EditAnchorResponses, EditCallRecordData, EditCallRecordErrors, EditCallRecordResponses, EditCallTranscriptData, EditCallTranscriptErrors, EditCallTranscriptResponses, EditDocumentData, EditDocumentErrors, EditDocumentResponses, EditDocumentWithAiData, EditDocumentWithAiErrors, EditDocumentWithAiResponses, 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, EventIcsData, EventIcsErrors, EventIcsResponses, ExcludeDefaultViewHandlerData, ExcludeDefaultViewHandlerErrors, ExcludeDefaultViewHandlerResponses, ExportDocumentData, ExportDocumentErrors, ExportDocumentResponses, ExternalChatAddData, ExternalChatAddResponses, ExternalChatData, ExternalChatDeliveryData, ExternalChatDeliveryResponses, ExternalChatMessageAttachmentsData, ExternalChatMessageAttachmentsResponses, ExternalChatMessageData, ExternalChatMessageResponses, ExternalChatMessagesData, ExternalChatMessagesResponses, ExternalChatPermissionsData, ExternalChatPermissionsResponses, ExternalChatReadData, ExternalChatReadResponses, ExternalChatRemoveData, ExternalChatRemoveResponses, ExternalChatResponses, ExternalChatsData, ExternalChatSendData, ExternalChatSendErrors, ExternalChatSendResponses, ExternalChatSendsData, ExternalChatSendsResponses, ExternalChatsResponses, ExternalChatUpdatePermissionsData, ExternalChatUpdatePermissionsResponses, ExternalChatUploadData, ExternalChatUploadResponses, 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, GetChannelAccessRequestData, GetChannelAccessRequestErrors, GetChannelAccessRequestResponses, 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, GetCrmPipelinePermissionsData, GetCrmPipelinePermissionsResponses, GetCrmPipelineResponses, GetCrmPipelineRowsData, GetCrmPipelineRowsResponses, GetCrmPipelineStageRequirementsData, GetCrmPipelineStageRequirementsResponses, GetCrmPipelineTableData, GetCrmPipelineTableResponses, GetCrmPipelineViewPositionsData, GetCrmPipelineViewPositionsResponses, 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, GetDocumentTextContentData, GetDocumentTextContentErrors, GetDocumentTextContentResponses, 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, GetMyChannelAccessRequestData, GetMyChannelAccessRequestErrors, GetMyChannelAccessRequestResponses, 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, GetSkillDescriptionData, GetSkillDescriptionErrors, GetSkillDescriptionResponses, GetSlackImportData, GetSlackImportErrors, GetSlackImportResponses, GetSystemSkillsHandlerData, GetSystemSkillsHandlerErrors, GetSystemSkillsHandlerResponses, GetUserDocumentsHandlerData, GetUserDocumentsHandlerErrors, GetUserDocumentsHandlerResponses, GetUserDocumentViewLocationData, GetUserDocumentViewLocationErrors, GetUserDocumentViewLocationResponses, GetViewsHandlerData, GetViewsHandlerErrors, GetViewsHandlerResponses, GetWebhookData, GetWebhookErrors, GetWebhookResponses, GuestCallChatPostData, GuestCallChatPostErrors, GuestCallChatPostResponses, GuestCallChatReadData, GuestCallChatReadErrors, GuestCallChatReadResponses, 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, ListCrmBlockedDomainsData, ListCrmBlockedDomainsErrors, ListCrmBlockedDomainsResponses, ListCrmPipelinesData, ListCrmPipelinesResponses, ListDatabaseColumnCastsData, ListDatabaseColumnCastsErrors, ListDatabaseColumnCastsResponses, ListDatabasesData, ListDatabasesErrors, ListDatabasesResponses, ListDatabaseWebhooksData, ListDatabaseWebhooksErrors, ListDatabaseWebhooksResponses, ListEmailRemindersData, ListEmailRemindersErrors, ListEmailRemindersResponses, ListFavoritesData, ListFavoritesErrors, ListFavoritesResponses, ListFormsData, ListFormsErrors, ListFormsResponses, ListHarnessAgentsData, ListHarnessAgentsErrors, ListHarnessAgentsResponses, ListHarnessesData, ListHarnessesErrors, ListHarnessesResponses, ListHarnessSessionsData, ListHarnessSessionsErrors, ListHarnessSessionsResponses, ListInitiativesData, ListInitiativesErrors, ListInitiativesResponses, ListJoinRequestsData, ListJoinRequestsErrors, ListJoinRequestsResponses, ListOccurrencesData, ListOccurrencesErrors, ListOccurrencesResponses, ListSlackImportsData, ListSlackImportsResponses, ListTeamCalendarData, ListTeamCalendarResponses, 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, MessageTimelineEntriesData, MessageTimelineEntriesResponses, MessageTimelineResponses, PatchChannelData, PatchChannelErrors, PatchChannelResponses, PatchHarnessData, PatchHarnessErrors, PatchHarnessResponses, 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, QueryDatabasesData, QueryDatabasesErrors, QueryDatabasesResponses, 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, RequestChannelAccessData, RequestChannelAccessErrors, RequestChannelAccessResponses, RequestToJoinData, RequestToJoinErrors, RequestToJoinResponses, ResetCrmTeamStagesData, ResetCrmTeamStagesErrors, ResetCrmTeamStagesResponses, ResolveChannelAccessRequestData, ResolveChannelAccessRequestErrors, ResolveChannelAccessRequestResponses, 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, SetCrmPipelineStageRequirementData, SetCrmPipelineStageRequirementResponses, SetDocumentTeamShareData, SetDocumentTeamShareErrors, SetDocumentTeamShareResponses, SetEmailFollowupData, SetEmailFollowupErrors, SetEmailFollowupResponses, SetEmailSyncData, SetEmailSyncErrors, SetEmailSyncResponses, SetSkillDescriptionData, SetSkillDescriptionErrors, SetSkillDescriptionResponses, ShareCrmPipelineData, ShareCrmPipelineResponses, ShareDatabaseAwarenessData, ShareDatabaseAwarenessErrors, ShareDatabaseAwarenessResponses, SimpleSaveData, SimpleSaveErrors, SimpleSaveResponses, StreamEventsData, StreamEventsErrors, StreamEventsResponse, StreamEventsResponses, SubmitFormResponseData, SubmitFormResponseErrors, SubmitFormResponseResponses, TaskSimilaritySearchHandlerData, TaskSimilaritySearchHandlerErrors, TaskSimilaritySearchHandlerResponses, ToggleShareWithTeamData, ToggleShareWithTeamErrors, ToggleShareWithTeamResponses, TranscribeDictationData, TranscribeDictationErrors, TranscribeDictationResponses, TrashCrmPipelineData, TrashCrmPipelineResponses, UnblockCrmDomainData, UnblockCrmDomainErrors, UnblockCrmDomainResponses, UndoDatabaseChangeData, UndoDatabaseChangeErrors, UndoDatabaseChangeResponses, UpdateAgentData, UpdateAgentErrors, UpdateAgentResponses, UpdateCrmPipelinePermissionsData, UpdateCrmPipelinePermissionsResponses, 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, WhatsappAccountData, WhatsappAccountResponses, WhatsappCancelPairingData, WhatsappCancelPairingResponses, WhatsappChatsData, WhatsappChatsResponses, WhatsappConnectData, WhatsappConnectResponses, WhatsappDisconnectData, WhatsappDisconnectResponses, WhatsappImportHistoryData, WhatsappImportHistoryResponses, WhatsappLookupData, WhatsappLookupResponses, WhatsappPairingData, WhatsappPairingResponses, WhatsappPasskeyData, WhatsappPasskeyResponses, WhatsappStartLookupData, WhatsappStartLookupResponses } from './types.gen';export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {/**@@ -2797,6 +2797,20 @@ export class Sdk extends HeyApiClient {return (options.client ?? this.client).delete<DeleteHarnessResponses, DeleteHarnessErrors, ThrowOnError>({ url: '/harnesses/{harness_id}', ...options });}+ /**+ * Handler for `PATCH /harnesses/{harness_id}`.+ */+ public patchHarness<ThrowOnError extends boolean = false>(options: Options<PatchHarnessData, ThrowOnError>): RequestResult<PatchHarnessResponses, PatchHarnessErrors, ThrowOnError> {+ return (options.client ?? this.client).patch<PatchHarnessResponses, PatchHarnessErrors, ThrowOnError>({+ url: '/harnesses/{harness_id}',+ ...options,+ headers: {+ 'Content-Type': 'application/json',+ ...options.headers+ }+ });+ }+/*** Health check*/diff --git a/packages/sdk/generated/storage/types.gen.ts b/packages/sdk/generated/storage/types.gen.tsindex 0c20106270..1f5d68f03a 100644--- a/packages/sdk/generated/storage/types.gen.ts+++ b/packages/sdk/generated/storage/types.gen.ts@@ -4536,10 +4536,6 @@ export type CreateMeetingRequest = {* The daemon serializes this, so both derives are used.*/export type CreatePairingRequest = {- /**- * Daemon operator consent ceiling. Omitted by older clients; web approval decides.- */- allow_permission_bypass?: boolean | null;/*** Display-only description of the machine, e.g. `eric@macbook / darwin`.*/@@ -4548,7 +4544,6 @@ export type CreatePairingRequest = {* Requested harness display name (typically the machine's hostname).*/name: string;- scope?: null | RequestedHarnessScope;};/**@@ -11402,15 +11397,10 @@ export type PairingDetails = {* Display-only description of the machine.*/host?: string | null;- /**- * Daemon operator consent ceiling; false forbids bypass at approval.- */- requested_allow_permission_bypass?: boolean | null;/*** Harness display name the daemon asked for.*/requested_name: string;- requested_scope?: null | RequestedHarnessScope;};/**@@ -11485,6 +11475,21 @@ export type PatchChannelRequest = {convert_to_team_channel?: boolean | null;};+/**+ * Request to change a registered harness. Omitted fields stay as they are.+ */+export type PatchHarnessRequest = {+ /**+ * Whether agents may bypass ACP permission requests on this harness.+ * Live sessions pick the change up at their next turn.+ */+ allow_permission_bypass?: boolean | null;+ /**+ * New display name.+ */+ name?: string | null;+};+/*** Internal notification behavior for a patched channel message.*/@@ -12367,14 +12372,6 @@ export type RequestAccess = {*/export type RequestStatus = 'pending' | 'granted' | 'denied' | 'cancelled';-/**- * The ownership scope a daemon's config asks for.- *- * Advisory, not binding: the approving user confirms it in the dialog, which- * arrives preselected to this. Approval is what actually sets ownership.- */-export type RequestedHarnessScope = 'private' | 'team';-/*** A layout as an op asks for it: a board or timeline may leave its title* out.@@ -23881,6 +23878,33 @@ export type DeleteHarnessResponses = {export type DeleteHarnessResponse = DeleteHarnessResponses[keyof DeleteHarnessResponses];+export type PatchHarnessData = {+ body: PatchHarnessRequest;+ path: {+ /**+ * Harness ID+ */+ harness_id: HarnessId;+ };+ query?: never;+ url: '/harnesses/{harness_id}';+};++export type PatchHarnessErrors = {+ 400: ErrorResponse;+ 401: ErrorResponse;+ 404: ErrorResponse;+ 500: ErrorResponse;+};++export type PatchHarnessError = PatchHarnessErrors[keyof PatchHarnessErrors];++export type PatchHarnessResponses = {+ 200: Harness;+};++export type PatchHarnessResponse = PatchHarnessResponses[keyof PatchHarnessResponses];+export type HealthHandlerData = {body?: never;path?: never;diff --git a/packages/sdk/specs/storage.json b/packages/sdk/specs/storage.jsonindex 3eaf34a04b..001340baf0 100644--- a/packages/sdk/specs/storage.json+++ b/packages/sdk/specs/storage.json@@ -16157,6 +16157,84 @@}}}+ },+ "patch": {+ "tags": ["harnesses"],+ "summary": "Handler for `PATCH /harnesses/{harness_id}`.",+ "operationId": "patch_harness",+ "parameters": [+ {+ "name": "harness_id",+ "in": "path",+ "description": "Harness ID",+ "required": true,+ "schema": {+ "$ref": "#/components/schemas/HarnessId"+ }+ }+ ],+ "requestBody": {+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/PatchHarnessRequest"+ }+ }+ },+ "required": true+ },+ "responses": {+ "200": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/Harness"+ }+ }+ }+ },+ "400": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/ErrorResponse"+ }+ }+ }+ },+ "401": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/ErrorResponse"+ }+ }+ }+ },+ "404": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/ErrorResponse"+ }+ }+ }+ },+ "500": {+ "description": "",+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/ErrorResponse"+ }+ }+ }+ }+ }}},"/health": {@@ -27396,10 +27474,6 @@"description": "Request to open a pairing: the daemon asks for a code the user approves.\n\nThe daemon serializes this, so both derives are used.","required": ["name"],"properties": {- "allow_permission_bypass": {- "type": ["boolean", "null"],- "description": "Daemon operator consent ceiling. Omitted by older clients; web approval decides."- },"host": {"type": ["string", "null"],"description": "Display-only description of the machine, e.g. `eric@macbook / darwin`."@@ -27407,17 +27481,6 @@"name": {"type": "string","description": "Requested harness display name (typically the machine's hostname)."- },- "scope": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/RequestedHarnessScope",- "description": "The scope the daemon's config asks for; the approval dialog arrives\npreselected to it."- }- ]}}},@@ -38263,24 +38326,9 @@"type": ["string", "null"],"description": "Display-only description of the machine."},- "requested_allow_permission_bypass": {- "type": ["boolean", "null"],- "description": "Daemon operator consent ceiling; false forbids bypass at approval."- },"requested_name": {"type": "string","description": "Harness display name the daemon asked for."- },- "requested_scope": {- "oneOf": [- {- "type": "null"- },- {- "$ref": "#/components/schemas/RequestedHarnessScope",- "description": "The scope the daemon's config asked for, when it named one."- }- ]}}},@@ -38376,6 +38424,20 @@}}},+ "PatchHarnessRequest": {+ "type": "object",+ "description": "Request to change a registered harness. Omitted fields stay as they are.",+ "properties": {+ "allow_permission_bypass": {+ "type": ["boolean", "null"],+ "description": "Whether agents may bypass ACP permission requests on this harness.\nLive sessions pick the change up at their next turn."+ },+ "name": {+ "type": ["string", "null"],+ "description": "New display name."+ }+ }+ },"PatchMessageNotificationPolicy": {"type": "string","description": "Internal notification behavior for a patched channel message.",@@ -40119,11 +40181,6 @@"description": "Durable outcome; reading a notification never changes it.","enum": ["pending", "granted", "denied", "cancelled"]},- "RequestedHarnessScope": {- "type": "string",- "description": "The ownership scope a daemon's config asks for.\n\nAdvisory, not binding: the approving user confirms it in the dialog, which\narrives preselected to this. Approval is what actually sets ownership.",- "enum": ["private", "team"]- },"RequestedLayout": {"oneOf": [{diff --git a/packages/sdk/src/entities/harnesses/harness.ts b/packages/sdk/src/entities/harnesses/harness.tsindex 38d2863766..00528e7fc6 100644--- a/packages/sdk/src/entities/harnesses/harness.ts+++ b/packages/sdk/src/entities/harnesses/harness.ts@@ -33,6 +33,32 @@ export class Harness extends MacroEntity<HarnessRecord> {/** Runtime kind. */readonly kind = this.field('kind');+ /** Whether agents here may bypass permission prompts. */+ readonly allowPermissionBypass = this.field('allow_permission_bypass');++ /**+ * Allow or forbid agents here to bypass permission prompts. Live sessions+ * pick the change up at their next turn.+ */+ async setPermissionBypass(allowed: boolean): Promise<void> {+ await this.mutate((c) =>+ c.storage.patchHarness({+ path: { harness_id: this.id },+ body: { allow_permission_bypass: allowed },+ }),+ );+ }++ /** Rename the host. */+ async rename(name: string): Promise<void> {+ await this.mutate((c) =>+ c.storage.patchHarness({+ path: { harness_id: this.id },+ body: { name },+ }),+ );+ }+/** Remove the host. */async delete(): Promise<void> {await this.mutate((c) =>diff --git a/services/document_storage_service/src/api/swagger.rs b/services/document_storage_service/src/api/swagger.rsindex 975e028b4c..8da7171bc0 100644--- a/services/document_storage_service/src/api/swagger.rs+++ b/services/document_storage_service/src/api/swagger.rs@@ -351,6 +351,7 @@ use utoipa::OpenApi;harnesses::inbound::axum_router::approve_pairing_handler,harnesses::inbound::axum_router::claim_pairing_handler,harnesses::inbound::axum_router::list_harnesses_handler,+ harnesses::inbound::axum_router::patch_harness_handler,harnesses::inbound::axum_router::delete_harness_handler,harnesses::inbound::axum_router::list_bound_agents_handler,harnesses::inbound::axum_router::get_self_harness_handler,@@ -936,11 +937,11 @@ use utoipa::OpenApi;harnesses::domain::models::HarnessOwner,harnesses::domain::models::HarnessAgent,harnesses::domain::models::HarnessSession,- harnesses::domain::models::RequestedHarnessScope,harnesses::domain::models::CreatePairingRequest,harnesses::domain::models::CreatedPairing,harnesses::domain::models::PairingDetails,harnesses::domain::models::ApprovePairingRequest,+ harnesses::domain::models::PatchHarnessRequest,harnesses::domain::models::ClaimPairingRequest,harnesses::domain::models::ClaimedPairing,harnesses::inbound::axum_router::PendingClaimResponse,