{"openapi":"3.1.0","info":{"title":"Avazal API","version":"1","description":"Every operation is `POST /v1/<concept>.<verb>` with a JSON body, so agents and scripts call Avazal the same way. Slack, email, Linear, GitHub and calendars are sources behind Avazal's concepts: a task is a task whether it lives in a Slack List or Linear.\n\nAuthenticate with an API key from Settings → API keys, sent as `x-api-key: avz_…` or `Authorization: Bearer avz_…`. A key acts as the member who created it, in one organization, and only with the scopes it was given.\n\nThe MCP server at `/mcp` exposes the same operations as tools.\n\nGuides, scopes and MCP setup are at https://docs.avazal.com."},"paths":{"/v1/me.get":{"post":{"tags":["me"],"operationId":"me.get","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["userId","organizationId","role","key","identity"],"properties":{"userId":{"$ref":"#/components/schemas/Trimmed","description":"The Avazal user who owns the API key.","title":"nonEmptyString"},"organizationId":{"$ref":"#/components/schemas/Trimmed","description":"The Avazal organisation the key belongs to.","title":"nonEmptyString"},"role":{"type":"string","enum":["owner","admin","member"]},"key":{"type":"object","required":["id","name","scopes"],"properties":{"id":{"type":"string","description":"The API key making the call."},"name":{"type":"string"},"scopes":{"type":"array","items":{"$ref":"#/components/schemas/AgentScope"},"description":"an array of at least 1 item(s)","title":"minItems(1)","minItems":1}},"additionalProperties":false},"identity":{"anyOf":[{"type":"object","required":["id","identityId","name","handle","avatarUrl","instructions"],"properties":{"id":{"type":"string","description":"The agent identity the key posts as, an agid_ id."},"identityId":{"$ref":"#/components/schemas/AgentIdentityId"},"name":{"type":"string"},"handle":{"type":"string"},"avatarUrl":{"type":"string"},"instructions":{"type":"string"}},"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"The member and organization this key acts for, the scopes it carries and the identity it posts as. Call it first to check what you can do.\n\nAny valid credential may call this.","summary":"Who am I"}},"/v1/me.update":{"post":{"tags":["me"],"operationId":"me.update","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A contact (cnt_…) or a Slack workspace member (chws_…@<member id>).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicPerson"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Changes how you appear in one Slack workspace: status, do not disturb, presence and profile. Only the fields you pass change. account comes from accounts_list. Returns your member profile.\n\nRequires the `people:write` scope.","summary":"Change my profile, status or presence","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["account"],"properties":{"account":{"type":"string","title":"`chws_${string}`","description":"Connected Slack workspace","pattern":"^chws_[\\s\\S]*?$"},"status":{"type":"object","required":["emoji","text","expiresAt"],"properties":{"emoji":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"type":"string"},"expiresAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]}},"additionalProperties":false,"description":"The status everyone sees next to your name. emoji is a Slack name with colons such as :palm_tree:, or null; expiresAt is an ISO date-time or null to keep it. Clear it with empty text and a null emoji."},"dnd":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}],"description":"Do not disturb until this date-time; null turns it off. Others see that you are not being notified."},"presence":{"type":"string","enum":["auto","away"],"description":"away shows you as away; auto goes back to automatic."},"profile":{"type":"object","required":[],"properties":{"name":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"displayName":{"type":"string"},"title":{"type":"string"},"pronouns":{"type":"string"}},"additionalProperties":false,"description":"Your full name, display name, title or pronouns; fields you leave out stay as they are."}},"additionalProperties":false}}},"required":true}}},"/v1/accounts.list":{"post":{"tags":["accounts"],"operationId":"accounts.list","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["items","nextCursor"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PublicAccount"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass this as cursor to get the next page. null on the last page."}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"},{"$ref":"#/components/schemas/InvalidCursor"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"The Slack workspaces, mailboxes, Google calendars, Linear and GitHub connected to Avazal. An account's id is the account other operations take: chws_… for Slack, macc_… for a mailbox.\n\nReturns one page of items. Pass nextCursor back as cursor until it is null.\n\nAny valid credential may call this.","summary":"List connected accounts","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"source":{"type":"string","enum":["slack","gmail","google-calendar","linear","github"]},"cursor":{"type":"string","description":"The nextCursor from the previous page. Omit it for the first page.","title":"maxLength(2048)","minLength":1,"maxLength":2048},"limit":{"allOf":[{"$ref":"#/components/schemas/Int","description":"a number between 1 and 100","title":"between(1, 100)","minimum":1,"maximum":100}],"description":"Items per page, 50 by default."}},"additionalProperties":false}}},"required":true}}},"/v1/settings.get":{"post":{"tags":["settings"],"operationId":"settings.get","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["drafting","availability","calendars","assistant"],"properties":{"drafting":{"anyOf":[{"type":"object","required":["draftsEnabled","instructions"],"properties":{"draftsEnabled":{"type":"boolean"},"instructions":{"type":"string","description":"a string at most 2000 character(s) long","title":"maxLength(2000)","maxLength":2000}},"additionalProperties":false},{"type":"null"}],"description":"Whether Avazal drafts email replies for you, and the instructions it follows. null when mail is off."},"availability":{"anyOf":[{"$ref":"#/components/schemas/SchedulingPreferences"},{"type":"null"}],"description":"Time zone, working hours, focus blocks, usual meeting length, buffer and minimum notice. Hours are minutes after midnight in timeZone. null when calendar is off."},"calendars":{"type":"object","required":["shown"],"properties":{"shown":{"type":"array","items":{"type":"string"},"description":"Ids of the calendars Avazal shows, from accounts_list with source google-calendar."}},"additionalProperties":false},"assistant":{"type":"object","required":["reactionSignals","defaultAgent","notices"],"properties":{"reactionSignals":{"type":"object","required":["claimed","working","shipped","failed","watching"],"properties":{"claimed":{"$ref":"#/components/schemas/ReactionSignal"},"working":{"$ref":"#/components/schemas/ReactionSignal"},"shipped":{"$ref":"#/components/schemas/ReactionSignal"},"failed":{"$ref":"#/components/schemas/ReactionSignal"},"watching":{"$ref":"#/components/schemas/ReactionSignal"}},"additionalProperties":false},"defaultAgent":{"anyOf":[{"anyOf":[{"type":"object","required":["connectionId","targetId"],"properties":{"connectionId":{"$ref":"#/components/schemas/AgentConnectionId"},"targetId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where the agent runs, such as a device or repository, or null for its default."}},"additionalProperties":false},{"type":"string","enum":["avazal"]}]},{"type":"null"}]},"notices":{"type":"object","required":["urgent","agent"],"properties":{"urgent":{"type":"object","required":["slackDm"],"properties":{"slackDm":{"type":"boolean"}},"additionalProperties":false},"agent":{"type":"object","required":["slackDm"],"properties":{"slackDm":{"type":"boolean"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Reaction signals, the default agent, and whether urgent asks and agent reports reach you as a Slack DM."}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Your Avazal preferences in four sections: drafting, availability, calendars and assistant. Pass timeZone to fill in availability when none is saved yet.\n\nRequires the `settings:read` scope.","summary":"Read my settings","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"timeZone":{"type":"string"}},"additionalProperties":false}}},"required":true}}},"/v1/settings.update":{"post":{"tags":["settings"],"operationId":"settings.update","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["drafting","availability","calendars","assistant"],"properties":{"drafting":{"anyOf":[{"type":"object","required":["draftsEnabled","instructions"],"properties":{"draftsEnabled":{"type":"boolean"},"instructions":{"type":"string","description":"a string at most 2000 character(s) long","title":"maxLength(2000)","maxLength":2000}},"additionalProperties":false},{"type":"null"}],"description":"Whether Avazal drafts email replies for you, and the instructions it follows. null when mail is off."},"availability":{"anyOf":[{"$ref":"#/components/schemas/SchedulingPreferences"},{"type":"null"}],"description":"Time zone, working hours, focus blocks, usual meeting length, buffer and minimum notice. Hours are minutes after midnight in timeZone. null when calendar is off."},"calendars":{"type":"object","required":["shown"],"properties":{"shown":{"type":"array","items":{"type":"string"},"description":"Ids of the calendars Avazal shows, from accounts_list with source google-calendar."}},"additionalProperties":false},"assistant":{"type":"object","required":["reactionSignals","defaultAgent","notices"],"properties":{"reactionSignals":{"type":"object","required":["claimed","working","shipped","failed","watching"],"properties":{"claimed":{"$ref":"#/components/schemas/ReactionSignal"},"working":{"$ref":"#/components/schemas/ReactionSignal"},"shipped":{"$ref":"#/components/schemas/ReactionSignal"},"failed":{"$ref":"#/components/schemas/ReactionSignal"},"watching":{"$ref":"#/components/schemas/ReactionSignal"}},"additionalProperties":false},"defaultAgent":{"anyOf":[{"anyOf":[{"type":"object","required":["connectionId","targetId"],"properties":{"connectionId":{"$ref":"#/components/schemas/AgentConnectionId"},"targetId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where the agent runs, such as a device or repository, or null for its default."}},"additionalProperties":false},{"type":"string","enum":["avazal"]}]},{"type":"null"}]},"notices":{"type":"object","required":["urgent","agent"],"properties":{"urgent":{"type":"object","required":["slackDm"],"properties":{"slackDm":{"type":"boolean"}},"additionalProperties":false},"agent":{"type":"object","required":["slackDm"],"properties":{"slackDm":{"type":"boolean"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Reaction signals, the default agent, and whether urgent asks and agent reports reach you as a Slack DM."}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Changes the sections you pass and returns every section. Nobody else is told. Changing assistant needs a person's approval, so an agent run asks first. No notification setting other than the two Slack DM choices changes here.\n\nRequires the `settings:write` scope.","summary":"Change my settings","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"drafting":{"type":"object","required":["draftsEnabled","instructions"],"properties":{"draftsEnabled":{"type":"boolean"},"instructions":{"type":"string","description":"a string at most 2000 character(s) long","title":"maxLength(2000)","maxLength":2000}},"additionalProperties":false,"description":"Pass both fields; instructions are at most 2,000 characters."},"availability":{"allOf":[{"$ref":"#/components/schemas/SchedulingPreferences"}],"description":"Replaces your scheduling preferences: read them with settings_get first and change only what you need."},"calendars":{"type":"object","required":["shown"],"properties":{"shown":{"type":"array","items":{"type":"string"},"description":"Ids of the calendars Avazal shows, from accounts_list with source google-calendar."}},"additionalProperties":false,"description":"Shows exactly these calendars and hides the rest."},"assistant":{"type":"object","required":[],"properties":{"reactionSignals":{"type":"object","required":["claimed","working","shipped","failed","watching"],"properties":{"claimed":{"$ref":"#/components/schemas/ReactionSignal"},"working":{"$ref":"#/components/schemas/ReactionSignal"},"shipped":{"$ref":"#/components/schemas/ReactionSignal"},"failed":{"$ref":"#/components/schemas/ReactionSignal"},"watching":{"$ref":"#/components/schemas/ReactionSignal"}},"additionalProperties":false},"defaultAgent":{"anyOf":[{"anyOf":[{"type":"object","required":["connectionId","targetId"],"properties":{"connectionId":{"$ref":"#/components/schemas/AgentConnectionId"},"targetId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where the agent runs, such as a device or repository, or null for its default."}},"additionalProperties":false},{"type":"string","enum":["avazal"]}]},{"type":"null"}]},"notices":{"type":"object","required":[],"properties":{"urgent":{"type":"object","required":["slackDm"],"properties":{"slackDm":{"type":"boolean"}},"additionalProperties":false},"agent":{"type":"object","required":["slackDm"],"properties":{"slackDm":{"type":"boolean"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}}},"required":true}}},"/v1/search.query":{"post":{"tags":["search"],"operationId":"search.query","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["items","nextCursor"],"properties":{"items":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/ObjectSummary"},{"$ref":"#/components/schemas/PublicGithubResult"}]}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass this as cursor to get the next page. null on the last page."}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"},{"$ref":"#/components/schemas/InvalidCursor"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"One search across people, email threads, meetings, documents, chat conversations, lists and files, best match first, up to 20 results. Each result has a _tag; read it in full with the matching get operation. Set types to narrow, and to include GitHub branches and pull requests, which are searched only when asked for.\n\nReturns one page of items. Pass nextCursor back as cursor until it is null.\n\nRequires the `search:read` scope.","summary":"Search everything","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["q"],"properties":{"q":{"type":"string","description":"a string at most 200 character(s) long","title":"maxLength(200)","minLength":1,"maxLength":200},"types":{"type":"array","items":{"type":"string","enum":["mail_thread","calendar_event","document","conversation","list","file","person","run","linear_issue","branch","pull_request"]}},"cursor":{"type":"string","description":"The nextCursor from the previous page. Omit it for the first page.","title":"maxLength(2048)","minLength":1,"maxLength":2048},"limit":{"allOf":[{"$ref":"#/components/schemas/Int","description":"a number between 1 and 100","title":"between(1, 100)","minimum":1,"maximum":100}],"description":"Items per page, 50 by default."}},"additionalProperties":false}}},"required":true}}},"/v1/search.resolve":{"post":{"tags":["search"],"operationId":"search.resolve","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["links"],"properties":{"links":{"type":"array","items":{"type":"object","required":["url","object"],"properties":{"url":{"type":"string"},"object":{"anyOf":[{"$ref":"#/components/schemas/ObjectSummary"},{"type":"null"}],"description":"What the link points to, or null when it is not a link Avazal knows or you cannot see it."}},"additionalProperties":false}}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Say what up to 100 pasted links point to: Slack message permalinks, thread links, Slack List and canvas links, Linear and Gmail links and avazal.com links. Each link comes back in order with its object, or null. Read each object with the operation for its _tag: Conversation → conversations_get, or messages_get when message is set; List → lists_get or tasks_get when item is set; File → documents_get for a canvas; Document or Artifact → documents_get; MailThread → conversations_get; CalendarEvent → events_get.\n\nRequires the `search:read` scope.","summary":"Open links","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["urls"],"properties":{"urls":{"type":"array","items":{"type":"string"},"description":"an array of at most 100 item(s)","title":"maxItems(100)","maxItems":100}},"additionalProperties":false}}},"required":true}}},"/v1/inbox.next":{"post":{"tags":["inbox"],"operationId":"inbox.next","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["prompts","cursor"],"properties":{"prompts":{"type":"array","items":{"type":"object","required":["id","workspaceId","conversationId","messageId","threadRootId","author","place","text","at"],"properties":{"id":{"type":"string","description":"The prompt, the cursor inbox_next resumes after."},"workspaceId":{"type":"string","description":"The workspace the prompt arrived in."},"conversationId":{"$ref":"#/components/schemas/ConversationId"},"messageId":{"$ref":"#/components/schemas/SlackMessageId"},"threadRootId":{"type":"string","description":"The thread to answer in: pass it to messages_send as threadRootId.","title":"minLength(1)","minLength":1},"author":{"type":"string"},"place":{"type":"string"},"text":{"type":"string"},"at":{"$ref":"#/components/schemas/Date"}},"additionalProperties":false}},"cursor":{"type":"string"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"404":{"description":"IdentityNotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityNotFound"}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Returns chat messages that mention this key's identity by @handle or by name, oldest first. This is not email; read email with conversations_list. Waits up to waitSeconds when none are waiting. Pass the returned cursor on the next call to acknowledge what you have seen, and answer each prompt with messages_create in its conversationId and threadRootId. Fails with IdentityNotFound when the key has no identity; set one in Settings → Agents → Identities.\n\nRequires the `messages:read` scope.","summary":"Wait for chat prompts","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"cursor":{"type":"string","description":"The cursor from the last inbox.next. Passing it acknowledges every prompt before it."},"waitSeconds":{"type":"integer","description":"How long to wait for a prompt when none is waiting.","title":"between(0, 50)","minimum":0,"maximum":50}},"additionalProperties":false}}},"required":true}}},"/v1/conversations.list":{"post":{"tags":["conversations"],"operationId":"conversations.list","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["items","nextCursor"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PublicConversation"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass this as cursor to get the next page. null on the last page."}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"},{"$ref":"#/components/schemas/InvalidCursor"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Slack: your channels and DMs with unread counts, most recently active first; membership all browses public channels you have not joined, and query filters by name. Email: threads, newest first, narrowed by tab or folder. Give account or source; each item's id is the conversation id other operations take.\n\nReturns one page of items. Pass nextCursor back as cursor until it is null.\n\nRequires the `messages:read` scope.","summary":"List channels, DMs and email threads","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"account":{"type":"string","description":"A Slack workspace (chws_…) or a mailbox (macc_…), from accounts_list.","pattern":"^(chws|macc)_"},"source":{"type":"string","enum":["slack","gmail"],"description":"Slack chat or email."},"membership":{"type":"string","enum":["joined","all"]},"query":{"type":"string"},"tab":{"type":"string","enum":["all","needs_reply","updates","other"]},"folder":{"type":"string","enum":["drafts","sent"]},"cursor":{"type":"string","description":"The nextCursor from the previous page. Omit it for the first page.","title":"maxLength(2048)","minLength":1,"maxLength":2048},"limit":{"allOf":[{"$ref":"#/components/schemas/Int","description":"a number between 1 and 100","title":"between(1, 100)","minimum":1,"maximum":100}],"description":"Items per page, 50 by default."}},"additionalProperties":false}}},"required":true}}},"/v1/conversations.get":{"post":{"tags":["conversations"],"operationId":"conversations.get","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["conversation","messages","hasOlder","draft"],"properties":{"conversation":{"$ref":"#/components/schemas/PublicConversation"},"messages":{"type":"array","items":{"$ref":"#/components/schemas/PublicMessage"}},"hasOlder":{"type":"boolean"},"draft":{"anyOf":[{"$ref":"#/components/schemas/PublicMessage"},{"type":"null"}]}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"A conversation with its newest messages; older ones come from messages_list. An email thread also returns the reply draft Avazal prepared, if any.\n\nRequires the `messages:read` scope.","summary":"Read a conversation","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"A conversation id from conversations_list."}},"additionalProperties":false}}},"required":true}}},"/v1/conversations.create":{"post":{"tags":["conversations"],"operationId":"conversations.create","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A Slack channel or DM, or an email thread.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicConversation"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Slack only. Pass name for a channel (lowercase letters, digits, - and _; private for a private one), or members for the DM or group DM with those people. account is a Slack workspace from accounts_list.\n\nRequires the `messages:write` scope.","summary":"Create a channel or open a DM","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["account"],"properties":{"account":{"type":"string","description":"A Slack workspace (chws_…) or a mailbox (macc_…), from accounts_list.","pattern":"^(chws|macc)_"},"name":{"type":"string","description":"a string matching the pattern ^[a-z0-9][a-z0-9_-]{0,79}$","pattern":"^[a-z0-9][a-z0-9_-]{0,79}$"},"private":{"type":"boolean"},"purpose":{"type":"string"},"members":{"type":"array","items":{"$ref":"#/components/schemas/PublicId"},"description":"Slack member ids (chws_…@U…) from people_list.","title":"minItems(1)","minItems":1}},"additionalProperties":false}}},"required":true}}},"/v1/conversations.update":{"post":{"tags":["conversations"],"operationId":"conversations.update","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A Slack channel or DM, or an email thread.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicConversation"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Applies the fields you pass in this order: name, topic, purpose, joined, open, addMembers, removeMembers, read, archived. Slack: all fields. Email: archived and read. read true marks everything read, false marks the newest message unread; open false hides a DM until someone writes in it.\n\nRequires the `messages:write` scope.","summary":"Change a conversation","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"name":{"type":"string","description":"a string matching the pattern ^[a-z0-9][a-z0-9_-]{0,79}$","pattern":"^[a-z0-9][a-z0-9_-]{0,79}$"},"topic":{"type":"string"},"purpose":{"type":"string"},"archived":{"type":"boolean"},"joined":{"type":"boolean"},"open":{"type":"boolean","enum":[false]},"read":{"type":"boolean"},"addMembers":{"type":"array","items":{"$ref":"#/components/schemas/PublicId"},"description":"Slack member ids (chws_…@U…) from people_list.","title":"minItems(1)","minItems":1},"removeMembers":{"type":"array","items":{"$ref":"#/components/schemas/PublicId"},"description":"Slack member ids (chws_…@U…) from people_list.","title":"minItems(1)","minItems":1},"id":{"type":"string","description":"A conversation id from conversations_list."}},"additionalProperties":false}}},"required":true}}},"/v1/messages.list":{"post":{"tags":["messages"],"operationId":"messages.list","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["items","nextCursor"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PublicMessage"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass this as cursor to get the next page. null on the last page."}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"},{"$ref":"#/components/schemas/InvalidCursor"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Pick what to list with one filter. conversation: its messages, newest first (an email thread's messages oldest first). thread: a chat thread's root then replies. state draft or scheduled: unsent messages. mine: messages you sent. pinned, saved, following and activity: those lists. query: search, with from, after, before, has and sort. Slack needs account (from accounts_list) unless conversation is given.\n\nReturns one page of items. Pass nextCursor back as cursor until it is null.\n\nRequires the `messages:read` scope.","summary":"List or search messages","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"conversation":{"type":"string","description":"A conversation id from conversations_list."},"thread":{"type":"string","description":"A message id from messages_list, messages_get or conversations_get."},"account":{"type":"string","description":"A Slack workspace (chws_…) or a mailbox (macc_…), from accounts_list.","pattern":"^(chws|macc)_"},"source":{"type":"string","enum":["slack","gmail"],"description":"Slack chat or email."},"state":{"type":"string","enum":["sent","draft","scheduled"]},"mine":{"type":"boolean"},"pinned":{"type":"boolean"},"saved":{"type":"string","enum":["in_progress","archived","completed"]},"following":{"type":"boolean"},"activity":{"type":"string","enum":["all","mentions","threads","reactions","dms"]},"query":{"type":"string"},"from":{"allOf":[{"$ref":"#/components/schemas/PublicId"}],"description":"Only messages from this person (people_list id)."},"after":{"$ref":"#/components/schemas/Date"},"before":{"$ref":"#/components/schemas/Date"},"has":{"type":"string","enum":["link","file","reaction","pin"]},"sort":{"type":"string","enum":["relevant","newest"]},"cursor":{"type":"string","description":"The nextCursor from the previous page. Omit it for the first page.","title":"maxLength(2048)","minLength":1,"maxLength":2048},"limit":{"allOf":[{"$ref":"#/components/schemas/Int","description":"a number between 1 and 100","title":"between(1, 100)","minimum":1,"maximum":100}],"description":"Items per page, 50 by default."}},"additionalProperties":false}}},"required":true}}},"/v1/messages.get":{"post":{"tags":["messages"],"operationId":"messages.get","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["message","thread"],"properties":{"message":{"$ref":"#/components/schemas/PublicMessage"},"thread":{"anyOf":[{"type":"object","required":["root","replies"],"properties":{"root":{"$ref":"#/components/schemas/PublicMessage"},"replies":{"type":"array","items":{"$ref":"#/components/schemas/PublicMessage"}}},"additionalProperties":false},{"type":"null"}],"description":"The thread the message starts or replies in, oldest reply first. Null when it is not in a thread."}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"One chat message with its whole thread when it starts or replies in one, or a new-email draft or scheduled email. Reply drafts come with conversations_get.\n\nRequires the `messages:read` scope.","summary":"Read a message","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"A message id from messages_list, messages_get or conversations_get."}},"additionalProperties":false}}},"required":true}}},"/v1/messages.create":{"post":{"tags":["messages"],"operationId":"messages.create","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A chat message or an email, sent, drafted or scheduled. Its id is the one every messages operation takes.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PublicMessage"},{"type":"null"}]}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Posts to a conversation, replies in a thread, writes an email (to, cc, bcc, subject) or forwards (forward). draft saves instead of sending; sendAt schedules. On an email thread with no body Avazal writes the reply draft in the background; read it with conversations_get. Sending an email reply needs its reply draft. Needs the messages:send scope unless draft.\n\nRequires the `messages:write` scope.","summary":"Post, reply, write or forward a message","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"conversation":{"type":"string","description":"A conversation id from conversations_list."},"thread":{"type":"string","description":"Reply in the thread of this root message."},"account":{"type":"string","description":"The mailbox to write a new email from.","pattern":"^(chws|macc)_"},"text":{"allOf":[{"$ref":"#/components/schemas/NonEmptyString"}],"description":"Plain text. Use this or content."},"content":{"allOf":[{"$ref":"#/components/schemas/RichText"}],"description":"Rich text blocks. Use this or text."},"to":{"type":"array","items":{"type":"string"}},"cc":{"type":"array","items":{"type":"string"}},"bcc":{"type":"array","items":{"type":"string"}},"subject":{"type":"string"},"from":{"type":"string","description":"A send-as address of the mailbox."},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/AttachedFile"}},"forward":{"type":"string","description":"Forward this message to conversation (chat) or to `to` (email)."},"broadcast":{"type":"boolean","description":"Also show a thread reply in the channel."},"draft":{"type":"boolean","description":"Save instead of sending."},"sendAt":{"allOf":[{"$ref":"#/components/schemas/Date"}],"description":"Send at this time instead of now."},"gapValues":{"type":"object","required":[],"properties":{},"additionalProperties":{"type":"string"},"description":"Answers for the gaps in an email reply draft."}},"additionalProperties":false}}},"required":true}}},"/v1/messages.update":{"post":{"tags":["messages"],"operationId":"messages.update","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A chat message or an email, sent, drafted or scheduled. Its id is the one every messages operation takes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicMessage"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Edits a message or draft you wrote (body, recipients, subject, attachments) and changes its pinned, read, saved, done or sendAt state. Fields apply in that order.\n\nRequires the `messages:write` scope.","summary":"Edit a message or change its state","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"A message id from messages_list, messages_get or conversations_get."},"text":{"allOf":[{"$ref":"#/components/schemas/NonEmptyString"}],"description":"Plain text. Use this or content."},"content":{"allOf":[{"$ref":"#/components/schemas/RichText"}],"description":"Rich text blocks. Use this or text."},"recipients":{"type":"object","required":[],"properties":{"to":{"type":"array","items":{"type":"string"}},"cc":{"type":"array","items":{"type":"string"}},"bcc":{"type":"array","items":{"type":"string"}}},"additionalProperties":false,"description":"Email addresses, as `Name <a@b.com>` or `a@b.com`."},"subject":{"type":"string"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/AttachedFile"}},"pinned":{"type":"boolean"},"read":{"type":"boolean","description":"true reads up to this message, false marks unread from it."},"saved":{"anyOf":[{"type":"object","required":[],"properties":{"state":{"type":"string","enum":["in_progress","archived","completed"]},"remindAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}],"description":"Save for later with an optional state and reminder; null removes it."},"done":{"type":"boolean","description":"Clear (true) or restore an activity item."},"sendAt":{"allOf":[{"$ref":"#/components/schemas/Date"}],"description":"Reschedule a scheduled email."},"stale":{"type":"boolean","enum":[false],"description":"false keeps a stale email reply draft as it is."}},"additionalProperties":false}}},"required":true}}},"/v1/messages.delete":{"post":{"tags":["messages"],"operationId":"messages.delete","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["id","restored"],"properties":{"id":{"type":"string","description":"The id of the object that was deleted."},"restored":{"anyOf":[{"$ref":"#/components/schemas/PublicMessage"},{"type":"null"}]}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Deletes a message you posted for everyone, discards a draft, or cancels a scheduled send. Cancelling a scheduled email puts it back as a draft, returned as restored.\n\nRequires the `messages:write` scope.","summary":"Delete a message, draft or scheduled send","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"A message id from messages_list, messages_get or conversations_get."}},"additionalProperties":false}}},"required":true}}},"/v1/messages.send":{"post":{"tags":["messages"],"operationId":"messages.send","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A chat message or an email, sent, drafted or scheduled. Its id is the one every messages operation takes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicMessage"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Sends a draft or a scheduled message immediately, or at sendAt for an email draft. conversation is the thread, required for an email reply draft.\n\nRequires the `messages:send` scope.","summary":"Send a draft or scheduled message now","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"A message id from messages_list, messages_get or conversations_get."},"conversation":{"type":"string","description":"A conversation id from conversations_list."},"sendAt":{"$ref":"#/components/schemas/Date"}},"additionalProperties":false}}},"required":true}}},"/v1/reactions.create":{"post":{"tags":["reactions"],"operationId":"reactions.create","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"204":{"description":"Success"},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Adds your emoji reaction to a chat message.\n\nRequires the write scope of the target's concept: `messages:write`.","summary":"React to a message","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["target","emoji"],"properties":{"target":{"type":"string","description":"The chat message to react to: its id chcv_…@<ts> from messages_list."},"emoji":{"type":"string","description":"The Slack name without colons, such as eyes or white_check_mark; emoji_list has custom ones.","title":"nonEmptyString","minLength":1}},"additionalProperties":false}}},"required":true}}},"/v1/reactions.delete":{"post":{"tags":["reactions"],"operationId":"reactions.delete","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"204":{"description":"Success"},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Removes your emoji reaction from a chat message.\n\nRequires the write scope of the target's concept: `messages:write`.","summary":"Remove your reaction","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["target","emoji"],"properties":{"target":{"type":"string","description":"The chat message to react to: its id chcv_…@<ts> from messages_list."},"emoji":{"type":"string","description":"The Slack name without colons, such as eyes or white_check_mark; emoji_list has custom ones.","title":"nonEmptyString","minLength":1}},"additionalProperties":false}}},"required":true}}},"/v1/emoji.list":{"post":{"tags":["emoji"],"operationId":"emoji.list","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["items","nextCursor"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PublicEmoji"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass this as cursor to get the next page. null on the last page."}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"},{"$ref":"#/components/schemas/InvalidCursor"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"The custom emoji a Slack workspace adds to the standard set. account comes from accounts_list.\n\nReturns one page of items. Pass nextCursor back as cursor until it is null.\n\nRequires the `messages:read` scope.","summary":"List a workspace's custom emoji","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["account"],"properties":{"account":{"$ref":"#/components/schemas/ChatWorkspaceId"},"cursor":{"type":"string","description":"The nextCursor from the previous page. Omit it for the first page.","title":"maxLength(2048)","minLength":1,"maxLength":2048},"limit":{"allOf":[{"$ref":"#/components/schemas/Int","description":"a number between 1 and 100","title":"between(1, 100)","minimum":1,"maximum":100}],"description":"Items per page, 50 by default."}},"additionalProperties":false}}},"required":true}}},"/v1/files.list":{"post":{"tags":["files"],"operationId":"files.list","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["items","nextCursor"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PublicFile"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass this as cursor to get the next page. null on the last page."}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"},{"$ref":"#/components/schemas/InvalidCursor"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Files shared in a workspace, or in one channel or DM when conversation is set: images, PDFs, documents, snippets, canvases and lists. kind narrows by type, query matches names, sort is recent (default), name or size. Pass account or conversation; account comes from accounts_list.\n\nReturns one page of items. Pass nextCursor back as cursor until it is null.\n\nRequires the `messages:read` scope.","summary":"List shared files","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"account":{"$ref":"#/components/schemas/ChatWorkspaceId"},"conversation":{"$ref":"#/components/schemas/ConversationId"},"kind":{"type":"string","enum":["all","canvases","lists","images","pdfs","documents","spreadsheets","snippets","other"]},"sort":{"type":"string","enum":["recent","name","size"]},"query":{"type":"string"},"cursor":{"type":"string","description":"The nextCursor from the previous page. Omit it for the first page.","title":"maxLength(2048)","minLength":1,"maxLength":2048},"limit":{"allOf":[{"$ref":"#/components/schemas/Int","description":"a number between 1 and 100","title":"between(1, 100)","minimum":1,"maximum":100}],"description":"Items per page, 50 by default."}},"additionalProperties":false}}},"required":true}}},"/v1/files.get":{"post":{"tags":["files"],"operationId":"files.get","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"PublicFileContent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicFileContent"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"},{"$ref":"#/components/schemas/FeatureOff"}]}}}},"404":{"description":"NotFound"},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AskFirst"},{"type":"object","required":["_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["ReconnectRequired"]}},"additionalProperties":false}]}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"type":"object","required":["retryAfterSeconds","_tag"],"properties":{"message":{"type":"string"},"retryAfterSeconds":{"type":"number"},"_tag":{"type":"string","enum":["RateLimited"]}},"additionalProperties":false}}}},"502":{"description":"ServerUnreachable","content":{"application/json":{"schema":{"type":"object","required":["_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["ServerUnreachable"]}},"additionalProperties":false}}}}},"description":"A chat file's details and link, or a received email attachment with its bytes. id is chcv_…/<file id> from files_list, or <email id>#<index>, the email's id from messages_get and the attachment's position in it, starting at 0.\n\nRequires the `messages:read` scope.","summary":"Read a file","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"$ref":"#/components/schemas/PublicId"}},"additionalProperties":false}}},"required":true}}},"/v1/files.create":{"post":{"tags":["files"],"operationId":"files.create","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A file shared in chat (chcv_…/<file id>), a received email attachment (mmsg_…#<index>) or an upload to attach (att_…).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicFile"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"},{"$ref":"#/components/schemas/FeatureOff"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Unsupported"},{"type":"object","required":["size","limit","_tag"],"properties":{"message":{"type":"string"},"size":{"$ref":"#/components/schemas/Int","description":"a non-negative number","title":"nonNegative","minimum":0},"limit":{"$ref":"#/components/schemas/Int","description":"a non-negative number","title":"nonNegative","minimum":0},"_tag":{"type":"string","enum":["AttachmentsTooLarge"]}},"additionalProperties":false}]}}}}},"description":"Stores a file for an email, at most 25 MB across one message, and returns its att_… id to pass in the attachments of messages_create or messages_update. Nothing is sent.\n\nRequires the `messages:write` scope.","summary":"Upload a file to attach","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["filename","contentType","data"],"properties":{"filename":{"type":"string"},"contentType":{"type":"string","description":"a string matching the pattern ^[\\w.+-]+\\/[\\w.+-]+$","pattern":"^[\\w.+-]+\\/[\\w.+-]+$"},"data":{"type":"string","description":"The file's bytes, base64 encoded."}},"additionalProperties":false}}},"required":true}}},"/v1/files.delete":{"post":{"tags":["files"],"operationId":"files.delete","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"204":{"description":"Success"},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Deletes an upload from files_create that you no longer want to attach. id is its att_… id.\n\nRequires the `messages:write` scope.","summary":"Delete an uploaded file","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"$ref":"#/components/schemas/PublicId"}},"additionalProperties":false}}},"required":true}}},"/v1/people.list":{"post":{"tags":["people"],"operationId":"people.list","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["items","nextCursor"],"properties":{"items":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/PublicPerson"},{"$ref":"#/components/schemas/PublicUserGroup"}]}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass this as cursor to get the next page. null on the last page."}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"},{"$ref":"#/components/schemas/InvalidCursor"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Contacts (the default), or Slack workspace members when account, conversation or source slack is set. query matches name, display name or email. groups lists a workspace's user groups instead. account comes from accounts_list and conversation from conversations_list.\n\nReturns one page of items. Pass nextCursor back as cursor until it is null.\n\nRequires the `people:read` scope.","summary":"List people","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"account":{"$ref":"#/components/schemas/ChatWorkspaceId"},"conversation":{"allOf":[{"$ref":"#/components/schemas/ConversationId"}],"description":"List the members of this channel or DM."},"query":{"type":"string"},"source":{"type":"string","enum":["slack","contacts"]},"groups":{"type":"boolean","description":"List user groups of account instead of people."},"cursor":{"type":"string","description":"The nextCursor from the previous page. Omit it for the first page.","title":"maxLength(2048)","minLength":1,"maxLength":2048},"limit":{"allOf":[{"$ref":"#/components/schemas/Int","description":"a number between 1 and 100","title":"between(1, 100)","minimum":1,"maximum":100}],"description":"Items per page, 50 by default."}},"additionalProperties":false}}},"required":true}}},"/v1/people.get":{"post":{"tags":["people"],"operationId":"people.get","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A contact (cnt_…) or a Slack workspace member (chws_…@<member id>).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicPerson"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"A contact with their addresses and your recent email threads and meetings with them, or a Slack member's profile, status, time zone and presence.\n\nRequires the `people:read` scope.","summary":"Read a person","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"A person's id from people_list: cnt_… or chws_…@<member id>."}},"additionalProperties":false}}},"required":true}}},"/v1/people.update":{"post":{"tags":["people"],"operationId":"people.update","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A contact (cnt_…) or a Slack workspace member (chws_…@<member id>).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicPerson"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Changes how a contact shows in Avazal: pinned keeps them at the top, hidden removes them from lists, name sets the name you see (null restores theirs). Only the fields you pass change, and nobody else is told.\n\nRequires the `people:write` scope.","summary":"Pin, hide or rename a contact","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"A person's id from people_list: cnt_… or chws_…@<member id>."},"pinned":{"type":"boolean"},"hidden":{"type":"boolean"},"name":{"anyOf":[{"type":"string","description":"a string at most 200 character(s) long","title":"maxLength(200)","maxLength":200},{"type":"null"}]}},"additionalProperties":false}}},"required":true}}},"/v1/lists.list":{"post":{"tags":["lists"],"operationId":"lists.list","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["items","nextCursor"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PublicList"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass this as cursor to get the next page. null on the last page."}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"},{"$ref":"#/components/schemas/InvalidCursor"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Slack Lists and Linear teams, views and your own issues, by title. Read tasks with tasks_list.\n\nReturns one page of items. Pass nextCursor back as cursor until it is null.\n\nRequires the `tasks:read` scope.","summary":"List task lists","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"source":{"type":"string","enum":["slack","linear"]},"account":{"allOf":[{"$ref":"#/components/schemas/ChatWorkspaceId"}],"description":"Only this Slack workspace's lists, from accounts_list."},"conversation":{"allOf":[{"$ref":"#/components/schemas/PublicId"}],"description":"Only Slack Lists in this channel or DM, from conversations_list."},"cursor":{"type":"string","description":"The nextCursor from the previous page. Omit it for the first page.","title":"maxLength(2048)","minLength":1,"maxLength":2048},"limit":{"allOf":[{"$ref":"#/components/schemas/Int","description":"a number between 1 and 100","title":"between(1, 100)","minimum":1,"maximum":100}],"description":"Items per page, 50 by default."}},"additionalProperties":false}}},"required":true}}},"/v1/lists.get":{"post":{"tags":["lists"],"operationId":"lists.get","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A container of tasks: a Slack List, or a Linear team, saved view or your own issues (linear:mine).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicList"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"A list's fields with their types, roles and options (statuses, priorities, labels) and the people tasks can be assigned to. id comes from lists_list.\n\nRequires the `tasks:read` scope.","summary":"Read a list","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"$ref":"#/components/schemas/PublicId"}},"additionalProperties":false}}},"required":true}}},"/v1/lists.create":{"post":{"tags":["lists"],"operationId":"lists.create","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A container of tasks: a Slack List, or a Linear team, saved view or your own issues (linear:mine).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicList"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Creates a Slack List with the given fields, adds it as a tab in a channel or DM and posts it there. The list always gets a title field; fields adds more, each with a name and a kind such as select, person, date or checkbox. conversation comes from conversations_list.\n\nRequires the `tasks:write` scope.","summary":"Create a Slack List","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["conversation","title"],"properties":{"conversation":{"$ref":"#/components/schemas/PublicId"},"title":{"type":"string"},"fields":{"type":"array","items":{"type":"object","required":["name","kind"],"properties":{"name":{"type":"string"},"kind":{"type":"string","enum":["text","number","select","person","date","checkbox","rating","vote","link","email","phone","message","channel","canvas","attachment","reference","created_by","last_edited_by","created_time","last_edited_time"]},"multi":{"type":"boolean"},"options":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},"description":"an array of at most 50 item(s)","title":"maxItems(50)","maxItems":50}},"additionalProperties":false}}},"required":true}}},"/v1/tasks.list":{"post":{"tags":["tasks"],"operationId":"tasks.list","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["items","nextCursor"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PublicTask"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass this as cursor to get the next page. null on the last page."}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"},{"$ref":"#/components/schemas/InvalidCursor"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Tasks in one list (from lists_list), or the ones assigned to you across Slack Lists and Linear with assignee: me. Pass list or assignee.\n\nReturns one page of items. Pass nextCursor back as cursor until it is null.\n\nRequires the `tasks:read` scope.","summary":"List tasks","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"list":{"$ref":"#/components/schemas/PublicId"},"assignee":{"type":"string","enum":["me"]},"done":{"type":"boolean"},"source":{"type":"string","enum":["slack","linear"]},"account":{"allOf":[{"$ref":"#/components/schemas/ChatWorkspaceId"}],"description":"With assignee: me, only this Slack workspace (from accounts_list)."},"cursor":{"type":"string","description":"The nextCursor from the previous page. Omit it for the first page.","title":"maxLength(2048)","minLength":1,"maxLength":2048},"limit":{"allOf":[{"$ref":"#/components/schemas/Int","description":"a number between 1 and 100","title":"between(1, 100)","minimum":1,"maximum":100}],"description":"Items per page, 50 by default."}},"additionalProperties":false}}},"required":true}}},"/v1/tasks.get":{"post":{"tags":["tasks"],"operationId":"tasks.get","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A task in a Slack List or Linear. Common fields are null or empty when the list has no such field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicTask"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"One task with its fields and, for Slack List tasks, the work Avazal tracks for it. id comes from tasks_list.\n\nRequires the `tasks:read` scope.","summary":"Read a task","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"$ref":"#/components/schemas/PublicId"}},"additionalProperties":false}}},"required":true}}},"/v1/tasks.create":{"post":{"tags":["tasks"],"operationId":"tasks.create","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A task in a Slack List or Linear. Common fields are null or empty when the list has no such field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicTask"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Unsupported"},{"$ref":"#/components/schemas/EffectRejected"}]}}}}},"description":"Adds a task to a list from lists_list (a Slack List, or a Linear team). status and priority take an option's name or id, labels take names or ids, assignees take ids from lists_get members, due is YYYY-MM-DD, description is markdown, and null clears due, priority and description. done sets the done checkbox, or moves the status to a done or to-do status when the list has none.\n\nRequires the `tasks:write` scope.","summary":"Create a task","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["list","title"],"properties":{"list":{"type":"string","description":"A list id from lists_list."},"title":{"$ref":"#/components/schemas/NonEmptyTrimmedString","description":"a string at most 255 character(s) long","title":"maxLength(255)","maxLength":255},"done":{"type":"boolean"},"status":{"type":"string"},"assignees":{"type":"array","items":{"type":"string"}},"due":{"anyOf":[{"type":"string","description":"a string matching the pattern ^\\d{4}-\\d{2}-\\d{2}$","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"priority":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"labels":{"type":"array","items":{"type":"string"}},"fields":{"type":"object","required":[],"properties":{},"additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/FieldValueInput"},{"anyOf":[{"type":"string","enum":["me"]},{"type":"null"}]}]},"description":"Values by field id, set after the common fields; Agent takes \"me\" to claim, null to end."},"about":{"allOf":[{"$ref":"#/components/schemas/PublicId"}],"description":"The message the task came from (chcv_…@<ts>) in a Slack List's conversation. The task is linked to it and the creation is undoable."}},"additionalProperties":false}}},"required":true}}},"/v1/tasks.update":{"post":{"tags":["tasks"],"operationId":"tasks.update","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A task in a Slack List or Linear. Common fields are null or empty when the list has no such field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicTask"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Unsupported"},{"$ref":"#/components/schemas/EffectRejected"}]}}}}},"description":"Changes only what you pass. status and priority take an option's name or id, labels take names or ids, assignees take ids from lists_get members, due is YYYY-MM-DD, description is markdown, and null clears due, priority and description. done sets the done checkbox, or moves the status to a done or to-do status when the list has none. Slack List tasks also take development (a branch or pull request url, {pullId} to choose among a branch's pull requests, or null to unlink), completeOnMerge and archived.\n\nRequires the `tasks:write` scope.","summary":"Update a task","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"$ref":"#/components/schemas/PublicId"},"title":{"$ref":"#/components/schemas/NonEmptyTrimmedString","description":"a string at most 255 character(s) long","title":"maxLength(255)","maxLength":255},"done":{"type":"boolean"},"status":{"type":"string"},"assignees":{"type":"array","items":{"type":"string"}},"due":{"anyOf":[{"type":"string","description":"a string matching the pattern ^\\d{4}-\\d{2}-\\d{2}$","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"priority":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"labels":{"type":"array","items":{"type":"string"}},"fields":{"type":"object","required":[],"properties":{},"additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/FieldValueInput"},{"anyOf":[{"type":"string","enum":["me"]},{"type":"null"}]}]},"description":"Values by field id, set after the common fields; Agent takes \"me\" to claim, null to end."},"development":{"anyOf":[{"anyOf":[{"type":"string","description":"A GitHub branch or pull request url."},{"type":"object","required":["pullId"],"properties":{"pullId":{"$ref":"#/components/schemas/Trimmed","description":"One of development.pulls[].id from tasks_get.","title":"nonEmptyString","minLength":1}},"additionalProperties":false}]},{"type":"null"}]},"completeOnMerge":{"type":"boolean"},"archived":{"type":"boolean"}},"additionalProperties":false}}},"required":true}}},"/v1/tasks.delete":{"post":{"tags":["tasks"],"operationId":"tasks.delete","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"The id of the object that was deleted."}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Deletes a Slack List task for everyone. It cannot be undone. Linear issues are updated, not deleted.\n\nRequires the `tasks:write` scope.","summary":"Delete a Slack List task","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"$ref":"#/components/schemas/PublicId"}},"additionalProperties":false}}},"required":true}}},"/v1/comments.list":{"post":{"tags":["comments"],"operationId":"comments.list","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["items","nextCursor"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PublicComment"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass this as cursor to get the next page. null on the last page."}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"},{"$ref":"#/components/schemas/InvalidCursor"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Comments on a task, oldest first. On a canvas, its comment threads, or one thread's comments with thread. A task id from tasks_list (a Slack List item or a Linear issue), or a Slack canvas: a doc_ id from documents_list or its chcv_…/<file> id.\n\nReturns one page of items. Pass nextCursor back as cursor until it is null.\n\nRequires the read scope of the target's concept: `tasks:read`, `documents:read`.","summary":"List comments","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["target"],"properties":{"target":{"$ref":"#/components/schemas/PublicId"},"thread":{"type":"string","description":"A canvas thread id from a thread in comments_list."},"cursor":{"type":"string","description":"The nextCursor from the previous page. Omit it for the first page.","title":"maxLength(2048)","minLength":1,"maxLength":2048},"limit":{"allOf":[{"$ref":"#/components/schemas/Int","description":"a number between 1 and 100","title":"between(1, 100)","minimum":1,"maximum":100}],"description":"Items per page, 50 by default."}},"additionalProperties":false}}},"required":true}}},"/v1/comments.create":{"post":{"tags":["comments"],"operationId":"comments.create","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A comment on a task or canvas. Listing a canvas without thread returns its threads, with anchor and replies and no text.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicComment"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Posts a comment as you on a task, visible to everyone who can see it. On a canvas, anchor starts a thread on a passage and thread replies in one. A task id from tasks_list (a Slack List item or a Linear issue), or a Slack canvas: a doc_ id from documents_list or its chcv_…/<file> id.\n\nRequires the write scope of the target's concept: `tasks:write`, `documents:write`.","summary":"Comment","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["target"],"properties":{"target":{"$ref":"#/components/schemas/PublicId"},"anchor":{"allOf":[{"$ref":"#/components/schemas/NonEmptyTrimmedString"}],"description":"Canvas only: text copied from the passage to comment on. Starts a new thread."},"thread":{"type":"string","description":"Canvas only: a thread id from comments_list. Posts a reply."},"text":{"allOf":[{"$ref":"#/components/schemas/NonEmptyString"}],"description":"Plain text. Use this or content."},"content":{"allOf":[{"$ref":"#/components/schemas/RichText"}],"description":"Rich text blocks. Use this or text."}},"additionalProperties":false}}},"required":true}}},"/v1/links.list":{"post":{"tags":["links"],"operationId":"links.list","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["items","nextCursor"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PublicLink"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass this as cursor to get the next page. null on the last page."}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"},{"$ref":"#/components/schemas/InvalidCursor"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"A conversation's bookmarks, a task's attached documents, or the tasks a document is attached to. from is a conversation (chcv_…) for bookmarks, a Slack List task for attached documents, or any message, thread, task or issue for relations.\n\nReturns one page of items. Pass nextCursor back as cursor until it is null.\n\nRequires the read scope of the target's concept: `messages:read`, `tasks:read`, `documents:read`.","summary":"List links","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["from"],"properties":{"from":{"$ref":"#/components/schemas/PublicId"},"cursor":{"type":"string","description":"The nextCursor from the previous page. Omit it for the first page.","title":"maxLength(2048)","minLength":1,"maxLength":2048},"limit":{"allOf":[{"$ref":"#/components/schemas/Int","description":"a number between 1 and 100","title":"between(1, 100)","minimum":1,"maximum":100}],"description":"Items per page, 50 by default."}},"additionalProperties":false}}},"required":true}}},"/v1/links.create":{"post":{"tags":["links"],"operationId":"links.create","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A conversation's bookmarked url, a document attached to a task, or a relation between two objects.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicLink"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Unsupported"},{"$ref":"#/components/schemas/EffectRejected"}]}}}},"429":{"description":"BudgetExceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetExceeded"}}}}},"description":"Pass url (with title, optional emoji) to bookmark it at the top of a conversation. Pass to to attach a document (doc_…) to a Slack List task, or to record that one object is about, duplicates, answers or waits on another; a relation someone removed stays removed. The result's id undoes a relation in links_delete. from is a conversation (chcv_…) for bookmarks, a Slack List task for attached documents, or any message, thread, task or issue for relations.\n\nRequires the write scope of the target's concept: `messages:write`, `tasks:write`, `documents:write`.","summary":"Create a link","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["from"],"properties":{"from":{"$ref":"#/components/schemas/PublicId"},"to":{"allOf":[{"$ref":"#/components/schemas/NonEmptyString","description":"a string at most 2048 character(s) long","title":"maxLength(2048)","maxLength":2048}],"description":"The object to link to: an id, or for a relation a link to a Linear issue, email or other object."},"url":{"type":"string","description":"a string matching the pattern ^https?:\\/\\/","pattern":"^https?:\\/\\/"},"title":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"emoji":{"type":"string"},"kind":{"$ref":"#/components/schemas/LinkKind"}},"additionalProperties":false}}},"required":true}}},"/v1/links.update":{"post":{"tags":["links"],"operationId":"links.update","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A conversation's bookmarked url, a document attached to a task, or a relation between two objects.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicLink"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Changes a bookmark's url, title or emoji. Only bookmarks can be changed; delete and create other links again.\n\nRequires the write scope of the target's concept: `messages:write`, `tasks:write`, `documents:write`.","summary":"Change a bookmark","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["from","id"],"properties":{"from":{"$ref":"#/components/schemas/PublicId"},"id":{"type":"string","description":"A link's id from links_list or links_create: a bookmark id, a doc_ id for an attached document, or arcp_… for a relation."},"url":{"type":"string","description":"a string matching the pattern ^https?:\\/\\/","pattern":"^https?:\\/\\/"},"title":{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},"emoji":{"type":"string"}},"additionalProperties":false}}},"required":true}}},"/v1/links.delete":{"post":{"tags":["links"],"operationId":"links.delete","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"The id of the object that was deleted."}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Removes a bookmark, detaches a document from a task, or undoes a relation made with links_create.\n\nRequires the write scope of the target's concept: `messages:write`, `tasks:write`, `documents:write`.","summary":"Delete a link","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["from","id"],"properties":{"from":{"$ref":"#/components/schemas/PublicId"},"id":{"type":"string","description":"A link's id from links_list or links_create: a bookmark id, a doc_ id for an attached document, or arcp_… for a relation."}},"additionalProperties":false}}},"required":true}}},"/v1/shares.get":{"post":{"tags":["shares"],"operationId":"shares.get","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Whether an object has a public link. When shared, url is the link anyone can open without signing in.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicShare"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Whether the object has a public link, and who turned it on. target is a Slack canvas (a doc_ id from documents_list, or chcv_…/<file>), a Slack List task from tasks_list, or something a run saved (aart_…).\n\nRequires the read scope of the target's concept: `documents:read`, `tasks:read`, `automations:read`.","summary":"Read a public link","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["target"],"properties":{"target":{"$ref":"#/components/schemas/PublicId"}},"additionalProperties":false}}},"required":true}}},"/v1/shares.update":{"post":{"tags":["shares"],"operationId":"shares.update","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Whether an object has a public link. When shared, url is the link anyone can open without signing in.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicShare"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"shared: true creates the public link, or returns the existing one. shared: false stops it working; turning it on again makes a new link. target is a Slack canvas (a doc_ id from documents_list, or chcv_…/<file>), a Slack List task from tasks_list, or something a run saved (aart_…).\n\nRequires the write scope of the target's concept: `documents:write`, `tasks:write`, `automations:write`.","summary":"Turn a public link on or off","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["target","shared"],"properties":{"target":{"$ref":"#/components/schemas/PublicId"},"shared":{"type":"boolean"}},"additionalProperties":false}}},"required":true}}},"/v1/documents.list":{"post":{"tags":["documents"],"operationId":"documents.list","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["items","nextCursor"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PublicDocument"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass this as cursor to get the next page. null on the last page."}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"},{"$ref":"#/components/schemas/InvalidCursor"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"404":{"description":"NotFound"},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Documents and folders you can see, Slack canvases and what runs saved, most recently updated first. Read one with documents_get.\n\nReturns one page of items. Pass nextCursor back as cursor until it is null.\n\nRequires the `documents:read` scope.","summary":"List documents, folders and canvases","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"source":{"type":"string","enum":["avazal","slack"],"description":"Only Avazal documents or only Slack canvases."},"parentId":{"anyOf":[{"$ref":"#/components/schemas/DocumentId"},{"type":"null"}],"description":"Only what is directly inside this folder. null lists the top level."},"query":{"allOf":[{"$ref":"#/components/schemas/NonEmptyTrimmedString"}],"description":"Only names containing this text, ignoring case."},"conversation":{"allOf":[{"$ref":"#/components/schemas/ConversationId"}],"description":"Only canvases in this channel or DM, from conversations_list."},"account":{"allOf":[{"$ref":"#/components/schemas/ChatWorkspaceId"}],"description":"A Slack workspace from accounts_list. Add it to also list canvases not yet opened in Avazal."},"run":{"allOf":[{"$ref":"#/components/schemas/AgentRunId"}],"description":"Only what this run saved."},"kind":{"allOf":[{"$ref":"#/components/schemas/DocumentKind"}],"description":"Only this kind."},"cursor":{"type":"string","description":"The nextCursor from the previous page. Omit it for the first page.","title":"maxLength(2048)","minLength":1,"maxLength":2048},"limit":{"allOf":[{"$ref":"#/components/schemas/Int","description":"a number between 1 and 100","title":"between(1, 100)","minimum":1,"maximum":100}],"description":"Items per page, 50 by default."}},"additionalProperties":false}}},"required":true}}},"/v1/documents.get":{"post":{"tags":["documents"],"operationId":"documents.get","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A document, folder, Slack canvas or something a run saved. A read adds its markdown, your canvas draft and publish state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDocument"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"404":{"description":"DocumentNotFound","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DocumentNotFound"},{"$ref":"#/components/schemas/NotFound"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Unsupported"},{"$ref":"#/components/schemas/ChatRejected"}]}}}},"502":{"description":"DocumentStorageFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentStorageFailed"}}}}},"description":"A document's markdown, version, your canvas draft and, for a Slack canvas, its publish state. A run's report reads as markdown. The first read of a canvas brings it into Avazal. revisionId reads an earlier revision from documents_revisions. operationId adds the publish documents_publish started. context adds its folders and the tasks it is attached to. refresh pulls the canvas again from Slack.\n\nRequires the `documents:read` scope.","summary":"Read a document","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"A doc_ or aart_ id from documents_list, or a Slack canvas as chcv_…/<file>."},"revisionId":{"$ref":"#/components/schemas/DocumentRevisionId"},"operationId":{"$ref":"#/components/schemas/DocumentOperationId"},"context":{"type":"boolean"},"refresh":{"type":"boolean"}},"additionalProperties":false}}},"required":true}}},"/v1/documents.create":{"post":{"tags":["documents"],"operationId":"documents.create","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A document, folder, Slack canvas or something a run saved. A read adds its markdown, your canvas draft and publish state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDocument"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"404":{"description":"DocumentNotFound","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DocumentNotFound"},{"$ref":"#/components/schemas/NotFound"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AskFirst"},{"$ref":"#/components/schemas/DocumentConflict"}]}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Unsupported"},{"$ref":"#/components/schemas/DocumentInvalid"},{"$ref":"#/components/schemas/ChatRejected"}]}}}},"502":{"description":"DocumentStorageFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentStorageFailed"}}}}},"description":"An Avazal document or folder (kind) in parentId, or with conversation a Slack canvas that is added as a tab there and posted to it. markdown is a document's first content.\n\nRequires the `documents:write` scope.","summary":"Create a document, folder or canvas","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"$ref":"#/components/schemas/Trimmed","description":"a string at most 255 character(s) long","title":"maxLength(255)","minLength":1,"maxLength":255},"kind":{"type":"string","enum":["file","folder"]},"parentId":{"anyOf":[{"$ref":"#/components/schemas/DocumentId"},{"type":"null"}]},"markdown":{"type":"string","description":"a string at most 1000000 character(s) long","title":"maxLength(1000000)","maxLength":1000000},"conversation":{"allOf":[{"$ref":"#/components/schemas/ConversationId"}],"description":"Create a Slack canvas in this channel or DM, from conversations_list."}},"additionalProperties":false}}},"required":true}}},"/v1/documents.update":{"post":{"tags":["documents"],"operationId":"documents.update","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A document, folder, Slack canvas or something a run saved. A read adds its markdown, your canvas draft and publish state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDocument"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"404":{"description":"DocumentNotFound","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DocumentNotFound"},{"$ref":"#/components/schemas/NotFound"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AskFirst"},{"$ref":"#/components/schemas/DocumentConflict"}]}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Unsupported"},{"$ref":"#/components/schemas/DocumentInvalid"},{"$ref":"#/components/schemas/ChatRejected"}]}}}},"502":{"description":"DocumentStorageFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentStorageFailed"}}}}},"description":"Changes the markdown, name or folder, or restores a revision. Pass the guards from documents_get so a change someone else made fails with DocumentConflict instead of being overwritten. On a Slack canvas markdown saves your draft and nothing reaches Slack until documents_publish; resolve saves merged markdown over the canvas's latest revision after a conflict.\n\nRequires the `documents:write` scope.","summary":"Edit, rename, move or restore a document","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"A doc_ or aart_ id from documents_list, or a Slack canvas as chcv_…/<file>."},"markdown":{"type":"string","description":"a string at most 1000000 character(s) long","title":"maxLength(1000000)","maxLength":1000000},"name":{"$ref":"#/components/schemas/Trimmed","description":"a string at most 255 character(s) long","title":"maxLength(255)","minLength":1,"maxLength":255},"parentId":{"anyOf":[{"$ref":"#/components/schemas/DocumentId"},{"type":"null"}]},"restore":{"allOf":[{"$ref":"#/components/schemas/DocumentRevisionId"}],"description":"Bring back this revision from documents_revisions."},"resolve":{"type":"boolean"},"expectedRevisionId":{"allOf":[{"$ref":"#/components/schemas/DocumentRevisionId"}],"description":"The revisionId from documents_get. Needed to change markdown; fails with DocumentConflict if someone saved since."},"expectedGeneration":{"allOf":[{"$ref":"#/components/schemas/Int","description":"a non-negative number","title":"nonNegative","minimum":0}],"description":"draft.generation from documents_get, 0 when draft is null. Needed to change a canvas or restore a revision."},"expectedVersion":{"allOf":[{"$ref":"#/components/schemas/Int"}],"description":"version from documents_get or documents_list. Needed to rename or move."}},"additionalProperties":false}}},"required":true}}},"/v1/documents.delete":{"post":{"tags":["documents"],"operationId":"documents.delete","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"204":{"description":"Success"},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"404":{"description":"DocumentNotFound","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DocumentNotFound"},{"$ref":"#/components/schemas/NotFound"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AskFirst"},{"$ref":"#/components/schemas/DocumentConflict"}]}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Unsupported"},{"$ref":"#/components/schemas/ChatRejected"}]}}}}},"description":"Removes it from everyone's documents in Avazal. Slack is unchanged.\n\nRequires the `documents:write` scope.","summary":"Delete a document or folder","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id","expectedVersion"],"properties":{"id":{"type":"string","description":"A doc_ or aart_ id from documents_list, or a Slack canvas as chcv_…/<file>."},"expectedVersion":{"$ref":"#/components/schemas/Int"}},"additionalProperties":false}}},"required":true}}},"/v1/documents.revisions":{"post":{"tags":["documents"],"operationId":"documents.revisions","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["items","nextCursor"],"properties":{"items":{"type":"array","items":{"type":"object","required":["id","parentRevisionId","actorId","origin","createdAt"],"properties":{"id":{"$ref":"#/components/schemas/DocumentRevisionId"},"parentRevisionId":{"anyOf":[{"$ref":"#/components/schemas/DocumentRevisionId"},{"type":"null"}]},"actorId":{"type":"string","description":"Who made the revision."},"origin":{"type":"string","enum":["native","draft","remote"]},"createdAt":{"type":"string"}},"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass this as cursor to get the next page. null on the last page."}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"},{"$ref":"#/components/schemas/InvalidCursor"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"404":{"description":"DocumentNotFound","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DocumentNotFound"},{"$ref":"#/components/schemas/NotFound"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Unsupported"},{"$ref":"#/components/schemas/ChatRejected"}]}}}}},"description":"Every saved version, newest first, with who made it. origin is native for an Avazal save, draft for an unpublished canvas edit and remote for a change made in Slack. Read one with documents_get.\n\nReturns one page of items. Pass nextCursor back as cursor until it is null.\n\nRequires the `documents:read` scope.","summary":"List a document's revisions","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"A doc_ or aart_ id from documents_list, or a Slack canvas as chcv_…/<file>."},"cursor":{"type":"string","description":"The nextCursor from the previous page. Omit it for the first page.","title":"maxLength(2048)","minLength":1,"maxLength":2048},"limit":{"allOf":[{"$ref":"#/components/schemas/Int","description":"a number between 1 and 100","title":"between(1, 100)","minimum":1,"maximum":100}],"description":"Items per page, 50 by default."}},"additionalProperties":false}}},"required":true}}},"/v1/documents.publish":{"post":{"tags":["documents"],"operationId":"documents.publish","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A document, folder, Slack canvas or something a run saved. A read adds its markdown, your canvas draft and publish state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDocument"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"404":{"description":"DocumentNotFound","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DocumentNotFound"},{"$ref":"#/components/schemas/NotFound"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AskFirst"},{"$ref":"#/components/schemas/DocumentConflict"}]}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Unsupported"},{"$ref":"#/components/schemas/DocumentInvalid"},{"$ref":"#/components/schemas/ChatRejected"}]}}}},"502":{"description":"DocumentStorageFailed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentStorageFailed"}}}}},"description":"Writes your draft to the Slack canvas, where everyone with access sees it. expectedGeneration is draft.generation from documents_get. Reuse idempotencyKey to retry safely. The result's publish.operation says how it went; follow it with documents_get and operationId until state is verified, conflict or failed.\n\nRequires the `documents:write` scope.","summary":"Publish a canvas draft to Slack","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id","expectedGeneration","idempotencyKey"],"properties":{"id":{"type":"string","description":"A doc_ or aart_ id from documents_list, or a Slack canvas as chcv_…/<file>."},"expectedGeneration":{"$ref":"#/components/schemas/Int","description":"a positive number","title":"positive","exclusiveMinimum":0},"idempotencyKey":{"$ref":"#/components/schemas/NonEmptyTrimmedString","description":"a string at most 200 character(s) long","title":"maxLength(200)","maxLength":200},"bodyWrite":{"type":"string","enum":["append-only","replace-document"],"description":"replace-document (default) or append-only."}},"additionalProperties":false}}},"required":true}}},"/v1/documents.save":{"post":{"tags":["documents"],"operationId":"documents.save","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A document, folder, Slack canvas or something a run saved. A read adds its markdown, your canvas draft and publish state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDocument"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Save a page, screenshots, a markdown report or a file from this run as a document. It shows on the run card and opens in Avazal beside the chat, visible to the workspace. Pages render sandboxed with no network, so inline every script, style and image.\n\nAny valid credential may call this.","summary":"Save something a run made","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["kind","title","files"],"properties":{"kind":{"$ref":"#/components/schemas/ArtifactKind"},"title":{"$ref":"#/components/schemas/NonEmptyTrimmedString","description":"a string at most 120 character(s) long","title":"maxLength(120)","maxLength":120},"files":{"type":"array","items":{"type":"object","required":["name","mimeType","data"],"properties":{"name":{"$ref":"#/components/schemas/NonEmptyTrimmedString","description":"a string at most 200 character(s) long","title":"maxLength(200)","maxLength":200},"mimeType":{"type":"string","description":"a string at most 120 character(s) long","pattern":"^[a-z]+\\/[a-z0-9.+-]+$","title":"maxLength(120)","maxLength":120},"data":{"type":"string","description":"The file's bytes, base64 encoded.","title":"maxLength(6666668)","minLength":1,"maxLength":6666668,"pattern":"^[A-Za-z0-9+/]+={0,2}$"}},"additionalProperties":false},"description":"an array of at most 12 item(s)","title":"maxItems(12)","minItems":1,"maxItems":12}},"additionalProperties":false}}},"required":true}}},"/v1/events.list":{"post":{"tags":["events"],"operationId":"events.list","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["items","nextCursor"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PublicEvent"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass this as cursor to get the next page. null on the last page."}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"},{"$ref":"#/components/schemas/InvalidCursor"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"404":{"description":"NotFound"},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Events on the calendars you show in Avazal between from and to, at most 62 days apart, earliest first. timeZone (an IANA name such as Europe/London) decides which day all-day events fall on and defaults to UTC. With source slack, or account, Slack huddles in that window are listed too.\n\nReturns one page of items. Pass nextCursor back as cursor until it is null.\n\nRequires the `events:read` scope.","summary":"List calendar events and huddles","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["from","to"],"properties":{"from":{"$ref":"#/components/schemas/Date"},"to":{"$ref":"#/components/schemas/Date"},"timeZone":{"type":"string"},"source":{"type":"string","enum":["google-calendar","slack"],"description":"Only calendar events or only huddles."},"account":{"allOf":[{"$ref":"#/components/schemas/ChatWorkspaceId"}],"description":"A Slack workspace from accounts_list, for huddles."},"cursor":{"type":"string","description":"The nextCursor from the previous page. Omit it for the first page.","title":"maxLength(2048)","minLength":1,"maxLength":2048},"limit":{"allOf":[{"$ref":"#/components/schemas/Int","description":"a number between 1 and 100","title":"between(1, 100)","minimum":1,"maximum":100}],"description":"Items per page, 50 by default."}},"additionalProperties":false}}},"required":true}}},"/v1/events.get":{"post":{"tags":["events"],"operationId":"events.get","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A calendar event or Slack huddle. Reading one adds its attendees, description and email thread.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicEvent"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"404":{"description":"NotFound"},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"An event's time, attendees with their responses, description and email thread. With an mdrf_ reply draft id, the meeting booked for it: start and end are null until it is on your calendar.\n\nRequires the `events:read` scope.","summary":"Read an event or booked meeting","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"A cevt_ id from events_list or search_query, or the mdrf_ id of a reply draft someone accepted a time for, from conversations_get."}},"additionalProperties":false}}},"required":true}}},"/v1/events.update":{"post":{"tags":["events"],"operationId":"events.update","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A calendar event or Slack huddle. Reading one adds its attendees, description and email thread.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicEvent"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"404":{"description":"NotFound"},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}},"502":{"description":"ServerUnreachable","content":{"application/json":{"schema":{"type":"object","required":["_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["ServerUnreachable"]}},"additionalProperties":false}}}}},"description":"Sets your RSVP, and the organizer is told. Returns the event with your response in attendees.\n\nRequires the `events:write` scope.","summary":"Accept, decline or tentatively accept an invite","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id","response"],"properties":{"id":{"type":"string","description":"A cevt_ id from events_list."},"response":{"type":"string","enum":["accepted","declined","tentative"]}},"additionalProperties":false}}},"required":true}}},"/v1/events.create":{"post":{"tags":["events"],"operationId":"events.create","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A calendar event or Slack huddle. Reading one adds its attendees, description and email thread.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicEvent"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"404":{"description":"NotFound"},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AskFirst"},{"$ref":"#/components/schemas/MeetingUnavailable"}]}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Adds the accepted time to your primary calendar and invites attendees, as email addresses. draft is the mdrf_ id of a reply draft whose acceptance is set, from conversations_get. Fails with MeetingUnavailable when the time is no longer free; set force to book it anyway.\n\nRequires the `events:write` scope.","summary":"Book a meeting someone accepted","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["draft","attendees"],"properties":{"draft":{"type":"string","description":"The mdrf_ id of the reply draft."},"attendees":{"type":"array","items":{"type":"string"},"description":"an array of at most 50 item(s)","title":"maxItems(50)","minItems":1,"maxItems":50},"force":{"type":"boolean"}},"additionalProperties":false}}},"required":true}}},"/v1/events.find_time":{"post":{"tags":["events"],"operationId":"events.find_time","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["slots","rejected","unknownAttendees"],"properties":{"slots":{"type":"array","items":{"type":"object","required":["start","end"],"properties":{"start":{"$ref":"#/components/schemas/Date"},"end":{"$ref":"#/components/schemas/Date"}},"additionalProperties":false}},"rejected":{"type":"array","items":{"type":"object","required":["interval","reason"],"properties":{"interval":{"type":"object","required":["start","end"],"properties":{"start":{"$ref":"#/components/schemas/Date"},"end":{"$ref":"#/components/schemas/Date"}},"additionalProperties":false},"reason":{"type":"string","enum":["notice","excludedDay","outsideHours","busy","focus","buffer"]}},"additionalProperties":false}},"unknownAttendees":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Open slots of durationMinutes inside window (at most 31 days) that fit your working hours, focus blocks, buffers and calendar, and the calendars of attendees Avazal can see. Pass attendee email addresses; ones Avazal cannot see come back in unknownAttendees. rejected says why other times were left out.\n\nRequires the `events:read` scope.","summary":"Find free times for a meeting","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["window","durationMinutes"],"properties":{"window":{"type":"object","required":["start","end"],"properties":{"start":{"$ref":"#/components/schemas/Date"},"end":{"$ref":"#/components/schemas/Date"}},"additionalProperties":false},"durationMinutes":{"$ref":"#/components/schemas/Int","description":"a number between 5 and 480","title":"between(5, 480)","minimum":5,"maximum":480},"excludedDays":{"type":"array","items":{"type":"string","enum":["sunday","monday","tuesday","wednesday","thursday","friday","saturday"]}},"attendees":{"type":"array","items":{"type":"string"},"description":"an array of at most 50 item(s)","title":"maxItems(50)","maxItems":50},"theirTimeZone":{"type":"string"},"allowFocus":{"type":"boolean"}},"additionalProperties":false}}},"required":true}}},"/v1/notifications.create":{"post":{"tags":["notifications"],"operationId":"notifications.create","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"AppliedEffect","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppliedEffect"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"AccessPending","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Unsupported"},{"$ref":"#/components/schemas/EffectRejected"}]}}}},"429":{"description":"BudgetExceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BudgetExceeded"}}}}},"description":"With at, remind you or a person in the conversation about the message at that time. With template, send them an in-app notice now; the text comes from the template, there is no free text. Undoable.\n\nRequires the `automations:write` scope.","summary":"Remind or notify someone about a message","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationCreate"}}},"required":true}}},"/v1/triggers.list":{"post":{"tags":["triggers"],"operationId":"triggers.list","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["items","nextCursor"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PublicTrigger"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass this as cursor to get the next page. null on the last page."}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"},{"$ref":"#/components/schemas/InvalidCursor"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"FeatureOff","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FeatureOff"},{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"},{"$ref":"#/components/schemas/Forbidden"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Your triggers and your workspace's team triggers: when each fires, which agent runs it, and where it reports.\n\nReturns one page of items. Pass nextCursor back as cursor until it is null.\n\nRequires the `automations:read` scope.","summary":"List triggers","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"cursor":{"type":"string","description":"The nextCursor from the previous page. Omit it for the first page.","title":"maxLength(2048)","minLength":1,"maxLength":2048},"limit":{"allOf":[{"$ref":"#/components/schemas/Int","description":"a number between 1 and 100","title":"between(1, 100)","minimum":1,"maximum":100}],"description":"Items per page, 50 by default."}},"additionalProperties":false}}},"required":true}}},"/v1/triggers.get":{"post":{"tags":["triggers"],"operationId":"triggers.get","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A saved trigger with its owner, state and last run.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicTrigger"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"FeatureOff","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FeatureOff"},{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"404":{"description":"TriggerNotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerNotFound"}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Requires the `automations:read` scope.","summary":"Read a trigger","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","title":"`trg_${string}`","description":"Trigger","pattern":"^trg_[\\s\\S]*?$"}},"additionalProperties":false}}},"required":true}}},"/v1/triggers.describe":{"post":{"tags":["triggers"],"operationId":"triggers.describe","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"type":"object","required":["_tag","draft","notes"],"properties":{"_tag":{"type":"string","enum":["Drafted"]},"draft":{"$ref":"#/components/schemas/TriggerDraft"},"notes":{"type":"array","items":{"type":"string"}},"unsupported":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},{"type":"object","required":["_tag","question","choices"],"properties":{"_tag":{"type":"string","enum":["Clarify"]},"question":{"$ref":"#/components/schemas/NonEmptyTrimmedString"},"choices":{"type":"array","items":{"$ref":"#/components/schemas/NonEmptyTrimmedString"},"description":"an array of at most 8 item(s)","title":"maxItems(8)","maxItems":8}},"additionalProperties":false}]}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"FeatureOff","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FeatureOff"},{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"},{"$ref":"#/components/schemas/Forbidden"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}},"429":{"description":"RateLimited","content":{"application/json":{"schema":{"type":"object","required":["retryAfterSeconds","_tag"],"properties":{"message":{"type":"string"},"retryAfterSeconds":{"type":"number"},"_tag":{"type":"string","enum":["RateLimited"]}},"additionalProperties":false}}}}},"description":"Describe a rule in words and get back a draft to review, or a question when the words leave something open. Pass the current draft to edit it. Nothing is saved; call triggers_create with the draft.\n\nRequires the `automations:write` scope.","summary":"Turn plain words into a trigger","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["text"],"properties":{"text":{"$ref":"#/components/schemas/NonEmptyTrimmedString","description":"a string at most 1000 character(s) long","title":"maxLength(1000)","maxLength":1000},"refs":{"$ref":"#/components/schemas/PromptRefs"},"scope":{"type":"string","enum":["team","personal"]},"current":{"$ref":"#/components/schemas/TriggerDraft"}},"additionalProperties":false}}},"required":true}}},"/v1/triggers.create":{"post":{"tags":["triggers"],"operationId":"triggers.create","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A saved trigger with its owner, state and last run.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicTrigger"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"FeatureOff","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FeatureOff"},{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"},{"$ref":"#/components/schemas/Forbidden"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AskFirst"},{"$ref":"#/components/schemas/TriggerLimit"}]}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Unsupported"},{"$ref":"#/components/schemas/SharedKeyRequired"},{"$ref":"#/components/schemas/AgentUnavailable"},{"$ref":"#/components/schemas/SharedListRoute"}]}}}}},"description":"Save a trigger. A trigger an agent creates is saved off; the owner turns it on.\n\nRequires the `automations:write` scope.","summary":"Create a trigger","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerDraft"}}},"required":true}}},"/v1/triggers.update":{"post":{"tags":["triggers"],"operationId":"triggers.update","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"A saved trigger with its owner, state and last run.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicTrigger"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"FeatureOff","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FeatureOff"},{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"},{"$ref":"#/components/schemas/Forbidden"}]}}}},"404":{"description":"TriggerNotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerNotFound"}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Unsupported"},{"$ref":"#/components/schemas/SharedKeyRequired"},{"$ref":"#/components/schemas/AgentUnavailable"},{"$ref":"#/components/schemas/SharedListRoute"}]}}}}},"description":"Replace a trigger's rule, agent, prompt and routes with draft, and turn it on or off with enabled.\n\nRequires the `automations:write` scope.","summary":"Change a trigger","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","title":"`trg_${string}`","description":"Trigger","pattern":"^trg_[\\s\\S]*?$"},"draft":{"allOf":[{"$ref":"#/components/schemas/TriggerDraft"}],"description":"The whole rule, agent, prompt and routes."},"enabled":{"type":"boolean","description":"Turn the trigger on or off."}},"additionalProperties":false}}},"required":true}}},"/v1/triggers.delete":{"post":{"tags":["triggers"],"operationId":"triggers.delete","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$id":"/schemas/%7B%7D","anyOf":[{"type":"object"},{"type":"array"}]}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"FeatureOff","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FeatureOff"},{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"},{"$ref":"#/components/schemas/Forbidden"}]}}}},"404":{"description":"TriggerNotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerNotFound"}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Requires the `automations:write` scope.","summary":"Delete a trigger","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","title":"`trg_${string}`","description":"Trigger","pattern":"^trg_[\\s\\S]*?$"}},"additionalProperties":false}}},"required":true}}},"/v1/triggers.run":{"post":{"tags":["triggers"],"operationId":"triggers.run","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["runId"],"properties":{"runId":{"$ref":"#/components/schemas/AgentRunId"}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"FeatureOff","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FeatureOff"},{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"},{"$ref":"#/components/schemas/Forbidden"}]}}}},"404":{"description":"TriggerNotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerNotFound"}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Unsupported"},{"$ref":"#/components/schemas/AgentUnavailable"}]}}}}},"description":"Start one run of the trigger with its routes dropped, so only its owner is told. Refused inside a trigger's own run.\n\nRequires the `automations:write` scope.","summary":"Try a trigger now","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","title":"`trg_${string}`","description":"Trigger","pattern":"^trg_[\\s\\S]*?$"}},"additionalProperties":false}}},"required":true}}},"/v1/runs.create":{"post":{"tags":["runs"],"operationId":"runs.create","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Where an ask stands: its stage, owner and linked work. Only the id and url when the ask was just marked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskTracking"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"FeatureOff","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FeatureOff"},{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"404":{"description":"TrackingNotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackingNotFound"}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Unsupported"},{"$ref":"#/components/schemas/AgentUnavailable"}]}}}}},"description":"Claim an ask and start a run on it with the agent you pick. The pick becomes your default agent for the robot reaction.\n\nRequires the `automations:write` scope.","summary":"Start an agent on an ask","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["ask","agent"],"properties":{"ask":{"type":"string","description":"The message to work on, an id from asks_list."},"agent":{"anyOf":[{"type":"object","required":["connectionId","targetId"],"properties":{"connectionId":{"$ref":"#/components/schemas/AgentConnectionId"},"targetId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where the agent runs, such as a device or repository, or null for its default."}},"additionalProperties":false},{"type":"string","enum":["avazal"]}]}},"additionalProperties":false}}},"required":true}}},"/v1/runs.update":{"post":{"tags":["runs"],"operationId":"runs.update","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$id":"/schemas/%7B%7D","anyOf":[{"type":"object"},{"type":"array"}]}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"FeatureOff","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FeatureOff"},{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Call this last in a run handed to you by Avazal: a one-line summary, done, needs_you or failed, and links to what you made. A second call replaces the first.\n\nAny valid credential may call this.","summary":"Report what you did","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["summary","status","outcomes"],"properties":{"summary":{"type":"string","description":"a string at most 140 character(s) long","title":"maxLength(140)","maxLength":140},"status":{"type":"string","enum":["done","needs_you","failed"]},"outcomes":{"type":"array","items":{"type":"object","required":["label"],"properties":{"label":{"type":"string","description":"a string at most 80 character(s) long","title":"maxLength(80)","maxLength":80},"url":{"type":"string","description":"a string matching the pattern ^https?:\\/\\/","pattern":"^https?:\\/\\/"}},"additionalProperties":false},"description":"an array of at most 10 item(s)","title":"maxItems(10)","maxItems":10}},"additionalProperties":false}}},"required":true}}},"/v1/runs.ask":{"post":{"tags":["runs"],"operationId":"runs.ask","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"type":"object","required":["status","decision"],"properties":{"status":{"type":"string","enum":["answered"]},"decision":{"type":"string","enum":["approved","edited","dismissed","replied"]},"text":{"type":"string"},"input":{"type":"object","required":[],"properties":{},"additionalProperties":{"$id":"/schemas/unknown","title":"unknown"}}},"additionalProperties":false},{"type":"object","required":["status","askId"],"properties":{"status":{"type":"string","enum":["pending"]},"askId":{"$ref":"#/components/schemas/AskId"}},"additionalProperties":false}]}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"FeatureOff","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FeatureOff"},{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Ask a question, or set action to get approval for a tool that reaches people outside Avazal. If the answer is pending, report needs_you and stop; the answer comes back to you later.\n\nAny valid credential may call this.","summary":"Ask the person who handed you this run","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["question"],"properties":{"question":{"$ref":"#/components/schemas/NonEmptyTrimmedString","description":"a string at most 200 character(s) long","title":"maxLength(200)","maxLength":200},"detail":{"type":"string","description":"a string at most 2000 character(s) long","title":"maxLength(2000)","maxLength":2000},"link":{"type":"string","description":"a string matching the pattern ^https?:\\/\\/","pattern":"^https?:\\/\\/"},"options":{"type":"array","items":{"$ref":"#/components/schemas/NonEmptyTrimmedString"},"description":"an array of at most 4 item(s)","title":"maxItems(4)","maxItems":4},"action":{"type":"object","required":["tool","input"],"properties":{"tool":{"$ref":"#/components/schemas/OperationName"},"input":{"type":"object","required":[],"properties":{},"additionalProperties":{"$id":"/schemas/unknown","title":"unknown"}}},"additionalProperties":false,"description":"The outward tool call you want approved. Once approved, call that tool with this input, or with the edited input from the answer."}},"additionalProperties":false}}},"required":true}}},"/v1/runs.answer":{"post":{"tags":["runs"],"operationId":"runs.answer","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$id":"/schemas/%7B%7D","anyOf":[{"type":"object"},{"type":"array"}]}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"FeatureOff","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FeatureOff"},{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"},{"$ref":"#/components/schemas/NotApprover"}]}}}},"404":{"description":"AskNotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskNotFound"}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AskFirst"},{"$ref":"#/components/schemas/QuestionClosed"}]}}}},"410":{"description":"AskExpired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskExpired"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Approve, edit, dismiss or reply to an ask from a run you started. Only that person can answer, never an agent, and an expired ask can't be answered.\n\nAny valid credential may call this.","summary":"Answer an agent's ask","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"anyOf":[{"type":"object","required":["id","decision"],"properties":{"id":{"$ref":"#/components/schemas/AskId"},"decision":{"type":"string","enum":["approved","dismissed"]}},"additionalProperties":false},{"type":"object","required":["id","decision","input"],"properties":{"id":{"$ref":"#/components/schemas/AskId"},"decision":{"type":"string","enum":["edited"]},"input":{"type":"object","required":[],"properties":{},"additionalProperties":{"$id":"/schemas/unknown","title":"unknown"}}},"additionalProperties":false}]},{"type":"object","required":["id","decision","text"],"properties":{"id":{"$ref":"#/components/schemas/AskId"},"decision":{"type":"string","enum":["replied"]},"text":{"type":"string"}},"additionalProperties":false}]}}},"required":true}}},"/v1/asks.list":{"post":{"tags":["asks"],"operationId":"asks.list","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","required":["items","nextCursor"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PublicAsk"}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass this as cursor to get the next page. null on the last page."}},"additionalProperties":false}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"},{"$ref":"#/components/schemas/InvalidCursor"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"FeatureOff","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FeatureOff"},{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Asks in chat addressed to you, or from customers, that nobody has answered yet. Most recent first.\n\nReturns one page of items. Pass nextCursor back as cursor until it is null.\n\nRequires the `automations:read` scope.","summary":"List what you owe","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"group":{"type":"string","enum":["yours","customers"]},"cursor":{"type":"string","description":"The nextCursor from the previous page. Omit it for the first page.","title":"maxLength(2048)","minLength":1,"maxLength":2048},"limit":{"allOf":[{"$ref":"#/components/schemas/Int","description":"a number between 1 and 100","title":"between(1, 100)","minimum":1,"maximum":100}],"description":"Items per page, 50 by default."}},"additionalProperties":false}}},"required":true}}},"/v1/asks.update":{"post":{"tags":["asks"],"operationId":"asks.update","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Where an ask stands: its stage, owner and linked work. Only the id and url when the ask was just marked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskTracking"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"FeatureOff","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FeatureOff"},{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"404":{"description":"OwedNotFound","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OwedNotFound"},{"$ref":"#/components/schemas/TrackingNotFound"}]}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"mark: done, not_mine, not_ask, or snoozed until a time (until is required when snoozing and not allowed otherwise). claimed: take the ask so teammates see it is handled. link: attach a Linear issue or a GitHub pull request, so it shows as shipped when the pull request merges or the issue closes.\n\nRequires the `automations:write` scope.","summary":"Mark, claim or link an ask","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"The ask, an id from asks_list."},"mark":{"type":"string","enum":["done","not_mine","not_ask","snoozed"]},"until":{"$ref":"#/components/schemas/DateTimeUtc"},"claimed":{"type":"boolean","enum":[true]},"signal":{"type":"boolean","description":"With claimed: false claims without the claimed reaction. Default true."},"link":{"anyOf":[{"type":"object","required":["_tag","objectRef"],"properties":{"_tag":{"type":"string","enum":["Issue"]},"objectRef":{"$ref":"#/components/schemas/ObjectRef"}},"additionalProperties":false},{"type":"object","required":["_tag","url"],"properties":{"_tag":{"type":"string","enum":["PullRequest"]},"url":{"type":"string","description":"a string matching the pattern ^https:\\/\\/github\\.com\\/([^/\\s]+\\/[^/\\s]+)\\/pull\\/(\\d+)","title":"maxLength(2048)","maxLength":2048,"pattern":"^https:\\/\\/github\\.com\\/([^/\\s]+\\/[^/\\s]+)\\/pull\\/(\\d+)"}},"additionalProperties":false}]}},"additionalProperties":false}}},"required":true}}},"/v1/asks.reply":{"post":{"tags":["asks"],"operationId":"asks.reply","parameters":[],"security":[{"apiKey":[]},{"bearer":[]}],"responses":{"200":{"description":"Where an ask stands: its stage, owner and linked work. Only the id and url when the ask was just marked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskTracking"}}}},"400":{"description":"The request did not match the expected schema","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HttpApiDecodeError"},{"$ref":"#/components/schemas/InvalidId"}]}}}},"401":{"description":"KeyRequired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequired"}}}},"403":{"description":"FeatureOff","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FeatureOff"},{"$ref":"#/components/schemas/AccessPending"},{"$ref":"#/components/schemas/ScopeRequired"},{"$ref":"#/components/schemas/OutsideRun"},{"$ref":"#/components/schemas/ToolNotGranted"}]}}}},"404":{"description":"TrackingNotFound","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackingNotFound"}}}},"409":{"description":"AskFirst","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskFirst"}}}},"422":{"description":"Unsupported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Unsupported"}}}}},"description":"Post the reply Avazal drafted for a shipped ask, as you, in the original thread. Pass body to send an edited version. Sends once however many times it is called.\n\nRequires the `automations:write` scope.","summary":"Send a drafted reply","requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["id","draft"],"properties":{"id":{"type":"string","description":"The ask, an id from asks_list."},"draft":{"$ref":"#/components/schemas/Trimmed","description":"The drafted reply to send, from the ask's draft.draftId.","title":"nonEmptyString","minLength":1},"body":{"allOf":[{"$ref":"#/components/schemas/NonEmptyTrimmedString","description":"a string at most 4000 character(s) long","title":"maxLength(4000)","maxLength":4000}],"description":"An edited version to send instead."}},"additionalProperties":false}}},"required":true}}}},"components":{"schemas":{"Trimmed":{"type":"string","title":"trimmed","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$"},"AgentScope":{"type":"string","enum":["messages:read","messages:write","messages:send","tasks:read","tasks:write","documents:read","documents:write","events:read","events:write","people:read","people:write","automations:read","automations:write","settings:read","settings:write","search:read"],"description":"A concept and the action an agent may take on it."},"AgentIdentityId":{"type":"string","title":"`agid_${string}`","description":"Agent identity","pattern":"^agid_[\\s\\S]*?$"},"HttpApiDecodeError":{"type":"object","required":["issues","message","_tag"],"properties":{"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}},"message":{"type":"string"},"_tag":{"type":"string","enum":["HttpApiDecodeError"]}},"additionalProperties":false,"description":"The request did not match the expected schema"},"Issue":{"type":"object","required":["_tag","path","message"],"properties":{"_tag":{"type":"string","enum":["Pointer","Unexpected","Missing","Composite","Refinement","Transformation","Type","Forbidden"],"description":"The tag identifying the type of parse issue"},"path":{"type":"array","items":{"$ref":"#/components/schemas/PropertyKey"},"description":"The path to the property where the issue occurred"},"message":{"type":"string","description":"A descriptive message explaining the issue"}},"additionalProperties":false,"description":"Represents an error encountered while parsing a value to match the schema"},"PropertyKey":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"object","required":["_tag","key"],"properties":{"_tag":{"type":"string","enum":["symbol"]},"key":{"type":"string"}},"additionalProperties":false}]},"InvalidId":{"type":"object","required":["id","message","_tag"],"properties":{"id":{"type":"string","description":"The id that was passed and could not be read."},"message":{"type":"string"},"_tag":{"type":"string","enum":["InvalidId"]}},"additionalProperties":false},"KeyRequired":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["KeyRequired"]}},"additionalProperties":false},"AccessPending":{"type":"object","required":["_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["AccessPending"]}},"additionalProperties":false},"ScopeRequired":{"type":"object","required":["scope","message","_tag"],"properties":{"scope":{"$ref":"#/components/schemas/AgentScope"},"message":{"type":"string"},"_tag":{"type":"string","enum":["ScopeRequired"]}},"additionalProperties":false},"OutsideRun":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["OutsideRun"]}},"additionalProperties":false},"ToolNotGranted":{"type":"object","required":["tool","message","_tag"],"properties":{"tool":{"type":"string"},"message":{"type":"string"},"_tag":{"type":"string","enum":["ToolNotGranted"]}},"additionalProperties":false},"AskFirst":{"type":"object","required":["action","message","_tag"],"properties":{"action":{"type":"object","required":["tool","input"],"properties":{"tool":{"$ref":"#/components/schemas/OperationName"},"input":{"type":"object","required":[],"properties":{},"additionalProperties":{"$id":"/schemas/unknown","title":"unknown"}}},"additionalProperties":false},"message":{"type":"string"},"_tag":{"type":"string","enum":["AskFirst"]}},"additionalProperties":false},"OperationName":{"type":"string","description":"An Avazal tool name, e.g. messages_send.","pattern":"^[a-z]+_[a-z_]+$"},"Unsupported":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["Unsupported"]}},"additionalProperties":false},"Date":{"type":"string"},"PublicPerson":{"type":"object","required":["id","url","source","name","email","title","photoUrl","account","provider"],"properties":{"id":{"type":"string","description":"The object's id. Every operation that takes it accepts it."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A link that opens the object where it lives."},"source":{"$ref":"#/components/schemas/Source"},"name":{"type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"photoUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"account":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The Slack workspace a member belongs to; null for contacts."},"provider":{"anyOf":[{"type":"object","required":["_tag","displayName","timeZone","pronouns","status","admin","guest","bot"],"properties":{"_tag":{"type":"string","enum":["slack"]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"timeZone":{"anyOf":[{"type":"string"},{"type":"null"}]},"pronouns":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"type":"object","required":["emoji","text","expiresAt"],"properties":{"emoji":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"type":"string"},"expiresAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"presence":{"anyOf":[{"type":"string","enum":["active","away","unknown"]},{"type":"null"}]},"admin":{"type":"boolean"},"guest":{"type":"boolean"},"bot":{"type":"boolean"}},"additionalProperties":false},{"type":"object","required":["_tag","company","strength","pinned","lastInteractionAt"],"properties":{"_tag":{"type":"string","enum":["contacts"]},"company":{"anyOf":[{"type":"string"},{"type":"null"}]},"strength":{"type":"string","enum":["strong","good","weak","none"]},"pinned":{"type":"boolean"},"lastInteractionAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]},"emails":{"type":"array","items":{"type":"string"}},"typicalReplyHours":{"anyOf":[{"type":"number"},{"type":"null"}]},"lastEmailedAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]},"lastMetAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]},"nextMeetingAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]},"threads":{"type":"array","items":{"type":"object","required":["id","subject","lastMessageAt"],"properties":{"id":{"type":"string","description":"An email thread with the contact, the threadId threads_get takes. From contacts_get."},"subject":{"type":"string"},"lastMessageAt":{"$ref":"#/components/schemas/Date"}},"additionalProperties":false}},"meetings":{"type":"array","items":{"type":"object","required":["title","at"],"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"at":{"$ref":"#/components/schemas/Date"}},"additionalProperties":false}}},"additionalProperties":false}]}},"additionalProperties":false,"description":"A contact (cnt_…) or a Slack workspace member (chws_…@<member id>)."},"Source":{"type":"string","enum":["avazal","slack","gmail","google-calendar","google-drive","linear","github","contacts"],"description":"Where the object lives. Avazal is the source of its own objects."},"Int":{"type":"integer","title":"int"},"PublicAccount":{"type":"object","required":["id","url","source","name","status","provider"],"properties":{"id":{"type":"string","description":"The object's id. Every operation that takes it accepts it."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A link that opens the object where it lives."},"source":{"$ref":"#/components/schemas/Source"},"name":{"type":"string"},"status":{"type":"string"},"provider":{"anyOf":[{"type":"object","required":["_tag","domain","memberId"],"properties":{"_tag":{"type":"string","enum":["slack"]},"domain":{"anyOf":[{"type":"string"},{"type":"null"}]},"memberId":{"type":"string","description":"Your Slack member id in this workspace, such as U07…. A person id is chws_…@<member id>."}},"additionalProperties":false},{"type":"object","required":["_tag","sendAs"],"properties":{"_tag":{"type":"string","enum":["gmail"]},"sendAs":{"type":"array","items":{"type":"object","required":["email","displayName","isDefault","isPrimary","signature"],"properties":{"email":{"$ref":"#/components/schemas/Trim"},"displayName":{"type":"string"},"isDefault":{"type":"boolean"},"isPrimary":{"type":"boolean"},"signature":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},"description":"Addresses you can send from, default first. Pass one as from when you write an email."}},"additionalProperties":false},{"type":"object","required":["_tag","mailbox","shown","primary","timeZone"],"properties":{"_tag":{"type":"string","enum":["google-calendar"]},"mailbox":{"type":"string"},"shown":{"type":"boolean","description":"Whether Avazal shows this calendar's events."},"primary":{"type":"boolean"},"timeZone":{"type":"string"}},"additionalProperties":false},{"type":"object","required":["_tag","workspace"],"properties":{"_tag":{"type":"string","enum":["linear"]},"workspace":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["_tag","installations"],"properties":{"_tag":{"type":"string","enum":["github"]},"installations":{"type":"number"}},"additionalProperties":false}]}},"additionalProperties":false,"description":"A connected account: a Slack workspace (chws_…), a mailbox (macc_…), a Google calendar, Linear or GitHub."},"Trim":{"type":"string"},"InvalidCursor":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["InvalidCursor"]}},"additionalProperties":false},"SchedulingPreferences":{"type":"object","required":["timeZone","workingHours","focusBlocks","meetingMinutes","bufferMinutes","minimumNoticeMinutes"],"properties":{"timeZone":{"type":"string"},"workingHours":{"type":"array","items":{"$ref":"#/components/schemas/WeeklyRange"}},"focusBlocks":{"type":"array","items":{"$ref":"#/components/schemas/WeeklyRange"}},"meetingMinutes":{"$ref":"#/components/schemas/Int","description":"a number between 5 and 480","title":"between(5, 480)","minimum":5,"maximum":480},"bufferMinutes":{"$ref":"#/components/schemas/Int","description":"a number between 0 and 240","title":"between(0, 240)","minimum":0,"maximum":240},"minimumNoticeMinutes":{"$ref":"#/components/schemas/Int","description":"a number between 0 and 20160","title":"between(0, 20160)","minimum":0,"maximum":20160}},"additionalProperties":false,"description":"Working hours, focus blocks and meeting defaults for scheduling."},"WeeklyRange":{"type":"object","required":["day","start","end"],"properties":{"day":{"type":"string","enum":["sunday","monday","tuesday","wednesday","thursday","friday","saturday"]},"start":{"$ref":"#/components/schemas/Int","description":"a number between 0 and 1440","title":"between(0, 1440)","minimum":0,"maximum":1440},"end":{"$ref":"#/components/schemas/Int","description":"a number between 0 and 1440","title":"between(0, 1440)","minimum":0,"maximum":1440}},"additionalProperties":false},"ReactionSignal":{"type":"object","required":["enabled","emoji","as","sharedChannels"],"properties":{"enabled":{"type":"boolean"},"emoji":{"$ref":"#/components/schemas/EmojiName"},"as":{"type":"string","enum":["user","bot"]},"sharedChannels":{"type":"boolean"}},"additionalProperties":false},"EmojiName":{"type":"string","description":"A Slack emoji short name without colons, e.g. eyes, +1 or thumbsup::skin-tone-2.","pattern":"^[a-z0-9_+-]+(?:::skin-tone-[2-6])?$","title":"maxLength(100)","maxLength":100},"AgentConnectionId":{"type":"string","title":"`acred_${string}`","description":"Connected agent account","pattern":"^acred_[\\s\\S]*?$"},"ObjectSummary":{"anyOf":[{"type":"object","required":["_tag","url","title","id","lastAt"],"properties":{"_tag":{"type":"string","enum":["MailThread"]},"url":{"type":"string"},"title":{"type":"string"},"id":{"$ref":"#/components/schemas/MailThreadId"},"lastAt":{"$ref":"#/components/schemas/Date"}},"additionalProperties":false},{"type":"object","required":["_tag","url","title","id","time","meetingLink"],"properties":{"_tag":{"type":"string","enum":["CalendarEvent"]},"url":{"type":"string"},"title":{"type":"string"},"id":{"$ref":"#/components/schemas/CalendarEventId"},"time":{"anyOf":[{"type":"object","required":["_tag","start","end","timeZone"],"properties":{"_tag":{"type":"string","enum":["Timed"]},"start":{"$ref":"#/components/schemas/Date"},"end":{"$ref":"#/components/schemas/Date"},"timeZone":{"type":"string"}},"additionalProperties":false},{"type":"object","required":["_tag","startDate","endDate"],"properties":{"_tag":{"type":"string","enum":["AllDay"]},"startDate":{"type":"string","description":"a string matching the pattern ^\\d{4}-\\d{2}-\\d{2}$","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"endDate":{"type":"string","description":"a string matching the pattern ^\\d{4}-\\d{2}-\\d{2}$","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"additionalProperties":false}]},"meetingLink":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["_tag","url","title","id","source"],"properties":{"_tag":{"type":"string","enum":["Document"]},"url":{"type":"string"},"title":{"type":"string"},"id":{"$ref":"#/components/schemas/DocumentId"},"source":{"type":"string","enum":["avazal","slack","google-drive"]}},"additionalProperties":false},{"type":"object","required":["_tag","url","title","id","kind","workspaceId","message","thread"],"properties":{"_tag":{"type":"string","enum":["Conversation"]},"url":{"type":"string"},"title":{"type":"string"},"id":{"$ref":"#/components/schemas/ConversationId"},"kind":{"type":"string","enum":["channel","private","dm","group","self"]},"workspaceId":{"$ref":"#/components/schemas/ChatWorkspaceId"},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"thread":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["_tag","url","title","workspaceId","conversationId","fileId","item"],"properties":{"_tag":{"type":"string","enum":["List"]},"url":{"type":"string"},"title":{"type":"string"},"workspaceId":{"$ref":"#/components/schemas/ChatWorkspaceId"},"conversationId":{"anyOf":[{"$ref":"#/components/schemas/ConversationId"},{"type":"null"}]},"fileId":{"$ref":"#/components/schemas/SlackFileId"},"item":{"anyOf":[{"type":"string","description":"a string at least 1 character(s) long","title":"minLength(1)","minLength":1},{"type":"null"}]},"itemTitle":{"type":"string"},"itemDone":{"type":"boolean"},"editedAt":{"$ref":"#/components/schemas/Date"}},"additionalProperties":false},{"type":"object","required":["_tag","url","title","workspaceId","conversationId","fileId","kind","messageId"],"properties":{"_tag":{"type":"string","enum":["File"]},"url":{"type":"string"},"title":{"type":"string"},"workspaceId":{"$ref":"#/components/schemas/ChatWorkspaceId"},"conversationId":{"anyOf":[{"$ref":"#/components/schemas/ConversationId"},{"type":"null"}]},"fileId":{"$ref":"#/components/schemas/SlackFileId"},"kind":{"type":"string","enum":["canvas","file"]},"messageId":{"anyOf":[{"$ref":"#/components/schemas/SlackMessageId"},{"type":"null"}]},"editedAt":{"$ref":"#/components/schemas/Date"}},"additionalProperties":false},{"type":"object","required":["_tag","url","title","workspaceId","memberId"],"properties":{"_tag":{"type":"string","enum":["Person"]},"url":{"type":"string"},"title":{"type":"string"},"workspaceId":{"$ref":"#/components/schemas/ChatWorkspaceId"},"memberId":{"$ref":"#/components/schemas/SlackMemberId"}},"additionalProperties":false},{"type":"object","required":["_tag","url","title","id","harness","state","target","requester","source","step","startedAt","updatedAt"],"properties":{"_tag":{"type":"string","enum":["Run"]},"url":{"type":"string"},"title":{"type":"string"},"id":{"$ref":"#/components/schemas/AgentRunId"},"harness":{"type":"string","enum":["capy","cursor","devin","claude","codex","hoplite","fake"]},"state":{"type":"string","enum":["queued","working","needs_input","review","done","failed","cancelled","undone"]},"target":{"anyOf":[{"type":"string"},{"type":"null"}]},"requester":{"type":"string"},"source":{"anyOf":[{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["Direct"]}},"additionalProperties":false},{"type":"object","required":["_tag","conversationId","threadRootId","label"],"properties":{"_tag":{"type":"string","enum":["ChatThread"]},"conversationId":{"$ref":"#/components/schemas/ConversationId"},"threadRootId":{"$ref":"#/components/schemas/SlackThreadRootId"},"messageId":{"$ref":"#/components/schemas/SlackMessageId"},"agentMemberId":{"$ref":"#/components/schemas/SlackMemberId"},"author":{"anyOf":[{"type":"object","required":["_tag","memberId"],"properties":{"_tag":{"type":"string","enum":["Member"]},"memberId":{"$ref":"#/components/schemas/SlackMemberId"},"identityId":{"$ref":"#/components/schemas/AgentIdentityId"}},"additionalProperties":false},{"type":"object","required":["_tag","appId","name","iconUrl","iconEmoji","memberId"],"properties":{"_tag":{"type":"string","enum":["App"]},"appId":{"$ref":"#/components/schemas/SlackAppId"},"name":{"type":"string"},"iconUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"iconEmoji":{"anyOf":[{"type":"string"},{"type":"null"}]},"memberId":{"anyOf":[{"$ref":"#/components/schemas/SlackMemberId"},{"type":"null"}]},"botId":{"$ref":"#/components/schemas/SlackBotId"},"identityId":{"$ref":"#/components/schemas/AgentIdentityId"}},"additionalProperties":false},{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["Unknown"]}},"additionalProperties":false}]},"label":{"type":"string"},"excerpt":{"type":"string"}},"additionalProperties":false},{"type":"object","required":["_tag","id","label"],"properties":{"_tag":{"type":"string","enum":["Object"]},"id":{"type":"string","title":"`${\"mthr\" | \"cevt\" | \"doc\" | \"chcv\" | \"arun\" | \"aart\" | \"lin\" | \"lst\" | \"tsk\"}_${string}`","description":"An Avazal object: mthr_ mail thread, cevt_ calendar event, doc_ document, chcv_ conversation, arun_ agent run, aart_ artifact, lin_ Linear issue, lst_ Slack List or tsk_ List item. From search_query or search_resolve.","pattern":"^(mthr|cevt|doc|chcv|arun|aart|lin|lst|tsk)_[\\s\\S]*?$"},"label":{"type":"string"}},"additionalProperties":false}]},"step":{"anyOf":[{"type":"string"},{"type":"null"}]},"startedAt":{"$ref":"#/components/schemas/Date"},"updatedAt":{"$ref":"#/components/schemas/Date"}},"additionalProperties":false},{"type":"object","required":["_tag","url","title","id","kind","workspaceId","workspaceName","runId","harness","source","items","createdAt"],"properties":{"_tag":{"type":"string","enum":["Artifact"]},"url":{"type":"string"},"title":{"type":"string"},"id":{"$ref":"#/components/schemas/ArtifactId"},"kind":{"$ref":"#/components/schemas/ArtifactKind"},"workspaceId":{"type":"string","description":"The workspace the run posted in."},"workspaceName":{"type":"string"},"runId":{"$ref":"#/components/schemas/AgentRunId"},"harness":{"type":"string","enum":["capy","cursor","devin","claude","codex","hoplite","fake"]},"source":{"anyOf":[{"type":"string"},{"type":"null"}]},"items":{"type":"array","items":{"type":"object","required":["name","mimeType","size"],"properties":{"name":{"$ref":"#/components/schemas/NonEmptyTrimmedString","description":"a string at most 200 character(s) long","title":"maxLength(200)","maxLength":200},"mimeType":{"type":"string","description":"a string at most 120 character(s) long","pattern":"^[a-z]+\\/[a-z0-9.+-]+$","title":"maxLength(120)","maxLength":120},"size":{"$ref":"#/components/schemas/NonNegativeInt"},"width":{"$ref":"#/components/schemas/Int"},"height":{"$ref":"#/components/schemas/Int"}},"additionalProperties":false}},"createdAt":{"$ref":"#/components/schemas/Date"}},"additionalProperties":false},{"type":"object","required":["_tag","url","title","id","identifier","state","priority","assignee"],"properties":{"_tag":{"type":"string","enum":["LinearIssue"]},"url":{"type":"string"},"title":{"type":"string"},"id":{"$ref":"#/components/schemas/LinearIssueId"},"identifier":{"type":"string"},"state":{"type":"object","required":["id","name","type","color"],"properties":{"id":{"type":"string","description":"A Linear workflow state, the stateId linear_create and linear_update take. From linear_teams."},"name":{"type":"string"},"type":{"type":"string","enum":["triage","backlog","unstarted","started","completed","canceled"]},"color":{"type":"string"}},"additionalProperties":false},"priority":{"type":"number","enum":[0,1,2,3,4]},"assignee":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}],"description":"A short summary of a referenced message, thread, document, run or issue."},"MailThreadId":{"type":"string","title":"`mthr_${string}`","description":"Mail thread","pattern":"^mthr_[\\s\\S]*?$"},"CalendarEventId":{"type":"string","title":"`cevt_${string}`","description":"Calendar event","pattern":"^cevt_[\\s\\S]*?$"},"DocumentId":{"type":"string","title":"`doc_${string}`","description":"Document or folder","pattern":"^doc_[\\s\\S]*?$"},"ConversationId":{"type":"string","title":"`chcv_${string}`","description":"Slack channel or DM","pattern":"^chcv_[\\s\\S]*?$"},"ChatWorkspaceId":{"type":"string","title":"`chws_${string}`","description":"Connected Slack workspace","pattern":"^chws_[\\s\\S]*?$"},"SlackFileId":{"type":"string","description":"A Slack file id, such as F0123ABCD, for a file, List or canvas. From files_list, lists_list or documents_list.","title":"minLength(1)","minLength":1},"SlackMessageId":{"type":"string","description":"A Slack message, named by its timestamp such as 1733050000.123456, the ts in its permalink. From messages_list, conversations_get, search_query or search_resolve.","title":"minLength(1)","minLength":1},"SlackMemberId":{"type":"string","description":"A Slack member id, such as U0123ABCD. From people_list.","title":"minLength(1)","minLength":1},"AgentRunId":{"type":"string","title":"`arun_${string}`","description":"Agent run","pattern":"^arun_[\\s\\S]*?$"},"SlackThreadRootId":{"type":"string","description":"The messageId of a thread's first message. From messages_list or messages_get.","title":"minLength(1)","minLength":1},"SlackAppId":{"type":"string","description":"A Slack app id, such as A0123ABCD, for an app that posts or unfurls.","title":"minLength(1)","minLength":1},"SlackBotId":{"type":"string","description":"A Slack bot id, such as B0123ABCD, that an app posts with.","title":"minLength(1)","minLength":1},"ArtifactId":{"type":"string","title":"`aart_${string}`","description":"File or page a run saved","pattern":"^aart_[\\s\\S]*?$"},"ArtifactKind":{"type":"string","enum":["page","images","report","file"],"description":"page: one self-contained text/html file, shown sandboxed with inline scripts and styles only. images: one to twelve PNG, JPEG, GIF or WebP screenshots. report: one text/markdown file. file: any one file, offered as a download."},"NonEmptyTrimmedString":{"type":"string","title":"nonEmptyString","pattern":"^\\S[\\s\\S]*\\S$|^\\S$|^$","minLength":1},"NonNegativeInt":{"type":"integer","title":"int","minimum":0},"LinearIssueId":{"type":"string","title":"`lin_${string}`","description":"Linear issue","pattern":"^lin_[\\s\\S]*?$"},"PublicGithubResult":{"type":"object","required":["_tag","id","url","source","title","kind","repository","number"],"properties":{"_tag":{"type":"string","enum":["GitHub"]},"id":{"type":"string","description":"The object's id. Every operation that takes it accepts it."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A link that opens the object where it lives."},"source":{"$ref":"#/components/schemas/Source"},"title":{"type":"string"},"kind":{"type":"string","enum":["branch","pull_request"]},"repository":{"type":"string"},"number":{"anyOf":[{"$ref":"#/components/schemas/Int"},{"type":"null"}]}},"additionalProperties":false,"description":"A GitHub branch or pull request. Pass its url as development to tasks_update."},"IdentityNotFound":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["IdentityNotFound"]}},"additionalProperties":false},"PublicConversation":{"type":"object","required":["id","url","source","title","kind","archived","lastMessageAt"],"properties":{"id":{"type":"string","description":"The object's id. Every operation that takes it accepts it."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A link that opens the object where it lives."},"source":{"$ref":"#/components/schemas/Source"},"title":{"type":"string"},"kind":{"type":"string","enum":["channel","private","dm","group","self","email"]},"unread":{"allOf":[{"$ref":"#/components/schemas/NonNegativeInt"}],"description":"Unread messages; for an email thread 1 when unread. Left out when unknown."},"mentions":{"$ref":"#/components/schemas/NonNegativeInt"},"archived":{"type":"boolean"},"lastMessageAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]},"provider":{"anyOf":[{"type":"object","required":["source","conversation"],"properties":{"source":{"type":"string","enum":["slack"]},"conversation":{"$ref":"#/components/schemas/Conversation"},"memberCount":{"$ref":"#/components/schemas/NonNegativeInt"},"joined":{"type":"boolean"}},"additionalProperties":false},{"type":"object","required":["source","accountId","tab","from","fromEmail","snippet","messageCount"],"properties":{"source":{"type":"string","enum":["gmail"]},"accountId":{"type":"string","description":"The mailbox the thread is in, a macc_ id from accounts_list."},"tab":{"type":"string","enum":["needs_reply","updates","other"]},"from":{"type":"string"},"fromEmail":{"type":"string"},"snippet":{"type":"string"},"messageCount":{"type":"number"},"draft":{"type":"object","required":["id","status","gaps"],"properties":{"id":{"$ref":"#/components/schemas/DraftId"},"status":{"type":"string","enum":["Ready","Stale","Sent","Discarded","Superseded","Failed"]},"gaps":{"type":"number"},"preview":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}]}},"additionalProperties":false,"description":"A Slack channel or DM, or an email thread."},"Conversation":{"type":"object","required":["id","workspaceId","externalId","kind","name","topic","purpose","dmMemberId","shared","archived","readOnly","postingRestricted","threadsRestricted","tabs","huddle","latestMessageAt"],"properties":{"id":{"$ref":"#/components/schemas/ConversationId"},"workspaceId":{"$ref":"#/components/schemas/ChatWorkspaceId"},"externalId":{"$ref":"#/components/schemas/SlackChannelId"},"kind":{"type":"string","enum":["channel","private","dm","group","self"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"topic":{"anyOf":[{"type":"string"},{"type":"null"}]},"purpose":{"anyOf":[{"type":"string"},{"type":"null"}]},"dmMemberId":{"anyOf":[{"$ref":"#/components/schemas/SlackMemberId"},{"type":"null"}]},"shared":{"type":"string","enum":["none","external","pending"]},"archived":{"type":"boolean"},"readOnly":{"type":"boolean"},"postingRestricted":{"type":"boolean"},"threadsRestricted":{"type":"boolean"},"tabs":{"type":"array","items":{"type":"object","required":["kind","label","fileId"],"properties":{"kind":{"type":"string","enum":["canvas","list","files","pins"]},"label":{"type":"string"},"fileId":{"anyOf":[{"$ref":"#/components/schemas/SlackFileId"},{"type":"null"}]}},"additionalProperties":false}},"huddle":{"anyOf":[{"type":"object","required":["startedAt","memberIds"],"properties":{"startedAt":{"$ref":"#/components/schemas/Date"},"memberIds":{"type":"array","items":{"$ref":"#/components/schemas/SlackMemberId"}}},"additionalProperties":false},{"type":"null"}]},"createdBy":{"anyOf":[{"$ref":"#/components/schemas/SlackMemberId"},{"type":"null"}]},"createdAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]},"latestMessageAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]},"preview":{"type":"boolean"}},"additionalProperties":false,"description":"A channel, DM or group DM in a chat workspace."},"SlackChannelId":{"type":"string","description":"Slack's own id for a channel or DM, such as C0123ABCD. Operations take the Avazal conversationId from conversations_list instead.","title":"minLength(1)","minLength":1},"DraftId":{"type":"string","title":"`mdrf_${string}`","description":"Reply draft on a mail thread","pattern":"^mdrf_[\\s\\S]*?$"},"PublicMessage":{"type":"object","required":["id","url","source","conversation","thread","state","from","at","markdown"],"properties":{"id":{"type":"string","description":"The object's id. Every operation that takes it accepts it."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A link that opens the object where it lives."},"source":{"$ref":"#/components/schemas/Source"},"conversation":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The conversation it belongs to, null for a new-email draft."},"thread":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The thread root's message id when it is a thread reply."},"state":{"type":"string","enum":["sent","draft","scheduled"]},"from":{"anyOf":[{"type":"string"},{"type":"null"}]},"at":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}],"description":"When it was sent, will be sent (scheduled), or was last edited (draft)."},"markdown":{"type":"string","description":"The content as markdown, with chat mentions as @name. Email text for email."},"saved":{"type":"object","required":["state","remindAt"],"properties":{"state":{"type":"string","enum":["in_progress","archived","completed"]},"remindAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]}},"additionalProperties":false},"activity":{"type":"object","required":["kind","at","done"],"properties":{"kind":{"type":"string","enum":["mention","reply","reaction","dm"]},"at":{"$ref":"#/components/schemas/Date"},"done":{"type":"boolean"}},"additionalProperties":false},"provider":{"anyOf":[{"type":"object","required":["source","message"],"properties":{"source":{"type":"string","enum":["slack"]},"message":{"$ref":"#/components/schemas/ChatMessage"}},"additionalProperties":false},{"type":"object","required":["source","subject","to","cc","bcc","attachments"],"properties":{"source":{"type":"string","enum":["gmail"]},"subject":{"type":"string"},"to":{"type":"array","items":{"type":"string"}},"cc":{"type":"array","items":{"type":"string"}},"bcc":{"type":"array","items":{"type":"string"}},"attachments":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/MailAttachment"},{"type":"object","required":["filename","contentType","size"],"properties":{"filename":{"type":"string"},"contentType":{"type":"string"},"size":{"$ref":"#/components/schemas/Int","description":"a non-negative number","title":"nonNegative","minimum":0}},"additionalProperties":false}]}},"draft":{"type":"object","required":["id","status","editedBody","regenerationFailedAt","signature","recipients"],"properties":{"id":{"$ref":"#/components/schemas/DraftId"},"status":{"anyOf":[{"type":"object","required":["_tag","draft"],"properties":{"_tag":{"type":"string","enum":["Ready"]},"draft":{"$ref":"#/components/schemas/Draft"}},"additionalProperties":false},{"type":"object","required":["_tag","draft","before"],"properties":{"_tag":{"type":"string","enum":["Stale"]},"draft":{"$ref":"#/components/schemas/Draft"},"before":{"type":"object","required":["messageId","from","at"],"properties":{"messageId":{"type":"string","description":"The latest email in the thread when the draft was written."},"from":{"type":"string"},"at":{"$ref":"#/components/schemas/Date"}},"additionalProperties":false}},"additionalProperties":false},{"type":"object","required":["_tag","edited"],"properties":{"_tag":{"type":"string","enum":["Sent"]},"edited":{"type":"boolean"}},"additionalProperties":false},{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["Discarded"]}},"additionalProperties":false},{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["Superseded"]}},"additionalProperties":false},{"type":"object","required":["_tag","reason"],"properties":{"_tag":{"type":"string","enum":["Failed"]},"reason":{"type":"string"}},"additionalProperties":false}]},"sending":{"type":"object","required":["outboxId","status","sendAt"],"properties":{"outboxId":{"$ref":"#/components/schemas/OutboxId"},"status":{"type":"string","enum":["scheduled","sending","sent","failed","cancelled"]},"sendAt":{"$ref":"#/components/schemas/Date"}},"additionalProperties":false},"heldSend":{"anyOf":[{"type":"string","enum":["ownerReplied","draftChanged"]},{"type":"null"}]},"editedBody":{"anyOf":[{"type":"string"},{"type":"null"}]},"regenerationFailedAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]},"signature":{"anyOf":[{"type":"string"},{"type":"null"}]},"recipients":{"type":"object","required":["to","cc"],"properties":{"to":{"type":"array","items":{"type":"string"}},"cc":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/MailAttachment"}},"times":{"anyOf":[{"type":"object","required":["slots","taken"],"properties":{"slots":{"type":"array","items":{"type":"object","required":["start","end","label"],"properties":{"start":{"$ref":"#/components/schemas/Date"},"end":{"$ref":"#/components/schemas/Date"},"label":{"type":"string"}},"additionalProperties":false}},"taken":{"type":"array","items":{"type":"object","required":["start","end","label"],"properties":{"start":{"$ref":"#/components/schemas/Date"},"end":{"$ref":"#/components/schemas/Date"},"label":{"type":"string"}},"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},"acceptance":{"anyOf":[{"type":"object","required":["messageId","by","slot","attendees","conflict"],"properties":{"messageId":{"type":"string","description":"The email that asked for the meeting."},"by":{"type":"string"},"slot":{"type":"object","required":["start","end","label"],"properties":{"start":{"$ref":"#/components/schemas/Date"},"end":{"$ref":"#/components/schemas/Date"},"label":{"type":"string"}},"additionalProperties":false},"attendees":{"type":"array","items":{"type":"string"}},"conflict":{"type":"boolean"}},"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false}},"additionalProperties":false}]}},"additionalProperties":false,"description":"A chat message or an email, sent, drafted or scheduled. Its id is the one every messages operation takes."},"ChatMessage":{"type":"object","required":["conversationId","id","sentAt","author","kind","system","content","attachments","thread","editedAt","restricted","files","reactions","pinned","deletedAt"],"properties":{"conversationId":{"$ref":"#/components/schemas/ConversationId"},"id":{"$ref":"#/components/schemas/SlackMessageId"},"sentAt":{"$ref":"#/components/schemas/Date"},"author":{"anyOf":[{"type":"object","required":["_tag","memberId"],"properties":{"_tag":{"type":"string","enum":["Member"]},"memberId":{"$ref":"#/components/schemas/SlackMemberId"},"identityId":{"$ref":"#/components/schemas/AgentIdentityId"}},"additionalProperties":false},{"type":"object","required":["_tag","appId","name","iconUrl","iconEmoji","memberId"],"properties":{"_tag":{"type":"string","enum":["App"]},"appId":{"$ref":"#/components/schemas/SlackAppId"},"name":{"type":"string"},"iconUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"iconEmoji":{"anyOf":[{"type":"string"},{"type":"null"}]},"memberId":{"anyOf":[{"$ref":"#/components/schemas/SlackMemberId"},{"type":"null"}]},"botId":{"$ref":"#/components/schemas/SlackBotId"},"identityId":{"$ref":"#/components/schemas/AgentIdentityId"}},"additionalProperties":false},{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["Unknown"]}},"additionalProperties":false}]},"kind":{"type":"string","enum":["message","me","system","app"]},"system":{"anyOf":[{"anyOf":[{"type":"object","required":["_tag","memberId","inviterId"],"properties":{"_tag":{"type":"string","enum":["joined"]},"memberId":{"$ref":"#/components/schemas/SlackMemberId"},"inviterId":{"anyOf":[{"$ref":"#/components/schemas/SlackMemberId"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["_tag","memberId"],"properties":{"_tag":{"type":"string","enum":["left"]},"memberId":{"$ref":"#/components/schemas/SlackMemberId"}},"additionalProperties":false},{"type":"object","required":["_tag","oldName","name"],"properties":{"_tag":{"type":"string","enum":["renamed"]},"oldName":{"type":"string"},"name":{"type":"string"}},"additionalProperties":false},{"type":"object","required":["_tag","topic"],"properties":{"_tag":{"type":"string","enum":["topic"]},"topic":{"type":"string"}},"additionalProperties":false},{"type":"object","required":["_tag","purpose"],"properties":{"_tag":{"type":"string","enum":["purpose"]},"purpose":{"type":"string"}},"additionalProperties":false},{"type":"object","required":["_tag","messageId"],"properties":{"_tag":{"type":"string","enum":["pinned"]},"messageId":{"anyOf":[{"$ref":"#/components/schemas/SlackMessageId"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["_tag","startedAt","endedAt","memberIds"],"properties":{"_tag":{"type":"string","enum":["huddle"]},"startedAt":{"$ref":"#/components/schemas/Date"},"endedAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]},"memberIds":{"type":"array","items":{"$ref":"#/components/schemas/SlackMemberId"}}},"additionalProperties":false},{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["archived"]}},"additionalProperties":false},{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["unarchived"]}},"additionalProperties":false},{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["unpinned"]}},"additionalProperties":false},{"type":"object","required":["_tag","to"],"properties":{"_tag":{"type":"string","enum":["converted"]},"to":{"type":"string","enum":["private","public"]}},"additionalProperties":false},{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["posting"]}},"additionalProperties":false},{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["tombstone"]}},"additionalProperties":false},{"type":"object","required":["_tag","subtype"],"properties":{"_tag":{"type":"string","enum":["unknown"]},"subtype":{"type":"string"}},"additionalProperties":false}]},{"type":"null"}]},"content":{"$ref":"#/components/schemas/RichText"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/MessageAttachment"}},"thread":{"anyOf":[{"type":"object","required":["rootId","replyCount","replyMemberIds","latestReplyAt","broadcast","locked","following","rootPreview","replyApps"],"properties":{"rootId":{"$ref":"#/components/schemas/SlackThreadRootId"},"replyCount":{"$ref":"#/components/schemas/NonNegativeInt"},"replyMemberIds":{"type":"array","items":{"$ref":"#/components/schemas/SlackMemberId"}},"latestReplyAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]},"broadcast":{"type":"boolean"},"locked":{"type":"boolean"},"following":{"type":"boolean"},"rootPreview":{"anyOf":[{"type":"string"},{"type":"null"}]},"replyApps":{"type":"array","items":{"type":"object","required":["appId","name","iconUrl","iconEmoji","memberId"],"properties":{"appId":{"$ref":"#/components/schemas/SlackAppId"},"name":{"type":"string"},"iconUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"iconEmoji":{"anyOf":[{"type":"string"},{"type":"null"}]},"memberId":{"anyOf":[{"$ref":"#/components/schemas/SlackMemberId"},{"type":"null"}]},"botId":{"$ref":"#/components/schemas/SlackBotId"},"identityId":{"$ref":"#/components/schemas/AgentIdentityId"}},"additionalProperties":false}}},"additionalProperties":false},{"type":"null"}]},"editedAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]},"restricted":{"anyOf":[{"type":"string","enum":["plan","ekm"]},{"type":"null"}]},"files":{"type":"array","items":{"type":"object","required":["id","name","title","mimeType","fileType","mode","size","imageSize","access","deletedAt"],"properties":{"id":{"$ref":"#/components/schemas/SlackFileId"},"name":{"type":"string"},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"mimeType":{"anyOf":[{"type":"string"},{"type":"null"}]},"fileType":{"anyOf":[{"type":"string"},{"type":"null"}]},"mode":{"type":"string","enum":["hosted","snippet","canvas","list","remote","huddle_notes"]},"size":{"anyOf":[{"$ref":"#/components/schemas/NonNegativeInt"},{"type":"null"}]},"imageSize":{"anyOf":[{"type":"object","required":["width","height"],"properties":{"width":{"$ref":"#/components/schemas/Int"},"height":{"$ref":"#/components/schemas/Int"}},"additionalProperties":false},{"type":"null"}]},"preview":{"anyOf":[{"type":"string","description":"a string at most 8192 character(s) long","title":"maxLength(8192)","pattern":"^data:image/jpeg;base64,","maxLength":8192},{"type":"null"}]},"durationMs":{"anyOf":[{"$ref":"#/components/schemas/NonNegativeInt"},{"type":"null"}]},"editedAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]},"access":{"type":"string","enum":["ok","check"]},"deletedAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]}},"additionalProperties":false}},"reactions":{"type":"array","items":{"type":"object","required":["emoji","count","memberIds"],"properties":{"emoji":{"type":"string"},"count":{"$ref":"#/components/schemas/NonNegativeInt"},"memberIds":{"type":"array","items":{"$ref":"#/components/schemas/SlackMemberId"}},"url":{"type":"string"}},"additionalProperties":false}},"pinned":{"type":"boolean"},"deletedAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]}},"additionalProperties":false,"description":"A chat message with its author, content, thread, files and reactions."},"RichText":{"type":"object","required":["blocks"],"properties":{"blocks":{"type":"array","items":{"$ref":"#/components/schemas/RichTextBlock"}}},"additionalProperties":false,"description":"Formatted content as a list of blocks."},"RichTextBlock":{"anyOf":[{"type":"object","required":["_tag","inlines"],"properties":{"_tag":{"type":"string","enum":["Section"]},"inlines":{"type":"array","items":{"$ref":"#/components/schemas/RichTextInline"}}},"additionalProperties":false},{"type":"object","required":["_tag","style","indent","items"],"properties":{"_tag":{"type":"string","enum":["List"]},"style":{"type":"string","enum":["bullet","ordered"]},"indent":{"$ref":"#/components/schemas/NonNegativeInt"},"offset":{"$ref":"#/components/schemas/NonNegativeInt"},"items":{"type":"array","items":{"type":"array","items":{"$ref":"#/components/schemas/RichTextInline"}}}},"additionalProperties":false},{"type":"object","required":["_tag","inlines"],"properties":{"_tag":{"type":"string","enum":["Quote"]},"inlines":{"type":"array","items":{"$ref":"#/components/schemas/RichTextInline"}}},"additionalProperties":false},{"type":"object","required":["_tag","inlines"],"properties":{"_tag":{"type":"string","enum":["Code"]},"inlines":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag","text"],"properties":{"_tag":{"type":"string","enum":["Text"]},"text":{"type":"string"},"style":{"type":"object","required":[],"properties":{"bold":{"type":"boolean"},"italic":{"type":"boolean"},"strike":{"type":"boolean"},"underline":{"type":"boolean"},"code":{"type":"boolean"}},"additionalProperties":false}},"additionalProperties":false},{"type":"object","required":["_tag","url"],"properties":{"_tag":{"type":"string","enum":["Link"]},"url":{"type":"string"},"text":{"type":"string"},"style":{"type":"object","required":[],"properties":{"bold":{"type":"boolean"},"italic":{"type":"boolean"},"strike":{"type":"boolean"},"underline":{"type":"boolean"},"code":{"type":"boolean"}},"additionalProperties":false}},"additionalProperties":false}]}},"language":{"type":"string"}},"additionalProperties":false}],"description":"A section, list, quote or code block."},"RichTextInline":{"anyOf":[{"type":"object","required":["_tag","text"],"properties":{"_tag":{"type":"string","enum":["Text"]},"text":{"type":"string"},"style":{"type":"object","required":[],"properties":{"bold":{"type":"boolean"},"italic":{"type":"boolean"},"strike":{"type":"boolean"},"underline":{"type":"boolean"},"code":{"type":"boolean"}},"additionalProperties":false}},"additionalProperties":false},{"type":"object","required":["_tag","url"],"properties":{"_tag":{"type":"string","enum":["Link"]},"url":{"type":"string"},"text":{"type":"string"},"style":{"type":"object","required":[],"properties":{"bold":{"type":"boolean"},"italic":{"type":"boolean"},"strike":{"type":"boolean"},"underline":{"type":"boolean"},"code":{"type":"boolean"}},"additionalProperties":false}},"additionalProperties":false},{"type":"object","required":["_tag","fileId"],"properties":{"_tag":{"type":"string","enum":["Canvas"]},"fileId":{"$ref":"#/components/schemas/SlackFileId"}},"additionalProperties":false},{"type":"object","required":["_tag","memberId"],"properties":{"_tag":{"type":"string","enum":["MemberMention"]},"memberId":{"$ref":"#/components/schemas/SlackMemberId"}},"additionalProperties":false},{"type":"object","required":["_tag","conversationExternalId"],"properties":{"_tag":{"type":"string","enum":["ConversationMention"]},"conversationExternalId":{"$ref":"#/components/schemas/SlackChannelId"}},"additionalProperties":false},{"type":"object","required":["_tag","groupId"],"properties":{"_tag":{"type":"string","enum":["GroupMention"]},"groupId":{"$ref":"#/components/schemas/SlackUsergroupId"}},"additionalProperties":false},{"type":"object","required":["_tag","range"],"properties":{"_tag":{"type":"string","enum":["Broadcast"]},"range":{"type":"string","enum":["here","channel","everyone"]}},"additionalProperties":false},{"type":"object","required":["_tag","name"],"properties":{"_tag":{"type":"string","enum":["Emoji"]},"name":{"type":"string"},"skinTone":{"$ref":"#/components/schemas/Int","description":"a number between 2 and 6","title":"between(2, 6)","minimum":2,"maximum":6},"url":{"type":"string"}},"additionalProperties":false},{"type":"object","required":["_tag","at","format","fallback"],"properties":{"_tag":{"type":"string","enum":["Date"]},"at":{"$ref":"#/components/schemas/Date"},"format":{"type":"string"},"fallback":{"type":"string"}},"additionalProperties":false},{"type":"object","required":["_tag","value"],"properties":{"_tag":{"type":"string","enum":["Color"]},"value":{"type":"string"}},"additionalProperties":false}],"description":"A run of text, a link, a mention, an emoji, a date or a color."},"SlackUsergroupId":{"type":"string","description":"A Slack user group, such as S0123ABCD. From people_list with groups: true.","title":"minLength(1)","minLength":1},"MessageAttachment":{"anyOf":[{"type":"object","required":["_tag","url","title","text","imageUrl","imageSize","service","serviceIconUrl"],"properties":{"_tag":{"type":"string","enum":["Unfurl"]},"url":{"type":"string"},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"imageSize":{"anyOf":[{"type":"object","required":["width","height"],"properties":{"width":{"$ref":"#/components/schemas/Int"},"height":{"$ref":"#/components/schemas/Int"}},"additionalProperties":false},{"type":"null"}]},"service":{"anyOf":[{"type":"string"},{"type":"null"}]},"serviceIconUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"thumbUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"video":{"type":"boolean"}},"additionalProperties":false},{"type":"object","required":["_tag","conversationExternalId","messageId","preview"],"properties":{"_tag":{"type":"string","enum":["MessageShare"]},"conversationExternalId":{"$ref":"#/components/schemas/SlackChannelId"},"messageId":{"$ref":"#/components/schemas/SlackMessageId"},"fileIds":{"type":"array","items":{"$ref":"#/components/schemas/SlackFileId"}},"preview":{"anyOf":[{"type":"object","required":["authorName","text"],"properties":{"authorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorIconUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"type":"string"},"blocks":{"type":"array","items":{"$id":"/schemas/unknown","title":"unknown"}},"inThread":{"type":"boolean"},"replyCount":{"anyOf":[{"$ref":"#/components/schemas/NonNegativeInt"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["_tag","title","titleUrl","pretext","text","authorName","authorIconUrl","fields","imageUrl","footer","color"],"properties":{"_tag":{"type":"string","enum":["Card"]},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"titleUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"pretext":{"anyOf":[{"$ref":"#/components/schemas/RichText"},{"type":"null"}]},"text":{"anyOf":[{"$ref":"#/components/schemas/RichText"},{"type":"null"}]},"authorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorIconUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"fields":{"type":"array","items":{"type":"object","required":["title","value","short"],"properties":{"title":{"type":"string"},"value":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/RichText"}]},"short":{"type":"boolean"}},"additionalProperties":false}},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"thumbUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"footer":{"anyOf":[{"type":"string"},{"type":"null"}]},"footerIconUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"at":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]},"color":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["_tag","provider","payload"],"properties":{"_tag":{"type":"string","enum":["ProviderBlocks"]},"provider":{"type":"string","enum":["slack","teams","sandbox"]},"payload":{"$id":"/schemas/unknown","title":"unknown"},"frame":{"anyOf":[{"type":"object","required":["source","iconUrl","color"],"properties":{"source":{"anyOf":[{"type":"string"},{"type":"null"}]},"iconUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"color":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["_tag","url","sourceId","sourceTitle","fields","task"],"properties":{"_tag":{"type":"string","enum":["TaskPreview"]},"url":{"type":"string"},"sourceId":{"$ref":"#/components/schemas/SlackFileId"},"sourceTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"fields":{"type":"array","items":{"$ref":"#/components/schemas/TaskField"}},"task":{"$ref":"#/components/schemas/Task"}},"additionalProperties":false},{"type":"object","required":["_tag","appId","url","source","title","subtitle","fields","actions","updatedAt"],"properties":{"_tag":{"type":"string","enum":["WorkObject"]},"appId":{"anyOf":[{"$ref":"#/components/schemas/SlackAppId"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"source":{"anyOf":[{"type":"string"},{"type":"null"}]},"title":{"type":"string"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"fields":{"type":"array","items":{"type":"object","required":["label","value"],"properties":{"label":{"type":"string"},"value":{"anyOf":[{"type":"object","required":["_tag","tags"],"properties":{"_tag":{"type":"string","enum":["Tags"]},"tags":{"type":"array","items":{"type":"object","required":["label","color"],"properties":{"label":{"type":"string"},"color":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}}},"additionalProperties":false},{"type":"object","required":["_tag","memberIds"],"properties":{"_tag":{"type":"string","enum":["Members"]},"memberIds":{"type":"array","items":{"$ref":"#/components/schemas/SlackMemberId"}}},"additionalProperties":false},{"type":"object","required":["_tag","at"],"properties":{"_tag":{"type":"string","enum":["Timestamp"]},"at":{"$ref":"#/components/schemas/Date"}},"additionalProperties":false},{"type":"object","required":["_tag","text"],"properties":{"_tag":{"type":"string","enum":["Text"]},"text":{"$ref":"#/components/schemas/RichText"}},"additionalProperties":false}]}},"additionalProperties":false}},"actions":{"type":"array","items":{"type":"object","required":["label","url","tone"],"properties":{"label":{"type":"string"},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"tone":{"type":"string","enum":["primary","default","danger"]}},"additionalProperties":false}},"updatedAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]}},"additionalProperties":false}],"description":"A link unfurl, shared message, card, app blocks, task preview or work object attached to a message."},"TaskField":{"type":"object","required":["id","name","type","role","editable","system"],"properties":{"id":{"type":"string","description":"A column of the list, the fieldId item writes take. From lists_get."},"name":{"type":"string"},"type":{"anyOf":[{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["Text"]}},"additionalProperties":false},{"type":"object","required":["_tag","variant","multi","options"],"properties":{"_tag":{"type":"string","enum":["Choice"]},"variant":{"type":"string","enum":["select","status","priority"]},"multi":{"type":"boolean"},"options":{"type":"array","items":{"type":"object","required":["id","label","color","group"],"properties":{"id":{"type":"string","description":"A choice in a select field. Choices values take these in ids. From lists_get."},"label":{"type":"string"},"color":{"anyOf":[{"type":"string"},{"type":"null"}]},"group":{"anyOf":[{"type":"string","enum":["backlog","todo","doing","done","canceled"]},{"type":"null"}]}},"additionalProperties":false}}},"additionalProperties":false},{"type":"object","required":["_tag","multi"],"properties":{"_tag":{"type":"string","enum":["Person"]},"multi":{"type":"boolean"}},"additionalProperties":false},{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["Date"]}},"additionalProperties":false},{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["Number"]}},"additionalProperties":false},{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["Checkbox"]}},"additionalProperties":false},{"type":"object","required":["_tag","max"],"properties":{"_tag":{"type":"string","enum":["Rating"]},"max":{"$ref":"#/components/schemas/Int"}},"additionalProperties":false},{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["Vote"]}},"additionalProperties":false},{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["Link"]}},"additionalProperties":false},{"type":"object","required":["_tag","kind"],"properties":{"_tag":{"type":"string","enum":["Contact"]},"kind":{"type":"string","enum":["email","phone"]}},"additionalProperties":false},{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["Ref"]},"accepts":{"type":"string","enum":["message","file","canvas","record","channel"]}},"additionalProperties":false},{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["Agent"]}},"additionalProperties":false},{"type":"object","required":["_tag","label"],"properties":{"_tag":{"type":"string","enum":["Unknown"]},"label":{"type":"string"}},"additionalProperties":false}]},"role":{"anyOf":[{"type":"string","enum":["title","done","assignee","due","priority","status"]},{"type":"null"}]},"editable":{"type":"boolean"},"system":{"type":"boolean"},"origin":{"type":"string","enum":["source","avazal","derived"]},"sync":{"anyOf":[{"type":"object","required":["state","done","total"],"properties":{"state":{"type":"string","enum":["copying","partial"]},"done":{"$ref":"#/components/schemas/NonNegativeInt"},"total":{"$ref":"#/components/schemas/NonNegativeInt"}},"additionalProperties":false},{"type":"null"}]},"visibility":{"type":"object","required":["byDefault","views"],"properties":{"byDefault":{"type":"boolean"},"views":{"type":"object","required":[],"properties":{},"additionalProperties":{"type":"boolean"}}},"additionalProperties":false,"description":"Where an Avazal field shows: per view, then byDefault for any other view."},"manageable":{"type":"boolean"}},"additionalProperties":false,"description":"A field of a list, with its type and role."},"Task":{"type":"object","required":["id","values","createdAt","createdBy","updatedAt","comments"],"properties":{"id":{"$ref":"#/components/schemas/SlackListItemId"},"work":{"type":"object","required":["id","key","mergeRule"],"properties":{"id":{"type":"string","description":"A Slack List item that Avazal tracks, its work.id. From tasks_get."},"key":{"type":"string"},"mergeRule":{"type":"object","required":["enabled","revision"],"properties":{"enabled":{"type":"boolean"},"revision":{"$ref":"#/components/schemas/NonNegativeInt"}},"additionalProperties":false},"development":{"type":"object","required":["kind","label","state"],"properties":{"kind":{"type":"string","enum":["branch","pull"]},"label":{"type":"string"},"state":{"type":"string","enum":["linked","open","closed","merged","paused"]}},"additionalProperties":false},"archived":{"type":"boolean"}},"additionalProperties":false},"archived":{"type":"boolean"},"values":{"type":"object","required":[],"properties":{},"additionalProperties":{"anyOf":[{"type":"object","required":["_tag","rich"],"properties":{"_tag":{"type":"string","enum":["Text"]},"rich":{"$ref":"#/components/schemas/RichText"}},"additionalProperties":false},{"type":"object","required":["_tag","ids"],"properties":{"_tag":{"type":"string","enum":["Choices"]},"ids":{"type":"array","items":{"type":"string"},"description":"Choice ids from the field's options in lists_get."}},"additionalProperties":false},{"type":"object","required":["_tag","ids"],"properties":{"_tag":{"type":"string","enum":["People"]},"ids":{"type":"array","items":{"$ref":"#/components/schemas/SlackMemberId"}}},"additionalProperties":false},{"type":"object","required":["_tag","date"],"properties":{"_tag":{"type":"string","enum":["Date"]},"date":{"type":"string","description":"a string matching the pattern ^\\d{4}-\\d{2}-\\d{2}$","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"additionalProperties":false},{"type":"object","required":["_tag","value"],"properties":{"_tag":{"type":"string","enum":["Number"]},"value":{"type":"number"}},"additionalProperties":false},{"type":"object","required":["_tag","checked"],"properties":{"_tag":{"type":"string","enum":["Checkbox"]},"checked":{"type":"boolean"}},"additionalProperties":false},{"type":"object","required":["_tag","url"],"properties":{"_tag":{"type":"string","enum":["Link"]},"url":{"type":"string"}},"additionalProperties":false},{"type":"object","required":["_tag","value"],"properties":{"_tag":{"type":"string","enum":["Contact"]},"value":{"type":"string"}},"additionalProperties":false},{"type":"object","required":["_tag","refs"],"properties":{"_tag":{"type":"string","enum":["Refs"]},"refs":{"type":"array","items":{"type":"object","required":["kind","url","label"],"properties":{"kind":{"type":"string","enum":["message","file","canvas","record","channel"]},"url":{"type":"string"},"label":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}}},"additionalProperties":false},{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["Empty"]}},"additionalProperties":false},{"type":"object","required":["_tag","claim"],"properties":{"_tag":{"type":"string","enum":["Agent"]},"claim":{"$ref":"#/components/schemas/AgentClaim"}},"additionalProperties":false}]}},"createdAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]},"createdBy":{"anyOf":[{"$ref":"#/components/schemas/SlackMemberId"},{"type":"null"}]},"updatedAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]},"comments":{"anyOf":[{"$ref":"#/components/schemas/NonNegativeInt"},{"type":"null"}]},"position":{"anyOf":[{"type":"number"},{"type":"null"}]},"viewPositions":{"type":"object","required":[],"properties":{},"additionalProperties":{"type":"number"}}},"additionalProperties":false,"description":"A list item with its values keyed by field id."},"SlackListItemId":{"type":"string","description":"A row in a Slack List. From tasks_list.","title":"minLength(1)","minLength":1},"AgentClaim":{"type":"object","required":["agent","profile","target","runId","state","via","linkedFrom","links","heartbeatAt","since","history"],"properties":{"informDelivery":{"type":"string","enum":["queued","unconfirmed","delivered"]},"mode":{"type":"string","enum":["assign","inform","start"]},"informedAt":{"$ref":"#/components/schemas/DateTimeUtc"},"agent":{"anyOf":[{"type":"object","required":["_tag","connectionId","captainId"],"properties":{"_tag":{"type":"string","enum":["Captain"]},"connectionId":{"$ref":"#/components/schemas/AgentConnectionId"},"captainId":{"type":"string","description":"A captain of the connection's project, from its captains."}},"additionalProperties":false},{"type":"object","required":["_tag","identityId"],"properties":{"_tag":{"type":"string","enum":["Identity"]},"identityId":{"$ref":"#/components/schemas/AgentIdentityId"}},"additionalProperties":false},{"type":"object","required":["_tag","connectionId"],"properties":{"_tag":{"type":"string","enum":["Harness"]},"connectionId":{"$ref":"#/components/schemas/AgentConnectionId"}},"additionalProperties":false}]},"profile":{"$ref":"#/components/schemas/AgentProfile"},"target":{"anyOf":[{"type":"object","required":["id","label"],"properties":{"id":{"type":"string","description":"The project, repository or environment an agent works in, from its connection's targets."},"label":{"type":"string"}},"additionalProperties":false},{"type":"null"}]},"runId":{"anyOf":[{"$ref":"#/components/schemas/AgentRunId"},{"type":"null"}]},"state":{"type":"string","enum":["pending","working","needs_you","pr_open","merged","done","failed","stale"]},"via":{"anyOf":[{"type":"object","required":["id","name"],"properties":{"id":{"$ref":"#/components/schemas/Trimmed","description":"The member the agent acts for, from the workspace's members.","title":"nonEmptyString","minLength":1},"name":{"type":"string"}},"additionalProperties":false},{"type":"null"}]},"linkedFrom":{"type":"string","enum":["run","mcp","api","slack_thread","slack_cell","manual"]},"links":{"type":"array","items":{"type":"object","required":["label","url"],"properties":{"label":{"type":"string"},"url":{"type":"string"}},"additionalProperties":false}},"heartbeatAt":{"anyOf":[{"$ref":"#/components/schemas/DateTimeUtc"},{"type":"null"}]},"since":{"$ref":"#/components/schemas/DateTimeUtc"},"history":{"type":"array","items":{"type":"object","required":["agent","profile","since","endedAt"],"properties":{"agent":{"anyOf":[{"type":"object","required":["_tag","connectionId","captainId"],"properties":{"_tag":{"type":"string","enum":["Captain"]},"connectionId":{"$ref":"#/components/schemas/AgentConnectionId"},"captainId":{"type":"string","description":"A captain of the connection's project, from its captains."}},"additionalProperties":false},{"type":"object","required":["_tag","identityId"],"properties":{"_tag":{"type":"string","enum":["Identity"]},"identityId":{"$ref":"#/components/schemas/AgentIdentityId"}},"additionalProperties":false},{"type":"object","required":["_tag","connectionId"],"properties":{"_tag":{"type":"string","enum":["Harness"]},"connectionId":{"$ref":"#/components/schemas/AgentConnectionId"}},"additionalProperties":false}]},"profile":{"$ref":"#/components/schemas/AgentProfile"},"since":{"$ref":"#/components/schemas/DateTimeUtc"},"endedAt":{"$ref":"#/components/schemas/DateTimeUtc"}},"additionalProperties":false}}},"additionalProperties":false,"description":"Who picked the item up: an agent, the project and run it works in, and the person it acts for."},"DateTimeUtc":{"type":"string"},"AgentProfile":{"type":"object","required":["name","harness","picture","captain"],"properties":{"name":{"type":"string"},"harness":{"anyOf":[{"type":"string","enum":["capy","cursor","devin","claude","codex","hoplite","fake"]},{"type":"null"}]},"picture":{"anyOf":[{"type":"string"},{"type":"null"}]},"captain":{"anyOf":[{"type":"object","required":["id","name","avatar","crew"],"properties":{"id":{"type":"string","description":"The captain's id in its connection's captains."},"name":{"type":"string"},"avatar":{"type":"object","required":["background","emoji","picture"],"properties":{"background":{"anyOf":[{"type":"string"},{"type":"null"}]},"emoji":{"anyOf":[{"type":"string"},{"type":"null"}]},"picture":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},"crew":{"$ref":"#/components/schemas/Int"}},"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false,"description":"How the agent shows: its name, harness, the identity's or Slack bot's picture, and the captain it is when it is one."},"MailAttachment":{"type":"object","required":["key","filename","contentType","size"],"properties":{"key":{"type":"string","description":"a string matching the pattern ^org\\/[^/\\s]+\\/att_[0-9a-z]+$","pattern":"^org\\/[^/\\s]+\\/att_[0-9a-z]+$"},"filename":{"type":"string"},"contentType":{"type":"string","description":"a string matching the pattern ^[\\w.+-]+\\/[\\w.+-]+$","pattern":"^[\\w.+-]+\\/[\\w.+-]+$"},"size":{"$ref":"#/components/schemas/Int","description":"a non-negative number","title":"nonNegative","minimum":0}},"additionalProperties":false,"description":"An uploaded file to attach to an email, by its storage key."},"Draft":{"type":"object","required":["body","gaps"],"properties":{"body":{"type":"string","description":"The drafted reply, with a {{gap:id}} token wherever it needs something only you know.","title":"nonEmptyString"},"gaps":{"type":"array","items":{"type":"object","required":["id","label","question"],"properties":{"id":{"$ref":"#/components/schemas/Int","description":"Numbers a gap the draft left for you to fill, matching its {{gap:id}} token.","title":"positive"},"label":{"type":"string","description":"a string at most 60 character(s) long","title":"maxLength(60)","minLength":1,"maxLength":60},"question":{"type":"string","description":"What to ask the person to fill the gap.","title":"nonEmptyString"}},"additionalProperties":false}}},"additionalProperties":false},"OutboxId":{"type":"string","title":"`mout_${string}`","description":"Email waiting to send","pattern":"^mout_[\\s\\S]*?$"},"PublicId":{"type":"string","description":"An id from another result: chcv_… (channel or DM), chcv_…@<ts> (message), chcv_…/<file> (Slack List or canvas), chcv_…/<file>/<item> (list item), mthr_ (email thread), mmsg_, mdrf_, mcmp_, mout_, att_, macc_, doc_, drev_, cevt_, cnt_, trg_, arun_, aart_, aask_, blnk_, a Linear issue such as ENG-123, or linear:team:<id>, linear:view:<id>, linear:mine."},"NonEmptyString":{"type":"string","title":"nonEmptyString","minLength":1},"AttachedFile":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string","title":"`att_${string}`","description":"Email attachment","pattern":"^att_[\\s\\S]*?$"},"name":{"$ref":"#/components/schemas/Trimmed","description":"The file name the email shows.","title":"nonEmptyString","minLength":1}},"additionalProperties":false,"description":"A file uploaded with files_create, attached to an email."},"PublicEmoji":{"type":"object","required":["id","url","source","name","aliasFor"],"properties":{"id":{"type":"string","description":"The object's id. Every operation that takes it accepts it."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A link that opens the object where it lives."},"source":{"$ref":"#/components/schemas/Source"},"name":{"type":"string","description":"The Slack name without colons, as reactions_create takes it."},"aliasFor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false,"description":"A custom emoji in a Slack workspace; url is its image."},"PublicFile":{"type":"object","required":["id","url","source","name","contentType","size","conversation","message","sharedBy","sharedAt"],"properties":{"id":{"type":"string","description":"The object's id. Every operation that takes it accepts it."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A link that opens the object where it lives."},"source":{"$ref":"#/components/schemas/Source"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"contentType":{"anyOf":[{"type":"string"},{"type":"null"}]},"size":{"anyOf":[{"$ref":"#/components/schemas/Int"},{"type":"null"}]},"conversation":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"sharedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"sharedAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]}},"additionalProperties":false,"description":"A file shared in chat (chcv_…/<file id>), a received email attachment (mmsg_…#<index>) or an upload to attach (att_…)."},"PublicFileContent":{"type":"object","required":["id","url","source","name","contentType","size","conversation","message","sharedBy","sharedAt"],"properties":{"id":{"type":"string","description":"The object's id. Every operation that takes it accepts it."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A link that opens the object where it lives."},"source":{"$ref":"#/components/schemas/Source"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"contentType":{"anyOf":[{"type":"string"},{"type":"null"}]},"size":{"anyOf":[{"$ref":"#/components/schemas/Int"},{"type":"null"}]},"conversation":{"anyOf":[{"type":"string"},{"type":"null"}]},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"sharedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"sharedAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]},"data":{"type":"string","description":"Only email attachments carry their bytes."}},"additionalProperties":false},"FeatureOff":{"type":"object","required":["feature","_tag"],"properties":{"feature":{"type":"string","enum":["gmail","calendar","assistant","triggers"]},"message":{"type":"string"},"_tag":{"type":"string","enum":["FeatureOff"]}},"additionalProperties":false},"PublicUserGroup":{"type":"object","required":["id","url","source","name","handle","description","account","members"],"properties":{"id":{"type":"string","description":"The object's id. Every operation that takes it accepts it."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A link that opens the object where it lives."},"source":{"$ref":"#/components/schemas/Source"},"name":{"type":"string"},"handle":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"account":{"$ref":"#/components/schemas/ChatWorkspaceId"},"members":{"type":"array","items":{"type":"string"},"description":"The ids of the group's members, as people_get takes them."}},"additionalProperties":false,"description":"A Slack user group such as @design."},"PublicList":{"type":"object","required":["id","url","source","title"],"properties":{"id":{"type":"string","description":"The object's id. Every operation that takes it accepts it."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A link that opens the object where it lives."},"source":{"$ref":"#/components/schemas/Source"},"title":{"type":"string"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/TaskField"},"description":"Only on lists_get: each field's id, type, role and options, such as a status's choices and a Linear team's labels."},"members":{"type":"array","items":{"$ref":"#/components/schemas/TaskPerson"},"description":"Only on lists_get: the people tasks can be assigned to."}},"additionalProperties":false,"description":"A container of tasks: a Slack List, or a Linear team, saved view or your own issues (linear:mine)."},"TaskPerson":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string","description":"Pass this in assignees. Slack members also work in people_get."},"name":{"type":"string"}},"additionalProperties":false},"PublicTask":{"type":"object","required":["id","url","source","list","title","done","status","assignees","due","priority","description","labels","fields","comments","updatedAt"],"properties":{"id":{"type":"string","description":"The object's id. Every operation that takes it accepts it."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A link that opens the object where it lives."},"source":{"$ref":"#/components/schemas/Source"},"list":{"type":"string","description":"The list's id."},"title":{"type":"string"},"done":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"assignees":{"type":"array","items":{"$ref":"#/components/schemas/TaskPerson"}},"due":{"anyOf":[{"type":"string","description":"a string matching the pattern ^\\d{4}-\\d{2}-\\d{2}$","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"priority":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"labels":{"type":"array","items":{"type":"string"}},"fields":{"type":"object","required":[],"properties":{},"additionalProperties":{"$ref":"#/components/schemas/FieldValue"},"description":"Every field's raw value by field id, as lists_get names them."},"comments":{"anyOf":[{"$ref":"#/components/schemas/NonNegativeInt"},{"type":"null"}]},"updatedAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]},"work":{"allOf":[{"$ref":"#/components/schemas/TaskWork"}],"description":"Only on tasks_get, for Slack List tasks."},"undo":{"type":"object","required":["tool","ref"],"properties":{"tool":{"$ref":"#/components/schemas/OperationName"},"ref":{"type":"string"}},"additionalProperties":false,"description":"Set when tasks_create linked the task to a message, or when tasks_update changed a Slack List task's fields; undoes that change."}},"additionalProperties":false,"description":"A task in a Slack List or Linear. Common fields are null or empty when the list has no such field."},"FieldValue":{"anyOf":[{"type":"object","required":["_tag","rich"],"properties":{"_tag":{"type":"string","enum":["Text"]},"rich":{"$ref":"#/components/schemas/RichText"}},"additionalProperties":false},{"type":"object","required":["_tag","ids"],"properties":{"_tag":{"type":"string","enum":["Choices"]},"ids":{"type":"array","items":{"type":"string"},"description":"Choice ids from the field's options in lists_get."}},"additionalProperties":false},{"type":"object","required":["_tag","ids"],"properties":{"_tag":{"type":"string","enum":["People"]},"ids":{"type":"array","items":{"$ref":"#/components/schemas/SlackMemberId"}}},"additionalProperties":false},{"type":"object","required":["_tag","date"],"properties":{"_tag":{"type":"string","enum":["Date"]},"date":{"type":"string","description":"a string matching the pattern ^\\d{4}-\\d{2}-\\d{2}$","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"additionalProperties":false},{"type":"object","required":["_tag","value"],"properties":{"_tag":{"type":"string","enum":["Number"]},"value":{"type":"number"}},"additionalProperties":false},{"type":"object","required":["_tag","checked"],"properties":{"_tag":{"type":"string","enum":["Checkbox"]},"checked":{"type":"boolean"}},"additionalProperties":false},{"type":"object","required":["_tag","url"],"properties":{"_tag":{"type":"string","enum":["Link"]},"url":{"type":"string"}},"additionalProperties":false},{"type":"object","required":["_tag","value"],"properties":{"_tag":{"type":"string","enum":["Contact"]},"value":{"type":"string"}},"additionalProperties":false},{"type":"object","required":["_tag","refs"],"properties":{"_tag":{"type":"string","enum":["Refs"]},"refs":{"type":"array","items":{"type":"object","required":["kind","url","label"],"properties":{"kind":{"type":"string","enum":["message","file","canvas","record","channel"]},"url":{"type":"string"},"label":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}}},"additionalProperties":false},{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["Empty"]}},"additionalProperties":false},{"type":"object","required":["_tag","claim"],"properties":{"_tag":{"type":"string","enum":["Agent"]},"claim":{"$ref":"#/components/schemas/AgentClaim"}},"additionalProperties":false}]},"TaskWork":{"type":"object","required":["id","development","documents","completeOnMerge","archived"],"properties":{"id":{"type":"string","description":"A Slack List item that Avazal tracks, its work.id. From tasks_get."},"development":{"anyOf":[{"type":"object","required":["kind","url","repository","branch","pulls","selectedPullId"],"properties":{"kind":{"type":"string","enum":["branch","pull"]},"url":{"type":"string"},"repository":{"type":"string"},"branch":{"type":"string"},"pulls":{"type":"array","items":{"type":"object","required":["id","number","url","state"],"properties":{"id":{"type":"string","description":"A GitHub pull request on the task's branch, as Avazal tracks it. Pass it as development.pullId on tasks_update."},"number":{"$ref":"#/components/schemas/Int"},"url":{"type":"string"},"state":{"type":"string","enum":["open","closed","merged"]}},"additionalProperties":false}},"selectedPullId":{"anyOf":[{"type":"string","description":"A GitHub pull request on the task's branch, as Avazal tracks it. Pass it as development.pullId on tasks_update."},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"documents":{"type":"array","items":{"type":"object","required":["id","url","name"],"properties":{"id":{"type":"string","description":"The attached document, a doc_ id for documents_get."},"url":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}},"completeOnMerge":{"type":"boolean"},"archived":{"type":"boolean"}},"additionalProperties":false,"description":"What Avazal tracks for a Slack List task: its linked branch or pull request, attached documents, whether it completes itself when the pull request merges, and whether it is archived."},"FieldValueInput":{"anyOf":[{"type":"object","required":["_tag","rich"],"properties":{"_tag":{"type":"string","enum":["Text"]},"rich":{"$ref":"#/components/schemas/RichText"}},"additionalProperties":false},{"type":"object","required":["_tag","ids"],"properties":{"_tag":{"type":"string","enum":["Choices"]},"ids":{"type":"array","items":{"type":"string"},"description":"Choice ids from the field's options in lists_get."}},"additionalProperties":false},{"type":"object","required":["_tag","ids"],"properties":{"_tag":{"type":"string","enum":["People"]},"ids":{"type":"array","items":{"$ref":"#/components/schemas/SlackMemberId"}}},"additionalProperties":false},{"type":"object","required":["_tag","date"],"properties":{"_tag":{"type":"string","enum":["Date"]},"date":{"type":"string","description":"a string matching the pattern ^\\d{4}-\\d{2}-\\d{2}$","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"additionalProperties":false},{"type":"object","required":["_tag","value"],"properties":{"_tag":{"type":"string","enum":["Number"]},"value":{"type":"number"}},"additionalProperties":false},{"type":"object","required":["_tag","checked"],"properties":{"_tag":{"type":"string","enum":["Checkbox"]},"checked":{"type":"boolean"}},"additionalProperties":false},{"type":"object","required":["_tag","url"],"properties":{"_tag":{"type":"string","enum":["Link"]},"url":{"type":"string"}},"additionalProperties":false},{"type":"object","required":["_tag","value"],"properties":{"_tag":{"type":"string","enum":["Contact"]},"value":{"type":"string"}},"additionalProperties":false},{"type":"object","required":["_tag","refs"],"properties":{"_tag":{"type":"string","enum":["Refs"]},"refs":{"type":"array","items":{"type":"object","required":["kind","url","label"],"properties":{"kind":{"type":"string","enum":["message","file","canvas","record","channel"]},"url":{"type":"string"},"label":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}}},"additionalProperties":false},{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["Empty"]}},"additionalProperties":false}]},"EffectRejected":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["EffectRejected"]}},"additionalProperties":false},"PublicComment":{"type":"object","required":["id","url","source","thread","anchor","replies","author","markdown","sentAt"],"properties":{"id":{"type":"string","description":"The object's id. Every operation that takes it accepts it."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A link that opens the object where it lives."},"source":{"$ref":"#/components/schemas/Source"},"thread":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A canvas comment thread's id, to pass as thread. null on task comments."},"anchor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The canvas text a thread is attached to."},"replies":{"anyOf":[{"$ref":"#/components/schemas/NonNegativeInt"},{"type":"null"}]},"author":{"anyOf":[{"$ref":"#/components/schemas/TaskPerson"},{"type":"null"}]},"markdown":{"anyOf":[{"type":"string"},{"type":"null"}]},"sentAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]}},"additionalProperties":false,"description":"A comment on a task or canvas. Listing a canvas without thread returns its threads, with anchor and replies and no text."},"PublicLink":{"type":"object","required":["id","url","source","from","to","title","emoji","kind"],"properties":{"id":{"type":"string","description":"The object's id. Every operation that takes it accepts it."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A link that opens the object where it lives."},"source":{"$ref":"#/components/schemas/Source"},"from":{"type":"string","description":"The object the link hangs from."},"to":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The object it points to, null for a plain url."},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"emoji":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"anyOf":[{"$ref":"#/components/schemas/LinkKind"},{"type":"null"}]}},"additionalProperties":false,"description":"A conversation's bookmarked url, a document attached to a task, or a relation between two objects."},"LinkKind":{"type":"string","enum":["about","duplicate","answers","waiting_on"],"description":"about: the message is about the target. duplicate: the same problem as the first report. answers: a reply to the request. waiting_on: someone waits on the target."},"BudgetExceeded":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["BudgetExceeded"]}},"additionalProperties":false},"PublicShare":{"type":"object","required":["id","url","source","shared","enabledBy","enabledAt"],"properties":{"id":{"type":"string","description":"The object's id. Every operation that takes it accepts it."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A link that opens the object where it lives."},"source":{"$ref":"#/components/schemas/Source"},"shared":{"type":"boolean"},"enabledBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"enabledAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]}},"additionalProperties":false,"description":"Whether an object has a public link. When shared, url is the link anyone can open without signing in."},"DocumentKind":{"type":"string","enum":["file","folder","page","images","report"],"description":"file is a markdown document or a file a run saved, folder holds documents, and page, images and report are what a run saved with documents_save."},"PublicDocument":{"type":"object","required":["id","url","source","title","kind","parentId","revisionId","version","updatedAt","conversation"],"properties":{"id":{"type":"string","description":"The object's id. Every operation that takes it accepts it."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A link that opens the object where it lives."},"source":{"$ref":"#/components/schemas/Source"},"title":{"type":"string"},"kind":{"$ref":"#/components/schemas/DocumentKind"},"parentId":{"anyOf":[{"$ref":"#/components/schemas/DocumentId"},{"type":"null"}]},"revisionId":{"anyOf":[{"$ref":"#/components/schemas/DocumentRevisionId"},{"type":"null"}]},"version":{"anyOf":[{"$ref":"#/components/schemas/Int"},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"conversation":{"anyOf":[{"$ref":"#/components/schemas/ConversationId"},{"type":"null"}],"description":"The channel or DM a Slack canvas belongs to."},"run":{"allOf":[{"$ref":"#/components/schemas/AgentRunId"}],"description":"The run that saved it with documents_save."},"files":{"type":"array","items":{"type":"object","required":["name","mimeType","size"],"properties":{"name":{"$ref":"#/components/schemas/NonEmptyTrimmedString","description":"a string at most 200 character(s) long","title":"maxLength(200)","maxLength":200},"mimeType":{"type":"string","description":"a string at most 120 character(s) long","pattern":"^[a-z]+\\/[a-z0-9.+-]+$","title":"maxLength(120)","maxLength":120},"size":{"$ref":"#/components/schemas/NonNegativeInt"},"width":{"$ref":"#/components/schemas/Int"},"height":{"$ref":"#/components/schemas/Int"}},"additionalProperties":false},"description":"The files a run saved, in order."},"markdown":{"type":"string","description":"a string at most 1000000 character(s) long","title":"maxLength(1000000)","maxLength":1000000},"draft":{"anyOf":[{"type":"object","required":["revisionId","baseRevisionId","generation","markdown"],"properties":{"revisionId":{"$ref":"#/components/schemas/DocumentRevisionId"},"baseRevisionId":{"$ref":"#/components/schemas/DocumentRevisionId"},"generation":{"$ref":"#/components/schemas/Int"},"markdown":{"type":"string","description":"a string at most 1000000 character(s) long","title":"maxLength(1000000)","maxLength":1000000}},"additionalProperties":false},{"type":"null"}]},"publish":{"anyOf":[{"$ref":"#/components/schemas/PublishState"},{"type":"null"}]},"context":{"type":"object","required":["folders","workItems"],"properties":{"folders":{"type":"array","items":{"$ref":"#/components/schemas/FileNode"},"description":"The folders it sits in, outermost first."},"workItems":{"type":"array","items":{"type":"object","required":["id","workspaceId","conversationId","listId","rowId","title"],"properties":{"id":{"type":"string","description":"A Slack List item that Avazal tracks, its work.id. From tasks_get."},"workspaceId":{"$ref":"#/components/schemas/ChatWorkspaceId"},"conversationId":{"$ref":"#/components/schemas/ConversationId"},"listId":{"$ref":"#/components/schemas/SlackFileId"},"rowId":{"$ref":"#/components/schemas/SlackListItemId"},"title":{"type":"string"}},"additionalProperties":false},"description":"Slack List items it is attached to. Read one with tasks_get."}},"additionalProperties":false}},"additionalProperties":false,"description":"A document, folder, Slack canvas or something a run saved. A read adds its markdown, your canvas draft and publish state."},"DocumentRevisionId":{"type":"string","title":"`drev_${string}`","description":"Document revision","pattern":"^drev_[\\s\\S]*?$"},"PublishState":{"type":"object","required":["unpublished","generation","canWrite","operation"],"properties":{"unpublished":{"type":"boolean","description":"Whether you have a draft that Slack does not have yet."},"generation":{"type":"integer","description":"The draft's generation, 0 when there is no draft.","title":"int"},"canWrite":{"type":"boolean"},"operation":{"anyOf":[{"type":"object","required":["id","documentId","state","nextStep","revisionId","updatedAt"],"properties":{"id":{"$ref":"#/components/schemas/DocumentOperationId"},"documentId":{"$ref":"#/components/schemas/DocumentId"},"state":{"type":"string","enum":["queued","applying","unknown","conflict","verified","failed"]},"nextStep":{"$ref":"#/components/schemas/Int"},"revisionId":{"$ref":"#/components/schemas/DocumentRevisionId"},"replacedRevisionId":{"anyOf":[{"$ref":"#/components/schemas/DocumentRevisionId"},{"type":"null"}]},"updatedAt":{"type":"string"}},"additionalProperties":false},{"type":"null"}],"description":"The publish asked about with operationId, or the one documents_publish just made. state is queued or applying while it runs, verified once Slack has it, conflict when the canvas changed in Slack first, failed or unknown otherwise."}},"additionalProperties":false,"description":"Where a Slack canvas's draft stands against Slack."},"DocumentOperationId":{"type":"string","title":"`dop_${string}`","description":"Document edit","pattern":"^dop_[\\s\\S]*?$"},"FileNode":{"type":"object","required":["id","parentId","name","kind","revisionId","version","updatedAt"],"properties":{"id":{"$ref":"#/components/schemas/DocumentId"},"parentId":{"anyOf":[{"$ref":"#/components/schemas/DocumentId"},{"type":"null"}]},"name":{"type":"string"},"kind":{"type":"string","enum":["file","folder"]},"revisionId":{"anyOf":[{"$ref":"#/components/schemas/DocumentRevisionId"},{"type":"null"}]},"version":{"$ref":"#/components/schemas/Int"},"updatedAt":{"type":"string"},"source":{"type":"object","required":["provider","conversationId","channel"],"properties":{"provider":{"type":"string"},"conversationId":{"anyOf":[{"$ref":"#/components/schemas/ConversationId"},{"type":"null"}]},"channel":{"anyOf":[{"type":"object","required":["name","kind"],"properties":{"name":{"type":"string"},"kind":{"type":"string","enum":["channel","private","dm","group","self"]}},"additionalProperties":false},{"type":"null"}]}},"additionalProperties":false}},"additionalProperties":false,"description":"A document or folder in the file tree."},"ChatRejected":{"type":"object","required":["reason","_tag"],"properties":{"reason":{"type":"string"},"outcome":{"type":"string","enum":["unknown","delivered"]},"reconciliationId":{"type":"string","description":"The write Avazal is still checking with Slack. Read the conversation again before retrying."},"reconnect":{"type":"boolean"},"retryAfterSeconds":{"$ref":"#/components/schemas/NonNegative","description":"Seconds to wait before retrying when Slack rate-limited the write.","title":"finite"},"code":{"type":"string"},"recovery":{"type":"string","enum":["installSlackConnect","reconnectSlackConnect","reconnectSlack"]},"_tag":{"type":"string","enum":["ChatRejected"]}},"additionalProperties":false},"NonNegative":{"type":"number","description":"a non-negative number","title":"nonNegative","minimum":0},"DocumentNotFound":{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["DocumentNotFound"]}},"additionalProperties":false},"NotFound":{"$id":"/schemas/void","title":"NotFound"},"DocumentStorageFailed":{"type":"object","required":["reason","_tag"],"properties":{"reason":{"type":"string"},"_tag":{"type":"string","enum":["DocumentStorageFailed"]}},"additionalProperties":false},"DocumentConflict":{"type":"object","required":["reason","_tag"],"properties":{"reason":{"type":"string"},"_tag":{"type":"string","enum":["DocumentConflict"]}},"additionalProperties":false},"DocumentInvalid":{"type":"object","required":["reason","_tag"],"properties":{"reason":{"type":"string"},"_tag":{"type":"string","enum":["DocumentInvalid"]}},"additionalProperties":false},"PublicEvent":{"type":"object","required":["id","url","source","title","start","end","allDay","meetingLink"],"properties":{"id":{"type":"string","description":"The object's id. Every operation that takes it accepts it."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A link that opens the object where it lives."},"source":{"$ref":"#/components/schemas/Source"},"title":{"type":"string"},"start":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"An ISO time, or a YYYY-MM-DD date for an all-day event. null for a meeting not on your calendar yet."},"end":{"anyOf":[{"type":"string"},{"type":"null"}]},"allDay":{"type":"boolean"},"meetingLink":{"anyOf":[{"type":"string"},{"type":"null"}]},"kind":{"type":"string","enum":["default","focusTime","outOfOffice","workingLocation"]},"availability":{"type":"string","enum":["busy","free"]},"status":{"type":"string","enum":["confirmed","tentative"]},"calendarId":{"type":"string","description":"The Google calendar the event is on, as listed under accounts_list provider."},"organizer":{"anyOf":[{"type":"string"},{"type":"null"}]},"attendees":{"type":"array","items":{"type":"object","required":["email","name","responseStatus","self","organizer"],"properties":{"email":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"responseStatus":{"type":"string","enum":["needsAction","declined","tentative","accepted"]},"self":{"type":"boolean"},"organizer":{"type":"boolean"}},"additionalProperties":false}},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"recurring":{"type":"boolean"},"thread":{"anyOf":[{"type":"object","required":["id","subject","snippet","lastMessageAt"],"properties":{"id":{"type":"string","description":"An email thread about the event, the threadId threads_get takes."},"subject":{"type":"string"},"snippet":{"type":"string"},"lastMessageAt":{"$ref":"#/components/schemas/Date"}},"additionalProperties":false},{"type":"null"}],"description":"The email thread about the event, as in conversations_get."},"conversation":{"allOf":[{"$ref":"#/components/schemas/ConversationId"}],"description":"For a huddle, the channel or DM it happened in."},"live":{"type":"boolean","description":"For a huddle, whether it is happening now."},"memberIds":{"type":"array","items":{"type":"string"},"description":"For a huddle, the Slack member ids who joined."},"notesFileId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"For a huddle, the notes canvas as <conversation>/<file>, readable with documents_get."}},"additionalProperties":false,"description":"A calendar event or Slack huddle. Reading one adds its attendees, description and email thread."},"MeetingUnavailable":{"type":"object","required":["reason","_tag"],"properties":{"reason":{"type":"string","enum":["NoDraft","NoCalendar","Conflict"]},"_tag":{"type":"string","enum":["MeetingUnavailable"]}},"additionalProperties":false},"NotificationCreate":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"The message to remind or notify about, a chat message id."},"at":{"allOf":[{"$ref":"#/components/schemas/Date"}],"description":"Remind at this time. Use this or template, not both."},"template":{"allOf":[{"$ref":"#/components/schemas/AgentNoticeTemplate"}],"description":"Notify now with this fixed text. Use this or at, not both."},"who":{"allOf":[{"$ref":"#/components/schemas/Trimmed","title":"nonEmptyString","minLength":1}],"description":"The person in the conversation. Defaults to you for a reminder; required with template."},"triggerId":{"$ref":"#/components/schemas/TriggerId"}},"additionalProperties":false},"AgentNoticeTemplate":{"type":"string","enum":["needs_you","fyi","done"],"description":"needs_you: the message needs the person. fyi: worth a look, nothing to do. done: the work on the message is finished."},"TriggerId":{"type":"string","title":"`trg_${string}`","description":"Trigger","pattern":"^trg_[\\s\\S]*?$"},"AppliedEffect":{"type":"object","required":["target","undo"],"properties":{"target":{"anyOf":[{"type":"object","required":["_tag","rfc822Id"],"properties":{"_tag":{"type":"string","enum":["MailMessage"]},"rfc822Id":{"type":"string","description":"The email's Message-ID header."}},"additionalProperties":false},{"type":"object","required":["_tag","threadId"],"properties":{"_tag":{"type":"string","enum":["MailThread"]},"threadId":{"type":"string","description":"An email thread. From threads_list or inbox_next."}},"additionalProperties":false},{"type":"object","required":["_tag","eventId","calendarId"],"properties":{"_tag":{"type":"string","enum":["CalendarEvent"]},"eventId":{"type":"string","description":"A calendar event, the id events_get and events_update take. From events_list."},"calendarId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A calendar, the id from calendars_list."}},"additionalProperties":false},{"type":"object","required":["_tag","conversation","message","thread"],"properties":{"_tag":{"type":"string","enum":["ChatRef"]},"conversation":{"type":"string"},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"thread":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["_tag","fileId","item"],"properties":{"_tag":{"type":"string","enum":["ChatList"]},"fileId":{"type":"string","description":"The Slack List's file id."},"item":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["_tag","member"],"properties":{"_tag":{"type":"string","enum":["ChatMember"]},"member":{"type":"string"}},"additionalProperties":false},{"type":"object","required":["_tag","provider","fileId"],"properties":{"_tag":{"type":"string","enum":["RemoteFile"]},"provider":{"type":"string","enum":["slack","google-drive"]},"fileId":{"type":"string","description":"The file's id at its provider."}},"additionalProperties":false},{"type":"object","required":["_tag","workspace","identifier"],"properties":{"_tag":{"type":"string","enum":["LinearIssue"]},"workspace":{"type":"string"},"identifier":{"type":"string"}},"additionalProperties":false},{"type":"object","required":["_tag","id","message","thread"],"properties":{"_tag":{"type":"string","enum":["Avazal"]},"id":{"type":"string","title":"`${\"mthr\" | \"cevt\" | \"doc\" | \"chcv\" | \"arun\" | \"aart\" | \"lin\" | \"lst\" | \"tsk\"}_${string}`","description":"An Avazal object: mthr_ mail thread, cevt_ calendar event, doc_ document, chcv_ conversation, arun_ agent run, aart_ artifact, lin_ Linear issue, lst_ Slack List or tsk_ List item. From search_query or search_resolve.","pattern":"^(mthr|cevt|doc|chcv|arun|aart|lin|lst|tsk)_[\\s\\S]*?$"},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"thread":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}],"description":"What the effect created or changed: the task, the message or the link target."},"undo":{"type":"object","required":["tool","ref"],"properties":{"tool":{"$ref":"#/components/schemas/OperationName"},"ref":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false},"PublicTrigger":{"type":"object","required":["name","scope","when","agent","prompt","routes","sensitivity","id","ownerId","enabled","paused","lastRunAt","suggested","url","source"],"properties":{"name":{"type":"string"},"scope":{"type":"string","enum":["team","personal"]},"when":{"$ref":"#/components/schemas/TriggerWhen"},"agent":{"anyOf":[{"anyOf":[{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["Avazal"]}},"additionalProperties":false},{"type":"object","required":["_tag","connectionId","targetId"],"properties":{"_tag":{"type":"string","enum":["Connected"]},"connectionId":{"$ref":"#/components/schemas/AgentConnectionId"},"targetId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where the agent runs, such as a device or repository, or null for its default."},"model":{"type":"string"}},"additionalProperties":false}]},{"type":"null"}]},"prompt":{"type":"string"},"refs":{"$ref":"#/components/schemas/PromptRefs"},"routes":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["Thread"]},"mode":{"type":"string","enum":["draft","post"]}},"additionalProperties":false},{"type":"object","required":["_tag","conversationId"],"properties":{"_tag":{"type":"string","enum":["Channel"]},"conversationId":{"$ref":"#/components/schemas/ConversationId"},"mode":{"type":"string","enum":["draft","post"]}},"additionalProperties":false},{"type":"object","required":["_tag","conversationId","listId"],"properties":{"_tag":{"type":"string","enum":["List"]},"conversationId":{"$ref":"#/components/schemas/ConversationId"},"listId":{"$ref":"#/components/schemas/SlackFileId"},"action":{"type":"string","enum":["add","update"]},"comment":{"type":"boolean"}},"additionalProperties":false},{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["Me"]}},"additionalProperties":false}]}},"sensitivity":{"type":"string","enum":["strict","standard","relaxed"]},"id":{"type":"string","description":"The object's id. Every operation that takes it accepts it."},"ownerId":{"type":"string","description":"The Avazal user who created the trigger."},"enabled":{"type":"boolean"},"paused":{"anyOf":[{"type":"object","required":["reason","until","since"],"properties":{"reason":{"type":"string","enum":["daily_limit","key_broken","no_credits"]},"until":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]},"since":{"$ref":"#/components/schemas/Date"}},"additionalProperties":false},{"type":"null"}]},"lastRunAt":{"anyOf":[{"$ref":"#/components/schemas/Date"},{"type":"null"}]},"suggested":{"type":"boolean"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A link that opens the object where it lives."},"source":{"$ref":"#/components/schemas/Source"}},"additionalProperties":false,"description":"A saved trigger with its owner, state and last run."},"TriggerWhen":{"anyOf":[{"type":"object","required":["_tag","conditions"],"properties":{"_tag":{"type":"string","enum":["Message"]},"conditions":{"type":"array","items":{"type":"object","required":["fieldId","op"],"properties":{"fieldId":{"type":"string","enum":["type","priority","about","where","from","item","prompt"],"description":"What the condition tests about a message."},"op":{"anyOf":[{"type":"object","required":["_tag","values"],"properties":{"_tag":{"type":"string","enum":["Is"]},"values":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},{"type":"object","required":["_tag","values"],"properties":{"_tag":{"type":"string","enum":["IsNot"]},"values":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},{"type":"object","required":["_tag","text"],"properties":{"_tag":{"type":"string","enum":["Contains"]},"text":{"type":"string"}},"additionalProperties":false},{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["Empty"]}},"additionalProperties":false},{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["NotEmpty"]}},"additionalProperties":false},{"type":"object","required":["_tag","date"],"properties":{"_tag":{"type":"string","enum":["Before"]},"date":{"type":"string","description":"a string matching the pattern ^\\d{4}-\\d{2}-\\d{2}$","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"additionalProperties":false},{"type":"object","required":["_tag","date"],"properties":{"_tag":{"type":"string","enum":["After"]},"date":{"type":"string","description":"a string matching the pattern ^\\d{4}-\\d{2}-\\d{2}$","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"additionalProperties":false}]}},"additionalProperties":false},"description":"an array of at most 6 item(s)","title":"maxItems(6)","maxItems":6}},"additionalProperties":false},{"type":"object","required":["_tag","days","at"],"properties":{"_tag":{"type":"string","enum":["Schedule"]},"days":{"type":"array","minItems":1,"items":{"type":"string","enum":["sunday","monday","tuesday","wednesday","thursday","friday","saturday"]},"description":"an array of at most 7 item(s)","title":"maxItems(7)","maxItems":7},"at":{"type":"string","description":"a string matching the pattern ^([01]\\d|2[0-3]):[0-5]\\d$","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"reads":{"type":"array","items":{"$ref":"#/components/schemas/ConversationId"}}},"additionalProperties":false}],"description":"When a trigger fires: on matching messages or on a schedule."},"PromptRefs":{"type":"array","items":{"type":"object","required":["kind","id","label","start","end"],"properties":{"kind":{"type":"string","enum":["channel","person","agent","list"]},"id":{"$ref":"#/components/schemas/Trimmed","description":"A conversation id or `@dms`, a member user id, an agent connection id or `avazal`, or a list file id.","title":"nonEmptyString","minLength":1},"label":{"$ref":"#/components/schemas/NonEmptyTrimmedString"},"start":{"$ref":"#/components/schemas/NonNegativeInt"},"end":{"$ref":"#/components/schemas/NonNegativeInt"}},"additionalProperties":false},"description":"What the owner picked in the words, by id and position.","title":"maxItems(24)","maxItems":24},"Forbidden":{"$id":"/schemas/void","title":"Forbidden"},"TriggerNotFound":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["TriggerNotFound"]}},"additionalProperties":false},"TriggerDraft":{"type":"object","required":["name","scope","when","agent","prompt"],"properties":{"name":{"type":"string"},"scope":{"type":"string","enum":["team","personal"]},"when":{"$ref":"#/components/schemas/TriggerWhen"},"agent":{"anyOf":[{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["Avazal"]}},"additionalProperties":false},{"type":"object","required":["_tag","connectionId","targetId"],"properties":{"_tag":{"type":"string","enum":["Connected"]},"connectionId":{"$ref":"#/components/schemas/AgentConnectionId"},"targetId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where the agent runs, such as a device or repository, or null for its default."},"model":{"type":"string"}},"additionalProperties":false}]},"prompt":{"type":"string"},"refs":{"$ref":"#/components/schemas/PromptRefs"},"routes":{"type":"array","items":{"anyOf":[{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["Thread"]},"mode":{"type":"string","enum":["draft","post"]}},"additionalProperties":false},{"type":"object","required":["_tag","conversationId"],"properties":{"_tag":{"type":"string","enum":["Channel"]},"conversationId":{"$ref":"#/components/schemas/ConversationId"},"mode":{"type":"string","enum":["draft","post"]}},"additionalProperties":false},{"type":"object","required":["_tag","conversationId","listId"],"properties":{"_tag":{"type":"string","enum":["List"]},"conversationId":{"$ref":"#/components/schemas/ConversationId"},"listId":{"$ref":"#/components/schemas/SlackFileId"},"action":{"type":"string","enum":["add","update"]},"comment":{"type":"boolean"}},"additionalProperties":false},{"type":"object","required":["_tag"],"properties":{"_tag":{"type":"string","enum":["Me"]}},"additionalProperties":false}]}},"sensitivity":{"type":"string","enum":["strict","standard","relaxed"]}},"additionalProperties":false},"TriggerLimit":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["TriggerLimit"]}},"additionalProperties":false},"SharedKeyRequired":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["SharedKeyRequired"]}},"additionalProperties":false},"AgentUnavailable":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["AgentUnavailable"]}},"additionalProperties":false},"SharedListRoute":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["SharedListRoute"]}},"additionalProperties":false},"AskTracking":{"type":"object","required":["id","url","source"],"properties":{"id":{"type":"string","description":"The object's id. Every operation that takes it accepts it."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A link that opens the object where it lives."},"source":{"$ref":"#/components/schemas/Source"},"stage":{"type":"string","enum":["open","claimed","shipped","told","done"]},"owner":{"$ref":"#/components/schemas/Trimmed","description":"The Slack member who claimed the ask.","title":"nonEmptyString"},"ownerName":{"type":"string"},"mine":{"type":"boolean"},"working":{"type":"boolean"},"runId":{"$ref":"#/components/schemas/AgentRunId"},"pullRequest":{"type":"object","required":["url","number","repo","merged"],"properties":{"url":{"type":"string"},"number":{"$ref":"#/components/schemas/Int"},"repo":{"type":"string"},"merged":{"type":"boolean"}},"additionalProperties":false},"issue":{"type":"object","required":["identifier"],"properties":{"identifier":{"type":"string"}},"additionalProperties":false},"draft":{"type":"object","required":["draftId"],"properties":{"draftId":{"type":"string","description":"The drafted reply tracking_send posts."},"sentAt":{"$ref":"#/components/schemas/DateTimeUtc"}},"additionalProperties":false}},"additionalProperties":false,"description":"Where an ask stands: its stage, owner and linked work. Only the id and url when the ask was just marked."},"TrackingNotFound":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["TrackingNotFound"]}},"additionalProperties":false},"AskId":{"type":"string","title":"`aask_${string}`","description":"A run's question to a person","pattern":"^aask_[\\s\\S]*?$"},"NotApprover":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["NotApprover"]}},"additionalProperties":false},"QuestionClosed":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["QuestionClosed"]}},"additionalProperties":false},"AskNotFound":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["AskNotFound"]}},"additionalProperties":false},"AskExpired":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["AskExpired"]}},"additionalProperties":false},"PublicAsk":{"type":"object","required":["id","url","source","conversationName","author","preview","askedAt","group","reason","urgent","stage"],"properties":{"id":{"type":"string","description":"The object's id. Every operation that takes it accepts it."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A link that opens the object where it lives."},"source":{"$ref":"#/components/schemas/Source"},"conversationName":{"type":"string"},"conversationKind":{"type":"string","enum":["channel","private","dm","group","self"]},"threadId":{"type":"string","description":"The thread root's message id when the ask is in a thread."},"author":{"type":"object","required":["name","external"],"properties":{"memberId":{"$ref":"#/components/schemas/Trimmed","description":"The Slack member who asked, from people_list.","title":"nonEmptyString"},"name":{"type":"string"},"external":{"type":"boolean"},"workspace":{"type":"string"}},"additionalProperties":false},"preview":{"type":"string","description":"a string at most 280 character(s) long","title":"maxLength(280)","maxLength":280},"askedAt":{"$ref":"#/components/schemas/DateTimeUtc"},"group":{"type":"string","enum":["yours","customers"]},"reason":{"type":"string","enum":["direct","thread","customer"]},"urgent":{"type":"boolean"},"claimedBy":{"type":"object","required":["memberId","name"],"properties":{"memberId":{"$ref":"#/components/schemas/Trimmed","description":"The Slack member who claimed the ask.","title":"nonEmptyString"},"name":{"type":"string"}},"additionalProperties":false},"stage":{"type":"string","enum":["open","claimed","shipped","told","done"]}},"additionalProperties":false,"description":"A message addressed to you that nobody has answered, with who asked and where it stands."},"ObjectRef":{"anyOf":[{"type":"object","required":["_tag","rfc822Id"],"properties":{"_tag":{"type":"string","enum":["MailMessage"]},"rfc822Id":{"type":"string","description":"The email's Message-ID header."}},"additionalProperties":false},{"type":"object","required":["_tag","threadId"],"properties":{"_tag":{"type":"string","enum":["MailThread"]},"threadId":{"type":"string","description":"An email thread. From threads_list or inbox_next."}},"additionalProperties":false},{"type":"object","required":["_tag","eventId","calendarId"],"properties":{"_tag":{"type":"string","enum":["CalendarEvent"]},"eventId":{"type":"string","description":"A calendar event, the id events_get and events_update take. From events_list."},"calendarId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A calendar, the id from calendars_list."}},"additionalProperties":false},{"type":"object","required":["_tag","conversation","message","thread"],"properties":{"_tag":{"type":"string","enum":["ChatRef"]},"conversation":{"type":"string"},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"thread":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["_tag","fileId","item"],"properties":{"_tag":{"type":"string","enum":["ChatList"]},"fileId":{"type":"string","description":"The Slack List's file id."},"item":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false},{"type":"object","required":["_tag","member"],"properties":{"_tag":{"type":"string","enum":["ChatMember"]},"member":{"type":"string"}},"additionalProperties":false},{"type":"object","required":["_tag","provider","fileId"],"properties":{"_tag":{"type":"string","enum":["RemoteFile"]},"provider":{"type":"string","enum":["slack","google-drive"]},"fileId":{"type":"string","description":"The file's id at its provider."}},"additionalProperties":false},{"type":"object","required":["_tag","workspace","identifier"],"properties":{"_tag":{"type":"string","enum":["LinearIssue"]},"workspace":{"type":"string"},"identifier":{"type":"string"}},"additionalProperties":false},{"type":"object","required":["_tag","id","message","thread"],"properties":{"_tag":{"type":"string","enum":["Avazal"]},"id":{"type":"string","title":"`${\"mthr\" | \"cevt\" | \"doc\" | \"chcv\" | \"arun\" | \"aart\" | \"lin\" | \"lst\" | \"tsk\"}_${string}`","description":"An Avazal object: mthr_ mail thread, cevt_ calendar event, doc_ document, chcv_ conversation, arun_ agent run, aart_ artifact, lin_ Linear issue, lst_ Slack List or tsk_ List item. From search_query or search_resolve.","pattern":"^(mthr|cevt|doc|chcv|arun|aart|lin|lst|tsk)_[\\s\\S]*?$"},"message":{"anyOf":[{"type":"string"},{"type":"null"}]},"thread":{"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}],"description":"A reference to a message, mail, file, issue or Avazal object."},"OwedNotFound":{"type":"object","required":["message","_tag"],"properties":{"message":{"type":"string"},"_tag":{"type":"string","enum":["OwedNotFound"]}},"additionalProperties":false}},"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"x-api-key","description":"An Avazal API key (avz_…) created in Settings → API keys."},"bearer":{"type":"http","scheme":"bearer","description":"The same API key sent as `Authorization: Bearer avz_…`."}}},"security":[{"apiKey":[]},{"bearer":[]}],"tags":[{"name":"me"},{"name":"accounts"},{"name":"settings"},{"name":"search"},{"name":"inbox"},{"name":"conversations"},{"name":"messages"},{"name":"reactions"},{"name":"emoji"},{"name":"files"},{"name":"people"},{"name":"lists"},{"name":"tasks"},{"name":"comments"},{"name":"links"},{"name":"shares"},{"name":"documents"},{"name":"events"},{"name":"notifications"},{"name":"triggers"},{"name":"runs"},{"name":"asks"}]}